*{box-sizing:border-box}body{font:16px/1.48 system-ui,-apple-system,sans-serif;margin:0;background:#f5f6fa;color:#17251d}main{max-width:850px;margin:auto;padding:.5rem 1rem 2rem}header,form,.guide,#result{background:#fff;padding:1rem 1.15rem;border-radius:12px;margin:.6rem 0}header h1{font-size:clamp(1.3rem,4vw,1.9rem);margin:.45rem 0 .2rem}.actions{display:flex;gap:.55rem;align-items:center;justify-content:space-between;flex-wrap:wrap}.language-label{display:flex;flex-direction:row;align-items:center;gap:.3rem;flex:0 0 auto}#language{width:7.5rem}label{display:flex;flex-direction:column;gap:.2rem;min-width:0}input,select,button{font:inherit;padding:.55rem;max-width:100%}input{width:100%;border:1px solid #87958d;border-radius:6px}button{cursor:pointer;min-height:42px;border:1px solid #175c43;border-radius:7px;background:#175c43;color:#fff}#share,#install,#ios-help{background:#fff;color:#175c43}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d7a52b;outline-offset:2px}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.field-grid label{padding:.55rem;background:#f8faf8;border-radius:8px}details{margin:.35rem 0 .65rem}summary{cursor:pointer;color:#175c43;font-weight:650;padding:.3rem 0}.hint{font-size:.93rem;color:#59675f;margin:.5rem 0}.ad-slot{min-height:44px;text-align:center;color:#68716c;background:#eee;padding:.4rem;border-radius:6px}#solver-form>#solve{width:100%;font-weight:700}#error{color:#9f2020}#error:empty{display:none}.result-row{display:flex;justify-content:space-between;gap:1rem;padding:.45rem 0;border-bottom:1px solid #e1e7e3}.result-row strong{text-align:right;font-variant-numeric:tabular-nums}#result-scope{font-weight:650}.guide h2{font-size:1.1rem;margin:.6rem 0 .25rem}.guide ol{padding-left:1.3rem}.guide li{margin:.35rem 0}nav{display:flex;gap:.4rem;flex-wrap:wrap;padding:.35rem 0}nav a{color:#175c43;cursor:pointer}dialog{max-width:90vw;border:0;border-radius:12px;box-shadow:0 2px 20px #777}#share-nudge{position:sticky;bottom:.5rem;background:#fff;padding:.5rem;box-shadow:0 0 8px #999;border-radius:8px}
@media(max-width:520px){main{padding:.35rem .5rem 1rem}header,form,.guide,#result{padding:.75rem;margin:.45rem 0}.actions{gap:.35rem}.actions button{padding:.4rem;font-size:.88rem}.field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.3rem}.field-grid label{padding:.35rem;font-size:.93rem}.advanced-grid{grid-template-columns:1fr 1fr}.ad-slot{min-height:35px;padding:.25rem}.result-row{font-size:.95rem}}
pre{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}#result{min-width:0}#html-code,#css-code{overflow-wrap:anywhere;word-break:break-word}
.clinical-note{padding:.55rem .7rem;border-left:4px solid #b68105;background:#fff8df;border-radius:4px;font-weight:650}.sources{padding-left:1.25rem}.sources a{color:#175c43}.result-row{font-variant-numeric:tabular-nums}.guide p{line-height:1.65}
