:root{font-family:"Segoe UI",Arial,sans-serif;color:#1b293b;background:#fafbfd;font-size:14px;--line:#c8d0dc;--blue:#216bbf;--muted:#64748b}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{border:1px solid #bbc5d2;border-radius:5px;padding:8px 15px;background:linear-gradient(#fff,#f0f3f7);color:#182b43;cursor:pointer;min-height:35px;white-space:nowrap}button:hover:not(:disabled){border-color:#216bbf;background:#edf5ff}button:disabled{opacity:.5;cursor:default}.primary,button.active{background:#216bbf;color:white;border-color:#216bbf}.primary:hover:not(:disabled),button.active:hover{background:#18589e}.danger{color:#b4232d}.quiet{background:#fff}input,select{padding:8px 10px;border:1px solid #aebccd;border-radius:4px;background:#fff;color:inherit;max-width:100%;min-height:36px}input:focus,select:focus,button:focus-visible{outline:2px solid #216bbf;outline-offset:2px}h1{font-size:27px;font-weight:600;margin:0}h2{font-size:20px;font-weight:600;margin:0 0 15px}p{line-height:1.55}a{color:#216bbf}header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:21px}.shell{padding:21px 23px 0;max-width:2000px;margin:auto}.subtitle{color:var(--muted);margin-top:5px}.top-actions,.row,.tabs,.toolbar,.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.row{margin-bottom:12px}.row>label{font-weight:600;min-width:125px}.row select.plan{min-width:310px;max-width:420px}.row select.year{min-width:160px}.spacer{flex:1}.tag{background:#e8eef6;color:#375270;font-size:12px;padding:5px 10px;border-radius:4px}.tag.published{background:#e2f3e6;color:#226438}.tag.draft{background:#fff0ce;color:#795513}.tabs{margin:18px 0 12px}.toolbar{margin-bottom:12px}.note{color:var(--muted);font-size:13px;line-height:1.6}.legend{display:flex;flex-wrap:wrap;gap:15px;margin:10px 0;font-size:12px;color:#536276}.legend span:before{content:"";display:inline-block;width:11px;height:11px;margin-right:6px;border:1px solid #a8b3c2;background:var(--swatch)}.grid-wrap{border:1px solid #bbc6d4;overflow:auto;max-height:calc(100vh - 335px);min-height:270px;background:#fff}.grid{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;min-width:1350px;font-size:13px}.grid th,.grid td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:5px 7px;line-height:1.3;overflow-wrap:anywhere}.grid thead th{position:sticky;top:0;z-index:3;background:#edf1f7;height:28px;font-weight:600;text-align:left}.grid thead tr:nth-child(2) th{top:31px;font-size:12px;height:27px;background:#f6f8fb}.grid .time{position:sticky;left:0;z-index:2;background:#f4f7fb;text-align:center;font-weight:600;width:112px}.grid .mins{position:sticky;left:112px;z-index:2;width:39px;text-align:center;background:#f7f9fc}.grid thead .time,.grid thead .mins{z-index:5;background:#ebf0f7}.grid .time small{display:block;font-size:12px;font-weight:400;margin-top:4px;white-space:nowrap}.grid tbody td{height:28px;cursor:default}.grid tbody tr.lesson-end td{border-bottom:2px solid #aebdce}.grid td.teacher{font-weight:600}.grid .selected{box-shadow:inset 0 2px #216bbf,inset 0 -2px #216bbf}.grid .selected.first{box-shadow:inset 2px 0 #216bbf,inset 0 2px #216bbf,inset 0 -2px #216bbf}.grid .selected.last{box-shadow:inset -2px 0 #216bbf,inset 0 2px #216bbf,inset 0 -2px #216bbf}.grid .closed,.grid .outside{background:#ebeef2!important;color:#636d79;text-align:center}.grid .missing,.grid .duplicate{background:#ffe0e1!important}.grid .incomplete{background:#ffefc5!important}.day-0{background:#e5eefa!important}.day-1{background:#fceada!important}.day-2{background:#e6f3e2!important}.day-3{background:#f4e6f6!important}.day-4{background:#fcf6d9!important}.data-table{border-collapse:collapse;width:100%;min-width:780px;background:#fff}.data-table th,.data-table td{border:1px solid var(--line);padding:11px 13px;text-align:left;vertical-align:top}.data-table th{background:#e8eef6;position:sticky;top:0;z-index:1;font-weight:600}.data-table tr:nth-child(even){background:#f6f9fc}.data-table tr.pick{outline:2px solid #216bbf;outline-offset:-2px}.data-table .good{background:#e1f4e6}.data-table .bad{background:#ffe8e2}.number{text-align:right!important;font-variant-numeric:tabular-nums}.empty{padding:45px 25px;text-align:center;color:var(--muted)}.summary{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.summary>div{background:white;border:1px solid #d2dce7;padding:12px 18px;min-width:155px;border-radius:5px}.summary strong{display:block;font-size:23px;font-weight:600;margin-top:4px}.summary span{font-size:12px;color:var(--muted)}footer{padding:13px 0;display:flex;align-items:center;gap:12px;font-size:12px;color:#60718a}footer .status{flex:1}.status.error{color:#b4232d;font-weight:600}.account{font-size:12px;color:#64748b}.login-card{width:min(440px,calc(100% - 32px));margin:9vh auto 0;background:white;border:1px solid #d4deea;border-radius:8px;padding:32px;box-shadow:0 8px 30px #203e6b0a}.login-card h1{margin-bottom:8px}.login-card label{display:block;margin-top:18px}.login-card input{display:block;width:100%;margin-top:7px}.login-card .actions{margin-top:23px}.login-card .actions button{flex:1}.backlink{display:block;text-align:center;margin-top:18px;font-size:13px}.error-message{color:#aa2430;background:#fff0f1;padding:10px;border-radius:4px;line-height:1.5;margin-top:14px}.loading{padding:60px;text-align:center;color:#60718a}dialog{border:1px solid #b6c3d3;border-radius:8px;padding:0;width:570px;max-width:calc(100vw - 24px);max-height:92vh;box-shadow:0 18px 70px #0c274c38;color:inherit}dialog::backdrop{background:#17325166}.dialog-body{padding:24px}.dialog-body label{display:block;font-weight:600;margin-top:16px}.dialog-body input:not([type=checkbox]),.dialog-body select{display:block;width:100%;margin-top:7px}.dialog-body .actions{justify-content:flex-end;margin-top:24px}.dialog-body .actions button{min-width:105px}.dialog-body .note{margin:0 0 12px}.check{display:flex!important;gap:10px;align-items:center}.check input{min-height:auto}.readonly{background:#f0f4fa;border:1px solid #c8d8e9;padding:10px 14px;margin-bottom:13px;border-radius:4px;color:#405b7a}.period{font-size:13px;color:#53657b}.badge-count{background:#fff;border:1px solid #c6d2e0;border-radius:10px;font-size:11px;padding:1px 5px;margin-left:5px;color:#324d6d}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#1c3554;color:white;border-radius:6px;padding:12px 20px;max-width:90%;z-index:20;display:none;box-shadow:0 4px 25px #152e4b33}.staff-shell{max-width:1100px;padding-bottom:30px}.staff-shell .week-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.day-card{background:#fff;border:1px solid #cfdae7;border-radius:6px;overflow:hidden}.day-card h3{font-size:14px;padding:13px;margin:0;background:#e9f1fc}.duty{padding:12px;border-bottom:1px solid #e4eaf1;line-height:1.6}.duty strong{display:block}.staff-shell .row>label{min-width:auto}.staff-shell header a{text-decoration:none}.intro{margin:15px 0 25px;color:#65748a}.change-title{padding:10px 0;font-weight:600}.grid button{padding:3px 6px;min-height:24px;font-size:12px}.hidden{display:none!important}@media(max-width:800px){.shell{padding:16px 12px 0}header{align-items:flex-start;flex-wrap:wrap;gap:14px}.top-actions{gap:6px}.top-actions button{padding:7px 10px}.row>label{min-width:95px}.row select.plan{min-width:0;flex:1;max-width:none}.tabs{gap:5px}.tabs button{padding:8px 11px}.grid-wrap{max-height:65vh}.staff-shell .week-grid{grid-template-columns:1fr}.staff-shell header{align-items:center}.summary>div{min-width:135px;flex:1}.grid-wrap{min-height:250px}.account{display:none}.dialog-body{padding:20px}}@media print{header,.tabs,.toolbar,footer,.legend{display:none}.grid-wrap{max-height:none;border:0}.shell{padding:0}.grid{min-width:100%;font-size:8px}}
/* Public staff view: clear hierarchy, compact shifts and mobile day selection. */
.staff-shell{max-width:1440px;padding:28px 32px 20px;color:#20354b}.staff-header{margin:0 0 32px}.school-brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:#20354b}.school-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#203e53;color:white;font-size:17px;font-weight:700}.school-brand strong{display:block;font-size:22px;font-weight:650}.school-brand small{display:block;margin-top:3px;font-size:12px;color:#6b7d8c}.admin-link{padding:10px 14px;border:1px solid #d9e2e9;border-radius:8px;background:white;font-size:12px;color:#4a6174}.admin-link:hover{background:#edf3f7}.staff-hero{border-radius:20px;background:#eaf2f3;padding:30px 32px;display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:22px;border:1px solid #dce8e8}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:700;color:#467475;margin-bottom:12px}.staff-hero h1{font-size:30px;letter-spacing:-.7px;font-weight:650}.staff-hero p{color:#57717e;margin:10px 0 0;font-size:14px}.week-total{text-align:right}.week-total strong{display:block;font-size:36px;letter-spacing:-1px;font-variant-numeric:tabular-nums;color:#285b60}.week-total span{display:block;font-size:12px;color:#58747c;margin-top:4px}.hero-note{font-size:14px;line-height:1.7;color:#54727a}.staff-filters{display:flex;align-items:end;gap:12px;padding:18px;background:white;border:1px solid #e0e6ed;border-radius:12px;margin-bottom:24px;flex-wrap:wrap}.staff-filters label{font-size:11px;letter-spacing:.2px;font-weight:600;color:#5c7082;flex:1;min-width:130px}.staff-filters label:first-child{flex:1.3}.staff-filters .filter-plan{flex:1.5}.staff-filters select{display:block;width:100%;margin-top:7px;border-color:#d6dfe8;border-radius:7px;font-size:13px;color:#243f56;min-height:41px}.pdf-download{min-height:41px;border-radius:7px;font-size:12px;background:#f4f7fa}.staff-shell .week-grid{gap:14px;align-items:start}.staff-shell .day-card{border:1px solid #dce3e9;border-radius:12px;box-shadow:0 4px 12px #19385004;overflow:hidden}.day-heading{border-top:4px solid var(--day-accent);padding:16px 14px;display:flex;justify-content:space-between;align-items:center;gap:5px;background:#fff;border-bottom:1px solid #e6ebf0}.staff-shell .day-heading h3{background:none;padding:0;font-size:14px;margin:0 0 5px;color:#263e54;font-weight:650}.day-heading span{font-size:12px;color:#728393}.day-heading>small{font-size:11px;background:#f0f4f6;padding:4px 6px;border-radius:5px;color:#526b7d}.is-today{box-shadow:0 0 0 2px #5d9396!important}.shift{display:flex;gap:12px;padding:15px 13px;border-bottom:1px solid #edf0f3;align-items:start}.shift:last-child{border-bottom:0}.shift-time{flex:0 0 48px;font-variant-numeric:tabular-nums}.shift-time strong{display:block;font-size:15px;color:#213d53;line-height:1.3;letter-spacing:-.3px}.shift-time>span{display:block;font-size:11px;color:#6f8293;white-space:nowrap;margin-top:3px}.shift-time small{display:block;font-size:10px;color:#8898a5;margin-top:7px}.shift-details{min-width:0;flex:1}.lesson-label{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.5px;color:#778b9b;margin-bottom:8px}.room-pill{display:inline-block;background:#edf4f5;color:#2c6266;padding:4px 7px;border-radius:5px;font-size:11px;line-height:1.3;white-space:nowrap}.shift-classes{display:block;font-size:12px;color:#536b7c;line-height:1.5;margin-top:6px;overflow-wrap:anywhere}.shift-teacher{display:block;font-size:12px;margin:6px 0}.shift-assignment+.shift-assignment{border-top:1px solid #edf1f4;margin-top:10px;padding-top:4px}.day-off{padding:35px 16px;text-align:center;color:#7e8e9c;min-height:140px}.day-off>span{display:block;margin-bottom:12px;font-size:25px;color:#c0ccd5}.day-off strong{font-size:12px;font-weight:500}.calendar-bar{margin-top:26px;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 24px;background:#fff;border:1px solid #dce5ec;border-radius:12px}.calendar-bar strong{display:block;font-size:16px}.calendar-bar span{display:block;font-size:12px;color:#718494;margin-top:6px;line-height:1.5}.calendar-buttons{display:flex;gap:8px;flex-wrap:wrap}.calendar-buttons button{border-radius:7px;font-size:12px;min-height:40px}.calendar-buttons .primary{background:#2d6469;border-color:#2d6469}.calendar-note{font-size:11px;color:#84929e;text-align:center;line-height:1.5;margin:12px 0 24px}.staff-footer{justify-content:space-between;border-top:1px solid #e0e6eb;font-size:11px;color:#778b99;padding-top:18px}.no-plan{text-align:center;padding:80px 24px;background:white;border:1px solid #e0e7ed;border-radius:16px;margin-top:40px}.no-plan h1{font-size:24px}.no-plan p{font-size:14px;color:#718494}.empty-calendar{display:block;font-size:45px;color:#7c9b9f;margin-bottom:20px}.mobile-day-nav{display:none}.account-row{display:flex;align-items:center;gap:8px;padding:13px 0;border-bottom:1px solid #e1e7ed}.account-row>div{flex:1}.account-row small{display:block;color:#708394;margin-top:4px}.account-row button{font-size:12px;padding:6px 10px}.calendar-events{max-height:55vh;overflow:auto}.calendar-events a{display:flex;justify-content:space-between;align-items:center;text-decoration:none;border:1px solid #dce5eb;border-radius:8px;padding:12px;margin-bottom:8px;gap:12px;font-size:12px}.calendar-events small{display:block;margin-top:6px;color:#6f8292}.calendar-events a:hover{background:#edf5f5}
@media(min-width:801px) and (max-width:1100px){.staff-shell{padding:24px 18px}.staff-shell .week-grid{gap:8px}.shift{gap:7px;padding:13px 9px}.day-heading{padding:13px 9px}.day-heading>small{display:none}}
@media(max-width:800px){.staff-shell{padding:18px 15px}.staff-header{gap:8px;margin-bottom:22px;flex-wrap:nowrap}.school-mark{width:40px;height:40px;border-radius:11px;font-size:14px}.school-brand{gap:9px}.school-brand strong{font-size:19px}.school-brand small{font-size:11px}.admin-link{font-size:10px;padding:9px}.staff-hero{padding:22px 20px;border-radius:15px;align-items:flex-start;gap:15px}.staff-hero h1{font-size:24px;line-height:1.25}.staff-hero p{font-size:12px}.eyebrow{font-size:9px;letter-spacing:1px}.week-total strong{font-size:26px}.week-total span{max-width:100px;font-size:10px;line-height:1.5}.hero-note{display:none}.staff-filters{display:grid;grid-template-columns:1fr 1fr;padding:14px;gap:12px;margin-bottom:18px}.staff-filters label{min-width:0}.staff-filters label:first-child,.staff-filters .filter-plan{grid-column:1 / -1}.staff-filters label:nth-child(2){grid-column:1}.staff-filters .filter-plan{grid-row:3}.staff-filters label:nth-child(4){grid-column:2;grid-row:2}.staff-filters button{grid-column:1 / -1}.staff-filters select{font-size:13px}.mobile-day-nav{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin:0 0 14px;position:sticky;top:0;padding:9px 0;background:#fafbfd;z-index:6}.mobile-day-nav button{display:block;padding:9px 3px;border-radius:9px;background:white;border-color:#dbe4ea;color:#687f91;white-space:normal}.mobile-day-nav span{display:block;font-size:10px;font-weight:500;margin-bottom:4px}.mobile-day-nav strong{font-size:13px}.mobile-day-nav .active{background:#2d6469;color:white;border-color:#2d6469}.staff-shell .week-grid{display:block}.staff-shell .day-card{display:none}.staff-shell .day-card.mobile-current{display:block}.staff-shell .day-heading{padding:17px 18px}.staff-shell .day-heading h3{font-size:17px}.shift{padding:18px 20px;gap:22px}.shift-time{flex-basis:57px}.shift-time strong{font-size:20px}.shift-time>span{font-size:13px}.shift-time small{font-size:11px}.lesson-label{font-size:11px}.room-pill{font-size:13px}.shift-classes,.shift-teacher{font-size:14px}.calendar-bar{flex-direction:column;align-items:stretch;padding:20px;margin-top:20px;gap:16px}.calendar-buttons{display:grid;grid-template-columns:1fr}.calendar-buttons button{min-height:46px;font-size:13px}.calendar-note{text-align:left;font-size:11px}.no-plan{padding:55px 18px;margin-top:28px}.no-plan h1{font-size:22px}}

@media(max-width:800px){.week-total{flex:0 0 78px}.staff-hero>div:first-child{min-width:0}.staff-hero h1{overflow-wrap:anywhere}}

.school-logo{display:block;width:56px;height:56px;object-fit:contain;background:transparent;border-radius:50%;flex-shrink:0}.panel-brand{display:flex;gap:13px;align-items:center}.login-logo{width:64px;height:64px;margin-bottom:18px}@media(max-width:800px){.staff-header .school-logo{width:44px;height:44px}}
.shift-time .shift-end{font-size:15px;font-weight:700;line-height:1.3;letter-spacing:-.3px;margin-top:3px}.shift-time .shift-end:before{content:'– ';font-weight:400}.staff-filters .filter-plan{display:none}.week-grid{touch-action:pan-y}.substitution-dialog{min-width:0}.substitution-table{overflow:auto;max-height:58vh}.substitution-table table{border-collapse:collapse;width:100%;min-width:460px;font-size:12px}.substitution-table th,.substitution-table td{padding:10px 7px;text-align:left;border-bottom:1px solid #dce4eb;line-height:1.5}.substitution-table select{min-width:130px;max-width:170px;padding:7px}.substitution-table input{min-height:0}.substitution-dialog .actions{position:sticky;bottom:0;background:white;padding-top:12px}.report-controls{padding:12px;background:#f0f4f8;border-radius:7px}.report-controls label{min-width:0}.report-controls select{margin-left:7px}.payroll-coverage{padding:12px}.grid-wrap>p.note{padding:8px 14px}.substitution-dialog h2{font-size:18px}@media(max-width:800px){.shift-time .shift-end{font-size:20px}.staff-filters label:nth-child(3){grid-column:2;grid-row:2}.staff-filters button{grid-row:3}.report-controls label{width:100%}}

.shift-time{flex-basis:60px}.shift-time .shift-end{white-space:nowrap}@media(max-width:800px){.shift-time{flex-basis:76px}}

/* Collective overview shares the hours column and avoids tall assignment cards. */
.staff-overview{overflow:auto;max-height:max(260px,calc(100dvh - 410px));border:1px solid #dce3e9;border-radius:12px;background:white;scrollbar-gutter:stable}.staff-overview table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12px}.staff-overview caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.staff-overview th,.staff-overview td{padding:8px 10px;border-right:1px solid #e4eaf0;border-bottom:1px solid #e4eaf0;vertical-align:top;text-align:left;overflow-wrap:anywhere}.staff-overview thead th{position:sticky;top:0;background:#edf4f5;z-index:2;padding:12px 10px}.staff-overview th:first-child{width:106px}.staff-overview th small{display:block;margin-top:4px;font-weight:400;color:#627b8b}.staff-overview tbody th{background:#f6f9fb;font-size:10px;font-weight:400}.staff-overview tbody th strong{display:block;font-size:11px;margin-top:5px;white-space:nowrap}.overview-duty{line-height:1.3;padding:3px 0}.overview-duty+.overview-duty{border-top:1px solid #edf1f4}.overview-duty strong{font-size:12px;font-weight:600}.overview-duty small{display:block;font-size:10px;color:#60768a;margin-top:2px}.overview-empty{color:#80909d;font-size:11px}.staff-all .staff-hero{padding:18px 24px;margin-bottom:14px}.staff-all .staff-hero h1{font-size:25px}.staff-all .staff-header{margin-bottom:18px}.staff-all .staff-filters{margin-bottom:16px;padding:12px 16px}.staff-all .calendar-bar{display:none}.delete-plan-button{margin-right:auto}.font-help{margin-top:12px!important}.dialog-body details{margin-top:18px;border-top:1px solid #dce4eb;padding-top:16px}.dialog-body summary{cursor:pointer;color:#216bbf}.dialog-body details button{margin-top:12px}
@media(min-width:801px){.staff-all .week-grid{display:none}}
@media(max-width:800px){.staff-overview{display:none}.staff-all .shift{padding:10px 13px;gap:12px}.staff-all .shift-time{flex-basis:62px}.staff-all .shift-time strong,.staff-all .shift-time .shift-end{font-size:16px}.staff-all .shift-teacher{font-size:13px;margin:2px 0}.staff-all .shift-assignment+.shift-assignment{margin-top:5px;padding-top:5px}.staff-all .room-pill{font-size:11px;padding:2px 5px}.staff-all .shift-classes{display:inline;font-size:11px;margin:0 0 0 5px}.staff-all .lesson-label{margin-bottom:4px}.staff-all .day-heading{padding:12px 14px}}

/* Superadmin archive and authenticated activity log. */
dialog:has(.history-dialog){width:1160px}.history-dialog .history-table{overflow:auto;max-height:54vh;border:1px solid #dce4eb;margin-top:16px}.history-dialog .data-table{min-width:760px;font-size:12px}.history-dialog .data-table th,.history-dialog .data-table td{padding:10px;overflow-wrap:anywhere}.history-dialog td small{display:block;margin-top:6px;color:#687e90}.history-dialog td button{font-size:12px;padding:6px 10px;margin:2px}.history-search{display:flex;gap:15px;align-items:end;flex-wrap:wrap}.history-search label:first-child{flex:1;min-width:200px}.history-search .check{font-size:12px;align-self:center}.history-duty+.history-duty{border-top:1px solid #dce4eb;padding-top:6px;margin-top:6px}.history-dialog .actions{position:sticky;bottom:0;background:white;padding-top:10px}.history-dialog [data-preview-week]{max-width:260px}@media(max-width:800px){.history-dialog .actions{gap:6px}.history-dialog .actions button{min-width:0;font-size:12px}.history-dialog h2{font-size:18px}.history-dialog .history-table{max-height:48vh}}

/* Only the signed-in administration panel changes on phones. */
.admin-mobile-only{display:none}
@media(max-width:800px){
 .admin-shell{padding:14px 12px 0;max-width:100vw}.admin-shell .admin-desktop-header{display:none}.admin-shell .admin-mobile-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;margin:0 0 15px}.admin-mobile-header .school-logo{width:42px;height:42px}.admin-mobile-header .panel-brand{gap:9px;min-width:0}.admin-mobile-header .panel-brand strong{display:block;font-size:21px}.admin-mobile-header .panel-brand small{display:block;margin-top:4px;color:#64748b;font-size:11px;overflow-wrap:anywhere}.admin-mobile-header>button{min-height:42px;border-radius:8px;background:white}.admin-shell .admin-mobile-only{display:flex}.mobile-quick-actions{gap:8px;margin:0 0 14px}.mobile-quick-actions button{flex:1;min-height:42px;border-radius:8px;padding:8px}.mobile-context-toggle{width:100%;justify-content:space-between;align-items:center;gap:12px;text-align:left;padding:13px 14px;border:1px solid #d5e0e9;border-radius:10px;background:white;margin-bottom:12px;white-space:normal}.mobile-context-toggle strong{display:block;font-size:16px;color:#25465d}.mobile-context-toggle small{display:block;margin-top:5px;color:#6a7f90;font-size:11px;overflow-wrap:anywhere;max-width:220px}.mobile-context-toggle>span:last-child{font-size:11px;flex-shrink:0;color:#216bbf}.admin-context{display:none;padding:14px;background:#edf3f8;border:1px solid #d5e0e9;border-radius:9px;margin-bottom:14px}.admin-context.mobile-context-open{display:block}.admin-context .row{display:grid;grid-template-columns:1fr;gap:7px;margin-bottom:12px}.admin-context .row label{font-size:11px;min-width:0}.admin-context .row select.year,.admin-context .row select.plan,.admin-context .row select{width:100%;min-width:0;max-width:100%;min-height:43px}.admin-context .row>button,.admin-context .row>.spacer{display:none}.admin-context .period{font-size:11px;line-height:1.6}.admin-shell .admin-tabs{display:flex;flex-wrap:nowrap;overflow:auto;gap:6px;margin:0 0 12px;padding-bottom:4px;scrollbar-width:thin}.admin-tabs>button{min-height:40px;font-size:12px;padding:8px 13px;border-radius:8px;flex-shrink:0}.admin-tabs>.spacer,.admin-tabs>[data-action=edit],.admin-tabs>[data-action=day-state],.admin-tabs>[data-action=add],.admin-tabs>[data-action=remove]{display:none}.admin-shell .admin-day-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-bottom:12px}.admin-day-nav button{padding:9px 2px;border-radius:9px;min-height:50px;background:white;border-color:#d6e0e9}.admin-day-nav span,.admin-day-nav strong{display:block}.admin-day-nav span{font-size:10px;margin-bottom:4px;color:#637c8d}.admin-day-nav strong{font-size:12px}.admin-day-nav [aria-pressed=true]{background:#216bbf;color:white;border-color:#216bbf}.admin-day-nav [aria-pressed=true] span{color:white}.mobile-edit-actions{gap:7px;margin-bottom:12px}.mobile-edit-actions>button{flex:1;min-width:0;font-size:12px;padding:8px;min-height:40px;border-radius:7px}.admin-shell .legend{font-size:10px;gap:8px 12px;line-height:1.4;margin-bottom:12px}.admin-shell .legend span:before{width:9px;height:9px;margin-right:4px}.admin-shell .grid-wrap{min-height:0;max-height:none;border-radius:9px;border-color:#cfdae5}.admin-desktop-grid{display:none}.admin-shell table.mobile-admin-grid{display:table;min-width:0;width:100%;font-size:12px;table-layout:fixed}.mobile-admin-grid .mobile-time-col{width:73px}.mobile-admin-grid .mobile-classes-col{width:27%}.mobile-admin-grid .mobile-room-col{width:37px}.admin-shell .mobile-admin-grid th,.admin-shell .mobile-admin-grid td{padding:8px 5px;line-height:1.4;overflow-wrap:anywhere}.admin-shell .mobile-admin-grid thead th{height:auto;padding:10px 5px;font-size:11px;background:#eaf1f7;position:static}.admin-shell .mobile-admin-grid .time{width:auto;position:static;vertical-align:top;text-align:center;font-size:11px;padding:10px 4px}.admin-shell .mobile-admin-grid .time small{font-size:11px;margin-top:5px;white-space:normal;font-weight:600;line-height:1.5}.admin-shell .mobile-admin-grid .time small:last-child{font-size:10px;color:#708090;font-weight:400}.admin-shell .mobile-admin-grid tbody td{height:40px}.admin-shell .mobile-admin-grid td:last-child{text-align:center}.admin-shell .data-table{min-width:0;font-size:12px}.admin-shell .data-table th,.admin-shell .data-table td{padding:10px 7px;overflow-wrap:anywhere}.admin-shell .summary{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.admin-shell .summary>div{min-width:0;padding:10px 8px}.admin-shell .summary strong{font-size:20px}.admin-shell .summary span{font-size:10px}.admin-shell footer{padding:14px 0 20px;flex-wrap:wrap;font-size:11px}.admin-shell footer .status{flex-basis:100%;line-height:1.5}.admin-shell footer>button{min-height:40px;font-size:12px;flex:1}.admin-shell footer>[data-action=delete-plan]{display:none}.mobile-menu-dialog h3{font-size:11px;text-transform:uppercase;letter-spacing:.7px;color:#697f91;margin:20px 0 10px}.mobile-menu-items{display:grid;gap:6px}.mobile-menu-items>button{display:flex;align-items:center;justify-content:space-between;white-space:normal;min-height:44px;background:white;text-align:left;font-size:13px;border-radius:7px}.mobile-menu-items>button>span{color:#8095a6;font-size:20px}.mobile-menu-dialog .actions{position:sticky;bottom:0;padding-top:12px;background:white}.mobile-menu-dialog .actions>button{width:100%;min-height:44px}
}
@media print{.admin-mobile-only{display:none!important}}

@media(max-width:800px){.admin-shell .admin-day-nav{position:sticky;top:0;z-index:7;background:#fafbfd;padding:6px 0}.admin-shell .mobile-edit-actions{position:sticky;top:0;z-index:7;background:#fafbfd;padding:6px 0}.admin-shell:has(.admin-day-nav) .mobile-edit-actions{top:68px}}

.teacher-group{padding:14px 10px 24px}.teacher-group h2{font-size:18px;margin:0 0 6px}.teacher-group h2 small{font-weight:400;color:#64748b}.teacher-name{border:0;background:none;color:#184d82;padding:6px 0;font:inherit;text-align:left;text-decoration:underline;cursor:pointer}.teacher-group .data-table{min-width:560px}.teacher-group+.teacher-group{border-top:2px solid #dce5ed}.payroll-dialog,.publication-dialog{width:min(1050px,92vw)}.payroll-dialog .history-table{max-height:45dvh;overflow:auto}.payroll-dialog table input[type=number]{width:85px}.payroll-dialog table input:not([type=checkbox]){min-width:85px}.staff-changes{margin:16px 0;padding:20px;border:1px solid #a8c6e6;background:#edf5ff;border-radius:16px}.staff-changes h2{font-size:19px;margin:0}.staff-changes li{margin:6px 0}.staff-change-note{font-size:12px;color:#66788b;margin:8px 0}.publication-dialog details{margin:14px 0}.publication-dialog .summary{margin:15px 0}
@media(max-width:800px){.admin-shell .teacher-group .data-table{min-width:0}.admin-shell .teacher-group{padding:12px 5px 24px}.admin-shell .teacher-group .data-table td,.admin-shell .teacher-group .data-table th{padding:7px 4px}.payroll-dialog,.publication-dialog{width:auto;max-width:100%;padding:14px}.payroll-dialog .row{flex-wrap:wrap}.payroll-dialog .actions,.publication-dialog .actions{flex-wrap:wrap}.payroll-dialog .history-table,.publication-dialog .history-table{overflow:auto}.payroll-dialog .data-table{min-width:700px}.publication-dialog .data-table{min-width:550px}.staff-changes{padding:14px}.staff-changes ul{padding-left:19px}}

/* Task-oriented workspace. The planner table itself keeps its existing styles. */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.workspace-shell{padding:10px 16px 12px;max-width:none}.workspace-header{display:flex;align-items:center;gap:24px;margin:0 0 8px;min-height:44px;flex-wrap:nowrap}.workspace-brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:inherit;flex-shrink:0}.workspace-brand strong{display:block;font-size:19px}.workspace-brand small{display:block;font-size:11px;color:#5f7185;max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-nav{display:flex;gap:4px;align-items:center;flex:1}.workspace-nav button{border:0;background:transparent;border-radius:7px;padding:8px 13px;min-height:36px;white-space:nowrap}.workspace-nav button.active,.section-tabs button.active{color:#174c81;background:#e5effb;font-weight:700;box-shadow:inset 0 -3px #276fb5}.workspace-context{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;padding-bottom:7px;border-bottom:1px solid #dce4ed}.period-selectors,.workspace-actions{display:flex;align-items:center;gap:7px;min-width:0}.period-selectors select{min-height:34px;padding:5px 27px 5px 9px;font-size:12px;width:auto;max-width:340px}.period-selectors #plan{width:290px}.workspace-actions button,.compact-menu summary{min-height:34px;padding:7px 11px;font-size:12px;white-space:nowrap}.compact-menu{position:relative}.compact-menu>summary{cursor:pointer;list-style:none;border:1px solid #bdcbdc;border-radius:6px;background:white}.compact-menu>summary:after{content:' ▾';font-size:10px}.compact-menu[open]>summary{background:#eaf1f9}.menu-popover{position:absolute;right:0;top:calc(100% + 6px);background:#fff;min-width:220px;border:1px solid #c9d5e3;border-radius:9px;padding:7px;box-shadow:0 10px 28px #233b5520;z-index:30;display:grid;gap:3px}.menu-popover button{text-align:left;border:0;background:white;white-space:normal}.menu-popover button:hover{background:#edf3fa}.menu-caption{font-size:11px;color:#607287;padding:6px 9px}.account-menu summary{border:0;background:transparent}.account-role{color:#63748a;font-size:11px}.plan-state{display:flex;gap:8px;align-items:center;min-height:27px;font-size:11px}.plan-state .status{margin-left:auto;font-size:11px}.plan-state .tag{font-size:10px;padding:2px 6px}.workspace-content{min-width:0}.workspace-content:empty{min-height:80px}.planner-tools{display:flex;align-items:center;gap:6px;margin:0 0 7px;min-height:33px}.planner-tools button{font-size:12px;min-height:30px;padding:5px 9px}.compact-legend{margin:0;gap:12px;font-size:10px}.workspace-shell .planner-wrap{max-height:calc(100dvh - 195px);min-height:250px}.workspace-shell .admin-day-nav{position:static}.section-tabs{display:flex;align-items:center;gap:5px;margin:10px 0 12px;flex-wrap:wrap}.section-tabs button{font-size:12px;min-height:34px}.section-tabs button:last-child[data-action=csv]{margin-left:auto}.navigation-hub{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:14px;padding:18px 0;max-width:1200px}.hub-card{display:flex;flex-direction:column;gap:10px;text-align:left;background:white;border:1px solid #d1dce8;border-radius:11px;padding:18px;min-height:120px;white-space:normal}.hub-card strong{display:flex;justify-content:space-between;gap:15px;font-size:16px;color:#264762}.hub-card>span{color:#566d80;font-size:13px;line-height:1.6;font-weight:400}.hub-card:hover{background:#f0f6fc;border-color:#8faecc}.breadcrumbs{display:flex;align-items:center;gap:9px;font-size:12px;margin-top:9px;color:#526b82}.breadcrumbs button{border:0;background:none;padding:4px 0;min-height:25px;color:#225b92}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:15px 0 12px}.section-heading h2,.section-heading h3{font-size:19px;margin:0}.section-heading p{font-size:12px;color:#5c7085;margin:5px 0 0;line-height:1.5}.teacher-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}.workspace-shell .teacher-group{padding:12px;background:#fff;border:1px solid #d1dce8;border-radius:9px;min-width:0}.workspace-shell .teacher-group+.teacher-group{border-top:1px solid #d1dce8}.workspace-shell .teacher-group h2{font-size:15px;margin-bottom:12px}.workspace-shell .teacher-group .data-table{min-width:0;width:100%}.workspace-shell .teacher-group td,.workspace-shell .teacher-group th{padding:5px 9px;height:auto}.workspace-shell .teacher-name{padding:2px 0;min-height:26px;font-size:13px}.quiet-danger{font-size:11px;padding:3px 7px;min-height:26px;color:#94303a;border-color:transparent;background:transparent}.workspace-shell .data-table{font-size:13px}.workspace-shell .data-table td{padding-top:7px;padding-bottom:7px}.workspace-shell .data-table tr.pick td{box-shadow:none;border-color:#c8d5e4;background:#eaf2fc}.finance-table{max-height:calc(100dvh - 265px);min-height:0}.workspace-shell .report-controls{margin:8px 0 12px;padding:9px 12px;gap:12px;align-items:center}.report-controls label{font-size:12px;min-width:0}.report-controls .note{font-size:11px}.context-note{font-size:12px;color:#576f85;margin:12px 0}.workspace-status{padding:10px 0 0;font-size:11px}.settings-values{background:#fff;border:1px solid #d7e1ec;padding:18px;border-radius:8px;max-width:700px}.settings-values dt{font-size:12px;color:#607287}.settings-values dd{margin:6px 0 20px;font-size:16px}.workspace-content>.dialog-body{padding:16px 0;width:100%;max-width:none;box-sizing:border-box}.workspace-content .history-table{overflow:auto;max-height:none}.workspace-content .payroll-dialog table{width:100%;min-width:0;table-layout:fixed}.workspace-content .payroll-dialog th:first-child{width:7%}.workspace-content .payroll-dialog th:nth-child(2){width:20%}.workspace-content .payroll-dialog th:nth-child(3){width:10%}.workspace-content .payroll-dialog th:nth-child(4){width:14%}.workspace-content .payroll-dialog th:nth-child(5){width:30%}.workspace-content .payroll-dialog input:not([type=checkbox]){min-width:0!important;width:100%;margin:0}.workspace-content .payroll-dialog .history-table{max-height:calc(100dvh - 430px);min-height:130px}.workspace-content .publication-dialog .history-table{max-height:calc(100dvh - 440px)}.workspace-content .dialog-body .actions,.page-actions{display:flex;justify-content:flex-end;gap:8px;padding:12px 0;margin-top:8px;flex-wrap:wrap}.workspace-content .dialog-body .actions{position:sticky;bottom:0;background:#f8fafdee;border-top:1px solid #dce5ee;z-index:3}.workspace-content h2{scroll-margin-top:15px}.workspace-content .dialog-body>h2{font-size:21px;margin:0 0 12px}.workspace-content .dialog-body>p.note{max-width:1000px}.workspace-content .summary{margin:12px 0}.workspace-content .summary>div{padding:9px 14px}.workspace-content .summary strong{font-size:21px}.permission-group{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:10px 20px;background:#fff;border:1px solid #d2deea;border-radius:8px;margin:14px 0;padding:14px}.permission-group legend{font-size:14px;font-weight:700;padding:0 6px}.permission-group label{font-size:13px;line-height:1.5}.permission-toolbar{display:flex;align-items:center;gap:18px;margin-top:15px}.permission-toolbar label{display:flex;gap:10px;align-items:center;font-weight:600}.permission-toolbar span{font-size:12px;color:#607287}.substitution-context{display:flex;gap:20px;align-items:start;padding:14px;background:#eef3f9;border-radius:9px;margin:12px 0}.substitution-context>label{font-weight:600;font-size:13px;min-width:260px}.substitution-context select{display:block;width:100%;margin-top:8px}.substitution-context fieldset{border:0;padding:0;margin:0}.substitution-context legend{font-weight:600;font-size:13px;margin-bottom:8px}.day-checks{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.day-checks label{display:flex;align-items:center;gap:5px;background:#fff;border:1px solid #c5d3e1;border-radius:6px;padding:7px;font-size:12px}.day-checks input{min-height:0}.substitution-list{display:grid;gap:8px}.substitution-duty{display:grid;grid-template-columns:minmax(250px,1fr) 145px minmax(300px,1fr);gap:15px;align-items:center;padding:12px 15px;background:#fff;border:1px solid #d0dce9;border-radius:8px}.substitution-duty strong{font-size:13px}.substitution-duty small{display:block;margin-top:5px;font-size:12px;color:#60748b}.substitution-duty label{font-size:13px}.replacement-choice{display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:13px}.replacement-choice button{font-size:12px;flex-shrink:0}.candidate-dialog{width:100%;padding:20px}.candidate-list{max-height:57dvh;overflow:auto;margin-top:12px}.candidate-list article{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 4px;border-bottom:1px solid #d8e2ed}.candidate-list article[hidden]{display:none}.candidate-list strong{font-size:15px}.candidate-list small{display:block;font-size:11px;color:#60748b;margin:3px 0}.candidate-list p{font-size:12px;line-height:1.5;margin:6px 0}.candidate-list summary{font-size:11px;color:#315f8d;cursor:pointer}.candidate-list button{flex-shrink:0}.candidate-dialog .actions{margin-top:12px}dialog:has(.candidate-dialog){width:min(760px,calc(100vw - 24px))}.workspace-shell button,.workspace-shell summary{transition:background-color .16s,border-color .16s}.workspace-shell :focus-visible,.staff-shell :focus-visible,dialog :focus-visible{outline:3px solid #216bba;outline-offset:3px}.workspace-shell [aria-current=page]{font-weight:700}.workspace-shell .dialog-body .row>label{min-width:0}
/* Compact public heading and calendar actions; timetable cards retain their design. */
.staff-shell{padding-top:16px}.staff-shell .staff-header{margin-bottom:10px}.staff-shell .school-brand strong{font-size:20px}.staff-shell .school-logo{width:42px;height:42px}.staff-shell .admin-link{padding:8px 12px;font-size:12px}.staff-shell .staff-hero{border:0;border-radius:0;background:none;padding:6px 0 12px;margin-bottom:0;gap:12px}.staff-shell .staff-hero h1{font-size:23px}.staff-shell .staff-hero p{margin:4px 0 0;font-size:12px}.staff-shell .staff-hero .eyebrow,.staff-shell .hero-note{display:none}.staff-shell .week-total strong{font-size:25px}.staff-shell .week-total span{font-size:11px}.staff-shell .staff-filters{padding:10px 12px;margin-bottom:14px;gap:10px}.staff-shell .staff-filters label{min-width:120px}.staff-shell .staff-filters select{margin-top:3px;min-height:36px}.staff-tools{display:flex;gap:7px;align-items:center}.staff-tools button{min-height:36px}.staff-calendar-menu{position:relative}.staff-calendar-menu .menu-popover{min-width:225px}.staff-shell .staff-overview{max-height:max(260px,calc(100dvh - 285px))}.staff-shell .staff-footer{padding-top:10px;margin-top:14px}.staff-shell .calendar-bar{display:none}
@media(max-width:1050px){.workspace-header{gap:12px}.workspace-brand small{max-width:130px}.workspace-nav button{padding:8px}.account-role{display:none}.workspace-context{flex-wrap:wrap}.period-selectors{flex:1}.workspace-actions{margin-left:auto}.navigation-hub{grid-template-columns:repeat(2,minmax(200px,1fr))}.workspace-shell .planner-wrap{max-height:calc(100dvh - 230px)}}
@media(max-width:800px){.workspace-shell{padding:10px 10px 75px}.workspace-header{gap:10px;flex-wrap:wrap;align-items:center}.workspace-brand{flex:1}.workspace-brand small{max-width:230px}.workspace-header .account-menu{margin-left:auto}.workspace-nav{position:fixed;bottom:0;left:0;right:0;z-index:25;background:#fff;border-top:1px solid #c5d2e1;padding:7px 5px;display:flex;justify-content:space-around;gap:2px}.workspace-nav button{font-size:11px;padding:8px 5px;min-height:44px;flex:1;border-radius:6px}.workspace-context{gap:8px;align-items:stretch}.period-selectors{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:6px}.period-selectors #plan{grid-column:1 / -1;grid-row:2;width:100%;max-width:none}.period-selectors select{width:100%;max-width:none;min-height:38px}.workspace-actions{justify-content:flex-end;flex-wrap:wrap;width:100%;gap:5px}.workspace-actions button,.compact-menu summary{min-height:40px}.workspace-shell .planner-wrap{max-height:65dvh}.planner-tools{flex-wrap:wrap}.planner-tools .compact-legend{width:100%;font-size:9px}.planner-tools button{min-height:40px}.plan-state{flex-wrap:wrap;padding:6px 0}.plan-state .status{font-size:10px}.navigation-hub{grid-template-columns:1fr;gap:10px;padding-top:12px}.hub-card{min-height:95px;padding:15px}.section-tabs{flex-wrap:nowrap;overflow:auto;gap:5px;padding-bottom:7px}.section-tabs button{white-space:nowrap;min-height:40px;flex-shrink:0}.teacher-columns{grid-template-columns:1fr}.workspace-shell .teacher-group td,.workspace-shell .teacher-group th{padding:4px 7px}.workspace-shell .teacher-name,.quiet-danger{min-height:40px}.workspace-content .publication-dialog,.workspace-content .payroll-dialog{width:100%;max-width:100%;padding:12px 0}.workspace-content .payroll-dialog table{min-width:670px;table-layout:auto}.workspace-content .payroll-dialog .history-table{max-height:55dvh}.workspace-content .publication-dialog .history-table{max-height:55dvh}.workspace-content .publication-dialog .data-table{min-width:500px}.workspace-content .dialog-body .actions{position:static;gap:7px}.workspace-content .dialog-body .actions button{min-height:44px}.permission-group{grid-template-columns:1fr;padding:12px;gap:5px}.permission-group label{min-height:40px}.permission-toolbar{align-items:start;flex-direction:column;gap:8px}.substitution-context{flex-direction:column;gap:14px;padding:12px}.substitution-context>label{min-width:0;width:100%}.day-checks label{min-height:40px}.substitution-duty{grid-template-columns:1fr;gap:10px;padding:12px}.replacement-choice{flex-wrap:wrap}.replacement-choice button{min-height:44px}.candidate-list{max-height:57dvh}.candidate-list article{gap:8px}.candidate-list button{min-height:44px}.section-heading{align-items:start;flex-wrap:wrap}.workspace-shell .report-controls{align-items:start;gap:9px}.report-controls .note{display:none}.staff-shell .staff-header{margin-bottom:8px}.staff-shell .staff-hero{padding:5px 0 10px}.staff-shell .staff-hero h1{font-size:21px}.staff-shell .staff-filters{display:grid;grid-template-columns:1fr 1fr;padding:10px;gap:8px}.staff-shell .staff-filters label:first-child{grid-column:1 / -1}.staff-shell .staff-filters label{min-width:0}.staff-tools{grid-column:1 / -1;justify-content:flex-end}.staff-tools button,.staff-calendar-menu>summary{min-height:44px}.staff-shell .week-total strong{font-size:24px}.staff-shell .staff-change-note{font-size:11px}}

.workspace-shell .teacher-group .data-table td{padding-top:3px;padding-bottom:3px}.inline-total{font-size:13px;margin:9px 0;color:#415c76}.candidate-list details{margin-top:5px}.workspace-content .publication-dialog>label{max-width:350px}@media(max-width:800px){.workspace-shell .teacher-group .data-table td{padding-top:3px;padding-bottom:3px}}

/* Phone corrections: anchored menus and readable, independently scrolling tables. */
.mobile-finance-picker{display:none}
@media(max-width:800px){
 .workspace-shell .workspace-actions{position:relative}
 .workspace-actions>.compact-menu{position:static}
 .workspace-actions>.compact-menu>.menu-popover{left:0;right:0;top:calc(100% + 6px);width:auto;min-width:0;max-width:100%;z-index:40}
 .workspace-actions .menu-popover button{min-height:44px;padding:10px 12px}
 .workspace-shell .section-tabs{overflow:visible;align-items:end;flex-wrap:nowrap}
 .section-tabs>button:not([data-action=csv]){display:none}
 .section-tabs>.mobile-finance-picker{display:grid;gap:5px;flex:1;min-width:0;font-size:12px;font-weight:600}
 .mobile-finance-picker select{width:100%;min-height:44px;font-size:14px;font-weight:400}
 .section-tabs>button[data-action=csv]{min-height:44px;margin-left:0;flex-shrink:0}
 .workspace-shell .finance-table{width:100%;max-width:100%;overflow:auto;max-height:65dvh;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 .workspace-shell .finance-table .data-table{table-layout:auto;min-width:1000px;width:max-content;font-size:14px}
 .workspace-shell .finance-table .data-table th,.workspace-shell .finance-table .data-table td{width:auto;max-width:none;white-space:nowrap;overflow-wrap:normal;word-break:normal;padding:10px 12px;line-height:1.4}
 .workspace-shell .finance-table .data-table th:first-child,.workspace-shell .finance-table .data-table td:first-child{position:sticky;left:0;min-width:150px;z-index:2;background:#fff;border-right:2px solid #b7c8db}
 .workspace-shell .finance-table .data-table tr:nth-child(even) td:first-child{background:#f6f9fc}
 .workspace-shell .finance-table .data-table tr.pick td:first-child{background:#eaf2fc}
 .workspace-shell .finance-table .data-table th:first-child{z-index:4;background:#e8eef6}
}

.mobile-table-hint{display:none}
@media(max-width:800px){.mobile-table-hint{display:block;font-size:12px;color:#526b82;margin:8px 0}.workspace-shell .finance-table{max-height:calc(100dvh - 430px);min-height:240px}}
@media(max-width:800px){.workspace-nav{padding-bottom:calc(7px + env(safe-area-inset-bottom,0px))}.workspace-shell{padding-bottom:calc(75px + env(safe-area-inset-bottom,0px))}}
@media(max-width:380px){.workspace-nav button{font-size:10px;padding-left:3px;padding-right:3px;min-width:0}}

.help-button{font-size:12px;flex-shrink:0}.help-symbol{display:none}.help-page{max-width:950px}.help-basics{padding:14px 16px;border:1px solid #ccd9e7;border-radius:8px;background:#eef5fd;margin-bottom:14px}.help-basics p{margin:6px 0;font-size:13px}.help-topics{display:grid;gap:8px}.help-topic{border:1px solid #ccd7e3;border-radius:8px;background:#fff;padding:0 15px}.help-topic summary{padding:13px 0;cursor:pointer;font-weight:600;min-height:44px}.help-topic p,.help-topic li{font-size:13px;line-height:1.6}.help-topic p{margin:0 0 10px}.help-topic ol{padding-left:20px;margin:0 0 14px}.help-topic li+li{margin-top:5px}
@media(max-width:800px){.help-label{display:none}.help-symbol{display:inline;font-weight:700;font-size:18px}.help-button{width:44px;min-height:44px;padding:5px}.workspace-header .workspace-brand{min-width:0;flex-shrink:1}.workspace-brand>span{min-width:0}.workspace-brand small{max-width:100%}.help-topic{padding:0 12px}.help-basics{padding:12px}.help-page .section-heading{margin-top:10px}}
.workspace-shell:has(.help-page) .workspace-context{display:block;min-height:0;padding:0;border:0}.workspace-shell:has(.help-page) .period-selectors,.workspace-shell:has(.help-page) .workspace-actions>button:not([data-action=retry-save]){display:none}
