:root{--ink:#16212b;--muted:#5b6875;--line:#d9dfe5;--bg:#f3f5f7;--card:#fff;--accent:#1f5f8b;--band-id:#102f4a;--band-safety:#7b2c2c;--band-acuity:#2e5e4e;--band-zero:#214e71;--band-huddle:#5b4a8a;--band-dc:#8a5a1c;--band-auto:#595959;--good-bg:#c6e0b4;--good-ink:#1f4212;--bad-bg:#f8cbad;--bad-ink:#6e260a;--warn-bg:#ffe699;--warn-ink:#554000;--orange-bg:#f4b183;--auto-bg:#f2f2f2;--tap:44px}*{box-sizing:border-box}html,body{height:100%;margin:0}body{color:var(--ink);background:var(--bg);font:15px/1.4 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}h1{margin:0 0 4px;font-size:20px}h2{margin:0 0 10px;font-size:16px}p{margin:0 0 10px}.muted{color:var(--muted)}.small{font-size:13px}a{color:var(--accent)}button,input,select,textarea{font:inherit;color:inherit}button{min-height:var(--tap);border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:8px;padding:0 16px;font-weight:600}button:hover{background:#f0f4f7}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:#fff}button.primary:hover{background:#184d72}button.danger{color:#9b1c1c;border-color:#e3b4b4}button.sm{min-height:36px;padding:0 10px;font-size:13px}input[type=text],input[type=email],input[type=password],input[type=date],input[type=number],select,textarea{min-height:var(--tap);border:1px solid var(--line);background:#fff;border-radius:8px;width:100%;padding:6px 10px}:focus-visible{outline-offset:1px;outline:3px solid #7fb4d8}label{margin-bottom:4px;font-size:13px;font-weight:600;display:block}.sample-banner{z-index:50;color:#fff;text-align:center;letter-spacing:.06em;background:repeating-linear-gradient(135deg,#b42318,#b42318 14px,#9d1f15 14px 28px);padding:6px 8px;font-size:14px;font-weight:800;position:sticky;top:0}.topbar{background:var(--band-id);color:#fff;flex-wrap:wrap;align-items:center;gap:16px;padding:8px 16px;display:flex}.topbar .brand{font-size:17px;font-weight:800}.topbar .shiftinfo{flex-wrap:wrap;gap:14px;font-size:14px;display:flex}.topbar .shiftinfo b{color:#bcd8ec;margin-right:4px;font-weight:600}.topbar .spacer{flex:1}.topbar a,.topbar button{color:#fff}.topbar button{background:0 0;border-color:#fff5;min-height:36px}.tabs{background:#0c2438;gap:2px;padding:0 8px;display:flex;overflow-x:auto}.tabs a{color:#c9d6e2;white-space:nowrap;border-bottom:3px solid #0000;padding:12px 14px;font-weight:600;text-decoration:none}.tabs a.on{color:#fff;background:#ffffff10;border-bottom-color:#6fb7e6}main{padding:16px}.card{background:var(--card);border:1px solid var(--line);border-radius:12px;margin-bottom:16px;padding:16px}.grid2{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;display:grid}.row{flex-wrap:wrap;align-items:end;gap:10px;display:flex}.row>*{flex:0 auto}.field{min-width:160px}.toasts{z-index:60;gap:8px;max-width:360px;display:grid;position:fixed;bottom:16px;right:16px}.toast{color:#fff;background:#16212b;border-radius:10px;padding:12px 14px;box-shadow:0 6px 20px #0003}.toast.err{background:#9b1c1c}dialog{border:0;border-radius:14px;width:calc(100% - 32px);max-width:520px;padding:20px;box-shadow:0 20px 60px #0006}dialog::backdrop{background:#0b1722aa}.badge{white-space:nowrap;background:#e7ebef;border-radius:999px;padding:3px 10px;font-size:13px;font-weight:700;display:inline-block}.tone-good{color:var(--good-ink);background:var(--good-bg)!important}.tone-bad{color:var(--bad-ink);background:var(--bad-bg)!important}.tone-warn{color:var(--warn-ink);background:var(--warn-bg)!important}.tone-orange{color:#5a2a00;background:var(--orange-bg)!important}.tone-na{color:#46525e;background:#e7ebef!important}.sheetwrap{border:1px solid var(--line);background:#fff;border-radius:12px;max-height:calc(100vh - 250px);overflow:auto}table.sheet{border-collapse:separate;border-spacing:0;font-size:14px}table.sheet th,table.sheet td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);height:var(--tap);padding:0}table.sheet thead th{z-index:3;color:#fff;text-align:left;white-space:nowrap;padding:6px 8px;font-size:12.5px;position:sticky}table.sheet thead tr.bands th{text-transform:uppercase;letter-spacing:.05em;height:30px;top:0}table.sheet thead tr.cols th{white-space:normal;vertical-align:bottom;height:40px;line-height:1.15;top:30px}table.sheet .stick1{z-index:2;position:sticky;left:0}table.sheet .stick2{z-index:2;position:sticky;left:64px;box-shadow:2px 0 #0002}table.sheet thead .stick1,table.sheet thead .stick2{z-index:5}table.sheet td.stick1,table.sheet td.stick2{background:#f7f9fb}table.sheet td.room{text-align:center;width:64px;min-width:64px;font-weight:800}table.sheet td.auto{background:var(--auto-bg);padding:4px 8px}table.sheet tr.empty td:not(.stick1):not(.stick2){opacity:.55}table.sheet td input:not([type=checkbox]),table.sheet td select{min-height:calc(var(--tap) - 1px);background:0 0;border:0;border-radius:0;width:100%;padding:4px 8px}table.sheet td select{appearance:none;background-image:linear-gradient(45deg,#0000 50%,#7b8894 50%),linear-gradient(135deg,#7b8894 50%,#0000 50%);background-position:calc(100% - 11px),calc(100% - 6px);background-repeat:no-repeat;background-size:5px 5px;padding-right:20px;font-weight:600}table.sheet td.invalid{box-shadow:inset 0 0 0 2px #c0392b}.band-id{background:var(--band-id)}.band-safety{background:var(--band-safety)}.band-acuity{background:var(--band-acuity)}.band-zero{background:var(--band-zero)}.band-huddle{background:var(--band-huddle)}.band-dc{background:var(--band-dc)}.band-auto{background:var(--band-auto)}.chips{flex-wrap:wrap;gap:4px;display:flex}.chip{color:#1d3f5a;white-space:nowrap;background:#dfe8f0;border-radius:6px;padding:1px 6px;font-size:12px;font-weight:700}.stats{flex-wrap:wrap;gap:10px;margin-bottom:12px;display:flex}.stat{border:1px solid var(--line);background:#fff;border-radius:10px;min-width:110px;padding:8px 14px}.stat b{font-size:22px;line-height:1.1;display:block}.stat span{color:var(--muted);font-size:12px}.stat.alert{background:#fff4ee;border-color:#e3a58c}table.plain{border-collapse:collapse;width:100%}table.plain th,table.plain td{text-align:left;border-bottom:1px solid var(--line);vertical-align:middle;padding:8px}table.plain th{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-size:12.5px}.authbox{max-width:400px;margin:8vh auto}.authbox .card{padding:24px}.authbox form{gap:14px;display:grid}.err{color:#9b1c1c;font-weight:600}.ok{color:#1f6b2c;font-weight:600}code.link{word-break:break-all;-webkit-user-select:all;user-select:all;background:#f0f4f7;border-radius:8px;padding:10px;font-size:12.5px;display:block}@media (max-width:700px){main{padding:10px}.sheetwrap{max-height:calc(100vh - 300px)}}@media print{.sample-banner{position:static}.tabs,.topbar button,.toolbar{display:none}.sheetwrap{max-height:none;overflow:visible}}table.sheet.rooms tbody tr{--row:#fff}table.sheet.rooms tbody tr:nth-child(2n){--row:#eaf3fb}table.sheet.rooms tbody tr.fallout{--row:#fde4ea}table.sheet.rooms tbody td{background-color:var(--row)}table.sheet.rooms tbody td.auto{background-color:color-mix(in srgb, var(--row) 88%, #8a96a3)}table.sheet.rooms tbody td.stick1,table.sheet.rooms tbody td.stick2{background-color:color-mix(in srgb, var(--row) 92%, #8a96a3)}table.sheet.rooms tbody tr.fallout td.stick1{box-shadow:inset 4px 0 #d9486b}.cellwrap{align-items:center;display:flex}.cellwrap>select,.cellwrap>input{flex:1;min-width:0}.multibtn{width:100%;min-height:calc(var(--tap) - 1px);text-align:left;background:0 0;border:0;border-radius:0;padding:4px 8px;font-size:14px;font-weight:600;line-height:1.2}.multibtn:hover{background:#0000000a}.notebtn{color:#7b8894;background:0 0;border-color:#0000;flex:none;justify-content:center;align-items:center;width:38px;min-height:36px;margin-right:3px;padding:0;display:inline-flex}.notebtn:hover{border-color:var(--line);background:#fffa}.notebtn.has{color:var(--band-dc)}.checklist{gap:4px;display:grid}.check{min-height:var(--tap);border:1px solid var(--line);cursor:pointer;border-radius:8px;align-items:center;gap:12px;margin:0;padding:0 10px;font-size:15px;font-weight:600;display:flex}.check input{flex:none;width:22px;height:22px;margin:0}.checkdlg{font-size:15px}.checkdlg h2{font-size:17px}.check:has(input:checked){background:#e6f0f8;border-color:#9cc3e0}textarea{min-height:var(--tap);border:1px solid var(--line);resize:vertical;background:#fff;border-radius:8px;width:100%;padding:8px 10px}.menu{position:relative}.menu>button{align-items:center;gap:6px;display:inline-flex}.menu-list{z-index:70;color:var(--ink);border:1px solid var(--line);background:#fff;border-radius:12px;min-width:240px;padding:6px;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 12px 36px #0004}.menu-list .who{border-bottom:1px solid var(--line);margin-bottom:4px;padding:8px 10px 10px;font-size:13px}.menu-list a{min-height:var(--tap);border-radius:8px;align-items:center;padding:0 10px;font-weight:600;text-decoration:none;display:flex;color:var(--ink)!important}.menu-list a:hover,.menu-list a:focus-visible{background:#eef3f7}.menu-list .group{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);padding:10px 10px 2px;font-size:11.5px}.searchbtn{justify-content:space-between;align-items:center;gap:10px;min-width:260px;font-weight:500;display:inline-flex;color:#dbe8f2!important;background:#ffffff1a!important}.searchbtn kbd,.kbd{border:1px solid #fff5;border-radius:4px;padding:3px 5px;font:12px/1 ui-monospace,monospace}dialog.palette{max-width:680px;margin-top:8vh;padding:0;overflow:hidden}.palette input[type=search]{border:0;border-bottom:1px solid var(--line);border-radius:0;width:100%;min-height:56px;padding:0 18px;font-size:18px}.palette input[type=search]:focus-visible{outline:none}.palette .results{max-height:60vh;padding:6px;overflow:auto}.palette .res{text-align:left;background:0 0;border:0;border-radius:8px;align-items:center;gap:12px;width:100%;min-height:52px;padding:6px 10px;font-weight:400;display:flex}.palette .res.on{background:#e6f0f8}.palette .res .roomtag{min-width:52px;font-weight:800}.palette .res .main{flex:1;min-width:0}.palette .res .main b{display:block}.palette .res .main span{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:13px;display:block;overflow:hidden}.palette .head{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);padding:10px 10px 4px;font-size:12px}.palette .foot{border-top:1px solid var(--line);color:var(--muted);flex-wrap:wrap;gap:14px;padding:8px 14px;font-size:12px;display:flex}.dot{border-radius:50%;flex:none;width:10px;height:10px}.dot.high{background:#d9486b}.dot.medium{background:#e3a400}.dot.none{background:#b7c2cc}@media (max-width:900px){.searchbtn{min-width:0}.searchbtn .label{display:none}}dialog.palette,dialog.palette button,.menu-list{color:var(--ink)!important}dialog.palette .badge{color:#46525e}.roombtn{width:100%;min-height:calc(var(--tap) - 1px);text-underline-offset:4px;background:0 0;border:0;border-radius:0;padding:0;font-weight:800;-webkit-text-decoration:underline dotted #0004;text-decoration:underline dotted #0004}.roombtn:hover{background:#fffa}table.sheet td.na{color:#8a96a3;text-align:center;letter-spacing:.04em;font-size:12.5px}.check input[type=radio]{flex:none;width:22px;height:22px;margin:0}.staffchip{color:#1d3f5a;background:#dfe8f0;border-radius:999px;align-items:center;gap:2px;padding:0 0 0 12px;font-size:14px;font-weight:700;display:inline-flex}.staffchip button{color:#4d6478;background:0 0;border:0;border-radius:999px;width:36px;min-height:36px;padding:0;font-size:18px}.staffchip button:hover{background:#c9d8e5}.seg{border:1px solid var(--line);border-radius:10px;gap:0;display:flex;overflow:hidden}.seg button{border:0;border-right:1px solid var(--line);background:#fff;border-radius:0;flex:1}.seg button:last-child{border-right:0}.seg button.on{background:var(--accent);color:#fff}dialog:has(.seg){max-width:640px}dialog.pcard{background:var(--bg);border-radius:0;width:100%;max-width:860px;height:100dvh;max-height:100dvh;margin:0 0 0 auto;padding:0}.pcard .pc-head{z-index:6;border-bottom:1px solid var(--line);background:#fff;padding:14px 18px;position:sticky;top:0;box-shadow:0 2px 8px #0001}.pcard .pc-body{gap:14px;padding:14px 18px 40px;display:grid}.pcard .pc-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));align-items:start;gap:14px;display:grid}.pcard .pc-sec{border:1px solid var(--line);background:#fff;border-radius:12px;overflow:hidden}.pcard .pc-sec h3{color:#fff;text-transform:uppercase;letter-spacing:.05em;margin:0;padding:8px 12px;font-size:13px}.pcard table.kv{width:100%}.pcard table.kv th{text-align:left;width:46%;color:var(--ink);border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#f7f9fb;padding:4px 10px;font-size:13.5px;font-weight:600}.pcard table.kv tr:last-child th,.pcard table.kv tr:last-child td{border-bottom:0}.pcard table.kv td{background:#fff;border-right:0}.pcard table.kv td.auto{background:var(--auto-bg)}.pcard table.sheet .stick1,.pcard table.sheet .stick2{box-shadow:none;background:#fff;position:static}.pcard table.plain td{vertical-align:top}@media (max-width:700px){.pcard .pc-grid{grid-template-columns:1fr}.pcard .pc-head,.pcard .pc-body{padding-left:12px;padding-right:12px}}dialog .grid2{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}dialog.wide{max-width:1000px}.quickbtn{color:#1f7a45;background:#effaf3;border-color:#9fd0b2;flex:none;width:38px;margin-right:3px;padding:0;font-size:17px;font-weight:800}.roundstat{text-align:left;min-height:0;font:inherit;cursor:pointer;min-width:170px}.roundstat b small{color:var(--muted);font-size:13px;font-weight:600}.roundstat .bar{background:#e3e8ee;border-radius:4px;height:8px;margin:5px 0 3px;display:block;overflow:hidden}.roundstat .bar i{background:#3c8dc5;border-radius:4px;height:100%;display:block}.roundstat.met .bar i{background:#2f9a5c}.roundstat.on{border-color:#3c8dc5;box-shadow:0 0 0 2px #3c8dc533}.quickrow{color:#1f7a45;background:#effaf3;border-color:#9fd0b2;font-weight:700}a.btn{min-height:var(--tap);border:1px solid var(--line);color:inherit;background:#fff;border-radius:8px;align-items:center;padding:0 14px;font-weight:600;text-decoration:none;display:inline-flex}.handoff h2{border-bottom:2px solid var(--line);margin:0 0 6px;padding-bottom:3px;font-size:15px}.ho-head{margin-bottom:14px}.ho-stats{margin:10px 0 0}.ho-stats .stat{min-width:90px;padding:6px 10px}.ho-stats .stat b{font-size:18px}.ho-sec{margin-bottom:16px}.ho-table{border-collapse:collapse;width:100%}.ho-table th{text-align:left;color:var(--muted);font-size:12px}.ho-table td,.ho-table th{vertical-align:top;border-bottom:1px solid #e3e8ee;padding:4px 6px}.ho-room{white-space:nowrap;width:52px;font-weight:800}.ho-lines span{border-bottom:1px solid #9aa5b1;height:26px;display:block}.ho-sigs{color:var(--muted);grid-template-columns:2fr 2fr 1fr;gap:16px;margin-top:18px;font-size:12px;display:grid}.ho-sigs span{border-bottom:1px solid #9aa5b1;height:26px;display:block}.ho-foot{text-align:center;margin-top:14px;font-weight:700}@media print{@page{margin:12mm}.noprint,.toasts{display:none!important}body:has(.handoff) .topbar{display:none!important}body:has(.handoff) .tabs{display:none!important}body:has(.handoff){background:#fff;font-size:11px}.handoff .ho-table tr,.handoff .stat,.ho-sigs{break-inside:avoid}.handoff h2{break-after:avoid}.handoff .badge,.handoff .chip,.handoff .stat{-webkit-print-color-adjust:exact;print-color-adjust:exact}.ho-foot{position:static}}.card.requests{background:#fff8f3;border-color:#e3a58c}.reqcount{color:#fff;text-align:center;background:#c43d3d;border-radius:10px;min-width:20px;margin-left:6px;padding:0 6px;font-size:12px;font-weight:800;line-height:20px;display:inline-block}.authalt{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:10px;margin-top:16px;padding-top:14px;display:flex}.askdlg{max-width:460px}table.sheet.rooms tbody tr.corrected{--row:#dcf3e3}table.sheet.rooms tbody tr.corrected td.stick1{box-shadow:inset 4px 0 #2f9a5c}.legend-corrected{color:#1f6b3f;background:#dcf3e3;border-radius:4px;padding:0 5px;font-weight:700}
