:root{color:#16302b;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f4f7f5;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0}#root{min-height:100vh}.app-shell{color:#16302b;background:#f4f7f5;grid-template-columns:320px minmax(0,1fr);min-height:100vh;display:grid}.auth-shell{color:#16302b;background:#f4f7f5;place-items:center;min-height:100vh;padding:24px;display:grid}.auth-card{background:#fff;border:1px solid #dde8e3;border-radius:8px;gap:20px;width:min(460px,100%);padding:24px;display:grid;box-shadow:0 18px 45px #123c3514}.auth-card h1{margin:4px 0 8px;font-size:40px}.auth-card p{color:#60726c;margin:0;line-height:1.5}.auth-tabs{background:#edf4f1;border-radius:8px;grid-template-columns:1fr 1fr;gap:8px;padding:4px;display:grid}.auth-tabs button{background:0 0}.auth-tabs button.active{color:#fff;background:#123c35}.auth-form{gap:14px;display:grid}.auth-note{padding-top:2px;font-size:13px}.sidebar{color:#f4fbf8;background:#123c35;flex-direction:column;gap:28px;min-height:100vh;padding:28px;display:flex}.sidebar h1{margin:4px 0 10px;font-size:42px}.sidebar-copy{color:#c4dad3;margin:0;line-height:1.5}.eyebrow{color:#42c49e;letter-spacing:.12em;text-transform:uppercase;margin:0;font-size:12px;font-weight:800}.notice{background:#174940;border:1px solid #2c665b;border-radius:8px;gap:8px;padding:16px;display:grid}.user-box{background:#174940;border:1px solid #2c665b;border-radius:8px;gap:6px;padding:14px;display:grid}.user-box span,.user-box small{color:#c4dad3}.user-box button{color:#123c35;background:#f4fbf8;margin-top:6px}.notice span,.empty{color:#c4dad3;line-height:1.45}.main-nav{gap:8px;display:grid}.main-nav button{text-align:left;color:#f4fbf8;background:#174940;border:1px solid #2c665b;justify-content:start}.main-nav button.active{color:#123c35;background:#f4fbf8}.history{gap:14px;display:grid}.section-title{justify-content:space-between;align-items:center;gap:16px;display:flex}.section-title h2,.section-title h3,.cards h4{margin:0}.case-list{gap:8px;display:grid}.case-row{grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:8px;display:grid}.case-row>button:first-child{text-align:left;color:#16302b;background:#f4fbf8;gap:3px;display:grid}.delete-case{color:#9b2418;background:#ffe8e4;min-height:100%}.case-list small{color:#60726c}.workspace{align-content:start;gap:18px;padding:28px;display:grid}.topbar{justify-content:space-between;align-items:center;gap:20px;display:flex}.topbar h2{margin:4px 0 0;font-size:30px}.progress{color:#60726c;gap:8px;min-width:180px;font-size:13px;display:grid}.progress div{background:#dce7e2;border-radius:999px;height:8px;overflow:hidden}.progress i{border-radius:inherit;background:#1c9a78;height:100%;display:block}.status{color:#0d6b52;background:#e1f5ed;border-radius:8px;margin:0;padding:12px 14px;font-weight:700}.status-error{color:#9b2418;background:#ffe8e4}.title-with-badge{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.badge{color:#795a00;text-transform:uppercase;background:#fff2c8;border-radius:999px;width:fit-content;padding:4px 9px;font-size:12px;font-weight:900}.badge-openai{color:#08765b;background:#dff8ef}.stepper{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.stepper button{color:#49645c;background:#edf4f1}.stepper button.active{color:#fff;background:#123c35}.flow-panel{max-width:1040px}.large-textarea{min-height:220px}.muted{color:#60726c;margin:4px 0 0;font-size:14px;line-height:1.4}.question-list{gap:14px;display:grid}.question-card{background:#fbfdfc;border:1px solid #dde8e3;border-radius:8px;gap:14px;padding:16px;display:grid}.question-card h4{color:#16302b;margin:0 0 6px}.question-card p{color:#60726c;margin:0;line-height:1.45}.single-question{gap:18px}.question-progress{color:#60726c;gap:8px;font-size:13px;font-weight:800;display:grid}.question-progress div{background:#dce7e2;border-radius:999px;height:8px;overflow:hidden}.question-progress i{border-radius:inherit;background:#1c9a78;height:100%;display:block}.option-grid{flex-wrap:wrap;gap:8px;display:flex}.option-grid button{color:#123c35;background:#edf4f1}.option-grid button.selected{color:#fff;background:#1c9a78}.actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.question-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.grid{grid-template-columns:minmax(360px,.9fr) minmax(420px,1.1fr);align-items:start;gap:18px;display:grid}.panel{background:#fff;border:1px solid #dde8e3;border-radius:8px;gap:16px;padding:20px;display:grid}.result-panel{max-height:calc(100vh - 56px);position:sticky;top:20px;overflow:auto}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}label{color:#314943;gap:7px;font-size:13px;font-weight:800;display:grid}input,textarea,button{font:inherit}input,textarea{box-sizing:border-box;color:#16302b;background:#fbfdfc;border:1px solid #cfded8;border-radius:8px;width:100%}input{min-height:42px;padding:0 12px}textarea{resize:vertical;min-height:96px;padding:12px}input:focus,textarea:focus{border-color:#1c9a78;outline:2px solid #8ee0c6}button{color:#123c35;cursor:pointer;background:#e4eee9;border:0;border-radius:8px;min-height:38px;padding:0 13px;font-weight:800}button:hover{background:#d6e8e0}button:disabled{cursor:not-allowed;opacity:.55}.primary{color:#fff;background:#1c9a78;min-height:48px}.primary:hover{background:#147c61}.upload-box{background:#f7fbf9;border:1px dashed #9ec7b9;border-radius:8px;padding:14px}.upload-box input{background:#fff;padding:10px}.upload-box span{color:#60726c;font-weight:600}.file-list{gap:8px;display:grid}.file-row{background:#fbfdfc;border:1px solid #dde8e3;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}.file-row span{text-overflow:ellipsis;white-space:nowrap;color:#314943;min-width:0;font-size:14px;font-weight:700;overflow:hidden}.file-row button{color:#9b2418;background:#ffe8e4;min-height:32px}.hint-text{color:#60726c;margin:-6px 0 0;font-size:13px;line-height:1.4}.suggestion-panel{background:#f7fbf9;border:1px solid #cfded8;border-radius:8px;gap:10px;padding:14px;display:grid}.suggestion-panel h4{margin:0}.suggestion-card{background:#fff;border:1px solid #dde8e3;border-radius:8px;gap:8px;padding:10px;display:grid}.suggestion-card>button{text-align:left;background:#edf4f1;gap:3px;min-height:auto;padding:8px 10px;display:grid}.suggestion-card small{color:#60726c}.patient-chip-list{flex-wrap:wrap;gap:8px;display:flex}.patient-chip-list button{color:#0d6b52;background:#e1f5ed;min-height:32px}.records-panel{max-width:1120px}.records-search{grid-template-columns:minmax(260px,1fr) auto;align-items:end;gap:12px;display:grid}.record-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;display:grid}.record-card{text-align:left;background:#fbfdfc;border:1px solid #dde8e3;gap:8px;min-height:170px;padding:16px;display:grid}.record-card:hover{background:#f4fbf8;border-color:#9ec7b9}.record-card strong{color:#123c35;font-size:20px}.record-card small,.record-card em{color:#60726c;font-style:normal}.record-card div,.patient-summary{flex-wrap:wrap;gap:8px;display:flex}.record-card div span,.patient-summary span,.folder-mark{color:#0d6b52;background:#e1f5ed;border-radius:999px;width:fit-content;padding:4px 8px;font-size:12px;font-weight:800}.folder-mark{color:#795a00;text-transform:uppercase;background:#fff2c8}.timeline{gap:10px;display:grid}.timeline-item{text-align:left;background:#fbfdfc;border:1px solid #dde8e3;gap:6px;min-height:auto;padding:14px;display:grid}.timeline-item span{color:#0d6b52;font-size:12px;font-weight:900}.timeline-item p{color:#60726c;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;line-height:1.45;display:-webkit-box;overflow:hidden}.empty-state{color:#60726c;background:#f7fbf9;border-radius:8px;padding:24px}.empty-state h4{color:#16302b;margin:0 0 8px}.empty-state p{margin:0;line-height:1.5}.output-stack{gap:16px;display:grid}.field-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.field-header small{color:#769088;font-weight:700}.cards{gap:10px;display:grid}.cards article,.expand-card{background:#fbfdfc;border:1px solid #dde8e3;border-radius:8px;gap:8px;padding:13px;display:grid}.expand-card{text-align:left;cursor:pointer;width:100%;min-height:auto}.expand-card:hover{background:#f4fbf8;border-color:#9ec7b9}.card-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.cards article span,.card-header em{color:#0d6b52;text-transform:uppercase;background:#e1f5ed;border-radius:999px;width:fit-content;padding:3px 8px;font-size:12px;font-style:normal;font-weight:800}.cards article p,.expand-card p{color:#526b64;margin:0;line-height:1.45}@media (width<=1100px){.app-shell{grid-template-columns:1fr}.sidebar{min-height:auto}.grid{grid-template-columns:1fr}.result-panel{max-height:none;position:static}}@media (width<=680px){.workspace,.sidebar{padding:18px}.topbar,.section-title,.records-search{flex-direction:column;align-items:stretch}.records-search,.form-grid{grid-template-columns:1fr}}
