:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f5f7fb;color:#101828}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}.appShell{min-height:100vh;display:grid;grid-template-columns:320px 1fr}.sidebar{background:#fff;border-right:1px solid #d0d5dd;padding:20px;display:flex;flex-direction:column;gap:18px}.brandBlock{display:flex;align-items:center;gap:12px}.brandMark{width:42px;height:42px;border-radius:8px;display:grid;place-items:center;background:#194185;color:#fff;font-weight:800}h1,h2,p{margin:0}h1{font-size:18px}h2{font-size:24px;line-height:1.2}.brandBlock p,.subtle,.statusLine,.eyebrow{color:#667085;font-size:13px}.uploadBox{border:1px dashed #98a2b3;border-radius:8px;min-height:72px;padding:14px;display:flex;align-items:center;gap:10px;cursor:pointer;color:#344054}.uploadBox input{display:none}.pasteToggle{min-height:44px;padding:10px 12px;display:flex;align-items:center;gap:10px;text-align:left}.pastePanel{display:grid;gap:10px}.pasteTextarea{min-height:150px;max-height:280px}.sidebarHeader,.toolbar,.reviewHeader,.actions,.topbar{display:flex;align-items:center}.sidebarHeader,.toolbar,.topbar{justify-content:space-between;gap:12px}.iconButton,.primaryButton,.secondaryButton,.pasteToggle,.tabs button,.patientRow,.documentRow{border:1px solid #d0d5dd;border-radius:8px;background:#fff;color:#344054;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.iconButton{width:34px;height:34px;display:grid;place-items:center}.patientList,.documentList{display:flex;flex-direction:column;gap:8px;overflow:auto}.patientRow{width:100%;min-height:58px;padding:10px;text-align:left;display:grid;gap:6px}.documentRow{width:100%;min-height:62px;padding:10px;display:grid;grid-template-columns:18px minmax(0,1fr) 18px;align-items:center;gap:8px;text-align:left}.documentRow span{display:grid;gap:4px;min-width:0}.documentRow strong,.documentRow small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.documentRow strong{color:#101828;font-family:SFMono-Regular,Consolas,monospace;font-size:12px}.documentRow small{color:#667085;font-size:12px}.documentRow.status-error{border-color:#fecdca;background:#fffbfa}.documentRow.status-review_pending{border-color:#b2ddff;background:#f5fbff}.patientRow.active{border-color:#175cd3;background:#eff8ff}.patientId{font-family:SFMono-Regular,Consolas,monospace;font-size:14px;color:#101828}.patientMeta{display:flex;align-items:center;gap:8px;color:#667085;font-size:13px}.workspace{padding:24px;min-width:0}.topbar{min-height:66px;margin-bottom:20px}.tabs{display:inline-flex;border:1px solid #d0d5dd;border-radius:8px;overflow:hidden;background:#fff}.tabs button{border:0;border-radius:0;padding:10px 16px}.tabs button.active{background:#344054;color:#fff}.contentStack{display:flex;flex-direction:column;gap:16px}.metricGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.metric,.panel,.reviewItem,.emptyPanel,.errorBox{background:#fff;border:1px solid #d0d5dd;border-radius:8px}.metric{padding:14px;display:grid;gap:8px;min-height:82px}.metric span{color:#667085;font-size:13px}.metric strong{font-size:20px;line-height:1.2;overflow-wrap:anywhere}.sectionTitle,.panelTitle{font-weight:700}.toggle{display:flex;align-items:center;gap:8px;color:#344054}.panel{padding:16px}.chartWrap{min-height:280px}.tooltip{max-width:320px;background:#fff;border:1px solid #d0d5dd;border-radius:8px;padding:10px;box-shadow:0 8px 24px #10182829;display:grid;gap:6px}.tooltip p,.eventRow p{color:#344054;font-size:13px;line-height:1.4;overflow-wrap:anywhere}.eventList{display:grid;gap:10px}.eventRow{display:grid;grid-template-columns:12px 130px 120px auto;align-items:start;gap:10px;padding:10px 0;border-top:1px solid #eaecf0}.dot{width:10px;height:10px;border-radius:50%;margin-top:5px}.badge{width:fit-content;border-radius:999px;background:#fff6ed;color:#b93815;border:1px solid #fedf89;padding:2px 8px;font-size:12px;font-weight:700}.graphCanvas{height:320px;width:100%;border-top:1px solid #eaecf0;margin-top:12px}.reviewList{display:grid;gap:12px}.reviewItem{padding:14px;display:grid;gap:12px}.reviewHeader>div{display:grid;gap:2px}.reviewHeader span{color:#667085;font-size:13px}.reviewHeader .badge{color:#b93815}blockquote{margin:0;border-left:3px solid #175cd3;padding:8px 12px;background:#f9fafb;color:#344054;overflow-wrap:anywhere}textarea{width:100%;min-height:160px;resize:vertical;border:1px solid #d0d5dd;border-radius:8px;padding:10px;font-family:SFMono-Regular,Consolas,monospace;font-size:13px}.actions{justify-content:flex-end;gap:10px}.primaryButton,.secondaryButton{min-height:38px;padding:8px 12px;display:inline-flex;align-items:center;gap:8px}.primaryButton{border-color:#175cd3;background:#175cd3;color:#fff}.emptyPanel,.errorBox{padding:18px;color:#667085}.errorBox{color:#b42318;border-color:#fecdca;background:#fffbfa}@media (max-width: 980px){.appShell{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid #d0d5dd}.metricGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar,.toolbar{align-items:flex-start;flex-direction:column}.eventRow{grid-template-columns:12px 1fr}.eventRow p,.eventRow .badge{grid-column:2}}@media (max-width: 560px){.workspace,.sidebar{padding:14px}.metricGrid{grid-template-columns:1fr}.actions{align-items:stretch;flex-direction:column}.primaryButton,.secondaryButton{justify-content:center}}.hintInput{width:100%;border:1px solid #d0d5dd;border-radius:8px;padding:9px 10px;font-size:13px;color:#344054;background:#fff}.hintInput::placeholder{color:#98a2b3}.noticeBar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border:1px solid #fedf89;background:#fffaf2;color:#93530f;border-radius:10px;padding:10px 14px;font-size:13px}.legendRow{display:flex;flex-wrap:wrap;gap:14px;padding:4px 8px 10px}.legendItem{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#475467}.legendItem .dot{margin-top:0}.reviewGroup{display:grid;gap:12px;border:1px solid #eaecf0;border-radius:12px;padding:12px;background:#fcfcfd}.reviewGroupHeader{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;font-weight:600;color:#475467}
