.sc-page,.sc-dialog{--sc-ink:#152943;--sc-light:#f4f7fb;--sc-mute:#53657a;--sc-line:#dbe3ec;--sc-primary:#2259ca;color:var(--sc-ink);font:inherit;min-width:0}
.sc-page *,.sc-dialog *{box-sizing:border-box}
.sc-page h1,.sc-page h2,.sc-page h3,.sc-dialog h3,.sc-dialog h4{letter-spacing:-.035em;color:var(--sc-ink);line-height:1.16;margin:0}
.sc-page h1{font-size:clamp(2rem,4vw,2.8rem);font-weight:730}
.sc-page h2,.sc-dialog h3{font-size:clamp(1.2rem,2.2vw,1.48rem);font-weight:690}
.sc-page h3{font-size:1.1rem}.sc-dialog h4{font-size:1rem;margin:1.3rem 0 .35rem}
.sc-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin:0 0 1.55rem}
.sc-page-head p{color:var(--sc-mute);font-size:.94rem;margin:.45rem 0 0}
.sc-page .btn,.sc-dialog .btn{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:43px;padding:.62rem .92rem;border-radius:9px;line-height:1.2;font-weight:650;font-size:.88rem;cursor:pointer;background:#fff;border:1px solid var(--sc-line);color:var(--sc-ink)}
.sc-page .btn.primary,.sc-dialog .btn.primary{border-color:var(--sc-primary);color:#fff;background:var(--sc-primary)}
.sc-page button:disabled,.sc-dialog button:disabled{opacity:.48;cursor:not-allowed}
.sc-page .btn.sc-danger,.sc-dialog .btn.sc-danger{color:#9e302d;background:#fff7f6;border-color:#f0ccc9}
.sc-page .btn:not(:disabled):hover,.sc-dialog .btn:not(:disabled):hover{filter:brightness(.97)}
.sc-actions,.sc-between,.sc-filters{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}
.sc-between{justify-content:space-between}
.sc-panel{border:1px solid var(--sc-line);border-radius:16px;background:#fff;overflow:hidden}
.sc-pad,.sc-panel-head{padding:clamp(1rem,2.5vw,1.55rem)}
.sc-panel-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;border-bottom:1px solid var(--sc-line)}
.sc-panel-head .sc-overview{display:inline-flex;gap:.65rem;flex-wrap:wrap;margin-top:.4rem;color:var(--sc-mute);font-size:.8rem}
.sc-overview span:not(:last-child){border-right:1px solid var(--sc-line);padding-right:.65rem}
.sc-overview b{color:var(--sc-ink);font-variant-numeric:tabular-nums;font-weight:650}
.sc-tabs{display:inline-flex;overflow:auto;max-width:100%;padding:4px;gap:3px;margin:0 0 1.2rem;border:1px solid var(--sc-line);border-radius:12px;background:#eaf0f7}
.sc-tabs button{font:inherit;font-size:.85rem;white-space:nowrap;padding:.68rem .92rem;min-height:42px;border:0;background:transparent;color:var(--sc-mute);border-radius:8px;cursor:pointer;font-weight:610}
.sc-tabs button.on{background:#fff;color:var(--sc-primary);box-shadow:0 1px 4px #1d37541a}
.sc-filters label,.sc-month-select{display:flex;align-items:center;gap:.4rem;color:var(--sc-mute);font-size:.78rem}
.sc-page select,.sc-page input,.sc-dialog select,.sc-dialog textarea,.sc-dialog input{font:inherit;color:var(--sc-ink);background:#fff;max-width:100%;border:1px solid #c5d0dd;padding:.55rem .7rem;border-radius:8px;min-width:0;min-height:42px}
.sc-page .sc-filters input,.sc-page .sc-filters select,.sc-page .sc-month-select select{font-size:.82rem}
.sc-row{display:grid;grid-template-columns:3rem minmax(0,1fr) auto;width:100%;align-items:center;gap:1rem;text-align:left;font:inherit;color:var(--sc-ink);background:#fff;border:0;border-bottom:1px solid var(--sc-line);padding:.95rem clamp(1rem,2.5vw,1.55rem);cursor:pointer}
.sc-row:last-child{border-bottom:0}.sc-row:hover,.sc-manage-rows button:hover{background:#f7faff}
.sc-date{display:grid;place-content:center;text-align:center;gap:.05rem;background:#f0f4f9;border-radius:9px;min-height:48px}
.sc-date b{line-height:1.12;font-size:1.28rem;letter-spacing:-.04em;font-variant-numeric:tabular-nums}.sc-date small{font-weight:650;font-size:.63rem;text-transform:uppercase;color:var(--sc-mute);letter-spacing:.055em}
.sc-row-copy{min-width:0;display:grid;gap:.15rem}
.sc-row-kind{font-size:.98rem;font-weight:700;line-height:1.25}.sc-time{font-size:.85rem;font-weight:550;line-height:1.3}
.sc-row-copy small,.sc-page small,.sc-dialog small,.sc-muted{color:var(--sc-mute)}.sc-row-copy small{font-size:.76rem}
.sc-row-end{display:flex;align-items:center;gap:.65rem;color:var(--sc-mute)}
.sc-unit,.sc-status,.sc-live{display:inline-flex;align-items:center;gap:.4rem;border-radius:6px;padding:.28rem .48rem;background:#edf2f7;color:#3c4c61;font-size:.72rem;font-weight:700;line-height:1.35}
.sc-unit{white-space:normal}.sc-unit i,.sc-live i{height:7px;width:7px;border-radius:50%;background:currentColor;flex-shrink:0}
.sc-unit.sc-red{background:#fff0ee;color:#9b302b}.sc-unit.sc-blue{background:#e9f1ff;color:#2352a2}.sc-unit.sc-yellow{background:#fff6ce;color:#775706}
.sc-unit.sc-pink{background:#fde9f6;color:#95347c}.sc-unit.sc-green,.sc-live{background:#e6f4ee;color:#21664c}
.sc-unit.sc-muted{color:#4e6075}
.sc-empty{display:grid;align-content:center;justify-items:center;min-height:145px;text-align:center;padding:2rem 1rem;gap:.5rem}
.sc-empty svg{color:#5f7695}.sc-empty p,.sc-inset p,.sc-page .sc-muted,.sc-dialog p{line-height:1.45}
.sc-empty p{margin:0;color:var(--sc-mute)}.sc-empty strong{font-size:1.05rem}
.sc-person-list,.sc-warnings,.sc-records,.sc-change-list{list-style:none;margin:0;padding:0}
.sc-person-list li{display:flex;align-items:center;gap:.65rem;padding:.5rem 0}
.sc-person-list li>span:nth-child(2){display:grid;gap:.16rem}
.sc-avatar{display:inline-grid;place-content:center;border-radius:50%;font-size:.72rem;font-weight:700;flex:none;color:#fff;background:#375777;width:34px;height:34px;letter-spacing:.01em}
.sc-dialog .sc-actions{margin-top:1.25rem}
.sc-shift-intro,.sc-inset{padding:1rem;background:var(--sc-light);border-radius:10px}
.sc-shift-intro h3{margin:.55rem 0 .2rem}.sc-shift-intro p{margin:.2rem 0;color:var(--sc-mute)}.sc-shift-intro b{display:block;margin-top:.55rem}
.sc-page form,.sc-dialog form{display:grid;gap:.8rem}
.sc-page form label,.sc-dialog form label,.sc-search-label{display:grid;gap:.35rem;font-size:.84rem;font-weight:640;min-width:0}
.sc-dialog form input,.sc-dialog form textarea,.sc-dialog form select,.sc-page form input,.sc-page form select{font-size:.95rem;font-weight:480;width:100%}
.sc-dialog textarea{resize:vertical}
.sc-inset p{margin:.25rem 0}.sc-inset .sc-unit{margin-top:.25rem}.sc-inset>p:last-child{margin-bottom:0}
.sc-swap{padding:clamp(1rem,2.5vw,1.55rem);border-bottom:1px solid var(--sc-line)}.sc-swap:last-child{border-bottom:0}
.sc-swap h3{margin:.7rem 0 .25rem}.sc-swap p{margin:.3rem 0}.sc-swap .sc-actions{margin-top:.85rem}
.sc-status{color:#415b78;background:#edf2f9}.sc-note-title{font-size:1.05rem;font-weight:700}
.sc-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:1rem 0;gap:.6rem}
.sc-compare>div{background:var(--sc-light);padding:.9rem;border-radius:10px;min-width:0;overflow-wrap:anywhere}
.sc-compare>div:last-child{background:#e9f1ff}.sc-compare>div>span:first-child{display:block;font-size:.72rem;color:var(--sc-mute);font-weight:700;text-transform:uppercase;letter-spacing:.065em;margin-bottom:.65rem}
.sc-compare p{font-size:.84rem;margin:.3rem 0}.sc-compare .sc-unit{margin:.25rem 0}.sc-confirmed{display:flex;align-items:center;gap:.5rem;color:#20603c;font-weight:650}
.sc-manager-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(230px,1fr);gap:1rem;align-items:start}
.sc-manager-grid>div,.sc-manager-grid aside{display:grid;gap:1rem;min-width:0}
.sc-manager-grid .sc-pad>h2{margin:0 0 .85rem}
.sc-step{display:flex;align-items:center;gap:.6rem;margin:0 0 1rem}
.sc-step>span{display:grid;place-items:center;background:#e9f0fb;color:#19498e;font-size:.78rem;font-weight:750;width:24px;height:24px;border-radius:50%}
.sc-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.sc-details{border-top:1px solid var(--sc-line);padding:.8rem 0 .3rem}
.sc-details:first-of-type{margin-top:.9rem}.sc-details+.sc-details{margin-top:.3rem}
.sc-details summary{cursor:pointer;font-size:.93rem;font-weight:660;min-height:34px;line-height:1.45}
.sc-details summary span{margin-left:.2rem;background:var(--sc-light);border-radius:4px;font-size:.75rem;padding:.14rem .3rem;color:var(--sc-mute)}
.sc-search-label{margin:.35rem 0 .65rem}
.sc-manage-rows button,.sc-change-list li,.sc-records li{border:0;border-bottom:1px solid var(--sc-line);padding:.65rem 0}
.sc-manage-rows button{cursor:pointer;text-align:left;width:100%;display:flex;align-items:center;gap:.5rem;font:inherit;background:#fff;color:var(--sc-ink)}
.sc-manage-rows button>span:first-child{flex:1;display:grid;gap:.25rem}.sc-manage-rows button small,.sc-change-list small,.sc-records span{font-size:.78rem;color:var(--sc-mute)}
.sc-warnings{padding:0 .4rem;max-height:28rem;overflow:auto}.sc-warnings li{display:flex;align-items:flex-start;gap:.65rem;padding:.55rem 0;font-size:.82rem;line-height:1.45;color:#6f5423}
.sc-warnings svg{margin-top:.15rem;flex-shrink:0}
.sc-change-list{max-height:28rem;overflow:auto}.sc-change-list li{display:grid;grid-template-columns:1fr auto;gap:.2rem .5rem;font-size:.86rem}
.sc-change-list small{grid-column:1 / -1}.sc-change-list li>span{font-size:.76rem;color:var(--sc-mute)}
.sc-records li{display:grid;gap:.1rem;font-size:.87rem}.sc-records li:last-child,.sc-change-list li:last-child,.sc-manage-rows button:last-child{border-bottom:0}
.sc-pagination{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin:.5rem 0;color:var(--sc-mute);font-size:.8rem}
.sc-page :focus-visible,.sc-dialog :focus-visible{outline:3px solid #568ef2;outline-offset:2px}
@media(max-width:880px){.sc-manager-grid{grid-template-columns:1fr}.sc-manager-grid aside{order:2}}
@media(max-width:580px){
.sc-page-head{align-items:flex-start;gap:.8rem;margin-bottom:1rem}
.sc-page-head .sc-actions{gap:.4rem}
.sc-page-head .btn{font-size:.79rem;min-height:40px}
.sc-panel{border-radius:12px}.sc-tabs{display:flex;width:100%;gap:1px}
.sc-tabs button{padding:.62rem .42rem;flex:1;font-size:.77rem}
.sc-panel-head{align-items:stretch;display:grid}
.sc-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));align-items:end}
.sc-filters label{display:grid;gap:.22rem}
.sc-row{grid-template-columns:2.55rem minmax(0,1fr) auto;gap:.6rem;padding:.78rem .75rem}
.sc-date{min-height:43px}.sc-row-kind{font-size:.91rem}.sc-time{font-size:.76rem}.sc-row-copy small{font-size:.73rem}.sc-row-end{gap:.2rem;max-width:75px;flex-direction:column;align-items:flex-end}
.sc-row-end svg{display:none}.sc-unit{font-size:.67rem}
.sc-form-grid{grid-template-columns:1fr}.sc-month-select span{display:none}
}
@media(prefers-reduced-motion:reduce){.sc-page *,.sc-dialog *{scroll-behavior:auto!important}}

.sc-sheet-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.sc-sheet-actions label,.sc-sheet-link{display:inline-flex;align-items:center;gap:7px;min-height:42px;font-size:.85rem;color:#354862;font-weight:600}
.sc-sheet-actions input{accent-color:#174dd9;width:16px;height:16px}.sc-sheet-link{color:#184ccb;text-decoration:underline;text-underline-offset:3px}
.sc-sheet-panel{min-width:0}.sc-sheet-panel .sc-muted{margin:3px 0 0}
.sc-sheet-scroll{width:100%;max-height:65dvh;overflow:auto;overscroll-behavior:contain;isolation:isolate;--staff-w:144px;--slot-w:43px;scroll-padding-left:calc(var(--staff-w) + var(--slot-w))}
.sc-sheet{font-size:12px;line-height:1.2;width:max-content;min-width:100%;border-spacing:0;border-collapse:separate;font-variant-numeric:tabular-nums;text-align:center}
.sc-sheet th,.sc-sheet td{border:0;border-right:1px solid #dce3ec;border-bottom:1px solid #e6ebf1;padding:2px;min-width:51px;height:37px;vertical-align:middle;background:#fff}
.sc-sheet thead th{position:sticky;top:0;z-index:2;background:#eef2f9;color:#34455c;border-top:1px solid #dce3ec;padding:5px}
.sc-sheet thead th span,.sc-sheet thead th b{display:block}.sc-sheet thead th span{text-transform:uppercase;font-size:9px;color:#5c6d83}.sc-sheet thead th b{font-size:14px}
.sc-sheet .sc-col-person,.sc-sheet .sc-col-slot{position:sticky;z-index:1}.sc-sheet .sc-col-person{left:0;text-align:left;width:var(--staff-w);max-width:var(--staff-w);min-width:var(--staff-w);padding:7px 10px;overflow-wrap:anywhere}
.sc-sheet .sc-col-slot{left:var(--staff-w);width:var(--slot-w);min-width:var(--slot-w);color:#5b697c;box-shadow:2px 0 3px #192b4810;font-size:11px}.sc-sheet abbr{text-decoration:none}
.sc-sheet thead th.sc-col-person,.sc-sheet thead th.sc-col-slot{z-index:3}
.sc-sheet .sc-weekend{background:#f2f6fb}.sc-sheet thead .sc-weekend{background:#dfe8f9}
.sc-sheet tbody+tbody>tr:first-child>*{border-top:1px solid #c9d4e3}
.sc-sheet .sc-sheet-mine .sc-col-person{color:#1746bc;background:#edf3ff;border-left:3px solid #2458ce}.sc-col-person small{display:block;font-size:10px;font-weight:500;margin-top:4px}
.sc-cell-entry{--entry-color:#d9e1ed;display:block;min-width:46px;width:100%;border:0;border-left:3px solid color-mix(in srgb,var(--entry-color) 82%,#313c4a);border-radius:4px;background:color-mix(in srgb,var(--entry-color) 19%,white);color:#172e49;text-align:center;font:inherit;line-height:1.1;padding:6px 4px;cursor:pointer}
.sc-cell-entry span,.sc-cell-entry b{display:block}.sc-cell-entry span{font-size:9px;max-width:67px;margin:auto}.sc-cell-entry+.sc-cell-entry{margin-top:3px}.sc-cell-entry:focus-visible{outline-offset:-2px}
.sc-sheet td.sc-sheet-total{min-width:54px;font-weight:700;background:#fafbfd}.sc-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:580px){.sc-sheet-scroll{--staff-w:102px;--slot-w:29px}.sc-sheet .sc-col-person{padding:5px 6px}.sc-sheet .sc-col-slot{font-size:10px}.sc-sheet-actions{gap:10px}.sc-sheet td{height:44px}.sc-cell-entry{min-height:40px}.sc-sheet th,.sc-sheet td{min-width:45px}}
.sc-calendar-footer{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--sc-line)}
#sc-calendar a.btn{text-decoration:none}#sc-calendar .btn{min-height:44px}

.sc-sheet-panel + .sc-panel{margin-top:1rem}

.sc-swap-options{margin:1rem 0;padding-top:1rem;border-top:1px solid #d9e0e9}
.sc-swap-options h4{margin:0;font-size:1rem}
.sc-swap-options p{margin:.35rem 0 .65rem;color:#475569;font-size:.9rem}
.sc-swap-options ul{list-style:none;padding:0;margin:0;display:grid;gap:.25rem}
.sc-swap-options li button{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:.6rem;width:100%;min-height:44px;padding:.55rem .8rem;border:1px solid #d6e1ec;border-radius:.65rem;background:#f5f8fc;color:#153d65;font:inherit;cursor:pointer}
.sc-swap-options li button:focus-visible{outline:3px solid #1867a9;outline-offset:1px}

.sc-row-end .shift-emblem svg{display:block}
@media(max-width:700px){
 .sc-page-head .sc-roster-actions{display:flex;width:100%;flex-wrap:wrap;align-items:stretch;gap:6px}
 .sc-roster-actions .sc-month-select{flex:1 0 100%}
 .sc-roster-actions button{flex:1 1 0;min-width:0;padding:8px 4px;white-space:normal;line-height:1.2;min-height:44px;justify-content:center;text-align:center}
}
.transport-row .sc-row-kind,.transport-row strong{white-space:nowrap;font-size:clamp(13px,3.6vw,16px)}
.transport-row .sc-row-end:empty{display:none}
.transport-row .sc-row-copy,.shiftmini.transport-row>span:nth-child(2){flex:1;min-width:0}

.sc-role-switch{display:inline-flex;align-items:center;width:fit-content;max-width:100%;padding:2px;border-radius:20px;background:#edf1f6;margin:2px 0 8px}
.sc-role-switch button{appearance:none;border:0;background:transparent;border-radius:18px;padding:7px 12px;min-height:32px;font-family:inherit;font-weight:600;font-size:.82rem;line-height:1.15;color:#475569;cursor:pointer}
.sc-role-switch button[aria-pressed=true]{background:#fff;color:#244f84;box-shadow:0 1px 3px #1c355026}
.sc-role-switch button:focus-visible{outline:2px solid #275fa8;outline-offset:2px}
.sc-sheet-switch{margin:0 16px 10px}
[data-role-picker] [hidden]{display:none!important}

.swap-date-grid{display:grid;grid-template-columns:minmax(0,1fr);overflow:hidden;border-radius:10px}
.swap-date-face{border-radius:0;background:white;color:#182637}
.swap-date-grid>*+*{border-top:1px solid #dce2e9}
.swap-date-face .sc-row-copy small,.swap-date-face .sc-row-end{color:#526174}
.swap-date-choice .swap-date-face{cursor:pointer}
.swap-date-choice{position:relative;cursor:pointer}.swap-date-choice input{position:absolute;width:1px!important;height:1px!important;min-height:0!important;opacity:0}
.swap-date-choice input:checked+.swap-date-face{outline:2px solid #214caf;outline-offset:-2px}.swap-date-choice input:focus-visible+.swap-date-face{outline:3px solid #173e87;outline-offset:1px}
