:root { color-scheme:dark; --canvas:#1c2521; --card:#27322c; --ink:#edf3e9; --muted:#b1c3b5; --line:#435447; --navy:#8fe0b5; --green:#8fe0b5; --green-soft:#304638; --red:#f4a49e; --red-soft:#48302f; --amber:#edca85; --amber-soft:#3e392a; --shadow:none; }
body { font-family:"Segoe UI", "Nirmala UI", Arial, sans-serif; font-size:14px; letter-spacing:0; }
button,input,select,textarea { font:inherit; letter-spacing:0; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
[hidden] { display:none!important; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible { outline:2px solid #8fe0b5; outline-offset:2px; }
button:disabled { opacity:.5; cursor:default; }
svg.lucide { width:17px; height:17px; flex:0 0 17px; stroke-width:1.8; }
h1 { font-size:21px; font-weight:650; }
h2 { font-size:15px; font-weight:650; }
h3 { font-size:14px; font-weight:650; margin:16px 0 8px; }
.phone-shell { width:100%; max-width:none; grid-template-columns:218px minmax(0,1fr); }
.left-nav { width:auto; padding:14px 10px; display:flex; flex-direction:column; background:#27322c; z-index:30; }
.nav-brand { padding:8px 4px 20px; gap:8px; align-items:flex-start; }
.brand-row { flex-wrap:wrap; gap:4px; }
.brand-row strong { font-size:15px; font-weight:650; line-height:1.3; }
.brand-row span { padding:1px 5px; border-radius:3px; font-size:10px; font-weight:500; }
.brand-lockup small { font-size:11px; display:block; margin-top:5px; overflow-wrap:anywhere; }
.emblem { width:32px; height:32px; flex:0 0 32px; border-radius:6px; background:#8fe0b5; color:white; box-shadow:none; font-size:12px; font-weight:650; }
.side-menu { gap:4px; }
.side-item { min-height:40px; padding:8px 10px; gap:10px; font-size:13px; font-weight:550; border-radius:5px; }
.side-item span { width:auto; text-align:left; }
.side-item.active { background:#304638; color:#8fe0b5; box-shadow:inset 3px 0 #8fe0b5; }
.side-item:hover { background:#354d3d; color:#8fe0b5; }
.nav-foot { margin-top:auto; padding:18px 10px 0; font-size:11px; color:var(--muted); }
.app-header { min-height:56px; padding:10px 24px; backdrop-filter:none; background:#27322c; gap:8px; position:sticky; }
#sessionIdentity { font-size:12px; color:var(--muted); text-transform:capitalize; overflow-wrap:anywhere; }
.content { min-width:0; width:100%; padding:22px 24px 32px; }
.view.active { display:block; }
.view > * + * { margin-top:14px; }
.title-row { margin-bottom:18px; flex-wrap:wrap; align-items:flex-start; }
.title-row span { font-size:12px; }
.toolbar-actions,.row-actions,.header-actions { display:flex; gap:7px; align-items:center; flex-wrap:wrap; }
.dark-button,.soft-button,.success-button { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:34px; padding:7px 12px; border-radius:5px; font-size:12px; font-weight:600; text-decoration:none; border:1px solid transparent; line-height:1.3; }
.dark-button,.success-button { background:#8fe0b5; color:#27322c; }
.soft-button { border-color:var(--line); background:#27322c; color:var(--ink); }
.icon-button { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; min-width:32px; padding:6px; background:#27322c; color:#b1c3b5; border:1px solid var(--line); border-radius:5px; text-decoration:none; font-weight:500; }
.icon-button:hover,.soft-button:hover { background:#354d3d; }
.name-link,.link-button { color:#8fe0b5; font-size:13px; font-weight:600; text-align:left; background:none; border:0; padding:0; }
.name-link:hover,.link-button:hover { text-decoration:underline; }
.badge { font-size:11px; border-radius:4px; padding:2px 6px; font-weight:500; }
.tabs { display:flex; gap:18px; border-bottom:1px solid var(--line); padding:0; background:none; border-radius:0; overflow:auto; }
.tab { flex:none; min-height:37px; padding:9px 2px; font-size:12px; font-weight:600; border:0; border-bottom:2px solid transparent; color:var(--muted); border-radius:0; background:transparent; white-space:nowrap; }
.tab.active { background:transparent; color:#8fe0b5; border-bottom-color:#8fe0b5; box-shadow:none; }
.filter-bar { display:flex; flex-wrap:wrap; align-items:end; gap:10px; padding:10px 0; }
label { display:flex; flex-direction:column; gap:5px; font-size:12px; font-weight:500; color:#b1c3b5; min-width:0; }
input,select,textarea { border:1px solid #435447; background:#27322c; color:var(--ink); border-radius:5px; padding:7px 9px; min-height:34px; max-width:100%; min-width:0; }
input[readonly] { background:#2d382e; color:var(--muted); }
.filter-bar select { min-width:118px; }
.filter-search { flex:1; min-width:175px; max-width:340px; }
.check-label { display:flex; flex-direction:row; align-items:center; gap:8px; }
input[type=checkbox] { width:15px; height:15px; min-height:0; flex:0 0 15px; accent-color:#8fe0b5; padding:0; }
.metrics-band { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); background:#27322c; border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin:14px 0 20px; }
.metric-item { display:flex; flex-direction:column; align-items:flex-start; text-align:left; gap:6px; background:transparent; border:0; border-right:1px solid var(--line); padding:14px 18px; min-width:0; }
.metric-item:last-child { border-right:0; }
.metric-item span { font-size:12px; color:var(--muted); font-weight:500; }
.metric-item strong { font-size:23px; font-weight:650; line-height:1.3; overflow-wrap:anywhere; color:var(--ink); }
.metric-item.green strong,.paid-text { color:#8fe0b5; }
.metric-item.red strong { color:#f4a49e; }
.metric-item.amber strong,.due-text { color:#edca85; }
button.metric-item:hover { background:#354d3d; }
.attention-row { display:flex; gap:20px; margin:6px 0 14px; }
.attention-row .metric-item { padding:8px 0; flex-direction:row; align-items:center; gap:12px; border:0; }
.attention-row .metric-item strong { font-size:20px; }
.dashboard-heading,.section-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:18px; }
.dashboard-bottom { margin-top:24px; }
.register-tools { display:flex; justify-content:space-between; gap:10px; align-items:center; padding:8px 0; color:var(--muted); font-size:11px; }
.table-wrap { width:100%; min-width:0; overflow:auto; max-height:65vh; border:1px solid var(--line); border-radius:5px; background:#27322c; margin:0; }
.data-table { width:100%; border-collapse:separate; border-spacing:0; font-size:13px; min-width:640px; }
.data-table th,.data-table td { padding:8px 12px; height:40px; border-bottom:1px solid #435447; vertical-align:middle; font-weight:400; text-align:left; background:#27322c; white-space:nowrap; }
.data-table th { background:#334737; font-size:11px; font-weight:600; color:#b1c3b5; text-transform:none; }
.data-table thead th { position:sticky; top:0; z-index:4; }
.data-table thead th button { display:inline-flex; gap:5px; align-items:center; padding:0; background:none; border:0; color:inherit; font-size:11px; font-weight:600; }
.data-table thead th svg { width:12px; height:12px; flex-basis:12px; }
.data-table tr:last-child td { border-bottom:0; }
.data-table tbody tr:hover td,.data-table tbody tr:hover th { background:#354d3d; }
.data-table .frozen-name,.history-table tbody th:first-child,.history-table thead th:first-child { position:sticky; left:0; z-index:2; min-width:165px; max-width:230px; white-space:normal; box-shadow:1px 0 var(--line); }
.data-table .frozen-actions,.history-table td:last-child,.history-table thead th:last-child { position:sticky; right:0; z-index:2; box-shadow:-1px 0 var(--line); min-width:88px; }
.data-table thead .frozen-name,.data-table thead .frozen-actions,.history-table thead th:first-child,.history-table thead th:last-child { z-index:6; top:0; }
.data-table .numeric { text-align:right; font-variant-numeric:tabular-nums; }
.row-secondary { display:block; color:var(--muted); font-size:10px; margin-top:2px; }
.row-actions { flex-wrap:nowrap; gap:4px; }
.row-actions .icon-button { width:28px; min-width:28px; height:28px; border-color:transparent; background:transparent; }
.empty-row { padding:30px!important; text-align:center!important; color:var(--muted); }
.pagination { display:flex; gap:10px; justify-content:flex-end; align-items:center; padding:10px 0; color:var(--muted); font-size:11px; flex-wrap:wrap; }
.pagination label { flex-direction:row; align-items:center; font-size:11px; }
.pagination select { min-height:28px; padding:3px 5px; }
.column-menu { position:relative; }
.column-menu summary { display:flex; align-items:center; cursor:pointer; gap:5px; font-size:11px; }
.column-menu > div { position:absolute; right:0; top:28px; background:#27322c; border:1px solid var(--line); border-radius:5px; box-shadow:0 6px 18px #253c2020; padding:10px; min-width:175px; z-index:15; }
.column-menu label { flex-direction:row; align-items:center; padding:6px; }
.summary-strip { display:flex; gap:0; flex-wrap:wrap; background:#27322c; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.summary-tile { flex:1; min-width:100px; padding:10px 16px; border:0; border-right:1px solid var(--line); border-radius:0; box-shadow:none; }
.summary-tile span { font-size:11px; }
.summary-tile strong { font-size:19px; font-weight:650; }
.attendance-draftbar { font-size:12px; padding:6px 0; }
.attendance-history { padding:0; border:0; box-shadow:none; background:none; }
.attendance-history .section-head { margin:0 0 10px; flex-wrap:wrap; }
.attendance-tools { display:flex; align-items:end; gap:8px; flex-wrap:wrap; }
.attendance-legend { display:flex; align-items:center; gap:7px; flex-wrap:wrap; font-size:11px; color:var(--muted); }
.status-dot { width:23px; height:23px; font-size:11px; border-radius:4px; display:inline-grid; place-items:center; }
.status-dot.present,.attendance-mark.present { background:#304638; color:#8fe0b5; }
.status-dot.absent,.attendance-mark.absent { background:#48302f; color:#f4a49e; }
.status-dot.holiday { background:#3e392a; color:#edca85; }
.attendance-mark { width:47px; min-width:47px; padding:3px 4px; min-height:28px; height:28px; font-size:12px; border-radius:4px; }
.attendance-mark.dirty { outline:2px solid #c5a363; outline-offset:1px; }
body[data-saving=true] .attendance-mark,body[data-saving=true] .column-present,body[data-saving=true] .column-save { pointer-events:none; opacity:.5; }
.history-table { min-width:1100px; }
.history-table th,.history-table td { padding:7px; text-align:center; }
.history-table th:first-child,.history-table td:nth-child(2) { text-align:left; }
.column-save,.column-present { display:block; width:58px; min-height:24px; padding:3px 4px; margin:4px auto 0; font-size:10px; border-radius:3px; font-weight:600; }
.column-present { border:1px solid #435447; background:var(--card); color:#8fe0b5; }
.column-save { background:#8fe0b5; color:#27322c; border:0; }
.column-save:disabled { color:#b1c3b5; background:#304638; opacity:1; }
.column-holiday,.column-date { font-size:11px; }
.history-note { margin:10px 0 0; font-size:11px; }
dialog { padding:0; border:1px solid var(--line); border-radius:8px; box-shadow:0 16px 60px #162a2330; max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); color:var(--ink); background:#27322c; }
dialog::backdrop { background:rgba(28,43,35,.28); backdrop-filter:none; }
.dialog-header { padding:16px 20px; border-bottom:1px solid var(--line); position:sticky; top:0; background:#27322c; z-index:10; }
.dialog-header h2 { font-size:17px; }
#personDialog { width:min(720px,calc(100vw - 24px)); max-height:100dvh; height:100dvh; margin:0 0 0 auto; border-radius:0; border-top:0; border-bottom:0; border-right:0; }
#personDialogBody { padding:0; }
#personDialogBody>.tabs { padding:0 20px; margin:0; }
.profile-content { padding:18px 20px; }
.profile-fields { display:grid; grid-template-columns:1fr 1fr; gap:0 24px; margin:0 0 18px; }
.profile-fields>div { border-bottom:1px solid #435447; padding:11px 0; min-width:0; }
.profile-fields dt { font-size:11px; color:var(--muted); }
.profile-fields dd { margin:3px 0 0; font-size:13px; overflow-wrap:anywhere; }
.profile-content .metric-item { padding:10px; }
.profile-content .metric-item strong { font-size:19px; }
#personForm,#workBody { padding:18px 20px; }
#workDialog,#personEditor { width:650px; }
fieldset { border:0; padding:0; margin:0 0 18px; min-width:0; }
legend { padding:0; margin-bottom:12px; font-weight:650; font-size:13px; }
.editor-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.full-field { grid-column:1/-1; }
.editor-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:20px; padding-top:14px; border-top:1px solid var(--line); }
.settings-form { max-width:680px; }
.settings-form button[type=submit] { margin-top:18px; }
.settings-form h2 { margin-bottom:16px; }
.segmented { display:inline-flex; border:1px solid var(--line); border-radius:5px; overflow:hidden; }
.segmented button { padding:8px 16px; border:0; background:var(--card); font-size:12px; }
.segmented [aria-pressed=true] { background:#304638; color:#8fe0b5; }
.class-checkboxes { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.class-checkboxes label { flex-direction:row; align-items:center; }
.document-list { display:grid; gap:8px; margin-top:16px; }
.document-list a { display:flex; align-items:center; gap:8px; padding:12px 0; border-bottom:1px solid var(--line); color:#8fe0b5; overflow-wrap:anywhere; }
.document-list a span { margin-left:auto; white-space:nowrap; }
#authDialog { width:440px; padding:28px; }
#authDialog h1 { margin:24px 0 18px; }
.auth-brand { display:flex; align-items:center; gap:10px; }
#authFields { display:grid; gap:14px; }
#authSubmit { width:100%; }
#authFields .check-label { font-size:12px; }
#authFields .muted { font-size:11px; margin:0; }
#authError { font-size:12px; margin-top:14px; }
.form-error { color:#f4a49e; font-size:12px; overflow-wrap:anywhere; }
.record-status { position:fixed; bottom:12px; left:auto; right:18px; max-width:min(520px,calc(100vw - 30px)); padding:11px 16px; border:1px solid #739b78; border-radius:5px; background:#304638; color:#8fe0b5; z-index:100; font-size:12px; box-shadow:0 3px 15px #18342212; pointer-events:none; }
.record-status.error { background:#48302f; border-color:#d09a95; color:#f4a49e; }
.calendar-day { border-radius:5px; min-height:66px; padding:8px; }
.calendar-day strong { font-size:16px; }
.calendar-day.present { background:#304638; color:#8fe0b5; }
.calendar-day.absent { background:#48302f; color:#f4a49e; }
.calendar-day.holiday { background:#3e392a; color:#edca85; }
.calendar-holiday-label { font-size:10px; }
.attendance-calendar { gap:6px; }
.calendar-weekdays { font-size:11px; }
body[data-density=comfortable] .data-table td,body[data-density=comfortable] .data-table th { padding-top:13px; padding-bottom:13px; height:50px; font-size:13px; }
body[data-density=comfortable] .attendance-mark { height:34px; }
#printArea { display:none; }
/* Attendance keeps distinct identity, date and status columns within the shared theme. */
#attendance .title-row h1 { color:#8fe0b5; }
#attendance .filter-bar { border-bottom:1px solid #435447; }
#attendance .filter-bar label { color:#b1c3b5; }
#attendance .filter-bar input:focus,#attendance .filter-bar select:focus { border-color:#739b78; }
#attendanceSummary { border-color:#435447; }
#attendanceSummary .summary-tile { border-top:3px solid #739b78; background:#2d3c30; }
#attendanceSummary .summary-tile strong { color:#8fe0b5; }
#attendanceSummary .summary-tile.green { border-top-color:#739b78; background:#304638; }
#attendanceSummary .summary-tile.green strong { color:#8fe0b5; }
#attendanceSummary .summary-tile.red { border-top-color:#d09a95; background:#48302f; }
#attendanceSummary .summary-tile.red strong { color:#f4a49e; }
#attendanceSummary .summary-tile:last-child { border-top-color:#c5a363; background:#3e392a; }
#attendanceSummary .summary-tile:last-child strong { color:#edca85; }
#attendance .history-table th,#attendance .history-table td { border-right:1px solid #435447; border-bottom-color:#435447; }
#attendance .history-table thead th { background:#334737; color:#8fe0b5; border-bottom:2px solid #435447; }
#attendance .history-table thead th:first-child { background:#334737; color:#8fe0b5; }
#attendance .history-table tbody th:first-child { background:#2d3c30; border-right:2px solid #435447; }
#attendance .history-table tbody th:first-child .name-link { color:#8fe0b5; font-weight:650; line-height:1.45; }
#attendance .history-table tbody td:nth-child(2) { color:#dce8d4; background:#2d382e; font-weight:600; }
#attendance .history-table tbody tr:nth-child(even) td:nth-child(n+3):not(:last-child) { background:#2d382e; }
#attendance .history-table tbody tr:nth-child(even) th:first-child { background:#2d3c30; }
#attendance .history-table tbody tr:hover td,#attendance .history-table tbody tr:hover th:first-child { background:#354d3d; }
#attendance .history-table thead th:nth-last-child(2) { background:#334737; border-top:3px solid #739b78; }
#attendance .history-table tbody td:nth-last-child(2) { border-left:1px solid #739b78; border-right:1px solid #739b78; }
#attendance .history-table thead th:last-child { background:#334737; color:#8fe0b5; }
#attendance .history-table tbody td:last-child { background:#2d3c30; }
#attendance .history-table tbody td:last-child .name-link { color:#8fe0b5; }
#attendance .column-date { display:block; font-size:12px; font-weight:650; }
#attendance .column-present { background:#27322c; border-color:#435447; color:#8fe0b5; }
#attendance .column-present:hover { background:#354d3d; border-color:#739b78; }
#attendance .column-save:disabled { background:#304638; color:#dce8d4; }
#attendance .attendance-mark { font-weight:650; border-width:1px; }
#attendance .attendance-mark.present,#attendance .status-dot.present { background:#304638; color:#8fe0b5; border-color:#739b78; }
#attendance .attendance-mark.absent,#attendance .status-dot.absent { background:#48302f; color:#f4a49e; border-color:#d09a95; }
#attendance .attendance-mark.unmarked { background:#2d382e; color:#b1c3b5; border-color:#435447; }
#attendance .status-dot.holiday { background:#3e392a; color:#edca85; border:1px solid #c5a363; font-weight:650; }
#attendance .attendance-mark.dirty { outline-color:#c5a363; }
#attendance .attendance-legend { color:#b1c3b5; }
#attendance .history-table td:last-child { border-right:0; }
/* Night Evergreen: shared navigation, financial hierarchy and accessible controls. */
.phone-shell { grid-template-columns:256px minmax(0,1fr); }
.left-nav { background:#131d17; padding:22px 14px; }
.nav-brand { gap:12px; padding:4px 2px 22px; }
.nav-brand>div:last-child { min-width:0; }
.brand-row { align-items:flex-start; }
.brand-row strong { font-size:22px; color:#f1f7ed; overflow-wrap:anywhere; line-height:1.25; }
.brand-row span { display:block; flex-basis:100%; padding:0; margin-top:8px; color:var(--muted); font-size:11px; }
.brand-lockup small { color:var(--muted); }
.emblem { background:#9bdeb6; color:#163626; width:38px; height:40px; flex-basis:38px; font-size:13px; }
.side-item { color:#b8c9bf; font-size:14px; min-height:44px; }
.side-item.active { background:#304638; color:var(--ink); box-shadow:inset 3px 0 var(--green); }
.header-identity { min-width:0; }
#headerSchoolName { display:block; font-size:18px; font-weight:650; overflow-wrap:anywhere; line-height:1.25; margin-bottom:3px; }
.app-header { min-height:68px; }
h1 { font-size:23px; line-height:1.25; overflow-wrap:anywhere; }
.dark-button,.success-button,.column-save { background:#a7dfb7; color:#173824; }
.dark-button:hover,.success-button:hover,.column-save:not(:disabled):hover { background:#bceccb; }
.icon-button,.soft-button,.segmented button { color:var(--ink); }
.segmented [aria-pressed=true] { background:var(--green-soft); color:var(--green); }
input::placeholder,textarea::placeholder { color:#a3b4a8; opacity:1; }
input:focus-visible,textarea:focus-visible,select:focus-visible { outline:2px solid var(--green); outline-offset:2px; }
.metrics-band { background:#29372d; border-top:2px solid #739b78; }
.metrics-band .metric-item.amber { background:#344330; }
.metric-item strong { font-size:25px; }
.attention-row .metric-item { background:transparent; }
.table-wrap { border-color:#536650; }
.data-table tbody tr:nth-child(even) td { background:#2d382e; }
.data-table tbody .frozen-name { background:#2d3c30; }
.data-table th { color:#dce8d4; }
.name-link { color:#e4efdf; }
.data-table tbody tr:hover td,.data-table tbody tr:hover th { background:#354d3d; }
.column-menu>div,dialog { box-shadow:0 16px 48px #0006; }
dialog::backdrop { background:rgba(5,12,8,.65); }
.profile-fields>div { border-color:var(--line); }
.calendar-day.today { border-color:var(--green); box-shadow:inset 0 0 0 1px var(--green); }
.calendar-day.future { color:var(--muted); background:var(--canvas); }
.status-dot.unmarked { background:var(--canvas); color:var(--muted); border:1px solid var(--line); }
#attendance .history-table thead th:first-child,#attendance .history-table tbody th:first-child .name-link { color:#e4efdf; }
#attendance .history-table thead th { color:#dce8d4; }
#attendance .history-table thead th:nth-last-child(2) { border-top-color:var(--green); }
#attendance .column-save:disabled { background:#304638; color:#a6b9ad; }
@media(min-width:1600px) { .content { padding-left:32px; padding-right:32px; } }
@media(max-width:1000px) { .phone-shell { grid-template-columns:180px minmax(0,1fr); } .content { padding:18px 16px; } .brand-row strong { font-size:13px; } .side-item { font-size:12px; gap:7px; padding:8px; } .app-header { padding:10px 16px; } .metrics-band { grid-template-columns:repeat(2,minmax(0,1fr)); } .metric-item:nth-child(2) { border-right:0; } }
@media(max-width:640px) { .phone-shell { grid-template-columns:64px minmax(0,1fr); } .left-nav { display:flex; width:64px; padding:10px 5px; } .nav-brand { padding:0 8px 16px; border-bottom:1px solid var(--line); } .nav-brand>div:last-child,.nav-foot { display:none; } .side-item { justify-content:center; flex-direction:column; min-height:57px; padding:7px 2px; gap:3px; font-size:8px; text-align:center; } .side-item span { text-align:center; white-space:normal; line-height:1.2; } .side-item svg { width:18px; height:18px; } .side-menu { display:grid; gap:5px; } .app-header { padding:9px 10px; min-height:53px; } #sessionIdentity { font-size:10px; max-width:95px; } .header-actions { gap:4px; flex-wrap:nowrap; } #quickAdd { font-size:10px; padding:5px 7px; min-height:30px; } #quickAdd svg { display:none; } .content { padding:16px 10px; } h1 { font-size:18px; } .title-row { gap:10px; } .filter-bar { gap:8px; } .filter-bar>label { flex:1; min-width:100px; } .filter-bar select { width:100%; min-width:0; } .filter-search { max-width:none; flex-basis:100%!important; } .metric-item { padding:10px; } .metric-item strong { font-size:18px; } .metric-item span { font-size:10px; } .attention-row { gap:12px; } .attention-row .metric-item { gap:8px; } .attention-row .metric-item strong { font-size:18px; } .data-table .frozen-name,.history-table th:first-child { min-width:120px; max-width:130px; } .data-table .frozen-actions,.history-table td:last-child,.history-table thead th:last-child { position:static; min-width:70px; } .summary-tile { min-width:80px; padding:9px; } .summary-tile strong { font-size:17px; } .attendance-draftbar { flex-wrap:wrap; gap:8px; } .profile-fields,.editor-grid { grid-template-columns:1fr; } .class-checkboxes { grid-template-columns:repeat(3,1fr); } #personDialog { width:calc(100vw - 12px); max-width:calc(100vw - 12px); } .profile-content,#personForm,#workBody { padding:14px; } .profile-content .metrics-band { grid-template-columns:repeat(3,minmax(0,1fr)); } .profile-content .metric-item { padding:8px; } .profile-content .metric-item strong { font-size:15px; } .calendar-day { min-height:51px; padding:5px; } .calendar-day strong { font-size:13px; } .attendance-calendar { gap:3px; } .calendar-holiday-label { display:none; } .column-menu>div { right:-70px; } }
@media print { body { background:var(--card); font:11px Arial,sans-serif; } body>* { display:none!important; } body>#printArea { display:block!important; } #printArea h1 { font-size:20px; } #printArea h2 { font-size:15px; margin-bottom:14px; } #printArea table { width:100%; border-collapse:collapse; } #printArea th,#printArea td { border:1px solid #ccc; padding:6px; text-align:left; overflow-wrap:anywhere; } #printArea thead { display:table-header-group; } #printArea tr { break-inside:avoid; } @page { margin:12mm; size:landscape; } }
@media (min-width:641px) and (max-width:1000px) { .phone-shell { grid-template-columns:226px minmax(0,1fr); } .brand-row strong { font-size:22px; } }
@media (max-width:640px) {
  .emblem { width:32px; height:34px; flex-basis:32px; }
  #headerSchoolName { font-size:18px; }
  #sessionIdentity { max-width:none; }
  .app-header { flex-wrap:wrap; gap:8px; }
  .header-identity { flex:1 1 100%; }
  .header-actions { margin-left:auto; }
  .attention-row { flex-wrap:wrap; }
  .calendar-month-nav { gap:6px; }
}
@media print {
  :root { color-scheme:light; --card:#fff; --canvas:#fff; --ink:#111; --muted:#444; --green:#145638; --red:#942626; --amber:#765116; --line:#bbb; }
  body,#printArea { background:#fff!important; color:#111!important; }
  #printArea * { color:#111!important; background:transparent!important; box-shadow:none!important; }
}
