@import "https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700;800&display=swap";.workflow-cell{--workflow-button-size:30px;background:var(--surface);border-inline-end:1px solid var(--border);border-block-end:1px solid var(--border);align-items:stretch;min-width:0;min-height:0;display:flex}.workflow-cell>.booking-cell{border:0;flex:auto}.workflow-cell:not(:has(.empty-slot)){flex-direction:column}.workflow-cell:has(.empty-slot){position:relative}.workflow-cell:has(.empty-slot)>.workflow-cell-actions{pointer-events:none;position:absolute;inset-block:0;inset-inline-end:0}.workflow-cell:has(.empty-slot) .workflow-cell-actions button{pointer-events:auto}@media (width<=1100px){.board-scroll.week .workflow-cell:has(.empty-slot):has(.workflow-action:nth-child(2)){min-height:calc(2 * var(--workflow-button-size) + 6px)}.board-scroll.week .workflow-cell:has(.empty-slot):has(.workflow-action:nth-child(2))>.workflow-cell-actions{flex-direction:column;justify-content:center;align-items:flex-end}}.workflow-cell .empty-slot{min-height:0}.workflow-cell-actions{flex-shrink:0;justify-content:flex-end;align-items:center;gap:2px;padding:2px 4px;display:flex}.workflow-action{align-items:center;min-width:0;display:flex}.workflow-cell-actions button{min-width:var(--workflow-button-size);min-height:var(--workflow-button-size);color:var(--muted);background:0 0;border:0;justify-content:center;align-items:center;gap:3px;padding:0 4px;display:inline-flex}.workflow-cell-actions button span{overflow-wrap:anywhere;font-size:11px}.workflow-cell-actions button:hover,.workflow-cell-actions button[aria-expanded=true]{color:var(--foreground)}.workflow-cell:has(.blocked){background:var(--subtle)}.workflow-cell>.booking-cell{background:0 0}.workflow-cell-actions button.workflow-attention{color:var(--check-pending)}.workflow-cell-actions button.workflow-issue{color:var(--danger)}.booking-cell.booking-filled{--booking-line:26px;--workflow-button-size:30px;text-align:start;align-items:center;padding:0 3px;position:relative;container-type:inline-size}.booking-cell.booking-filled:not(.dimmed){background:var(--subtle)}.booking-edit-trigger{background:0 0;border:0;position:absolute;inset:0}.booking-edit-trigger:focus-visible,.booking-details button:focus-visible{outline-offset:-2px}.booking-details{width:100%;height:calc(2 * var(--booking-line));line-height:var(--booking-line);pointer-events:none;font-size:14px;display:flow-root;position:relative;overflow:hidden}.cell-booking-text{overflow-wrap:anywhere;white-space:pre-line}.booking-filled.dimmed .cell-booking-text{opacity:.4}.booking-details>.workflow-cell-actions,.booking-details>.booking-cell-label{shape-outside:inset(var(--booking-line) 0 0);padding-block-start:var(--booking-line)}.booking-details>.workflow-cell-actions{float:inline-end;max-width:100%;padding-block-end:0;padding-inline:0}.booking-details .workflow-cell-actions button{min-height:var(--booking-line);pointer-events:auto;line-height:1}.booking-details>.booking-cell-label{float:inline-start;max-width:45%;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin-inline-end:3px;font-size:11px;overflow:hidden}.booking-details>.booking-saved{color:var(--teal)}.booking-saved svg{vertical-align:middle}@container (width<=184px){.booking-details:has(.booking-cell-label) .workflow-cell-actions{--workflow-button-size:23px;gap:0}.booking-details:has(.booking-cell-label) .workflow-cell-actions button{gap:1px;padding-inline:1px}}@container (width<=120px){.booking-details:has(.workflow-action) .fixed-label-prefix{display:none}.booking-details:has(.workflow-action:nth-child(2))>.booking-cell-label{max-width:calc(100% - 57px)}}@container (width<=136px){.booking-details:has(.workflow-action:nth-child(3)) .fixed-label-prefix{display:none}.booking-details:has(.workflow-action:nth-child(3))>.booking-cell-label{max-width:calc(100% - 80px)}}.workflow-cell-editor{padding:12px}.workflow-cell-editor header,.workflow-room{align-items:center;gap:8px;display:flex}.workflow-cell-editor header{justify-content:space-between;margin-block-end:8px}.workflow-cell-editor header small{color:var(--muted);display:block}.workflow-stack,.workflow-form,.workflow-visit-list,.workflow-visit-list li{gap:8px;display:grid}.workflow-room{background:var(--subtle);border-radius:8px;padding:10px 12px}.workflow-visit-list{margin:0;padding:0;list-style:none}.workflow-visit-list li{background:var(--subtle);border-radius:8px;padding:10px}.workflow-visit-checks{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.workflow-visit-checks>span{align-items:center;gap:4px;display:inline-flex}.workflow-visit-checks [role=status]{color:var(--teal)}@media (width<=650px){.workflow-cell{--workflow-button-size:38px}.booking-cell.booking-filled{--workflow-button-size:38px;--booking-line:29px}}@media (width>=651px) and (width<=900px){.workflow-cell,.booking-cell.booking-filled{--workflow-button-size:25px}.board-scroll.week .calendar-grid:has(.booking-details .workflow-action:nth-child(3)){grid-template-columns:78px repeat(var(--columns), minmax(116px, 1fr))}.workflow-cell-actions,.workflow-cell-actions button{padding-inline:2px}}:root{font-synthesis:none;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--background:#eef2f3;--surface:#fff;--subtle:#f0f4f5;--foreground:#182b31;--muted:#475b62;--border:#b2c0c4;--teal:#15574f;--on-primary:#fff;--teal-surface:#e2f2ee;--teal-line:#92b7ac;--blue:#194b79;--blue-surface:#dceafa;--blue-line:#91accb;--purple:#593579;--purple-surface:#ede2f9;--purple-line:#b3a0c6;--amber:#704400;--amber-surface:#fff0d5;--check-pending:#a34808;--danger:#9d2626;--danger-surface:#fff0ef;--focus:#2269cb;--radius:12px;background:var(--background);color:var(--foreground);font-family:Heebo,Arial,sans-serif;font-size:14px}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--background:#111b1f;--surface:#1a292e;--subtle:#22363c;--foreground:#f0f5f6;--muted:#bdccd1;--border:#61767e;--teal:#a6eadb;--on-primary:#112d27;--teal-surface:#173d35;--teal-line:#527b71;--blue:#bedcff;--blue-surface:#223e5c;--blue-line:#587da7;--purple:#e1c9fa;--purple-surface:#422e56;--purple-line:#806491;--amber:#ffdb98;--amber-surface:#46351b;--check-pending:#ffb36e;--danger:#ffb6af;--danger-surface:#482a2a;--focus:#9dc6ff}}[data-calendar-color=teal]{--calendar-accent:var(--teal);--calendar-header:var(--teal-surface);--calendar-line:var(--teal-line)}[data-calendar-color=blue]{--calendar-accent:var(--blue);--calendar-header:var(--blue-surface);--calendar-line:var(--blue-line)}[data-calendar-color=purple]{--calendar-accent:var(--purple);--calendar-header:var(--purple-surface);--calendar-line:var(--purple-line)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.6}:focus-visible{outline:3px solid var(--focus);outline-offset:2px}a{color:var(--teal)}h1,h2,h3,p{margin:0}button svg,.notice svg{flex-shrink:0}input,select,textarea{background:var(--surface);border:1px solid var(--border);border-radius:8px;width:100%;max-width:100%;min-height:44px;padding:10px 12px}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}input[type=checkbox]{accent-color:var(--teal);flex-shrink:0;width:21px;height:21px;min-height:21px;margin:0}input[type=date],input[type=time]{direction:ltr}textarea{resize:vertical}label{flex-direction:column;gap:7px;font-weight:500;display:flex}fieldset{border:1px solid var(--border);border-radius:8px;margin:0}.sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.muted,.help,.field-hint,.privacy-note,.loading-text,.empty-inline{color:var(--muted);line-height:1.7}.muted{align-items:center;gap:6px;display:inline-flex}.preserve{white-space:pre-wrap}.app-shell{--page-inline:clamp(16px, 3vw, 48px);--page-block:clamp(12px, 2.5vh, 24px);width:calc(100% - var(--page-inline) - var(--page-inline));max-width:1600px;height:calc(100dvh - var(--page-block) - var(--page-block));margin:var(--page-block) auto;flex-direction:column;display:flex}.install-prompt{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-shrink:0;margin-block-start:8px;padding:8px 10px}.install-prompt-row{align-items:center;gap:8px;display:flex}.install-action{white-space:nowrap;flex:1;min-height:36px;padding:5px 10px;font-size:13px}.install-instructions{border-block-start:1px solid var(--border);margin-block-start:8px;padding-block-start:8px;line-height:1.7}.install-instructions svg{vertical-align:middle;display:inline-block}@media (display-mode:standalone){.app-shell{--page-block-start:max(var(--page-block), env(safe-area-inset-top));--page-block-end:max(var(--page-block), env(safe-area-inset-bottom));margin-block:var(--page-block-start) var(--page-block-end);height:calc(100dvh - var(--page-block-start) - var(--page-block-end))}}@media (width<=650px){.install-prompt-row{gap:6px}.install-action{min-height:40px}}.site-header{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-shrink:0;justify-content:space-between;align-items:center;height:68px;min-height:68px;padding:4px 20px;display:flex}.brand{align-items:center;display:flex}.school-logo{object-fit:contain;background:#fff;border-radius:6px;width:118px;height:60px;padding:3px 5px}.header-actions,.connection{align-items:center;gap:12px;display:flex}.connection{color:var(--danger);gap:6px;font-weight:500}.admin-button,.today-button{background:var(--surface);border:1px solid var(--border);border-radius:8px;justify-content:center;align-items:center;gap:7px;min-height:40px;padding:8px 12px;font-weight:500;display:inline-flex}.admin-dot{background:var(--teal);border-radius:50%;width:8px;height:8px}.main-content{flex-direction:column;flex:1;gap:10px;min-height:0;padding:14px 0 0;display:flex}.room-checks-nav{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.room-check-entry>div{min-width:0}.room-check-entry>.card-actions{flex-wrap:wrap;flex-shrink:0}@media (width<=480px){.room-check-entry{flex-direction:column;align-items:flex-start}}.workflow-reported-issue{white-space:pre-wrap;overflow-wrap:anywhere}.resource-bar{flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;display:flex}.resource-nav{gap:8px;display:flex}.resource-card{border:1px solid var(--border);background:var(--surface);border-radius:9px;align-items:center;gap:9px;min-height:44px;padding:9px 16px;display:inline-flex}.resource-card strong{font-size:14px;font-weight:600}.resource-card.selected{background:var(--calendar-header,var(--subtle));color:var(--calendar-accent,var(--foreground));border:2px solid;padding:8px 15px}.button{border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:9px 16px;font-weight:600;text-decoration:none;display:inline-flex}.button.primary{background:var(--teal);color:var(--on-primary)}.button.secondary{border-color:var(--border);background:var(--surface)}.button.danger{background:var(--danger);color:var(--surface)}.button.text-danger{color:var(--danger);background:0 0}.button.small{min-height:38px;padding:6px 10px;font-size:13px}.button-row{flex-wrap:wrap;gap:10px;display:flex}.icon-button{background:0 0;border:0;border-radius:7px;justify-content:center;align-items:center;min-width:38px;min-height:38px;padding:7px;display:inline-flex}.icon-button:hover,.button.secondary:hover{background:var(--subtle)}.calendar-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.calendar-toolbar{flex-shrink:0;justify-content:space-between;align-items:center;gap:10px;padding:8px 12px;display:flex}.date-controls,.view-controls{align-items:center;gap:12px;display:flex}.nav-arrows{border:1px solid var(--border);border-radius:8px;display:flex}.nav-arrows .icon-button{min-width:34px;padding:5px}.date-title{font-size:17px;font-weight:700}.today-button{min-height:36px;padding:5px 10px}.segmented{background:var(--subtle);border:1px solid var(--border);border-radius:8px;padding:3px;display:flex}.segmented button{min-height:32px;color:var(--muted);background:0 0;border:0;border-radius:5px;padding:5px 16px}.segmented button.active{background:var(--teal);color:var(--on-primary);font-weight:600}.date-picker{justify-content:center;align-items:center;width:38px;height:38px;display:flex;position:relative}.date-picker input{opacity:0;cursor:pointer;min-height:38px;padding:0;position:absolute;inset:0}.date-picker input::-webkit-calendar-picker-indicator{cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.date-picker:focus-within{outline:3px solid var(--focus);border-radius:8px}.board-meta{flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;padding:0 12px 8px;display:flex}.calendar-context{color:var(--muted);font-weight:600}.search-field{border:1px solid var(--border);background:var(--surface);border-radius:8px;align-items:center;gap:8px;width:250px;padding:0 10px;display:flex}.search-field input{background:0 0;border:0;min-height:36px;padding:5px 0}.search-field input:focus{outline:0}.search-field:focus-within{outline:3px solid var(--focus)}.selection-notice,.search-summary{background:var(--teal-surface);color:var(--teal);border-top:1px solid var(--border);flex-shrink:0;padding:8px 12px;font-size:14px}.board-scroll{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--muted) var(--subtle);flex:1;min-height:0;overflow:auto}.board-scroll.single-day{touch-action:pan-y pinch-zoom}.calendar-grid{--calendar-header-height:48px;--calendar-row-height:48px;grid-template-columns:84px repeat(var(--columns), minmax(0, 1fr));grid-template-rows:var(--calendar-header-height) repeat(var(--rows), minmax(min-content, 1fr));height:100%;min-height:min-content;display:grid}.grid-row{display:contents}.grid-day,.grid-corner{z-index:3;background:var(--calendar-header,var(--subtle));border-top:1px solid var(--calendar-line,var(--border));border-bottom:1px solid var(--calendar-line,var(--border));border-inline-end:1px solid var(--calendar-line,var(--border));text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:1px;padding:3px 8px;display:flex;position:sticky;top:0}.grid-day strong{color:var(--calendar-accent,var(--foreground));font-size:15px}.grid-day span{color:var(--muted);font-size:13px}.grid-day-heading{flex-direction:column;align-items:center;min-width:0;max-width:100%;display:flex}.grid-day.is-closed .grid-day-heading{white-space:nowrap;flex-direction:row;justify-content:center;align-items:baseline;gap:5px;line-height:1.25}.grid-day.is-today{box-shadow:inset 0 3px var(--calendar-accent,var(--teal))}.grid-corner{z-index:5;color:var(--muted);font-size:12px;inset-inline-start:0}.time-cell{min-height:var(--calendar-row-height);z-index:2;background:var(--calendar-header,var(--subtle));border-bottom:1px solid var(--calendar-line,var(--border));border-inline-end:1px solid var(--calendar-line,var(--border));flex-direction:column;justify-content:center;align-items:center;padding:3px;display:flex;position:sticky;inset-inline-start:0}.time-cell strong{font-size:16px}.time-cell span{color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums;font-size:11px}.booking-cell{border-inline-end:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--surface);align-items:stretch;min-width:0;min-height:0;padding:3px;display:flex}.cell-laptop-count{grid-template-columns:1fr minmax(56px,82px);align-items:center;gap:4px 8px;margin-block-start:6px;display:grid}.cell-laptop-count small{color:var(--muted)}.empty-slot{width:100%;min-height:38px;color:var(--muted);background:0 0;border:0;border-radius:6px;justify-content:center;align-items:center;display:flex}.empty-slot:hover,.range-selected{background:var(--subtle)}.range-selected{box-shadow:inset 0 0 0 3px var(--teal)}.blocked,.unavailable{background:var(--subtle);color:var(--muted);text-align:center;justify-content:center;align-items:center;gap:5px;font-size:12px}.blocked>span{max-height:3em;overflow:hidden}.unavailable{background:var(--background)}.holiday-warning{color:var(--amber);background:var(--amber-surface);border:1px solid var(--amber);border-radius:7px;padding:6px 10px;font-size:13px}.modal{background:var(--surface);color:var(--foreground);border:1px solid var(--border);overscroll-behavior:contain;border-radius:14px;width:min(520px,100% - 32px);max-width:1100px;max-height:90dvh;padding:0;box-shadow:0 20px 100px #0005}.modal.wide{width:min(1100px,100% - 32px)}.modal::backdrop{background:#071418aa}.modal-top{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:12px;padding:20px 22px 16px;display:flex}.modal-top h2{font-size:22px}.modal-top p{color:var(--muted);margin-top:6px;font-size:14px;line-height:1.7}.modal-body{flex-direction:column;gap:18px;padding:22px;display:flex}.modal-footer{gap:10px;padding-top:3px;display:flex}.modal-footer .primary{flex:1}.checkbox-card{background:var(--teal-surface);color:var(--teal);border:1px solid var(--teal);cursor:pointer;border-radius:8px;flex-direction:row;align-items:center;gap:10px;padding:13px;display:flex}.checkbox-card strong{font-weight:600}.detail-card{background:var(--subtle);border:1px solid var(--border);border-radius:9px;flex-direction:column;gap:12px;padding:18px;display:flex}.detail-card h3{font-size:23px}.detail-card p{align-items:center;gap:8px;display:flex}.laptop-badge{color:var(--amber);background:var(--amber-surface);border:1px solid var(--amber);border-radius:6px;align-self:flex-start;align-items:center;gap:6px;padding:5px 8px;font-size:13px;display:inline-flex}.notice,.cancel-confirm,.conflict-box,.restore-box,.settings-ack{border:1px solid var(--border);background:var(--subtle);border-radius:8px;padding:14px;line-height:1.7}.notice{align-items:flex-start;gap:8px;display:flex}.notice.error,.cancel-confirm{color:var(--danger);background:var(--danger-surface);border-color:var(--danger)}.cancel-confirm .button-row{margin-top:14px}.conflict-box,.settings-ack{color:var(--amber);background:var(--amber-surface);border-color:var(--amber)}.conflict-box h3{margin-bottom:5px;font-size:17px}.conflict-box ul{margin:12px 0;padding:0;list-style:none}.conflict-box li{border-top:1px solid var(--border);padding:9px 0}.conflict-box li small{display:block}.check-line{cursor:pointer;flex-direction:row;align-items:flex-start;gap:10px;font-weight:400;line-height:1.6;display:flex}.check-line input{margin-top:2px}.source-note,.source-note p{line-height:1.8}.source-note p{margin:8px 0}.toast{background:var(--surface);border:1px solid var(--border);z-index:100;border-radius:10px;align-items:center;gap:10px;width:max-content;max-width:calc(100% - 24px);padding:8px 14px;display:flex;position:fixed;bottom:20px;left:50%;transform:translate(-50%);box-shadow:0 5px 30px #0003}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.login-illustration{color:var(--teal);align-self:center}.admin-topline,.admin-footer{background:var(--subtle);color:var(--muted);justify-content:space-between;align-items:center;gap:12px;padding:12px 22px;font-size:13px;display:flex}.admin-topline>span{align-items:center;gap:6px;display:flex}.admin-footer{border-top:1px solid var(--border)}.admin-tabs{border-bottom:1px solid var(--border);white-space:nowrap;gap:4px;padding:5px 16px 0;display:flex;overflow-x:auto}.admin-tabs button{min-height:46px;color:var(--muted);background:0 0;border:0;border-bottom:3px solid #0000;align-items:center;gap:7px;padding:12px;display:flex}.admin-tabs button.active{color:var(--teal);border-color:var(--teal);font-weight:700}.admin-content{min-height:320px;padding:24px}.admin-split{grid-template-columns:1fr 1fr;gap:28px;display:grid}.admin-split h3{margin-bottom:10px}.admin-list-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-block-end:8px;display:flex}.admin-list-toolbar h3{margin:0}.admin-display-toggle{align-self:flex-start}.admin-table{border-collapse:collapse;background:var(--surface);width:100%}.admin-table th,.admin-table td{text-align:start;border-block-end:1px solid var(--border);padding:8px 10px}.admin-table th{z-index:1;background:var(--subtle);white-space:nowrap;position:sticky;top:0}.admin-table td:last-child .card-actions{white-space:nowrap}.recurring-week{gap:10px;margin-block-start:10px;display:grid}.recurring-resource{width:min(100%,280px)}.table-scroll.recurring-week-scroll{max-height:min(58dvh,500px)}.recurring-week-table{table-layout:fixed;border-collapse:separate;border-spacing:0;min-width:720px}.recurring-week-table th{background:var(--calendar-header,var(--subtle));color:var(--calendar-accent,var(--foreground));text-align:center}.recurring-week-table thead th:first-child,.recurring-week-table tbody th{width:84px;inset-inline-start:0}.recurring-week-table thead th:first-child{z-index:2}.recurring-week-table tbody th{z-index:1;position:sticky;top:auto}.recurring-week-table tbody th small{color:var(--muted);display:block}.recurring-week-table td,.recurring-week-table th{border-inline-end:1px solid var(--border)}.recurring-week-table td{vertical-align:middle;padding:3px}.recurring-week-table tr>:last-child{border-inline-end:0}.recurring-slot{gap:3px;display:grid}.recurring-rule,.recurring-add{border:1px solid #0000;border-radius:6px;min-width:0;min-height:40px}.recurring-rule{text-align:start;overflow-wrap:anywhere;background:var(--subtle);border-color:var(--border);padding:3px 6px;line-height:1.3;display:grid}.recurring-rule.inactive,.recurring-rule small,.recurring-add{color:var(--muted)}.recurring-rule.inactive{background:var(--surface);border-style:dashed}.recurring-add{background:0 0;place-items:center;padding:0;display:grid}.recurring-add:hover,.recurring-rule:hover{border-color:var(--focus)}.admin-visit-complete{color:var(--teal);align-items:center;gap:4px;font-weight:600;display:inline-flex}.admin-form,.admin-stack,.settings-form{flex-direction:column;gap:18px;display:flex}.admin-form{align-self:start}.laptop-stock-settings{border-block-end:1px solid var(--border);width:min(100%,340px);padding-block-end:16px}.admin-list-card{border:1px solid var(--border);background:var(--surface);border-radius:9px;justify-content:space-between;align-items:center;gap:10px;margin-top:12px;padding:14px;display:flex}.admin-list-card strong,.admin-list-card small{display:block}.admin-list-card p,.admin-list-card small{color:var(--muted);margin-top:5px;font-size:13px}.admin-list-card.inactive{background:var(--subtle)}.eyebrow{color:var(--muted);font-size:13px;font-weight:500}.card-actions{align-items:center;gap:5px;display:flex}.empty-state{border:1px dashed var(--border);text-align:center;color:var(--muted);border-radius:9px;flex-direction:column;align-items:center;gap:10px;padding:25px 18px;line-height:1.8;display:flex}.section-gap{margin-top:26px}.bordered-section{border-top:1px solid var(--border);padding-top:24px}.import-controls{flex-wrap:wrap;align-items:flex-end;gap:12px;display:flex}.import-controls label{flex:1;min-width:150px}.text-link{padding:10px 0}.csv-fallback{border:1px solid var(--border);background:var(--subtle);border-radius:8px;padding:14px}.csv-fallback summary{cursor:pointer}.csv-fallback textarea,.csv-fallback label{margin-top:14px}.import-summary{color:var(--muted);justify-content:space-between;gap:10px;display:flex}.table-scroll{border:1px solid var(--border);border-radius:9px;max-height:400px;overflow:auto}.import-table{border-collapse:collapse;width:100%;min-width:680px;font-size:13px}.import-table td,.import-table th{text-align:right;border-bottom:1px solid var(--border);padding:10px}.import-table th{background:var(--subtle);position:sticky;top:0}.import-table td small{color:var(--muted);margin-top:4px;display:block}.import-table td input:not([type=checkbox]){min-width:120px;padding:6px 8px}.import-table tr.needs-review{background:var(--amber-surface)}.review-label{color:var(--amber)}.history-list{margin-top:20px}.history-item{border-bottom:1px solid var(--border);align-items:flex-start;gap:12px;padding:16px 0;display:flex}.history-item>div{flex:1;min-width:0}.history-title{justify-content:space-between;align-items:center;gap:10px;display:flex}.history-title time,.history-item p,.history-item small{color:var(--muted);font-size:13px;line-height:1.8}.history-item p{margin:6px 0 3px}.history-dot{background:var(--teal);border-radius:50%;flex-shrink:0;width:9px;height:9px;margin-top:6px}.restore-box{flex-direction:column;gap:10px;display:flex}.day-checkboxes{flex-wrap:wrap;gap:14px;display:flex}.day-checkboxes legend{margin-bottom:10px}.day-checkboxes label{flex-direction:row;align-items:center;gap:6px}.period-settings{flex-direction:column;gap:8px;margin-top:18px;display:flex}.period-settings>div{text-align:center;grid-template-columns:40px 1fr 1fr;align-items:center;gap:12px;display:grid}.period-settings-head{color:var(--muted)}.field-pair{grid-template-columns:1fr 1fr;gap:12px;display:grid}.input-icon{position:relative}.input-icon>svg{position:absolute;top:13px;right:12px}.input-icon input{padding-right:38px}.setup-page{flex-direction:column;gap:20px;max-width:560px;margin:10dvh auto;padding:24px;line-height:1.9;display:flex}.setup-page code{background:var(--subtle);border-radius:4px;padding:3px 6px}.error-overlay{background:var(--surface);border:1px solid var(--border);z-index:99;border-radius:12px;flex-direction:column;gap:16px;padding:24px;display:flex;position:fixed;inset:25% 10% auto;box-shadow:0 20px 100px #0005}@media (width<=900px) and (width>=651px){.resource-card{gap:6px;padding:9px}.resource-card.selected{padding:8px}.resource-card strong{font-size:13px}.date-title{font-size:15px}.date-controls,.view-controls{gap:7px}.calendar-grid{grid-template-columns:78px repeat(var(--columns), minmax(0, 1fr))}}@media (width<=650px){.app-shell{--page-inline:10px;--page-block:10px;height:auto;min-height:calc(100dvh - var(--page-block-start,10px) - var(--page-block-end,10px))}.site-header{background:0 0;border:0;gap:6px;height:48px;min-height:48px;padding:0;position:relative}.school-logo{width:84px;height:42px}.header-actions{gap:4px}.connection{background:var(--surface);border-radius:50%;padding:2px;position:absolute;inset-block-start:0;inset-inline-start:-3px}.admin-button{background:0 0;border-color:#0000;min-width:44px;min-height:44px;padding:0;position:relative}.admin-dot{position:absolute;inset-block-start:8px;inset-inline-end:7px}.header-actions .student-visit-button{white-space:nowrap;gap:5px;min-height:44px;padding:4px 8px;font-size:13px}.main-content{gap:8px;min-height:calc(100dvh - 68px);padding:6px 0 0}.resource-bar{flex-wrap:wrap;gap:8px}.resource-nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;width:100%;display:grid}.resource-card{justify-content:center;gap:5px;min-width:0;min-height:44px;padding:4px}.resource-card.selected{padding:3px}.resource-card strong{white-space:nowrap;font-size:12px;line-height:1.4}.resource-card[data-resource=dance] strong{white-space:normal}.resource-card svg{width:17px}.range-button{min-height:36px;padding:5px 10px;font-size:13px}.calendar-panel{flex:none;min-height:0}.calendar-toolbar{flex-wrap:wrap;gap:8px;padding:8px}.date-controls{gap:7px;width:100%}.date-title{flex:1;font-size:15px}.nav-arrows .icon-button{min-width:31px;min-height:40px}.view-controls{gap:10px;width:100%}.segmented{flex:1}.segmented button{flex:1;min-height:35px}.date-picker{width:42px;height:42px}.board-meta{padding:0 8px 8px}.search-field{flex:1;width:auto;min-width:0}.search-field input{min-width:0;font-size:16px}.search-field>svg{width:16px}.board-scroll{flex:none;max-height:calc(100dvh - 130px)}.calendar-grid{grid-template-columns:74px repeat(var(--columns), minmax(138px, 1fr));--calendar-row-height:55px;min-width:902px;height:max(490px,100dvh - 320px)}.single-day .calendar-grid{grid-template-columns:78px minmax(0,1fr);min-width:0}.grid-day strong{font-size:14px}.time-cell span{font-size:10px}.empty-slot{min-height:44px}.modal,.modal.wide{border-radius:14px 14px 0 0;width:100%;max-width:100%;max-height:94dvh;margin:auto 0 0}.modal-top{padding:18px}.modal-top h2{font-size:21px}.modal-body{padding:20px 18px max(24px, env(safe-area-inset-bottom))}input,select,textarea{min-height:46px;font-size:16px}.modal-footer .button{min-height:46px}.admin-topline,.admin-footer{flex-wrap:wrap;padding:12px 16px}.admin-tabs{padding:0 8px}.admin-tabs button{padding:12px 10px;font-size:13px}.admin-content{padding:20px 16px}.admin-split{grid-template-columns:1fr;gap:26px}.history-title{flex-wrap:wrap}.history-item{flex-wrap:wrap;gap:7px}.import-controls{flex-direction:column;align-items:stretch}.import-summary{flex-direction:column}.toast{bottom:max(14px, env(safe-area-inset-bottom));font-size:13px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}@media (width>=651px) and (height<=760px){.site-header{height:54px;min-height:54px}.school-logo{width:96px;height:46px}.main-content{gap:8px;padding:8px 0 0}.resource-card{min-height:40px;padding-block:7px}.resource-card.selected{padding-block:6px}.range-button{min-height:40px;padding-block:7px}.calendar-toolbar{padding:2px 10px}.board-meta{padding:0 10px 4px}.search-field input{min-height:30px}.search-field .icon-button{min-height:30px;padding:4px}.calendar-grid{--calendar-header-height:42px;--calendar-row-height:44px}.empty-slot{min-height:32px}}.date-caption{flex-wrap:wrap;align-items:baseline;gap:3px 10px;min-width:0;display:flex}.relative-date{color:var(--muted);white-space:nowrap;font-size:13px;font-weight:600}.blocked{flex-direction:column;gap:2px;overflow:hidden}.blocked>span{max-height:none;font-size:12px}.elapsed-time{color:var(--muted)}.editing-cell{background:var(--surface);min-height:min-content;box-shadow:inset 0 0 0 2px var(--focus);z-index:1;padding:5px;overflow:visible}.cell-editor{flex-direction:column;align-self:flex-start;gap:8px;width:100%;min-width:0;padding:3px;display:flex}.cell-input-row{position:relative}.cell-input-row input{min-height:40px;padding:7px 6px 7px 26px;font-size:14px}.cell-dismiss{min-width:24px;min-height:32px;padding:3px;position:absolute;top:3px;left:1px}.cell-checkbox{cursor:pointer;flex-direction:row;align-items:flex-start;gap:6px;font-size:12px;font-weight:500;line-height:1.4;display:flex}.cell-checkbox input{width:18px;height:18px;min-height:18px}.cell-status{color:var(--muted);font-size:12px}.cell-confirm{color:var(--amber);background:var(--amber-surface);border:1px solid var(--amber);overflow-wrap:anywhere;border-radius:6px;padding:7px;font-size:12px;line-height:1.5}.cell-confirm ul{margin:3px 0;padding:0;font-weight:700;list-style:none}.cell-confirm-actions{flex-wrap:wrap;align-items:center;gap:5px;margin-top:7px;display:flex}.inline-approve,.inline-cancel{border-radius:5px;min-height:34px;padding:5px 7px;font-size:12px;font-weight:600}.inline-approve{color:var(--on-primary);background:var(--teal);border:1px solid var(--teal)}.inline-cancel{color:var(--foreground);background:var(--surface);border:1px solid var(--border)}.cell-error{color:var(--danger);background:var(--danger-surface);border:1px solid var(--danger);overflow-wrap:anywhere;border-radius:5px;padding:6px;font-size:12px}@media (width<=650px){.calendar-toolbar{flex-wrap:nowrap;gap:4px;padding:6px}.date-controls{flex:1;gap:3px;width:auto;min-width:0}.date-caption{flex-direction:column;flex:1;align-items:flex-start;gap:0;overflow:hidden}.date-title{white-space:nowrap;text-overflow:ellipsis;width:100%;font-size:14px;overflow:hidden}.relative-date{font-size:12px}.date-controls>.today-button{display:none}.nav-arrows{border:0;flex-shrink:0}.nav-arrows .icon-button{min-width:26px;min-height:40px;padding:2px}.view-controls{flex-shrink:0;gap:3px;width:auto}.segmented{flex:none;padding:2px}.segmented button{flex:none;min-width:30px;min-height:34px;padding:4px 6px;font-size:12px}.date-picker{width:26px;height:40px}.board-meta{gap:7px}.mobile-today{min-height:36px;padding:4px 6px;font-size:12px}.calendar-grid{height:max(490px,100dvh - 240px)}.cell-input-row input{min-height:44px;font-size:16px}.cell-checkbox{font-size:13px}.cell-checkbox input{width:21px;height:21px;min-height:21px}.inline-approve,.inline-cancel{min-height:42px;font-size:13px}}@media (width<=360px){.header-actions .student-visit-button svg{display:none}}.editing-cell{min-height:0;padding:3px;position:relative;overflow:hidden}.cell-editor{z-index:60;background:var(--surface);border:2px solid var(--focus);border-radius:7px;max-height:calc(100dvh - 16px);margin:0;padding:8px;position:fixed;overflow:auto;box-shadow:0 6px 20px #0004}.closed-day-notice{background:var(--subtle);color:var(--muted);border-top:1px solid var(--border);align-items:center;gap:10px;padding:8px 12px;font-size:14px;display:flex}.closed-day-notice strong{font-weight:700}.grid-day.is-closed{background:var(--background);box-shadow:none;color:var(--muted)}.grid-day.is-closed strong{color:inherit}.closed-day-label{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:11px;font-weight:500;line-height:1.2;display:block;overflow:hidden}
