:root{color-scheme:light;--bg:#f7f8fa;--panel:#ffffff;--text:#16202a;--muted:#5c6975;--line:#d8dde3;--brand:#146c63;--brand-strong:#0b4f49;--accent:#345c96;--danger:#9f2d2d;--radius:8px}*{box-sizing:border-box}@keyframes spin{to{transform:rotate(1turn)}}@keyframes dot-pulse{0%,80%,to{opacity:.25;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}.spinner{animation:spin .65s linear infinite;border:2px solid;border-top:2px solid transparent;border-radius:50%;display:inline-block;flex-shrink:0;height:14px;vertical-align:middle;width:14px}.dot-pulse{align-items:center;display:inline-flex;gap:3px}.dot-pulse span{animation:dot-pulse 1.4s ease-in-out infinite;background:currentColor;border-radius:50%;display:block;height:5px;width:5px}.dot-pulse span:nth-child(2){animation-delay:.16s}.dot-pulse span:nth-child(3){animation-delay:.32s}.progress-bar{background:var(--line);border-radius:999px;height:3px;overflow:hidden;width:100%}@keyframes progress-indeterminate{0%{transform:translateX(-100%)}to{transform:translateX(250%)}}.progress-bar:after{animation:progress-indeterminate 1.2s ease-in-out infinite;background:var(--brand);border-radius:999px;content:"";display:block;height:100%;width:40%}body,html{min-height:100%;margin:0;background:var(--bg);color:var(--text);font-family:Arial,Helvetica,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.auth-page{display:grid;min-height:100vh;place-items:center;padding:24px}.auth-panel{width:min(100%,420px);background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:24px}.public-page{align-content:start;padding-block:36px}.public-actions,.public-panel{width:min(100%,760px)}.public-actions{color:var(--muted);font-size:14px;margin-bottom:12px;text-align:right}.login-secondary-action{margin-top:16px}.checkbox-row a,.field-help a,.login-secondary-action a,.public-actions a{color:var(--brand-strong);font-weight:700}.app-shell{display:grid;min-height:100vh;grid-template-columns:260px 1fr}.sidebar{background:#122029;color:#f8fafb;padding:24px 18px}.brand{margin-bottom:28px}.brand-title{margin:0;font-size:20px;font-weight:700}.brand-subtitle{margin:6px 0 0;color:#bac5cb;font-size:13px}.nav-list{display:grid;grid-gap:6px;gap:6px}.nav-link{align-items:center;border-radius:6px;color:#e9eef1;display:flex;justify-content:space-between;gap:8px;padding:10px 12px}.nav-link:hover{background:#21313b}.nav-badge{align-items:center;background:var(--danger);border-radius:999px;color:#ffffff;display:inline-flex;font-size:12px;font-weight:700;justify-content:center;line-height:1;min-width:22px;padding:5px 7px}.sidebar-footer{margin-top:36px;color:#bac5cb;font-size:13px}.main{min-width:0;padding:28px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:28px}.page-title{margin:0;font-size:28px}.page-subtitle{margin:6px 0 0;color:var(--muted)}.grid{grid-gap:16px}.grid,.stats-grid{display:grid;gap:16px}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:16px}.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:18px}.stat-card-link{color:inherit;cursor:pointer;display:grid;grid-gap:6px;gap:6px;min-height:100%;text-decoration:none;transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}.stat-card-link:focus-visible,.stat-card-link:hover{background:#fbfdff;border-color:#cad3db;box-shadow:0 10px 24px rgb(18 32 41/.08);transform:translateY(-1px)}.stat-card-link:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.stat-value{display:block;font-size:30px;font-weight:700}.stat-label{color:var(--muted);font-size:13px}.toolbar{display:flex;justify-content:space-between;gap:16px;margin-bottom:16px}.button,.toolbar{align-items:center}.button{background:var(--brand);border:0;border-radius:6px;color:white;cursor:pointer;display:inline-flex;font-weight:700;min-height:40px;padding:0 14px}.button:hover{background:var(--brand-strong)}.button:disabled{cursor:not-allowed;opacity:.68}.button.secondary{background:#eef2f4;color:var(--text)}.button.secondary:hover{background:#dde4e8}.button.danger{background:var(--danger)}.button-row{align-items:center;display:flex;flex-wrap:wrap;gap:8px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;min-width:760px}td,th{border-bottom:1px solid var(--line);padding:12px 10px;text-align:left;vertical-align:top}th{color:var(--muted);font-size:12px;text-transform:uppercase}.fieldset-grid,.form-grid{display:grid;grid-gap:14px;gap:14px}.fieldset-grid{border:1px solid var(--line);border-radius:6px;margin:0;padding:16px}.fieldset-grid legend{color:var(--text);font-weight:700;padding:0 6px}.form-row{display:grid;grid-gap:6px;gap:6px}.form-row label{color:var(--muted);font-size:13px;font-weight:700}.label-with-help{align-items:center;display:flex;gap:8px}.info-button{align-items:center;background:#eef2f4;border:1px solid var(--line);border-radius:999px;color:var(--accent);cursor:pointer;display:inline-flex;font-size:12px;font-weight:700;height:20px;justify-content:center;line-height:1;padding:0;width:20px}.input,.select,.textarea{width:100%;border:1px solid var(--line);border-radius:6px;min-height:42px;padding:9px 10px}.textarea{min-height:86px;resize:vertical}.field-help{color:var(--muted)}.field-error,.field-help{font-size:13px;line-height:1.45;margin:0}.field-error{color:var(--danger);font-weight:700}.notice{border-left:4px solid var(--accent);background:#f0f4fa;border-radius:6px;padding:12px 14px}.patient-privacy-notice{margin-top:-2px}.error{color:var(--danger);font-weight:700}.success{color:var(--brand-strong);font-weight:700}.code-box{overflow-wrap:anywhere;background:#f2f5f7;border:1px solid var(--line);border-radius:6px;padding:12px}.triage-pending{display:grid;grid-gap:14px;gap:14px;justify-items:center;text-align:center}.triage-pending-text{margin:0;line-height:1.55}.triage-qr{display:grid;justify-items:center}.triage-qr img{background:#ffffff;border:1px solid var(--line);border-radius:12px;display:block;height:150px;padding:8px;width:150px}.case-overview,.case-steps{display:grid;grid-gap:16px;gap:16px}.case-overview{grid-template-columns:repeat(3,minmax(0,1fr))}.case-overview .card{display:grid;grid-gap:6px;gap:6px}.step-card{display:grid;grid-gap:14px;gap:14px}.step-card h2{font-size:18px;margin:0}.step-heading{align-items:center;display:flex;overflow:visible;justify-content:space-between;gap:12px}.section-title-with-tooltip{align-items:center;display:inline-flex;flex:1 1 auto;gap:8px;min-width:0;position:relative}.section-title-with-tooltip h2{font-size:18px;margin:0}.section-tooltip-trigger{align-items:center;background:#eef2f4;border-radius:999px;color:var(--muted);cursor:help;display:inline-flex;flex:0 0 auto;font-size:12px;font-weight:700;height:24px;justify-content:center;line-height:1;position:relative;width:24px}.section-tooltip-bubble{background:#122029;border-radius:10px;box-shadow:0 12px 30px rgb(18 32 41/.22);color:#f8fafb;font-size:12px;font-weight:400;left:0;line-height:1.45;max-width:min(320px,calc(100vw - 48px));opacity:0;padding:10px 12px;pointer-events:none;position:absolute;text-align:left;top:calc(100% + 10px);transform:translateY(-4px);transition:opacity .16s ease,transform .16s ease,visibility .16s ease;visibility:hidden;white-space:normal;width:max-content;z-index:5}.section-tooltip-bubble:before{border-bottom:8px solid #122029;border-left:8px solid transparent;border-right:8px solid transparent;content:"";left:12px;position:absolute;top:-8px}.section-tooltip-trigger:focus-visible .section-tooltip-bubble,.section-tooltip-trigger:focus-within .section-tooltip-bubble,.section-tooltip-trigger:hover .section-tooltip-bubble{opacity:1;transform:translateY(0);visibility:visible}.status-pill{border-radius:999px;display:inline-flex;font-size:12px;font-weight:700;line-height:1;padding:7px 9px;white-space:nowrap}.success-pill{background:#e5f3ef;color:var(--brand-strong)}.info-pill{background:#e3eefb;color:var(--accent)}.neutral-pill{background:#eef1f4;color:#5c6975}.orange-pill{background:#fde9d7;color:#9b4b00}.warning-pill{background:#f6e6b8;color:#7a5600}.muted-pill{background:#e7eaee;color:#3f4a55}.pending-pill{background:#f7eef0;color:var(--danger)}.rejected-pill{background:#f2f3f5;color:var(--muted)}.modal-backdrop{align-items:center;background:rgb(18 32 41/.48);display:flex;inset:0;justify-content:center;padding:20px;position:fixed;z-index:20}.modal-card{width:min(100%,560px)}.modal-card h2,.protocol-document h2,.welcome-notice h2{margin:0}.welcome-notice{display:grid;grid-gap:8px;gap:8px;margin-bottom:18px}.welcome-notice p{margin:0}.checklist-card{display:grid;grid-gap:14px;gap:14px}.checklist-card-header{align-items:flex-start;display:flex;justify-content:space-between;gap:12px}.checklist-card-header>div{display:grid;grid-gap:4px;gap:4px}.checklist-card h2{font-size:18px;margin:0}.checklist-list{display:grid;grid-gap:12px;gap:12px;list-style:none;margin:0;padding:0}.checklist-item{align-items:flex-start;background:#fbfcfd;border:1px solid var(--line);border-radius:6px;color:inherit;cursor:pointer;display:flex;-webkit-appearance:none;-moz-appearance:none;appearance:none;justify-content:space-between;gap:12px;padding:14px;text-align:left;transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;width:100%}.checklist-item:focus-visible,.checklist-item:hover{background:#fbfdff;border-color:#cad3db;box-shadow:0 10px 24px rgb(18 32 41/.08);transform:translateY(-1px)}.checklist-item:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.checklist-item-copy{display:grid;grid-gap:4px;gap:4px}.checklist-item-copy strong{font-size:15px}.checklist-item-description{color:var(--muted);font-size:13px;line-height:1.45;margin:0}.protocol-document{display:grid;grid-gap:18px;gap:18px}.protocol-document section{display:grid;grid-gap:8px;gap:8px}.protocol-document p{line-height:1.55;margin:0}.missing-list{margin:0;padding-left:20px}.consent-document{border:1px solid var(--line);border-radius:6px;display:grid;grid-gap:10px;gap:10px;padding:14px}.consent-text{color:var(--text);line-height:1.55;max-height:260px;overflow:auto;white-space:pre-wrap}.checkbox-list{border:0;display:grid;grid-gap:10px;gap:10px;margin:0;padding:0}.checkbox-row{align-items:flex-start;display:flex;gap:10px;line-height:1.45}.checkbox-row input{flex:0 0 auto;height:18px;margin-top:2px;width:18px}.hamburger-btn{display:none}.hamburger-icon,.hamburger-icon:after,.hamburger-icon:before{background:currentColor;border-radius:2px;display:block;height:2px;transition:transform .2s,opacity .2s;width:22px}.hamburger-icon{position:relative}.hamburger-icon:after,.hamburger-icon:before{content:"";left:0;position:absolute}.hamburger-icon:before{top:-7px}.hamburger-icon:after{top:7px}.hamburger-icon--open{background:transparent}.hamburger-icon--open:before{transform:rotate(45deg) translate(5px,5px)}.hamburger-icon--open:after{transform:rotate(-45deg) translate(5px,-5px)}.mobile-overlay{background:rgb(0 0 0/.45);inset:0;position:fixed;z-index:29}@media (max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{bottom:0;left:0;overflow-y:auto;position:fixed;top:0;transform:translateX(-100%);transition:transform .25s ease;width:260px;z-index:30}.sidebar--open{transform:translateX(0)}.hamburger-btn{align-items:center;background:#122029;border:none;border-radius:0 0 var(--radius) 0;color:#f8fafb;cursor:pointer;display:flex;height:44px;justify-content:center;left:0;padding:0 12px;position:fixed;top:0;z-index:31}.main{padding-top:52px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.case-overview{grid-template-columns:1fr}.checklist-item{flex-direction:column}}@media (max-width:560px){.main{padding:20px}.toolbar,.topbar{align-items:flex-start;flex-direction:column}.stats-grid{grid-template-columns:1fr}}