:root{font-family:Noto Sans Thai,Leelawadee UI,Tahoma,sans-serif;color:#071c3e;background:#fff;font-synthesis:none;--navy: #062c61;--navy-dark: #031e43;--teal: #0aa59b;--teal-dark: #087e78;--blue: #086bf0;--ink: #071c3e;--muted: #6e7888;--line: #dce3ea;--soft: #eef8f7;--blue-soft: #edf4ff;--danger: #b42318}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:#fff;font-size:15px;-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}h1,h2,h3,p{margin-top:0}.app-page,.auth-page{min-height:100vh;background:#fff}.topbar{min-height:66px;padding:12px 18px;display:flex;align-items:center;justify-content:space-between;background:var(--navy);color:#fff}.simple-header{min-height:70px;padding:14px 18px;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;border-bottom:1px solid var(--line)}.simple-header h1{margin:0;text-align:center;font-size:20px}.brand{display:flex;flex-direction:row;align-items:center;gap:10px;line-height:1.1}.hospital-logo-frame{width:54px;height:42px;flex:0 0 auto;margin:0;overflow:hidden;border-radius:5px;background:#fff}.hospital-logo-frame img{width:100%;height:100%;display:block;object-fit:cover;object-position:50% 48%;transform:scale(1.42)}.brand-copy{display:flex;flex-direction:column;margin:0}.brand-copy strong{font-size:21px}.brand-copy>span{margin-top:3px;font-size:13px;font-weight:500}.page-section{padding:20px 18px;border-bottom:1px solid var(--line)}.eyebrow,.step-label{margin-bottom:14px;color:#5e6a7c;font-size:13px;font-weight:800;letter-spacing:.08em}.muted{color:var(--muted)}.icon-button{width:42px;height:42px;display:inline-grid;place-items:center;border:0;border-radius:10px;color:var(--ink);background:transparent}.icon-button:hover,.icon-button:focus-visible{background:#eef2f6}.icon-button.light{color:#fff}.icon-button.light:hover{background:#ffffff1f}.icon-button.small{width:36px;height:36px}.primary-button,.secondary-button{width:100%;min-height:54px;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:9px;font-weight:800}.primary-button{border:1px solid var(--navy);color:#fff;background:var(--navy)}.primary-button:hover{background:var(--navy-dark)}.secondary-button{border:1px solid #9aa8b7;color:var(--navy);background:#fff}.text-button{border:0;color:var(--blue);background:none}.auth-page{display:flex;flex-direction:column}.auth-hero{min-height:220px;padding:34px 28px;color:#fff;background:var(--navy)}.auth-hero .brand-copy strong{font-size:32px}.auth-hero .hospital-logo-frame{width:72px;height:56px}.auth-hero p{max-width:330px;margin-top:32px;line-height:1.65;color:#dceaff}.auth-form{flex:1;padding:34px 28px;display:flex;flex-direction:column;gap:22px}.auth-form h1{margin-bottom:8px;font-size:30px}.auth-form label{display:flex;flex-direction:column;gap:8px;font-weight:700}.auth-form input,textarea{width:100%;border:1px solid #aeb9c5;border-radius:8px;padding:14px 15px;color:var(--ink);background:#fff}.auth-form input:focus,textarea:focus{outline:3px solid #cfe3ff;border-color:var(--blue)}.security-note{display:flex;gap:9px;align-items:center;color:#566476;font-size:13px}.home-intro h1{margin-bottom:8px;font-size:31px}.home-intro .primary-button{margin-top:24px}.cases-section{padding-top:20px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.section-heading h2{margin:0;display:flex;align-items:center;gap:8px;font-size:20px}.section-heading>span{color:var(--muted);font-size:14px}.case-row{width:100%;margin-top:16px;padding:18px 0;display:grid;grid-template-columns:34px 1fr auto;gap:12px;align-items:center;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);text-align:left;color:var(--ink);background:#fff}.case-row-wrap{position:relative;padding-right:42px}.case-row-wrap .case-row{margin-top:8px}.case-delete-button{position:absolute;right:0;top:50%;width:38px;height:38px;display:grid;place-items:center;border:0;border-radius:8px;color:var(--danger);background:#fff1f0;transform:translateY(-50%)}.empty-cases{margin-top:16px;padding:18px;border:1px dashed var(--line);border-radius:10px;color:var(--muted);background:#fafafa;text-align:center}.form-error{margin:-4px 0 0;color:var(--danger);font-size:13px;font-weight:700}.sticky-error{position:fixed;left:18px;right:18px;bottom:88px;z-index:12;max-width:540px;margin:0 auto;padding:12px 14px;border:1px solid #fda29b;border-radius:12px;color:var(--danger);background:#fff1f0;font-size:13px;font-weight:700;box-shadow:0 10px 24px #1018281f}.case-row>span{display:flex;flex-direction:column;gap:4px}.case-row small{color:var(--muted)}.case-row-end{align-items:flex-end}.case-row-end small{color:var(--teal-dark);font-weight:700}.case-status.ready{color:var(--teal)}.upload-section{display:flex;flex-direction:column;gap:24px;padding-bottom:120px}.upload-section h2{margin-bottom:6px;font-size:28px}.case-text-field{display:flex;flex-direction:column;gap:9px}.case-text-field>span{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.case-text-field>span small{color:var(--muted);font-size:12px;font-weight:400;text-align:right}.case-text-field textarea{min-height:128px;resize:vertical;line-height:1.55}.character-count{align-self:flex-end;margin-top:-4px;color:var(--muted);font-size:12px}.input-divider{display:flex;align-items:center;gap:12px;color:#7b8492;font-size:12px;font-weight:700}.input-divider:before,.input-divider:after{content:"";flex:1;height:1px;background:var(--line)}.upload-zone{min-height:174px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;border:2px dashed #90a2b5;border-radius:12px;color:var(--navy);background:#f8fafc}.upload-zone span{color:var(--muted);font-size:14px}.file-list{display:flex;flex-direction:column;gap:4px}.file-row{min-height:64px;display:grid;grid-template-columns:28px 24px 1fr 40px;align-items:center;gap:8px;border-bottom:1px solid var(--line)}.file-index{color:var(--muted);font-size:13px}.file-row>span:not(.file-index){min-width:0;display:flex;flex-direction:column}.file-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.file-row small{color:var(--muted)}.file-list .secondary-button{margin-top:14px}.consent-row{display:grid;grid-template-columns:24px 1fr;gap:10px;align-items:start;color:#4f5d6f;font-size:14px;line-height:1.5}.consent-row input{width:20px;height:20px;accent-color:var(--teal)}.case-summary h1{margin-bottom:2px;font-size:24px}.case-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.initial-case-text{margin-top:14px;padding:11px 12px;border-left:3px solid var(--teal);background:var(--soft)}.initial-case-text strong{font-size:12px;color:var(--teal-dark)}.initial-case-text p{margin:4px 0 0;display:-webkit-box;overflow:hidden;color:#344054;font-size:13px;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:3}.upload-badge,.prelim-badge{display:inline-flex;gap:6px;align-items:center;border-radius:7px;padding:7px 9px;color:var(--teal-dark);background:var(--soft);font-size:12px;font-weight:800;white-space:nowrap}.progress-section h2{margin:0;font-size:17px}.progress-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}.progress-heading strong{color:var(--teal-dark);font-size:14px}.progress-meter{height:6px;margin-bottom:20px;overflow:hidden;border-radius:3px;background:#e4e7ec}.progress-meter span{display:block;height:100%;border-radius:inherit;background:var(--teal);transition:width .24s ease}.agent-review{display:flex;flex-direction:column;gap:18px}.agent-review-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.agent-review-head h3{margin:3px 0 0;font-size:21px}.agent-state{flex:0 0 auto;padding:6px 8px;border-radius:6px;color:#176b62;background:#e5f6f3;font-size:11px;font-weight:800}.agent-state.degraded{color:#8a5200;background:#fff3d6}.agent-summary{margin:0;padding:14px;border-left:4px solid var(--blue);background:#f3f7fc;color:#233044;font-size:15px;line-height:1.65;white-space:pre-wrap}.principal-strategy{padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.principal-strategy span{display:block;margin-bottom:6px;color:var(--teal-dark);font-size:12px;font-weight:800}.principal-strategy p{margin:0;color:#344054;font-size:14px;line-height:1.6}.summary-sections{display:flex;flex-direction:column}.summary-section{padding:17px 0;border-bottom:1px solid var(--line)}.summary-section.principal{border-top:2px solid var(--navy)}.summary-section-head{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;align-items:start;margin-bottom:12px}.summary-section-head>span{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;color:#fff;background:var(--navy);font-size:12px;font-weight:800}.summary-section-head h4{margin:0;font-size:15px}.summary-section-head small{display:block;margin-top:3px;color:var(--muted);font-size:12px;line-height:1.4}.summary-items{display:flex;flex-direction:column;gap:9px;padding-left:38px}.summary-item{padding:12px;border:1px solid #cbd5df;border-left:4px solid var(--teal);border-radius:6px;background:#fff}.summary-item-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.summary-item-head>strong{min-width:0;font-size:15px;line-height:1.45}.ai-reasoning{margin:10px 0 0;color:#344054;font-size:13px;line-height:1.55}.ai-reasoning b{display:block;margin-bottom:2px;color:var(--teal-dark);font-size:11px}.summary-codes{display:flex;flex-direction:column;gap:5px;margin-top:11px}.summary-codes>div{display:grid;grid-template-columns:68px minmax(0,1fr);gap:8px;align-items:baseline;padding:8px 9px;background:#f2f7fa}.summary-codes strong{color:var(--navy);font-size:17px}.summary-codes span{color:#465568;font-size:12px;line-height:1.4}.documentation-prompt{margin-top:11px;padding:10px 11px;border-left:3px solid #d69e2e;background:#fff8e6}.documentation-prompt strong{color:#714b00;font-size:11px}.documentation-prompt ul{margin:5px 0 0;padding-left:18px;color:#5f4713;font-size:12px;line-height:1.5}.summary-empty{margin:0 0 0 38px;color:#8a94a3;font-size:12px}.coding-priorities{padding:15px;border-left:4px solid var(--blue);background:var(--blue-soft)}.coding-priorities h4{margin:0 0 8px;font-size:14px}.coding-priorities ol{margin:0;padding-left:20px;color:#344054;font-size:13px;line-height:1.6}.conversation-update-bar{margin-bottom:14px;padding:10px 12px;display:flex;align-items:center;gap:9px;border-left:3px solid var(--blue);background:var(--blue-soft);color:#27466c;font-size:13px;font-weight:700}.case-conversation{margin-top:8px;padding-top:20px;border-top:2px solid var(--navy);scroll-margin-top:16px}.conversation-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.conversation-heading .eyebrow{margin-bottom:4px}.conversation-heading h3{margin:0;font-size:19px}.conversation-heading>span{padding:5px 7px;border-radius:5px;color:#7a4b00;background:#fff3d6;font-size:10px;font-weight:800}.message-thread{display:flex;flex-direction:column;gap:9px;margin-bottom:14px}.message-bubble{max-width:88%;padding:10px 12px;border-radius:7px}.message-bubble.assistant{align-self:flex-start;border-left:3px solid var(--teal);background:#eef8f7}.message-bubble.user{align-self:flex-end;color:#fff;background:var(--navy)}.message-bubble small{display:block;margin-bottom:3px;color:var(--teal-dark);font-size:10px;font-weight:800}.message-bubble.user small{color:#cfe3ff}.message-bubble p{margin:0;font-size:13px;line-height:1.55;white-space:pre-wrap}.message-changes{margin:8px 0 0;padding:8px 8px 0 22px;border-top:1px solid rgba(8,126,120,.2);color:#365d5a;font-size:11px;line-height:1.5}.clarifying-questions{display:flex;flex-direction:column;gap:7px;margin-bottom:13px}.clarifying-questions button{width:100%;padding:11px;display:grid;grid-template-columns:26px minmax(0,1fr);gap:4px 9px;border:1px solid #b8c8d8;border-radius:7px;color:var(--ink);background:#fff;text-align:left}.clarifying-questions button:hover{border-color:var(--blue);background:#f8fbff}.clarifying-questions button>span{grid-row:1 / span 2;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;color:#fff;background:var(--blue);font-size:11px;font-weight:800}.clarifying-questions strong{font-size:13px;line-height:1.45}.clarifying-questions small{grid-column:2;color:var(--muted);font-size:11px;line-height:1.4}.conversation-composer{display:flex;flex-direction:column;gap:9px}.conversation-composer textarea{min-height:104px;resize:vertical;line-height:1.55}.agent-source-status{display:flex;flex-wrap:wrap;gap:7px}.agent-source-status span{padding:6px 8px;border:1px solid #bfd0df;border-radius:5px;background:#fff;color:#536176;font-size:11px;font-weight:800}.agent-source-status span.ok{border-color:#86c9c4;color:var(--teal-dark);background:var(--soft)}.agent-section{border-top:2px solid var(--navy)}.agent-section-title{min-height:50px;display:flex;align-items:center;justify-content:space-between;gap:12px}.agent-section-title h4{margin:0;font-size:16px}.agent-section-title span{min-width:26px;height:26px;display:grid;place-items:center;border-radius:50%;color:#fff;background:var(--navy);font-size:12px;font-weight:800}.agent-findings{display:flex;flex-direction:column;gap:10px}.agent-finding{padding:13px;border:1px solid #c7d1dc;border-left:4px solid var(--teal);border-radius:7px;background:#fff}.finding-head{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:9px;align-items:start}.finding-index{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;color:#fff;background:var(--navy);font-size:12px;font-weight:800}.finding-head>div{min-width:0;display:flex;flex-direction:column;gap:3px}.finding-head strong{font-size:14px;line-height:1.35}.finding-head small{color:var(--muted);font-size:11px;text-transform:uppercase}.confidence{padding:4px 6px;border-radius:4px;color:#667085;background:#f2f4f7;font-size:10px;font-weight:800;text-transform:uppercase}.confidence.high{color:#176b62;background:#e5f6f3}.confidence.moderate{color:#7a4b00;background:#fff3d6}.agent-finding>p{margin:11px 0 0;color:#344054;font-size:13px;line-height:1.55}.finding-evidence{margin-top:11px;color:#536176;font-size:12px}.finding-evidence ul{margin:5px 0 0;padding-left:18px;line-height:1.5}.agent-code-list{margin-top:11px;display:flex;flex-direction:column;gap:6px}.agent-code{display:grid;grid-template-columns:62px minmax(0,1fr);gap:4px 8px;padding:9px 10px;border:1px solid #d4dde6;border-radius:6px;background:#f8fafc}.agent-code strong{grid-row:1 / span 2;color:var(--teal-dark);font-size:18px}.agent-code span{font-size:12px;line-height:1.4}.agent-code small{color:var(--muted);font-size:10px}.source-labels{margin-top:10px;display:flex;flex-wrap:wrap;gap:5px}.source-labels span{padding:3px 6px;border:1px solid #b9c6d3;border-radius:4px;color:#465568;font-size:10px;font-weight:800}.agent-details{border-top:1px solid var(--line)}.agent-details summary{padding:13px 0;cursor:pointer;color:var(--navy);font-size:13px;font-weight:800}.rule-list,.rag-list,.tool-trace{display:flex;flex-direction:column;gap:8px;padding-bottom:10px}.rule-list>div,.rag-list article{padding:11px;border-left:3px solid #7ea1c4;background:#f8fafc}.rule-list strong,.rag-list strong{font-size:13px}.rule-list p,.rag-list p{margin:5px 0 0;color:#536176;font-size:12px;line-height:1.5}.rag-list article>div{display:flex;justify-content:space-between;gap:10px}.rag-list article>div span,.rag-list small{color:var(--muted);font-size:10px}.human-review{border-left:3px solid #d69e2e;padding-left:11px}.human-review ul{margin:0 0 10px;padding-left:18px;color:#4b5565;font-size:12px;line-height:1.55}.human-review li b{margin-right:5px;color:#8a5200;text-transform:uppercase}.tool-trace>div{min-height:38px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;align-items:center;border-bottom:1px solid var(--line)}.tool-trace strong{font-size:12px}.tool-trace span{color:var(--teal-dark);font-size:11px;font-weight:800}.tool-trace small{grid-column:1 / -1;color:var(--muted);font-size:10px}.agent-empty{margin:0;padding:12px;border-left:3px solid #98a2b3;background:#f8fafc;color:#596679;font-size:12px;line-height:1.5}.agent-error{padding:14px;display:flex;flex-direction:column;gap:5px;border-left:4px solid #b42318;background:#fef3f2;color:#7a271a}.agent-error span{font-size:13px}.progress-list{position:relative;display:flex;flex-direction:column;gap:18px}.progress-list:before{content:"";position:absolute;top:16px;bottom:16px;left:15px;width:2px;background:var(--line)}.progress-step{position:relative;display:grid;grid-template-columns:32px 1fr auto;gap:10px;align-items:start}.step-icon{z-index:1;width:32px;height:32px;display:grid;place-items:center;border:2px solid #cfd4dc;border-radius:50%;color:#667085;background:#fff}.progress-step.done .step-icon{border-color:var(--teal);color:#fff;background:var(--teal)}.progress-step.active .step-icon{border-color:var(--blue);color:var(--blue)}.progress-step.failed .step-icon{border-color:#b42318;color:#fff;background:#b42318}.progress-step.pending strong,.progress-step.pending small,.progress-step.pending time{color:#98a2b3}.progress-step.failed strong,.progress-step.failed time{color:#b42318}.progress-step>span:nth-child(2){display:flex;flex-direction:column;gap:5px}.progress-step strong{font-size:14px}.progress-step small{color:var(--muted);line-height:1.35}.progress-step time{padding-top:5px;color:var(--teal-dark);font-size:11px;white-space:nowrap}.progress-step.active time{color:var(--blue)}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.result-section{padding-bottom:92px}.result-section .section-heading{padding-bottom:14px;border-bottom:1px solid var(--line)}.result-section h3{margin:15px 0 3px;font-size:21px}.field-label{margin:18px 0 7px;color:#596679;font-size:13px;font-weight:700}.english-label{color:#7b8492;font-size:15px}.prelim-badge{color:var(--blue);background:var(--blue-soft)}.disclosure{width:100%;padding:12px 0;display:flex;justify-content:space-between;align-items:center;border:0;color:var(--blue);background:#fff;font-weight:700;text-align:left}.evidence-block .disclosure{color:#536176}.rotate{transform:rotate(180deg)}.evidence-block ul{margin:2px 0;padding-left:20px;line-height:1.5;font-size:14px}.page-link{padding:0;border:0;color:var(--blue);background:none;font-weight:700}.candidate-row{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:8px;padding:12px 10px;border:1px solid #b9c6d3;border-left:5px solid var(--teal);border-radius:7px}.candidate-row>strong{color:var(--teal-dark);font-size:22px}.candidate-row>span{display:flex;flex-direction:column;gap:4px}.candidate-row small{color:var(--muted)}.candidate-row em{grid-column:3;grid-row:1;align-self:center;width:fit-content;border:1px solid var(--teal);border-radius:5px;padding:5px 7px;color:var(--teal-dark);font-size:11px;font-style:normal;white-space:nowrap}.alternatives{justify-content:flex-start;gap:7px}.alternative-row{padding:14px;display:grid;grid-template-columns:64px 1fr;gap:8px;border-top:1px solid var(--line);background:#f8fafc}.review-categories{margin-top:24px;border-top:2px solid var(--navy)}.review-category{border-bottom:1px solid var(--line)}.review-category-toggle{width:100%;min-height:72px;padding:13px 0;display:grid;grid-template-columns:30px minmax(0,1fr) auto 22px;gap:9px;align-items:center;border:0;color:var(--ink);background:#fff;text-align:left}.review-category-toggle:hover{background:#f8fafc}.category-number{width:27px;height:27px;display:grid;place-items:center;border-radius:50%;color:#fff;background:var(--navy);font-size:13px;font-weight:800}.category-title{min-width:0;display:flex;flex-direction:column;gap:4px}.category-title strong{font-size:12px;letter-spacing:.02em}.category-title small{color:var(--muted);font-size:13px;line-height:1.35}.category-status{border-radius:999px;padding:5px 8px;color:var(--teal-dark);background:var(--soft);font-size:11px;font-weight:800;white-space:nowrap}.category-status.empty{color:#667085;background:#f2f4f7}.category-body{padding:0 0 18px 39px}.category-note{margin:0 0 10px;color:#536176;font-size:13px;line-height:1.5}.code-list{display:flex;flex-direction:column;gap:8px}.code-row{padding:11px;display:grid;grid-template-columns:55px minmax(0,1fr);gap:6px 8px;border:1px solid #c7d1dc;border-left:4px solid var(--teal);border-radius:7px}.code-row>strong{color:var(--teal-dark);font-size:19px}.code-row>span:not(.source-chip){display:flex;flex-direction:column;gap:3px;font-size:13px}.code-row small{color:var(--muted);line-height:1.35}.source-chip{grid-column:2;width:fit-content;border:1px solid #86c9c4;border-radius:4px;padding:3px 6px;color:var(--teal-dark);background:var(--soft);font-size:10px;font-weight:700}.evidence-line{margin:10px 0 0;color:#536176;font-size:13px;line-height:1.5}.empty-category{padding:13px;border-left:3px solid #98a2b3;color:#5f6b7a;background:#f8fafc;font-size:13px;line-height:1.5}.procedure-title{margin:0 0 8px;font-size:17px;font-weight:800}.procedure-list{display:flex;flex-direction:column}.procedure-list p{margin:0;padding:10px 0;display:flex;flex-direction:column;gap:3px;border-bottom:1px solid var(--line)}.procedure-list p span{color:#536176;font-size:13px}.procedure-code-pending{margin-top:12px;padding:11px 12px;display:flex;flex-direction:column;gap:4px;border:1px dashed #9bacbd;border-radius:7px;background:#f8fafc}.procedure-code-pending span{color:#596679;font-size:12px;font-weight:700}.procedure-code-pending strong{color:var(--navy);font-size:14px}.procedure-code-pending small{color:var(--muted);line-height:1.4}.ai-disclaimer{margin:22px 0 2px;padding-top:16px;border-top:1px solid var(--line);color:#697586;font-size:12px;line-height:1.5;text-align:center}.analysis-placeholder{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--muted);text-align:center}.analysis-placeholder svg{color:var(--blue)}.result-section .agent-review-head h3{margin:3px 0 0}.sticky-action{position:fixed;z-index:10;left:0;right:0;bottom:0;padding:9px 18px max(9px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fffffff5}.sticky-action .primary-button{max-width:720px;margin:0 auto}.drawer-backdrop,.modal-backdrop{position:fixed;z-index:30;top:0;right:0;bottom:0;left:0;background:#0211277a}.drawer{position:absolute;top:0;right:0;width:min(82vw,330px);height:100%;padding:18px;color:var(--ink);background:#fff}.drawer-head{margin-bottom:30px;display:flex;align-items:center;justify-content:space-between}.drawer-head .brand-copy strong{font-size:21px}.drawer button:not(.icon-button){width:100%;padding:16px 10px;border:0;border-bottom:1px solid var(--line);text-align:left;color:var(--ink);background:#fff}.modal-backdrop{display:flex;align-items:flex-end}.modal-sheet{width:100%;padding:22px 22px max(24px,env(safe-area-inset-bottom));border-radius:18px 18px 0 0;background:#fff}.modal-head{display:flex;align-items:center;justify-content:space-between}.modal-head h2{font-size:21px}.modal-sheet{display:flex;flex-direction:column;gap:16px}.privacy-modal{max-height:92vh}.draft-notice{padding:10px 12px;border-left:3px solid #d69e2e;color:#714b00;background:#fff8e6;font-size:12px;line-height:1.45}.privacy-content{min-height:0;overflow-y:auto;padding-right:5px}.privacy-content section{padding:12px 0;border-bottom:1px solid var(--line)}.privacy-content section:first-child{padding-top:0}.privacy-content h3{margin:0 0 5px;font-size:14px}.privacy-content p{margin:0;color:#536176;font-size:13px;line-height:1.55}.privacy-modal>.primary-button{flex:0 0 auto}@media(min-width:760px){.app-page{max-width:760px;margin:0 auto;border-left:1px solid var(--line);border-right:1px solid var(--line)}.auth-page{display:grid;grid-template-columns:minmax(330px,.8fr) minmax(430px,1.2fr)}.auth-hero{min-height:100vh;padding:56px}.auth-form{max-width:560px;width:100%;margin:auto;padding:56px;justify-content:center}.modal-backdrop{align-items:center;justify-content:center}.modal-sheet{max-width:560px;border-radius:14px}}@media(max-width:390px){.topbar{padding:11px 18px;min-height:64px}.brand-copy strong{font-size:20px}.hospital-logo-frame{width:49px;height:38px}.page-section{padding-left:18px;padding-right:18px}.case-title-row{flex-direction:column}.progress-step{grid-template-columns:32px 1fr}.progress-step time{grid-column:2;padding-top:0}.section-heading{align-items:flex-start}.result-section .section-heading{flex-direction:column}.candidate-row{grid-template-columns:60px minmax(0,1fr)}.candidate-row em{grid-column:2;grid-row:auto}.review-category-toggle{grid-template-columns:28px minmax(0,1fr) 20px}.category-status{grid-column:2;width:fit-content}.review-category-toggle>svg{grid-column:3;grid-row:1 / span 2}.category-body{padding-left:37px}.summary-items{padding-left:0}.summary-empty{margin-left:38px}.summary-item-head{flex-direction:column}}
