:root{--bg:#f4f6fa;--paper:#fff;--text:#172b40;--muted:#738298;--line:#e5eaf1;--blue:#305ef2;--bluebg:#eff3ff;--red:#b42338;--redbg:#ffebee;--green:#168166;--shadow:0 6px 22px rgba(32,47,75,.05)}
*{box-sizing:border-box}html,body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:14px;color:var(--text);background:var(--bg)}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}h1{font-size:27px;letter-spacing:-.7px;margin:0 0 4px;font-weight:760}h2{font-size:18px;margin:0}p{margin:0}label{font-size:12px;color:#52667c;font-weight:600}input,select{background:white;color:#1a3045;border:1px solid #dbe1ea;border-radius:8px;padding:9px 11px;max-width:100%;outline:none}input:focus,select:focus{border-color:#6285ff;box-shadow:0 0 0 3px #dfe7ff}.app-shell{display:flex;min-height:100vh}.nav{position:sticky;top:0;width:230px;height:100vh;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;flex:none;padding:20px 12px}.brand{display:flex;align-items:center;gap:10px;margin:8px 10px 32px;font-size:17px;letter-spacing:-.35px;line-height:1.25}.brand strong{font-weight:770}.brand small{display:block;margin-top:4px;font-size:11px;color:var(--muted);letter-spacing:0}.brand-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:var(--blue);color:white;font-weight:800}.nav nav{display:flex;flex-direction:column;gap:5px}.nav nav a{display:flex;align-items:center;gap:13px;padding:12px 14px;border-radius:10px;color:#63768a;font-weight:650}.nav nav a span{font-size:13px}.nav nav a:hover{background:#f3f5fa}.nav nav a.selected{color:var(--blue);background:var(--bluebg)}.nav-note{margin:auto 12px 8px;line-height:1.6;color:#9aa7b8;font-size:11px}.main{flex:1;min-width:0}.topbar{height:64px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 29px}.topbar-sep{margin:0 12px;color:#b6c0cc}.topbar strong{font-size:13px}.pill{font-size:11px;font-weight:760;color:#4e65ac;background:#eef1ff;border-radius:6px;padding:6px 10px}.content{padding:26px 28px;max-width:calc(100vw - 230px)}.heading-row,.inline-form,.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.heading-row{margin-bottom:21px}.subtext,.muted{color:var(--muted)}.subtext{font-size:12px;line-height:1.65}.tiny{font-size:11px}.inline-form{justify-content:flex-start;gap:10px}.inline-form label{display:inline-flex;align-items:center;gap:7px}.btn{border:1px solid #dce3ef;background:#fff;color:#31445c;border-radius:9px;padding:9px 13px;font-weight:700;font-size:12px;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:6px}.btn:hover{filter:brightness(.97)}.btn-primary{background:var(--blue);border-color:var(--blue);color:white;box-shadow:0 3px 8px #315df329}.btn-danger{border-color:#f5b4bb;color:#ab1e33;background:#fff0f2}.btn-outline{border-color:#bbc9df}.stats{display:grid;grid-template-columns:repeat(6,minmax(100px,1fr));gap:12px;margin-bottom:18px}.metric{background:white;border:1px solid var(--line);border-radius:12px;padding:16px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:8px}.metric span{font-size:11px;font-weight:600;color:var(--muted);line-height:1.4}.metric strong{font-size:25px;font-weight:770;letter-spacing:-.6px;font-variant-numeric:tabular-nums}.metric .ok,.ok{color:var(--green)}.metric .bad,.bad{color:var(--red)}.toolbar{margin-bottom:16px}.legend{display:flex;gap:17px;align-items:center;flex-wrap:wrap}.legend span{display:flex;align-items:center;gap:7px;font-size:11px;color:#728296}.dot{width:9px;height:9px;border-radius:3px}.dot.ready{background:#c6d5ff}.dot.hole{background:#f9a5b1}.dot.manual{background:#5c79ea}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 290px;align-items:start;gap:15px}.schedule-card,.side-panel,.panel{border:1px solid var(--line);box-shadow:var(--shadow);border-radius:13px;background:white;min-width:0;overflow:hidden}.table-title,.side-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:16px 18px;border-bottom:1px solid var(--line)}.table-title strong,.side-heading strong{font-size:14px}.table-title small{display:block;margin-top:5px;color:var(--muted);font-size:11px}.table-viewport{overflow:auto;max-height:calc(100vh - 320px);min-height:300px}.schedule-grid{border-collapse:separate;border-spacing:0;table-layout:fixed;min-width:max-content;width:100%;font-size:11px}.schedule-grid th,.schedule-grid td{border-right:1px solid #e8edf3;border-bottom:1px solid #e8edf3;padding:0}.schedule-grid thead th{position:sticky;top:0;background:#f8faff;height:41px;min-width:100px;width:100px;z-index:3;text-align:center;font-weight:750}.schedule-grid thead th span{display:block;font-size:13px}.schedule-grid thead th small{font-size:9px;color:var(--muted);font-weight:550}.schedule-grid thead th.weekend{background:#f3f0ff}.schedule-grid thead .role-heading{position:sticky;left:0;top:0;z-index:5;min-width:230px;width:230px;text-align:left;padding:12px 15px}.schedule-grid tbody .role-title{position:sticky;left:0;z-index:2;text-align:left;padding:7px 12px;white-space:nowrap;background:#fff;min-width:230px;width:230px;font-size:11px;font-weight:650}.role-shift{display:inline-block;font-size:9px;font-weight:800;border-radius:4px;padding:3px 5px;margin-right:6px;min-width:34px;text-align:center}.role-shift.day{background:#fff2d8;color:#9c6510}.role-shift.night{background:#e8edff;color:#3053bf}.team-header th{background:#eff2f9!important;text-align:left;padding:9px 13px!important;font-size:11px;color:#4e6181;position:sticky;left:0;z-index:2}.team-type{display:inline-block;color:#8192aa;font-size:10px;font-weight:550;margin-left:9px}.sep{color:#aebbd0;padding:0 6px}.grid-cell{height:34px;min-width:100px}.slot-button{border:0;width:100%;height:34px;max-width:100px;min-width:100px;display:flex;align-items:center;justify-content:center;gap:3px;padding:3px 5px;font-size:10px;font-weight:650;transition:filter .15s}.slot-button:hover{filter:brightness(.94);outline:1px solid #8c9ee7;outline-offset:-1px}.slot-button.occupied{background:#dce6ff;color:#214e91}.slot-button.empty{background:var(--redbg);color:var(--red)}.slot-button.is-locked{background:#b9cef7}.slot-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.slot-lock{color:#4069dd;font-size:8px;flex:none}.inactive-cell{color:#bbc4d0;padding-left:40px}.side-panel{position:sticky;top:16px}.side-table-scroll{max-height:calc(100vh - 330px);min-height:250px;overflow:auto}.people-table,.data-table{width:100%;border-collapse:collapse}.people-table th,.people-table td{padding:10px 8px;border-bottom:1px solid #edf0f4;text-align:center;white-space:nowrap;font-size:11px}.people-table th{color:#8a97a7;background:#fafbfe;font-size:10px;font-weight:700;position:sticky;top:0}.people-table th:first-child,.people-table td:first-child{text-align:left;padding-left:13px;max-width:145px;overflow:hidden;text-overflow:ellipsis}.people-table td:last-child{font-weight:800}.footnote{margin-top:15px;font-size:11px;color:#8996a8;line-height:1.55}.alert{padding:12px 15px;margin:0 0 17px;border:1px solid;border-radius:10px;font-size:12px;line-height:1.55}.alert.success{background:#eaf9f4;border-color:#c4eadf;color:#146b54}.alert.error{background:#fff0f1;border-color:#f7c4cc;color:#9a2337}.panel{padding:22px;margin-top:18px}.panel h2{margin-bottom:18px}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px}.form-grid label{display:flex;flex-direction:column;gap:7px}.form-full{grid-column:1/-1}.checkbox-row{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;padding:8px 0}.checkbox-row label{display:inline-flex;align-items:center;gap:7px;font-weight:500}.checkbox-row input{accent-color:var(--blue)}.section-title{margin-top:30px;margin-bottom:15px;font-weight:760;font-size:16px}.data-table th,.data-table td{border-bottom:1px solid var(--line);padding:11px 13px;text-align:left;font-size:12px;vertical-align:top}.data-table th{background:#f8faff;color:#6d7b90;font-weight:700;font-size:11px}.data-table details{min-width:120px}.data-table summary{cursor:pointer;color:var(--blue);font-weight:700}.data-table details form{border:1px solid #e5eaf1;border-radius:9px;padding:14px;margin:12px 0;min-width:260px;background:#fdfdff;display:grid;gap:9px}.data-table details label{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.data-table details input[type=text],.data-table details select{width:220px}.tag{display:inline-block;border-radius:5px;padding:4px 7px;background:#eff2f8;color:#667991;font-size:10px;font-weight:700}.tag.green{background:#e2f6eb;color:#24785c}.tag.orange{background:#fff2db;color:#946117}.tag.red{background:#ffebec;color:#9e2836}.help{font-size:12px;line-height:1.8;color:#687b90}.help code{background:#eef2fa;padding:2px 5px;border-radius:4px}.modal-cover{position:fixed;inset:0;background:#152b438a;display:grid;place-items:center;padding:18px;z-index:50}.modal-cover[hidden]{display:none}.modal{background:white;width:min(520px,95vw);max-height:88vh;border-radius:16px;box-shadow:0 18px 65px #17263855;display:flex;flex-direction:column;overflow:hidden}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;padding:20px 20px 12px}.modal-status{padding:7px 20px;color:#77869d;font-size:12px;min-height:30px}.modal-status.err{color:var(--red)}.icon-btn{border:0;font-size:24px;background:transparent;color:#8c97a6}.modal-actions{padding:0 20px 7px}.candidate-list{overflow:auto;padding:9px 20px 22px;display:flex;flex-direction:column;gap:7px}.candidate{background:#f8faff;border:1px solid #e1e7f2;border-radius:9px;text-align:left;padding:12px 13px}.candidate:hover:not(:disabled){border-color:#7494fa;background:#eff4ff}.candidate.blocked{opacity:.58;cursor:not-allowed}.candidate-name{font-size:13px;font-weight:720}.candidate-meta{font-size:11px;margin-top:4px;color:#8190a6}.empty-state{padding:35px;color:var(--muted);text-align:center}
@media(max-width:1150px){.nav{width:70px}.nav .brand{margin:7px auto 30px}.nav .brand>div,.nav nav a span,.nav-note{display:none}.nav nav a{justify-content:center;padding:13px}.content{max-width:calc(100vw - 70px);padding:18px}.workspace{grid-template-columns:minmax(0,1fr) 250px}.stats{grid-template-columns:repeat(3,minmax(100px,1fr))}}
@media(max-width:800px){.workspace{display:block}.side-panel{position:static;margin-top:15px}.side-table-scroll{max-height:250px}.stats{grid-template-columns:repeat(2,minmax(110px,1fr))}.topbar{padding:0 15px}.nav{width:54px}.brand-icon{width:30px;height:30px}.content{max-width:calc(100vw - 54px);padding:14px}.metric strong{font-size:21px}}
/* v0.2 — person-specific persistent colors and quick edit controls. */
.workspace{grid-template-columns:minmax(0,1fr) 320px}
.slot-button.occupied,.slot-button.occupied.is-locked{background:var(--staff-bg,#dce6ff);color:var(--staff-text,#172b40)}
.slot-button.empty.is-locked{background:var(--redbg)}
.slot-button.is-locked{box-shadow:inset 0 0 0 2px #5c79ea}
.slot-button .slot-lock{color:inherit;opacity:.75}
.employee-name-cell,.employee-list-name{display:flex;align-items:center;gap:8px;min-width:0}
.employee-name-cell>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.person-color-picker{flex:0 0 27px;width:27px;height:26px;border:1px solid #d1d9e5;border-radius:6px;padding:2px;cursor:pointer;background:white;box-shadow:none}
.person-color-picker::-webkit-color-swatch-wrapper{padding:0}
.person-color-picker::-webkit-color-swatch{border:0;border-radius:3px}
.employee-swatch{display:inline-block;flex:0 0 17px;width:17px;height:17px;border:1px solid #d2d8e0;border-radius:4px}
.candidate{display:flex;align-items:center;gap:12px}
.candidate-swatch{flex:none;width:24px;height:24px;border-radius:7px;border:1px solid #dbe1e8}
.candidate-body{min-width:0}
@media(max-width:1150px){.workspace{grid-template-columns:minmax(0,1fr) 270px}}
@media(max-width:800px){.workspace{display:block}}

/* v0.3 — month-specific 12h-only checkbox and 24h duty diagnostics. */
@media(min-width:1160px){.workspace{grid-template-columns:minmax(0,1fr) 390px}}
@media(min-width:1160px) and (max-width:1450px){.stats{grid-template-columns:repeat(4,minmax(110px,1fr))}}
.side-explanation{padding:10px 13px 0;font-size:11px;line-height:1.5;color:#6e7e91}
.side-change-status{font-size:11px;color:#356d58;margin:5px 13px;line-height:1.45}
.side-change-status:empty{display:none}
.no-full-day-toggle{width:17px;height:17px;accent-color:#426af1;cursor:pointer;vertical-align:middle;box-shadow:none}
.no-full-day-toggle:disabled{opacity:.5;cursor:wait}
.people-table td:nth-child(2),.people-table th:nth-child(2){padding-left:4px;padding-right:4px}
.people-table th:first-child,.people-table td:first-child{max-width:135px}
@media(min-width:1451px){.stats{grid-template-columns:repeat(7,minmax(100px,1fr))}}
.people-table th,.people-table td{padding:9px 5px}
.people-table th:first-child,.people-table td:first-child{padding-left:9px;max-width:128px}
@media(min-width:801px) and (max-width:1159px){.workspace{grid-template-columns:minmax(0,1fr) 305px}}

/* v0.4 — candidate groups and explicit manual streak exceptions. */
.dot.exception{background:#e7a135}
.candidate-group-title{font-size:11px;font-weight:800;color:#526178;margin:11px 0 2px;padding:8px 2px 4px;border-bottom:1px solid #e5eaf1}
.candidate-over-limit{border-color:#f4d9a9;background:#fffbf2}
.candidate-override{border-color:#eab0b6;background:#fff5f6}
.candidate-over-limit .candidate-meta{color:#9d6720}
.candidate-override .candidate-meta{color:#a63847}
.candidate-empty{font-size:12px;color:#738298;padding:12px 0;line-height:1.5}
.slot-button.has-streak-override{box-shadow:inset 0 0 0 2px #be334a!important}
.slot-warning{font-size:11px;line-height:1;flex:none;color:#9c1c31}
/* v0.5: Google Forms read-only import and confirmation preview. */
.import-summary{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:15px}
.import-summary span{background:#f3f6fc;border:1px solid #e3eaf4;border-radius:7px;padding:9px 12px;color:#516379;font-size:12px}
.import-summary strong{font-size:16px;color:#193252}
.import-preview-scroll{max-height:55vh;overflow:auto;border:1px solid var(--line);border-radius:8px;margin-top:13px}
.import-preview-scroll table th{position:sticky;top:0;background:#f8faff;z-index:1}
.import-preview-scroll table td{white-space:normal;min-width:90px}
.import-commit{padding:15px 0;display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.import-commit label{display:flex;align-items:flex-start;gap:9px;line-height:1.5;max-width:780px}
.import-commit input[type=checkbox]{margin:0;flex:none}

/* Per-brigade staffing options */
.team-roles{padding:10px 12px;border:1px solid #e3e9f4;border-radius:9px;background:#f8faff;}
.team-roles[hidden]{display:none;}
.team-roles strong{color:#31445c;font-size:12px;}
.team-roles .subtext{margin-top:5px;}
.team-warning{display:flex!important;align-items:flex-start!important;gap:8px!important;font-size:11px;color:#80602d!important;}
.team-warning input{margin-top:1px;}

/* v0.7.1: an employee-only, read-only view that never masquerades as empty slots. */
.person-filter-select{min-width:190px;max-width:260px}
.person-view-banner{margin:-1px 0 16px;padding:12px 16px;background:#f0f5ff;border:1px solid #cdddf9;border-radius:11px;color:#284778}
.person-view-summary{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;font-size:13px}
.person-view-summary small{display:block;flex-basis:100%;color:#627994;font-size:11px;line-height:1.5}
.person-view-summary a{font-size:12px;font-weight:700;color:#285ac0}
.person-view-symbol{color:#486fdc;font-size:14px}
.person-view-slot{cursor:default;max-width:none}
.person-view-empty{height:34px;display:flex;align-items:center;justify-content:center;color:#c6d0df;background:#f8f9fc;font-size:12px}
.person-view-slot:hover{filter:none;outline:0}
@media(max-width:800px){.person-filter-select{min-width:150px;max-width:220px}}

/* v0.8 — employee self-service portal; intentionally independent from admin grid */
.portal-body{margin:0;min-height:100vh;background:#f3f6fb;color:#1c314e;font-family:Inter,Roboto,Arial,sans-serif;font-size:14px}
.portal-container{max-width:1120px;margin:0 auto;padding:20px 18px 70px}
.portal-login{max-width:420px;margin:8vh auto;padding:30px;background:white;border:1px solid #dfe7f2;border-radius:16px;box-shadow:0 8px 35px rgba(36,54,94,.08)}
.portal-login h1{font-size:23px;margin:28px 0 8px}
.portal-brand{display:flex;align-items:center;gap:12px}
.portal-brand strong{display:block;font-size:17px;color:#172c4b}
.portal-brand small{display:block;font-size:11px;margin-top:3px;color:#7d8aa0}
.portal-login-form{display:grid;gap:15px;margin:24px 0}
.portal-login-form label,.portal-month label,.portal-settings-grid label,.portal-rule-fields label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#3f526d}
.portal-login-form input,.portal-month input,.portal-settings-grid select,.portal-settings-grid input:not([type=checkbox]):not([type=range]),.portal-rule-fields input,.portal-rule-fields select{font:inherit;background:white;color:#243955;border:1px solid #d9e1ed;border-radius:8px;padding:9px 11px;min-width:0}
.portal-top{display:flex;align-items:center;justify-content:space-between;padding:4px 0 16px;border-bottom:1px solid #e0e8f2}
.portal-header{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin:23px 0 16px}
.portal-header h1{margin:0 0 5px;font-size:24px}
.portal-month{display:flex;align-items:flex-end;gap:8px}
.portal-help{padding:12px 16px;background:#eff5ff;border:1px solid #dbe6f9;border-radius:9px;font-size:12px;line-height:1.55;color:#385272;margin-bottom:16px}
.portal-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start;margin-bottom:17px}
.portal-body .panel{margin-bottom:16px}
.portal-calendar-panel{padding:15px!important;overflow:hidden}
.portal-calendar-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin:0 0 12px}
.portal-calendar-heading h2{margin:0 0 4px;font-size:17px}
.portal-calendar-heading small{font-size:11px;color:#75859e;line-height:1.4}
.portal-counter{white-space:nowrap;padding:5px 9px;background:#eff3fa;border-radius:20px;font-size:11px;font-weight:700;color:#4b607e}
.portal-calendar{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}
.portal-calendar th,.portal-calendar td{border-bottom:1px solid #e9edf4;text-align:center;padding:3px 2px}
.portal-calendar th:first-child{width:24%;text-align:left;padding-left:9px;font-size:12px}
.portal-calendar thead th{font-weight:700;font-size:11px;background:#eff3fa;color:#50627e;padding:10px 3px}
.portal-calendar thead th:first-child{border-radius:6px 0 0 6px}
.portal-calendar thead th:last-child{border-radius:0 6px 6px 0}
.portal-calendar tbody th span{color:#8292aa;margin-left:6px;font-weight:400}
.portal-calendar .portal-weekend{background:#f7faff}
.portal-shift{width:92%;height:32px;background:#f6f8fd;color:#647591;border:1px solid #dce4f0;border-radius:6px;cursor:pointer;font-size:12px;font-weight:700;transition:background .1s,border-color .1s}
.portal-shift:hover{border-color:#4873e3}
.portal-shift.selected{background:#315fe1;border-color:#315fe1;color:#fff}
.portal-block-shift.selected{background:#c82f44;border-color:#c82f44;color:#fff}
.portal-shift:focus-visible{outline:3px solid #f6a637;outline-offset:2px}
.portal-settings{padding:20px!important}
.portal-settings h2,.portal-rules-panel h2{font-size:17px;margin-bottom:16px}
.portal-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.portal-settings-grid .portal-checkbox-option{background:#f7f9fe;padding:12px;border:1px solid #e4eaf4;border-radius:9px;flex-direction:row;gap:10px;align-items:center}
.portal-checkbox-option input{width:19px;height:19px;accent-color:#3c66df}
.portal-checkbox-option strong{display:block;font-size:13px}
.portal-checkbox-option small{display:block;color:#7b8aa1;margin-top:3px;font-weight:400}
.portal-slider{grid-column:1/-1;border-top:1px solid #e7edf7;padding-top:15px}
.portal-slider>label{display:block;font-weight:700;color:#405575;font-size:12px;margin-bottom:5px}
.portal-slider-line{display:flex;gap:12px;align-items:center}
.portal-slider-line span{font-size:11px;color:#70829d;white-space:nowrap}
.portal-slider-line input{flex:1;min-width:80px;accent-color:#3c66df}
.portal-slider-value{font-size:12px;color:#4a6183;margin-top:5px}
.portal-slider-value small{color:#8493a9}
.portal-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:20px}
.portal-actions small{color:#74849c;font-size:11px}
.portal-rule{background:#f8faff;border:1px solid #e1e8f5;border-radius:10px;padding:14px;margin-bottom:11px}
.portal-rule-fields{display:grid;grid-template-columns:minmax(120px,1fr) minmax(120px,1fr) minmax(210px,2fr) auto;align-items:end;gap:9px}
.portal-rule-weekdays{display:flex;align-items:center;flex-wrap:wrap;gap:9px 14px;margin-top:12px;font-size:12px;color:#566b87}
.portal-rule-restricted{display:flex;align-items:center;gap:4px;font-weight:700;margin-right:9px}
.portal-weekday{display:flex;gap:4px;align-items:center}
.portal-rule-weekdays input{accent-color:#3b67e5}
.portal-bookings{max-height:340px;overflow:auto}
.portal-account-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center;min-width:170px}
.portal-account-actions .btn{padding:5px 7px;font-size:11px}
.portal-credentials code{font-size:14px;background:#fff;padding:3px 6px;border:1px solid #cdd8e5;border-radius:5px;user-select:all}
.demand-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.demand-table-wrap{max-width:540px}
.demand-toggle{display:block;cursor:pointer;position:relative}
.demand-toggle input{position:absolute;opacity:0;pointer-events:none}
.demand-toggle span{display:block;border:1px solid #d9e2ee;border-radius:6px;background:#f4f6fa;color:#75849d;padding:8px;user-select:none}
.demand-toggle input:checked+span{background:#315fe1;border-color:#315fe1;color:#fff;font-weight:700}
.demand-toggle input:focus-visible+span{outline:3px solid #efa425;outline-offset:2px}
@media(max-width:750px){.portal-container{padding:12px 9px 40px}.portal-header{display:block}.portal-month{margin-top:14px}.portal-grid{grid-template-columns:1fr;gap:0}.portal-settings-grid{grid-template-columns:1fr}.portal-slider{grid-column:auto}.portal-rule-fields{grid-template-columns:1fr 1fr}.portal-rule-fields>label:nth-child(3){grid-column:1/-1}.portal-shift{height:36px}.portal-calendar th:first-child{width:27%}}

/* Department-aware admin header */
.topbar .pill{max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav form .btn{width:100%;margin-top:8px}.panel details[open]{padding-bottom:12px}

/* v0.10: superadministrator-only read-only consolidated roster */
.combined-notice{border:1px solid #c9d9f5;background:#eef5ff;border-radius:10px;padding:13px 16px;margin-bottom:16px;font-size:12px;line-height:1.65;color:#34547a}
.combined-filters{display:flex;flex-wrap:wrap;align-items:end;gap:10px 14px;background:white;border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin-bottom:17px}
.combined-filters label{display:flex;flex-direction:column;gap:6px;min-width:130px}
.combined-filters select{min-width:155px;max-width:260px}
.combined-filters .btn{height:37px}
.combined-metrics{grid-template-columns:repeat(4,minmax(140px,1fr))}
.combined-card{margin-bottom:18px}
.combined-viewport{max-height:68vh;min-height:240px}
.combined-grid .role-heading,.combined-grid tbody .role-title{width:240px;min-width:240px}
.combined-grid .role-title{padding:6px 11px}
.combined-grid .grid-cell{min-width:100px}
.combined-assignment,.combined-empty,.combined-inactive{display:flex;align-items:center;justify-content:center;gap:3px;min-width:100px;width:100%;height:35px;padding:3px 5px;font-size:10px;font-weight:650;white-space:nowrap}
.combined-assignment{background:var(--staff-bg,#dce6ff);color:var(--staff-text,#172b40);overflow:hidden}
.combined-assignment span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.combined-assignment b{font-size:10px;flex:none}
.combined-assignment.is-locked{box-shadow:inset 0 0 0 2px #5c79ea}
.combined-assignment.has-streak-override{box-shadow:inset 0 0 0 2px #be334a}
.combined-empty{background:#ffeaed;color:#a8293e}
.combined-inactive{background:#fafbfe;color:#c3cbd7}
.combined-group th{text-align:left;background:#dfe8fa!important;color:#24446f;font-size:12px;font-weight:800;padding:10px 13px!important;position:sticky;left:0;z-index:2}
.combined-summary-panel{padding:18px;overflow:hidden}
.combined-summary-panel h2{margin:0 0 6px}
.combined-summary-panel .subtext{margin-bottom:15px}
.combined-summary-scroll{width:100%;overflow:auto}
.combined-summary-scroll .data-table{min-width:650px}
@media(max-width:950px){.combined-metrics{grid-template-columns:repeat(2,minmax(130px,1fr))}.combined-filters{align-items:stretch}.combined-filters label{flex:1 1 190px}.combined-filters select{max-width:none}}
