:root{--paper:#f1f4f7;--ink:#202f3c;--muted:#547189;--teal:#244c6d;--line:#d9e1e7;--pale:#eaeff3;--amber:#8c5724;--amberbg:#faf1e2;--red:#a34836;--redbg:#fcf0eb;--white:#fff;--radius:20px;font-family:-apple-system,BlinkMacSystemFont,'PingFang TC','Noto Sans',sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,label[role=button],summary{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}button,a,input,select,label[role=button],summary{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,label:focus-visible{outline:3px solid #5f85a4}button{border:0}a{color:var(--teal)}.topbar{height:84px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;max-width:1440px;margin:auto;padding:0 54px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-size:20px;font-weight:700}.brandmark{background:var(--teal);color:#fff;border-radius:12px;width:38px;height:38px;display:grid;place-items:center;font-size:28px;font-weight:400}.brand small{font-size:11px;letter-spacing:1px;font-weight:500;margin-left:6px;color:var(--muted)}.topright{display:flex;align-items:center;gap:20px}.local-dot{font-size:13px;color:var(--muted)}.local-dot:before{content:'';display:inline-block;width:7px;height:7px;background:#557997;border-radius:50%;margin-right:8px}.smallbtn{border:1px solid var(--line);border-radius:9px;background:#fff;padding:8px 12px;color:var(--ink)}main{max-width:1440px;padding:22px 54px 26px;margin:auto}.notice{background:#e5ecf1;color:#4f6a81;display:flex;gap:9px;align-items:flex-start;padding:11px 14px;border-radius:10px;font-size:12px;line-height:1.6}.notice-mark{border:1px solid #62849f;min-width:17px;height:17px;text-align:center;border-radius:50%;font:12px Georgia;margin-top:1px}.intro{padding:28px 0 24px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:600;color:var(--teal);margin:0 0 10px}.intro h1{font-size:36px;letter-spacing:-1px;font-weight:650;line-height:1.25;margin:0 0 10px}.intro>p:last-child{color:var(--muted);font-size:15px;margin:0;line-height:1.6}.workspace{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(340px,1fr);gap:24px;align-items:start}.panel{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:26px}.section-heading{display:flex;align-items:center;gap:10px;margin-bottom:20px}.step{background:var(--pale);color:var(--teal);display:grid;place-items:center;height:27px;width:27px;border-radius:50%;font-size:13px;font-weight:650;flex-shrink:0}.section-heading h2{font-size:18px;margin:0;font-weight:650}.section-note{margin-left:auto;font-size:12px;color:var(--muted)}.upload-area{border:1.5px dashed #b6c5d2;background:#f5f7f9;border-radius:13px;padding:22px 18px;display:flex;gap:16px;align-items:flex-start}.upload-area>svg{width:41px;min-width:41px;color:var(--teal);margin-top:3px}.upload-area h3{font-size:15px;margin:0 0 8px;font-weight:600;line-height:1.5}.upload-area p{font-size:12px;color:var(--muted);line-height:1.6;margin:0 0 16px}.button-row{display:flex;flex-wrap:wrap;gap:8px}.button{border-radius:10px;padding:12px 16px;display:inline-flex;justify-content:center;align-items:center;line-height:1.3;font-size:13px;font-weight:600}.primary{background:var(--teal);color:white}.primary:hover:not(:disabled){background:#1c405e}.secondary{background:white;color:var(--teal);border:1px solid #c9d5de}.micro{font-size:11px;line-height:1.6;color:var(--muted);margin:10px 0 0}.divider{display:flex;align-items:center;gap:12px;color:#7593ab;font-size:11px;margin:22px 0 18px}.divider:before,.divider:after{content:'';height:1px;background:var(--line);flex:1}.field-label{font-size:12px;font-weight:600;display:block;margin-bottom:9px}.search-box{display:flex;align-items:center;border:1px solid #c5d2dc;border-radius:11px;background:white;overflow:hidden}.search-box svg{height:20px;width:20px;margin-left:14px;flex-shrink:0;color:#6a89a3}.search-box input{border:0;background:transparent;padding:15px 10px;min-width:0;width:100%;outline-offset:-3px;color:var(--ink);font-size:13px}.search-box button{align-self:stretch;padding:0 16px;background:var(--pale);color:var(--teal);font-size:13px;font-weight:600}.sample-row{border-top:1px solid #ebeff3;margin-top:20px;padding-top:17px;display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:11px}.sample-row>span{color:var(--muted);margin-right:3px}.sample-row button{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:7px 12px;color:var(--ink);font-size:11px}.selected-panel{margin-top:20px}.section-description{font-size:12px;color:var(--muted);line-height:1.7;margin:-7px 0 16px}.textbtn{background:none;color:var(--teal);font-size:12px;padding:4px 0;text-align:left}.section-heading .textbtn{margin-left:auto}.empty-selection{padding:24px 15px;border-radius:12px;background:#f4f7f9;text-align:center;color:#63849f;font-size:13px}.check-button{width:100%;font-size:15px;margin-top:18px;padding:15px}.selected-card{border:1px solid var(--line);border-radius:12px;margin-top:10px;padding:16px}.product-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.product-top strong{font-size:14px;line-height:1.6;display:block}.product-id{font-size:11px;color:var(--teal);letter-spacing:.4px;display:block;margin-top:4px}.remove{font-size:17px;line-height:1;padding:4px 6px;color:#6d8ca6;background:none;flex-shrink:0}.ingredient-line{font-size:12px;line-height:1.6;color:var(--muted);margin:12px 0}.confirm-box{display:flex;align-items:flex-start;gap:9px;border-top:1px solid #e9eef2;padding-top:12px;font-size:12px;line-height:1.7;color:#3d5263}.confirm-box input{width:17px;height:17px;accent-color:var(--teal);margin:2px 0 0;flex-shrink:0}.sample-tag{font-size:10px;color:#817056;margin:8px 0 0}.result-panel{min-height:344px}.result-empty{text-align:center;padding:18px 8px 10px}.shield{width:65px;height:65px;margin:0 auto 20px;border-radius:50%;background:var(--pale);display:grid;place-items:center;color:var(--teal)}.shield svg{width:34px;height:34px}.result-empty h3{font-size:19px;font-weight:600;line-height:1.5;margin:0 0 10px}.result-empty p{font-size:13px;line-height:1.9;color:var(--muted);max-width:290px;margin:0 auto}.coverage{margin-top:21px;padding:0 8px}.coverage h3{font-size:13px;font-weight:600;margin:0 0 16px}.stats{display:flex;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:12px}.stats>div{flex:1;border-right:1px solid var(--line);padding-left:16px}.stats>div:first-child{padding-left:0}.stats>div:last-child{border:0}.stats strong{font-size:24px;font-weight:500;letter-spacing:-.7px;display:block}.stats span{font-size:10px;color:var(--muted);display:block;margin-top:5px}.coverage p{font-size:12px;line-height:1.8;color:var(--muted)}footer{display:flex;justify-content:space-between;gap:18px;color:#6c8ba5;font-size:10px;line-height:1.7;margin-top:36px;padding-top:18px;border-top:1px solid var(--line)}.candidate{border-bottom:1px solid var(--line);padding:12px 0;display:flex;gap:12px;align-items:center}.candidate>div{min-width:0;flex:1}.candidate strong{font-size:12px;display:block;line-height:1.6;overflow-wrap:anywhere}.candidate small{font-size:11px;display:block;color:var(--muted);line-height:1.7}.candidate button{padding:9px 12px;background:var(--pale);color:var(--teal);border-radius:8px;flex-shrink:0;font-size:12px}.search-empty{font-size:12px;line-height:1.8;color:var(--muted);padding-top:12px}.alert-card{border:1px solid #eed9bb;background:var(--amberbg);border-radius:13px;padding:18px;margin:12px 0}.alert-card.high{border-color:#ebc8bb;background:var(--redbg)}.alert-level{font-size:10px;font-weight:650;text-transform:uppercase;letter-spacing:1px;color:var(--amber);margin-bottom:9px}.alert-card.high .alert-level{color:var(--red)}.alert-card h3{font-size:17px;line-height:1.5;margin:0 0 10px;font-weight:600}.alert-card p{font-size:13px;line-height:1.85;margin:0;color:#5d564a}.alert-source{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid #eadbc8;margin-top:14px;padding-top:12px}.alert-source span{font-size:10px;color:#8c7a60}.alert-source button{color:var(--amber);background:none;font-size:12px;padding:3px 0;text-decoration:underline;text-underline-offset:4px}.result-head{font-size:19px;font-weight:650;margin:8px 0 9px;line-height:1.5}.result-note{font-size:12px;line-height:1.8;color:var(--muted)}.boundary-note{border-left:3px solid #8ba4b8;padding:4px 0 4px 12px;margin-top:18px;font-size:12px;line-height:1.8;color:var(--muted)}.unknown-card{background:#eef2f5;border:1px solid #d2dce4;border-radius:12px;padding:18px;margin-top:12px}.unknown-card strong{font-size:14px;line-height:1.6}.unknown-card p{font-size:12px;line-height:1.8;color:var(--muted);margin-bottom:0}.audio-row{display:flex;gap:8px;margin-top:18px}.audio-row select{min-width:0;flex:1;border:1px solid var(--line);border-radius:9px;padding:10px 7px;color:var(--ink);background:white;font-size:12px}.audio-row button{flex:1;font-size:12px}.secondary-actions{display:flex;gap:15px;margin-top:12px;flex-wrap:wrap}.error-note{background:var(--amberbg);color:var(--amber);padding:11px 12px;border-radius:9px;font-size:12px;line-height:1.7;margin-top:12px}.success-note{color:var(--teal);font-size:12px;padding-top:10px;line-height:1.7}details{font-size:12px;color:var(--muted);margin-top:12px}summary{cursor:pointer;line-height:1.8}pre{white-space:pre-wrap;word-break:break-word;background:#f1f4f7;padding:12px;border-radius:8px;font:12px/1.8 monospace}#ocr-preview img{max-width:100%;max-height:170px;display:block;object-fit:contain;margin:10px 0}dialog{width:min(620px,calc(100% - 28px));border:1px solid var(--line);border-radius:20px;padding:28px;color:var(--ink);max-height:84vh}dialog::backdrop{background:#14232f66}.dialog-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.dialog-top h2{font-size:21px;line-height:1.5;margin:0 0 20px}#dialog-body{font-size:14px;line-height:1.85}#dialog-body h3{font-size:15px;margin-top:23px}#dialog-body p{color:#506c83}#dialog-body blockquote{border-left:3px solid #adbfcd;padding-left:15px;margin-left:0;color:#42596b}#dialog-body a{overflow-wrap:anywhere}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:12px;padding:12px 20px;font-size:13px;z-index:10;max-width:90%;box-shadow:0 8px 30px #202f3c22}#toast:empty{display:none}audio{width:100%;height:36px;margin-top:12px}.hint-count{font-size:11px;color:var(--muted);margin-top:10px}
@media(min-width:1600px){main,.topbar{max-width:1420px}}@media(max-width:1050px){.topbar{padding:0 28px}main{padding:20px 28px}.workspace{gap:18px;grid-template-columns:minmax(0,1.3fr) minmax(300px,1fr)}.panel{padding:20px}.upload-area{padding:18px 14px;gap:10px}.upload-area>svg{display:none}.stats strong{font-size:21px}.section-note{display:none}}@media(max-width:760px){.topbar{height:70px;padding:0 20px}.brand{font-size:17px;gap:8px}.brand small{display:none}.brandmark{width:33px;height:33px}.topright{gap:10px}.local-dot{font-size:11px}.smallbtn{font-size:12px;padding:8px 9px}main{padding:16px 18px 24px}.intro{padding:24px 2px 21px}.intro h1{font-size:29px}.intro>p:last-child{font-size:13px}.workspace{grid-template-columns:1fr;gap:20px}.panel{border-radius:16px;padding:20px}.notice{font-size:11px}.result-panel{min-height:0}.result-empty{padding:10px 5px 20px}.coverage{padding:0 3px}.stats strong{font-size:26px}.stats span{font-size:11px}.selected-panel{margin-top:16px}.button{font-size:12px}.section-heading h2{font-size:17px}.upload-area h3{font-size:14px}.confirm-box{font-size:13px}.sample-row button{font-size:12px}.intro .eyebrow{font-size:10px}.result-column{min-width:0}footer{display:block;margin-top:25px}footer span{display:block;margin-top:6px}.audio-row button{font-size:13px}.candidate strong{font-size:13px}.product-top strong{font-size:14px}.search-box input{font-size:12px}.search-box button{padding:0 12px}dialog{padding:22px}}
@media print{.topbar,.notice,.intro,.input-column,.coverage,footer,.audio-row,.secondary-actions,#toast{display:none}.workspace{display:block}.result-panel{border:0}.result-column{width:100%}.alert-card{break-inside:avoid}main{padding:0}.result-panel:before{content:'HacKU 2026 · Demonstration only · Pending clinical review';font-size:12px}}

.search-box button{white-space:nowrap;flex-shrink:0;min-width:68px} .search-box input{min-width:0}
html[data-large="true"] body{font-size:20px}html[data-large="true"] .selected-card strong{font-size:22px}html[data-large="true"] .ingredient-line,html[data-large="true"] .confirm-box,html[data-large="true"] .alert-card p,html[data-large="true"] .boundary-note,html[data-large="true"] .candidate strong,html[data-large="true"] .search-box input,html[data-large="true"] button,html[data-large="true"] .button{font-size:18px}html[data-large="true"] .micro,html[data-large="true"] .product-id,html[data-large="true"] .coverage p,html[data-large="true"] .candidate small{font-size:15px}
@media(max-width:760px){.topbar{padding-left:16px;padding-right:16px}.topright{gap:6px}.brand small{display:none}.local-dot{display:none}}

.print-only{display:none}
@media print{main>*{display:none!important}main>#print-report{display:block!important;white-space:pre-wrap;font:14px/1.65 sans-serif;color:#111;overflow-wrap:anywhere}body{background:white}dialog{display:none!important}@page{margin:20mm}}

@media print{html,body,main{background:white!important}}
.voice-panel{margin:24px 0 30px;padding:26px}.voice-panel>p{color:var(--muted);line-height:1.7}.voice-panel textarea{display:block;box-sizing:border-box;width:100%;font:inherit;line-height:1.65;border:1px solid #9fb3c4;border-radius:12px;padding:14px;background:#fff;color:#192d3d;margin:10px 0}.question-examples{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}#voice-answer{margin-top:22px;padding:20px;background:#f0f4f7;border:1px solid #bbc9d5;border-radius:14px}#answer-text{white-space:pre-line;font-size:1.1rem;line-height:1.9}#answer-audio audio{width:100%;margin-top:15px}.spoken-note{background:#fff9ed;padding:12px;border-radius:9px}.pharmacist-card{padding:15px;margin:18px 0;border-radius:12px;background:#eaeff3}.pharmacist-card p{line-height:1.7}.voice-panel .button[disabled]{opacity:.5;cursor:not-allowed}.question-examples button{text-align:left}
@media print{.voice-panel{display:none!important}}

/* Product wordmark. */
.brand-text{display:flex;flex-direction:column;align-items:flex-start;line-height:1.2}
.brand-line-1{display:flex;align-items:baseline}
.brand .brand-credit{display:block;margin-left:0;font-size:10px;letter-spacing:.4px;color:#7d93a6;font-weight:500;order:2}
@media(max-width:760px){.brand-credit{display:none!important}}
