:root {
    color-scheme: light;
    --navy-950: #071a2f;
    --navy-900: #0b2545;
    --navy-700: #173e69;
    --emerald-700: #087052;
    --emerald-600: #098461;
    --emerald-100: #dff5ec;
    --gold-500: #d8a536;
    --gold-100: #fff2ce;
    --sky-600: #2388c9;
    --sky-100: #e2f3fd;
    --grey-50: #f4f7fa;
    --grey-100: #eaf0f4;
    --white: #fff;
    --ink: #14263d;
    --muted: #65758b;
    --paper: var(--grey-50);
    --surface: var(--white);
    --forest: var(--emerald-600);
    --forest-dark: var(--emerald-700);
    --mint: var(--emerald-100);
    --gold: var(--gold-500);
    --line: #dce4eb;
    --shadow: 0 18px 48px rgba(7, 26, 47, .10);
    --sidebar-width: 276px;
    --topbar-height: 66px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* Phase 27 command-centre shell and reusable UI primitives */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.command-body { background: var(--grey-50); }
.command-body .command-sidebar {
    position: fixed; z-index: 50; inset: 0 auto 0 0; width: var(--sidebar-width); margin: 0;
    padding: 24px 18px; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
    color: #eaf3fb; background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); overflow-y: auto;
    border-right: 3px solid var(--gold-500);
}
.command-body .command-sidebar::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--emerald-600) 0 62%, var(--gold-500) 62%); }
.command-body .brand { color: white; margin-bottom: 28px; }
.command-body .brand-mark { width: 54px; flex: 0 0 54px; border-radius: 16px; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.command-body .brand strong { font-size: 1.08rem; letter-spacing: .01em; }
.command-body .brand small { color: #aac0d5; }
.command-body .admin-navigation { width: 100%; display: grid; gap: 6px; margin: 0; }
.command-body .admin-navigation a { position: relative; display: flex; min-height: 44px; align-items: center; padding: 10px 14px 10px 42px; border: 0; border-radius: 11px; color: #c8d8e8; background: transparent; font-weight: 650; text-align: left; }
.command-body .admin-navigation a::before { content: ""; position: absolute; left: 15px; width: 13px; height: 13px; border: 1.8px solid currentColor; border-radius: 4px; box-shadow: inset 5px 0 0 transparent; }
.command-body .admin-navigation a:hover { color: white; background: rgba(255,255,255,.08); }
.command-body .admin-navigation a.current { color: white; background: rgba(9,132,97,.28); box-shadow: inset 3px 0 var(--gold-500); }
.command-body .topbar-title { position: fixed; z-index: 35; top: 0; left: var(--sidebar-width); right: 0; height: var(--topbar-height); padding: 10px 240px 10px 30px; display: flex; flex-direction: column; justify-content: center; color: var(--navy-900); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.topbar-title span { color: var(--emerald-700); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.topbar-title strong { font-size: .98rem; }
.command-body .account-actions { position: fixed; z-index: 40; top: 10px; right: 24px; margin: 0; }
.command-body .account-actions span { display: flex; flex-direction: column; align-items: flex-end; color: var(--ink); }
.command-body .account-actions small { color: var(--muted); font-size: .68rem; }
.command-body .account-actions button { color: var(--navy-900); background: var(--gold-100); border-color: #efd489; }
.command-main { width: auto; max-width: none; min-height: calc(100vh - 110px); margin: 0 0 0 var(--sidebar-width); padding: calc(var(--topbar-height) + 32px) clamp(22px, 3vw, 48px) 48px; }
.command-main > * { width: min(1260px, 100%); margin-inline: auto; }
.command-footer { width: auto; margin: 0 0 0 var(--sidebar-width); padding: 20px clamp(22px, 3vw, 48px); }
.menu-button, .nav-scrim { display: none; }

.ui-card, .command-module-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 8px 24px rgba(7,26,47,.05); }
.status-badge { display: inline-flex; align-items: center; width: fit-content; padding: 6px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.badge-gold { color: #74500a; background: var(--gold-100); }
.badge-success { color: var(--emerald-700); background: var(--emerald-100); }
.notice { padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--sky-600); border-radius: var(--radius-sm); background: white; }
.empty-state { padding: 34px; border: 1px dashed #bdcbd7; border-radius: var(--radius-md); color: var(--muted); background: rgba(255,255,255,.7); text-align: center; }

.command-dashboard { display: grid; gap: 28px; }
.portal-hero { position: relative; overflow: hidden; display: flex; align-items: end; justify-content: space-between; gap: 28px; padding: clamp(26px,4vw,44px); border-radius: var(--radius-lg); color: white; background: linear-gradient(125deg, var(--navy-950), var(--navy-700)); box-shadow: var(--shadow); }
.portal-hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -130px; border: 42px solid rgba(216,165,54,.16); border-radius: 50%; }
.portal-hero > * { position: relative; z-index: 1; }
.portal-hero .eyebrow { color: #73dfba; }
.portal-hero h1 { margin: 5px 0 8px; color: white; font-size: clamp(2rem,4vw,3.4rem); letter-spacing: -.04em; }
.portal-hero > div:first-child > p:not(.eyebrow) { max-width: 720px; margin: 0; color: #cbd9e7; line-height: 1.6; }
.portal-period { min-width: 150px; display: grid; gap: 5px; justify-items: end; }
.portal-period strong { font-size: 1.35rem; }
.portal-period > span:last-child { color: #cbd9e7; }
.portal-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.metric-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 1px 14px; align-items: center; padding: 20px; }
.metric-card .module-icon { grid-row: 1 / 3; }
.metric-card > span:not(.module-icon) { color: var(--muted); font-size: .8rem; font-weight: 700; }
.metric-card > strong { color: var(--navy-900); font-size: 1.65rem; }
.module-icon, .section-icon { display: inline-grid; flex: 0 0 auto; place-items: center; width: 44px; height: 44px; border-radius: 13px; font-size: 1.05rem; font-weight: 900; }
.module-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tint-emerald { color: var(--emerald-700); background: var(--emerald-100); }
.tint-gold { color: #8b610f; background: var(--gold-100); }
.tint-sky { color: #176d9f; background: var(--sky-100); }
.tint-navy { color: var(--navy-700); background: #e7edf5; }
.portal-module-group { padding-top: 2px; }
.module-group-heading { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.section-icon { width: 38px; height: 38px; border-radius: 11px; font-size: .72rem; }
.module-group-heading .eyebrow { margin: 0 0 2px; }
.module-group-heading h2 { margin: 0; color: var(--navy-900); font-size: 1.3rem; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.command-module-card { position: relative; min-height: 218px; padding: 22px; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.command-module-card:hover { transform: translateY(-3px); border-color: #b8c9d6; box-shadow: 0 16px 34px rgba(7,26,47,.10); }
.command-module-card h3 { margin: 17px 0 7px; color: var(--navy-900); font-size: 1.03rem; }
.command-module-card p { margin: 0 0 18px; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.command-module-card a { margin-top: auto; color: var(--emerald-700); font-size: .84rem; font-weight: 800; text-decoration: none; }
.command-module-card a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.teacher-alert-grid, .assignment-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.teacher-alert { display: grid; gap: 5px; color: inherit; border-left-color: var(--gold-500); text-decoration: none; }
.teacher-alert strong { color: var(--navy-900); }
.teacher-alert span { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.teacher-alert span:last-child { margin-top: 4px; color: var(--emerald-700); font-weight: 800; }
.assignment-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.assignment-card { display: flex; gap: 14px; align-items: center; padding: 18px; }
.assignment-card > div { min-width: 0; display: grid; gap: 3px; }
.assignment-card strong { color: var(--navy-900); font-size: 1.05rem; }
.assignment-card span, .assignment-card small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.assignment-card span { font-size: .86rem; font-weight: 700; }
.assignment-card small { font-size: .74rem; }
.class-workspace-hero { margin-bottom: 20px; }
.class-workspace-actions { margin: 24px auto; }
.class-action-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.class-action-card { display: flex; gap: 13px; align-items: center; min-height: 94px; padding: 17px; color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.class-action-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(7,26,47,.10); }
.class-action-card > span:last-child { min-width: 0; display: grid; gap: 4px; }
.class-action-card strong { color: var(--navy-900); font-size: .9rem; }
.class-action-card small { color: var(--muted); font-size: .72rem; line-height: 1.35; }
.class-learner-actions { display: flex; gap: 12px; align-items: center; }
.class-learner-actions a { color: var(--emerald-700); font-size: .78rem; font-weight: 800; }
.future-school-level { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; border: 1px dashed #d6bd76; border-radius: var(--radius-sm); background: #fffbef; }
.future-school-level > div { display: flex; align-items: center; gap: 13px; }
.future-school-level > div > span:last-child { display: grid; gap: 3px; }
.future-school-level strong { color: var(--navy-900); }
.future-school-level small { color: var(--muted); }
.ownership-groups { margin-block: 28px; }
.ownership-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.ownership-card { position: relative; display: grid; gap: 16px; padding: 22px; }
.ownership-card.selected { border-color: var(--emerald-600); box-shadow: 0 0 0 3px rgba(9,132,97,.10); }
.ownership-card-heading { display: flex; align-items: center; gap: 14px; }
.ownership-card-heading > div { display: grid; gap: 3px; }
.ownership-card-heading strong { color: var(--navy-900); font-size: 1.05rem; }
.ownership-card-heading span { color: var(--muted); font-size: .78rem; }
.ownership-card > a { color: var(--emerald-700); font-size: .84rem; font-weight: 800; }
.senior-school-preview { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px; border: 1px dashed #d6bd76; border-radius: var(--radius-sm); background: #fffbef; }
.senior-school-preview > span:first-child { display: grid; gap: 2px; }
.senior-school-preview strong { color: var(--navy-900); font-size: .84rem; }
.senior-school-preview small { color: var(--muted); font-size: .72rem; }
.senior-levels { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.senior-levels > span { padding: 3px 7px; border-radius: 999px; color: var(--navy-700); background: #e7edf5; font-size: .66rem; font-weight: 850; }
.assessment-scope-fieldset { margin: 22px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--grey-50); }
.assessment-scope-fieldset legend { padding-inline: 7px; color: var(--navy-900); font-weight: 850; }
.assessment-scope-fieldset > p { margin-top: 0; color: var(--muted); font-size: .8rem; }
.assessment-scope-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.assessment-scope-options label { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: .82rem; }
.assessment-scope-options input { width: auto; }
.assessment-paper-options label { display: grid; grid-template-columns: auto minmax(0,1fr) auto; }
.paper-maximum { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.paper-maximum input { width: 76px; padding: 6px 8px; }
.assessment-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 24px 0; padding: 0; list-style: none; }
.assessment-steps li { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 10px; color: var(--muted); background: var(--grey-50); font-size: .78rem; }
.assessment-steps strong, .assessment-step-heading > span { display: grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: white; background: var(--forest); }
.assessment-form-step { margin-top: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.assessment-step-heading { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.assessment-step-heading h3 { margin: 2px 0 4px; color: var(--navy-900); }
.assessment-step-heading p, .assessment-scope-toolbar p { margin: 0; color: var(--muted); font-size: .8rem; }
.assessment-section-picker { grid-template-columns: minmax(220px,420px); }
.assessment-scope-toolbar { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.assessment-scope-toolbar button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--forest); background: white; cursor: pointer; font: inherit; font-size: .72rem; font-weight: 800; }
.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: .72rem; }
.assessment-advanced { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.assessment-advanced summary { color: var(--forest); cursor: pointer; font-weight: 800; }
.assessment-advanced .form-grid { margin-top: 18px; }
.class-result-table { min-width: 850px; }
.class-result-table th, .class-result-table td { white-space: nowrap; text-align: center; }
.class-result-table th:nth-child(2), .class-result-table td:nth-child(2) { text-align: left; }
.class-result-table td small { display: block; color: var(--muted); font-size: .62rem; }
@media print {
    .no-print, .app-sidebar, .app-topbar, footer { display: none !important; }
    .app-shell, .app-main, main { display: block !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
    .result-sheet-title { margin: 0 0 14px; }
    .result-summary { margin-bottom: 14px; break-inside: avoid; }
    .exam-results-print { margin: 0; }
    .table-scroll { overflow: visible; }
    .class-result-table { min-width: 0; width: 100%; font-size: 8pt; }
    .class-result-table th, .class-result-table td { padding: 5px; }
}
.exam-readiness-summary { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.exam-readiness-summary span { padding: 4px 8px; border-radius: 999px; color: var(--muted); background: var(--grey-100); font-size: .7rem; font-weight: 800; }
.exam-readiness-summary .ready { color: var(--emerald-700); background: var(--emerald-100); }
.exam-readiness-summary .pending { color: #74500a; background: var(--gold-100); }
.exam-unresolved-list { margin-top: 10px; }
.exam-unresolved-list summary { color: var(--emerald-700); cursor: pointer; font-size: .78rem; font-weight: 800; }
.exam-resolution-row { display: grid; grid-template-columns: minmax(160px,1fr) 135px minmax(160px,1fr) auto; gap: 8px; align-items: center; margin-top: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.exam-resolution-row > span { display: grid; gap: 2px; }
.exam-resolution-row small { color: var(--muted); }
.exam-resolution-row select, .exam-resolution-row input { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 7px; }
.exam-resolution-row button { padding: 8px 11px; border: 0; border-radius: 7px; color: white; background: var(--emerald-600); font-weight: 800; }
.access-action-button:disabled { cursor: not-allowed; opacity: .5; }
.marks-entry-row { grid-template-columns: minmax(170px,1fr) 90px 135px minmax(150px,1fr) auto; }
.marks-entry-row > input, .marks-entry-row > select { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 8px; }
.submission-ready { border-left-color: var(--emerald-600); }
.notice > span { display: block; margin-top: 4px; color: var(--muted); font-size: .82rem; }
.form-actions button:disabled { cursor: not-allowed; opacity: .5; }
.moderation-filter { grid-template-columns: repeat(5,minmax(0,1fr)); }
.moderation-summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.moderation-summary span { padding: 9px 12px; border-radius: 9px; color: var(--muted); background: var(--grey-100); font-size: .78rem; }
.moderation-summary strong { color: var(--navy-900); }
.result-sheet { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.result-sheet-row { min-width: 850px; display: grid; grid-template-columns: 55px minmax(160px,1.4fr) 90px minmax(130px,1fr) minmax(120px,1fr) 90px 105px; gap: 10px; align-items: center; padding: 11px 13px; border-bottom: 1px solid var(--line); font-size: .8rem; }
.result-sheet-row:last-child { border-bottom: 0; }
.result-sheet-heading { color: var(--muted); background: var(--grey-50); font-size: .7rem; font-weight: 850; text-transform: uppercase; }
.score-attention { width: fit-content; padding: 4px 7px; border-radius: 7px; color: #74500a; background: var(--gold-100); font-weight: 850; }
.bulk-review-actions { display: flex; gap: 10px; align-items: end; justify-content: flex-end; margin-top: 16px; }
.bulk-review-actions label { flex: 1; max-width: 440px; }
.bulk-review-actions input { width: 100%; margin-top: 5px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.bulk-review-actions button { padding: 10px 13px; border: 0; border-radius: 8px; color: white; background: var(--emerald-600); font-weight: 800; }
.bulk-review-actions .return-action { background: #a8493f; }
.analytics-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-block: 24px; }
.analytics-panel { min-width: 0; padding: 20px; }
.chart-list { display: grid; gap: 12px; }
.chart-row, .subject-chart { display: grid; grid-template-columns: minmax(125px,1fr) minmax(120px,2fr) 58px 70px; gap: 10px; align-items: center; font-size: .76rem; }
.chart-row > span, .subject-chart strong { color: var(--navy-900); font-weight: 800; }
.chart-row small, .subject-chart span, .subject-chart small { color: var(--muted); }
.subject-chart > div { display: grid; gap: 2px; }
progress { overflow: hidden; width: 100%; height: 11px; border: 0; border-radius: 999px; background: var(--grey-100); }
progress::-webkit-progress-bar { background: var(--grey-100); border-radius: 999px; }
progress::-webkit-progress-value { background: linear-gradient(90deg,var(--sky-600),var(--emerald-600)); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--emerald-600); border-radius: 999px; }
.support-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.support-card { padding: 18px; }
.support-card > div { display: grid; gap: 2px; }
.support-card span, .support-card p { color: var(--muted); font-size: .78rem; }
.support-card label, .class-comparison-chart label { display: grid; grid-template-columns: 95px 1fr 50px; gap: 8px; align-items: center; margin-top: 8px; font-size: .74rem; }
.support-card > a { display: inline-block; margin-top: 13px; color: var(--emerald-700); font-size: .78rem; font-weight: 800; }
.submission-chart, .class-comparison-chart { display: grid; gap: 14px; }
.submission-chart article { display: grid; gap: 6px; }
.submission-chart small { color: var(--muted); font-size: .7rem; }
.stacked-bar { display: flex; overflow: hidden; min-height: 12px; border-radius: 999px; background: var(--grey-100); }
.stacked-bar span[style="flex:0"] { display: none; }
.stacked-bar .draft { background: #aab7c4; }.stacked-bar .submitted { background: var(--sky-600); }.stacked-bar .returned { background: #b65349; }.stacked-bar .official { background: var(--emerald-600); }
.class-comparison-chart { grid-template-columns: repeat(3,minmax(0,1fr)); }
.class-comparison-chart article { padding: 15px; border: 1px solid var(--line); border-radius: 10px; }
.class-comparison-chart article > span { display: block; color: var(--muted); font-size: .72rem; }

@media (max-width: 1024px) {
    .command-body .command-sidebar { transform: translateX(-102%); transition: transform .22s ease; box-shadow: 20px 0 50px rgba(0,0,0,.2); }
    .command-body.nav-open .command-sidebar { transform: translateX(0); }
    .command-body .topbar-title { left: 0; padding-left: 74px; }
    .command-main, .command-footer { margin-left: 0; }
    .menu-button { position: fixed; z-index: 45; top: 13px; left: 18px; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--navy-900); background: white; font-size: 1.2rem; }
    .nav-scrim { position: fixed; z-index: 45; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(7,26,47,.55); }
    .command-body.nav-open .nav-scrim { display: block; }
    .module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .assignment-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .class-action-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ownership-grid { grid-template-columns: 1fr; }
    .assessment-scope-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .assessment-steps { grid-template-columns: 1fr; }
    .exam-resolution-row { grid-template-columns: 1fr 1fr; }
    .marks-entry-row { grid-template-columns: 1fr 1fr; }
    .moderation-filter { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .class-comparison-chart { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
    .command-body .topbar-title { padding-right: 70px; }
    .command-body .topbar-title span, .command-body .account-actions span { display: none; }
    .command-body .account-actions { right: 12px; }
    .command-body .account-actions button { padding: 8px 10px; font-size: .74rem; }
    .command-main { padding: calc(var(--topbar-height) + 20px) 16px 34px; }
    .portal-hero { align-items: start; flex-direction: column; }
    .portal-period { justify-items: start; }
    .portal-metrics, .module-grid, .teacher-alert-grid, .assignment-grid { grid-template-columns: 1fr; }
    .class-action-grid { grid-template-columns: 1fr; }
    .class-learner-actions { align-items: flex-end; flex-direction: column; }
    .future-school-level { align-items: flex-start; flex-direction: column; }
    .assessment-scope-options { grid-template-columns: 1fr; }
    .assessment-form-step { padding: 17px; }
    .assessment-scope-toolbar { align-items: flex-start; flex-direction: column; }
    .exam-resolution-row { grid-template-columns: 1fr; }
    .marks-entry-row { grid-template-columns: 1fr; }
    .moderation-filter { grid-template-columns: 1fr; }
    .bulk-review-actions { align-items: stretch; flex-direction: column; }
    .analytics-grid, .support-grid, .class-comparison-chart { grid-template-columns: 1fr; }
    .chart-row, .subject-chart { grid-template-columns: minmax(105px,1fr) minmax(90px,1fr) 48px; }
    .chart-row small, .subject-chart small { grid-column: 1 / -1; }
    .metric-card { min-height: 92px; }
    .command-module-card { min-height: 190px; }
}

/* Phase 28 compact operations UI — shared across every authenticated workspace */
:root {
    --sidebar-width: 238px;
    --topbar-height: 58px;
    --radius-sm: 8px;
    --radius-md: 11px;
    --radius-lg: 15px;
    --shadow: 0 10px 28px rgba(7, 26, 47, .075);
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 22px;
    --space-6: 30px;
}

.command-body { font-size: 14px; line-height: 1.45; background: #f5f7f9; }
.public-body { font-size: 15px; }
.public-body .site-header { padding-block: 18px; }
.public-body .hero { min-height: auto; padding-block: clamp(48px,7vw,82px); }
.public-body .hero h1, .public-body .auth-shell h1, .public-body .dashboard-shell h1 {
    max-width: 720px; font-size: clamp(2.5rem,5.2vw,4.15rem); line-height: .98; letter-spacing: -.045em;
}
.public-body .hero > div > p, .public-body .auth-shell > div > p { font-size: 1rem; line-height: 1.55; }
.public-body .overview-card { border-radius: 18px; }
.command-body .command-sidebar {
    width: var(--sidebar-width); padding: 17px 13px 14px; border-right-width: 2px;
    box-shadow: 8px 0 28px rgba(7,26,47,.08);
}
.command-body .command-sidebar::before { height: 4px; }
.command-body .brand { gap: 10px; margin-bottom: 18px; padding: 2px 6px 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.command-body .brand-mark { width: 42px; flex-basis: 42px; border-radius: 11px; }
.command-body .brand strong { font-size: .96rem; }
.command-body .brand small { font-size: .66rem; }
.command-body .admin-navigation { gap: 12px; }
.navigation-section { display: grid; gap: 3px; }
.navigation-heading { padding: 0 10px 4px; color: #7f9ab3; font-size: .61rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.command-body .admin-navigation a { min-height: 36px; padding: 7px 10px 7px 34px; border-radius: 8px; font-size: .78rem; }
.command-body .admin-navigation a::before { left: 12px; width: 11px; height: 11px; border-width: 1.5px; border-radius: 3px; }
.sidebar-account { display: flex; gap: 8px; align-items: center; margin-top: auto; padding: 13px 5px 0; border-top: 1px solid rgba(255,255,255,.11); }
.sidebar-user { min-width: 0; display: flex; flex: 1; gap: 8px; align-items: center; }
.sidebar-user-avatar { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 8px; color: var(--navy-950); background: var(--gold-100); font-size: .72rem; font-weight: 900; }
.sidebar-user-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.sidebar-user-details { min-width: 0; display: grid; }
.sidebar-user-details strong, .sidebar-user-details small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-details strong { color: white; font-size: .72rem; }
.staff-profile-photo { width: 84px; height: 84px; margin-bottom: 10px; border: 3px solid white; border-radius: 18px; object-fit: cover; box-shadow: var(--shadow-sm); }
.staff-directory-photo { width: 42px; height: 42px; margin-right: 8px; float: left; border-radius: 12px; object-fit: cover; }
.sidebar-user-details small { color: #96aec3; font-size: .61rem; }
.sidebar-account .account-actions { position: static; margin: 0; }
.sidebar-account .account-actions button { padding: 6px 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 7px; color: #dce8f2; background: rgba(255,255,255,.07); font-size: .65rem; }

.command-main { min-height: 100vh; margin-left: var(--sidebar-width); padding: calc(var(--topbar-height) + 20px) clamp(18px,2.5vw,36px) 36px; }
.command-main > * { width: min(1400px,100%); }
.command-topbar { position: fixed; z-index: 35; inset: 0 0 auto var(--sidebar-width); height: var(--topbar-height); display: flex; align-items: center; justify-content: space-between; padding: 8px clamp(18px,2.5vw,36px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); }
.command-page-heading { display: grid; gap: 0; }
.command-eyebrow { color: var(--emerald-700); font-size: .58rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.command-page-heading h1 { margin: 0; color: var(--navy-900); font-size: 1rem; line-height: 1.25; letter-spacing: -.01em; }
.command-topbar-user span { display: grid; justify-items: end; }
.command-topbar-user strong { color: var(--ink); font-size: .72rem; }
.command-topbar-user small { color: var(--muted); font-size: .61rem; }
.command-content { width: 100%; }
.developer-footer { display: flex; flex-wrap: wrap; gap: 7px 16px; align-items: center; justify-content: center; color: var(--muted); border-top: 1px solid var(--line); font-size: .68rem; }
.command-footer.developer-footer { margin-left: var(--sidebar-width); padding: 14px clamp(18px,2.5vw,36px); background: #f5f7f9; }
.public-footer { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; }
.developer-credit strong { color: var(--navy-900); }
.developer-contacts { display: inline-flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.developer-contacts > strong { color: var(--ink); font-size: inherit; }
.developer-contacts a { color: var(--emerald-700); font-weight: 750; text-decoration: none; }
.developer-contacts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.app-store-coming-soon { display: inline-flex; gap: 7px; align-items: center; padding: 6px 10px; border: 1px solid #cbd8d1; border-radius: 9px; color: var(--navy-900); background: white; box-shadow: 0 3px 10px rgba(7,26,47,.04); }
.app-store-coming-soon svg { width: 20px; height: 20px; flex: 0 0 auto; fill: var(--emerald-700); }
.app-store-coming-soon > span { display: grid; line-height: 1.1; }
.app-store-coming-soon small { color: var(--muted); font-size: .55rem; }
.app-store-coming-soon strong { margin-top: 2px; color: var(--gold-700); font-size: .68rem; letter-spacing: .02em; text-transform: uppercase; }

.command-body h1, .command-body .directory-heading h1, .command-body .school-profile-heading h1,
.command-body .edit-profile-heading h1, .command-body .password-reset-intro h1,
.command-body .learner-profile-heading h1 { font-size: clamp(1.65rem,2.6vw,2.15rem) !important; line-height: 1.12 !important; letter-spacing: -.025em; }
.command-body h2 { font-size: clamp(1.15rem,1.8vw,1.45rem); }
.command-body h3 { font-size: 1rem; }
.directory-heading { align-items: center; padding-block: 18px 20px; }
.directory-heading > div > p:last-child { margin: 5px 0 0; color: var(--muted); }
.directory-heading > span { padding: 6px 9px; font-size: .69rem; }
.page-trail { margin-top: 1px; font-size: .69rem; }
.eyebrow { font-size: .62rem; letter-spacing: .12em; }

.command-dashboard { gap: 20px; }
.portal-hero { align-items: center; padding: 23px 26px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.portal-hero::after { display: none; }
.portal-hero h1 { margin: 3px 0 5px; font-size: clamp(1.65rem,2.7vw,2.2rem); }
.portal-hero > div:first-child > p:not(.eyebrow) { font-size: .82rem; line-height: 1.45; }
.portal-period { min-width: 120px; }
.portal-period strong { font-size: 1.08rem; }
.portal-metrics { gap: 10px; }
.metric-card { gap: 0 10px; padding: 14px 15px; }
.metric-card > strong { font-size: 1.3rem; }
.module-icon, .section-icon { width: 36px; height: 36px; border-radius: 9px; font-size: .82rem; }
.module-icon svg { width: 18px; height: 18px; }
.module-group-heading { margin-bottom: 10px; }
.module-group-heading h2 { font-size: 1.1rem; }
.section-icon { width: 32px; height: 32px; }
.module-grid { grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 11px; }
.command-module-card { min-height: 154px; padding: 16px; border-radius: var(--radius-md); }
.command-module-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.command-module-card h3 { margin: 11px 0 4px; font-size: .91rem; }
.command-module-card p { margin-bottom: 11px; font-size: .76rem; line-height: 1.4; }
.command-module-card a { font-size: .74rem; }

.ui-card, .command-module-card, .profile-panel, .user-list, .audit-list, .class-roster { border-radius: var(--radius-md); box-shadow: 0 4px 14px rgba(7,26,47,.035); }
.profile-panel { padding: 20px; }
.profile-panel h2 { margin-bottom: 16px; font-size: 1.25rem; }
.form-grid { gap: 14px; }
.form-grid label { margin-bottom: 5px; font-size: .73rem; }
.form-grid input, .form-grid select, .form-grid textarea,
.directory-search input, .directory-search select { min-height: 38px; padding: 8px 10px; border-radius: 8px; font-size: .8rem; }
textarea { padding: 9px 10px; border: 1px solid #bdc9c3; border-radius: 8px; font: inherit; }
.form-actions { gap: 9px; margin-top: 16px; }
.form-actions button, .directory-search button, .bulk-review-actions button { min-height: 36px; padding: 8px 12px; border-radius: 8px; font-size: .75rem; }
.back-tab, .form-actions a { font-size: .73rem; }
.assessment-form-step { padding: 16px; }
.assessment-scope-fieldset { margin: 14px 0; padding: 13px; }
.assessment-scope-options { gap: 6px; }
.assessment-scope-options label { padding: 7px 8px; font-size: .74rem; }

.directory-search { margin-bottom: 18px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.directory-search > label { margin-bottom: 6px; font-size: .7rem; }
.directory-results-bar { margin-bottom: 9px; }
.directory-results-bar h2 { font-size: 1.2rem; }
.directory-metrics { margin-bottom: 18px; }
.directory-metrics article { padding: 13px 15px; }
.directory-metrics article.ready { background: var(--emerald-100); }
.directory-metrics article.attention { background: var(--gold-100); }
.learner-level-overview { margin: 0 0 20px; }
.learner-filter-tabs, .learner-class-tabs { display: flex; gap: 9px; padding: 10px 0; overflow-x: auto; scrollbar-width: thin; }
.learner-filter-tabs a, .learner-class-tabs a { flex: 0 0 auto; display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--navy-900); background: rgba(255,255,255,.86); text-decoration: none; }
.learner-filter-tabs a span { color: var(--muted); font-size: .72rem; }
.learner-filter-tabs a.active, .learner-class-tabs a.active { border-color: var(--emerald-700); color: #fff; background: var(--emerald-700); box-shadow: 0 8px 20px rgba(8, 91, 70, .18); }
.learner-filter-tabs a.active span { color: rgba(255,255,255,.82); }
.learner-class-tabs { padding-top: 3px; }
.learner-class-tabs a { display: block; padding: 7px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.learner-profile-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 22px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.82); }
.learner-profile-actions form { margin: 0; }
.learner-profile-actions .back-tab { min-height: 40px; }
.learner-delete-action .back-tab { border-color: #c94646; color: #a52727; background: #fff5f5; }
.danger-profile-tab { border-color: #c94646 !important; color: #a52727 !important; background: #fff5f5 !important; }
.directory-metrics article span { font-size: .68rem; }
.directory-metrics article strong { font-size: 1.25rem; }
.user-directory { margin-bottom: 38px; }
.user-row { gap: 14px; padding: 12px 14px; }
.user-identity strong { font-size: .82rem; }
.user-identity span, .user-role { font-size: .7rem; }
.status-badge, .account-badge, .password-badge { padding: 4px 7px; font-size: .62rem; }
.account-badge.draft, .status-badge.status-draft { color: #52606d; background: #e8edf1; }
.account-badge.submitted, .status-badge.status-submitted { color: #205d8a; background: #e2f1fb; }
.account-badge.returned, .status-badge.status-returned { color: #963e32; background: #fae7e2; }
.account-badge.vetted, .account-badge.verified, .account-badge.cleared,
.status-badge.status-verified, .status-badge.status-cleared { color: #176242; background: #e1f2e8; }
.account-badge.published, .account-badge.processed, .status-badge.status-published { color: white; background: var(--navy-700); }
.notice, .ui-notice { padding: 11px 13px; border-radius: 8px; font-size: .76rem; }
.empty-state { padding: 25px 18px; }

.table-scroll { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.table-scroll table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .74rem; }
.table-scroll thead { position: sticky; z-index: 2; top: 0; }
.table-scroll th { padding: 9px 10px; color: #506176; background: #eef3f6; border-bottom: 1px solid var(--line); font-size: .63rem; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.table-scroll td { padding: 9px 10px; border-bottom: 1px solid #edf1f4; vertical-align: middle; }
.table-scroll tbody tr:last-child td { border-bottom: 0; }
.table-scroll tbody tr:hover { background: #f8fafb; }
.result-sheet-row { padding: 9px 11px; font-size: .73rem; }
.result-sheet-heading { font-size: .62rem; }
.analytics-grid { gap: 12px; margin-block: 17px; }
.analytics-panel, .support-card { padding: 15px; }

@media (max-width: 960px) {
    .command-body .command-sidebar { transform: translateX(-102%); transition: transform .2s ease; }
    .command-body.nav-open .command-sidebar { transform: translateX(0); }
    .command-main { margin-left: 0; padding-top: calc(var(--topbar-height) + 18px); }
    .command-footer.developer-footer { margin-left: 0; }
    .command-topbar { left: 0; padding-left: 58px; }
    .menu-button { position: fixed; z-index: 60; top: 11px; left: 12px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--navy-900); background: white; }
    .nav-scrim { position: fixed; z-index: 45; inset: 0; display: none; border: 0; background: rgba(7,26,47,.48); }
    .command-body.nav-open .nav-scrim { display: block; }
    .module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 640px) {
    .command-main { padding-inline: 13px; }
    .command-topbar { padding-right: 13px; }
    .command-topbar-user { display: none; }
    .directory-heading { display: block; padding-block: 14px 16px; }
    .directory-heading > span { margin-top: 10px; }
    .portal-hero { display: block; padding: 19px; }
    .portal-period { margin-top: 15px; justify-items: start; }
    .portal-metrics, .directory-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .module-grid, .analytics-grid, .teacher-alert-grid, .assignment-grid, .support-grid { grid-template-columns: 1fr; }
    .command-module-card { min-height: 138px; }
    .directory-search > div { flex-direction: column; align-items: stretch; }
    .form-grid { grid-template-columns: 1fr; }
    .bulk-review-actions { align-items: stretch; flex-direction: column; }
    .bulk-review-actions label { max-width: none; }
    .developer-footer, .public-footer { align-items: flex-start; flex-direction: column; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 84% 12%, rgba(213, 154, 61, .13), transparent 28rem),
        linear-gradient(180deg, #faf9f4 0%, var(--paper) 100%);
    font-family: "Segoe UI", Arial, sans-serif;
}

a { color: inherit; }

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    border-radius: 9px;
    color: white;
    background: var(--forest-dark);
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
main:focus { outline: none; }

.site-header,
main,
footer {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    padding-block: 26px;
}

.brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 46px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 14px 14px 14px 4px;
    color: white;
    background: white;
    font-weight: 800;
}

.brand strong,
.brand small { display: block; }
.brand strong { font-size: 1rem; }
.brand small { margin-top: 2px; color: var(--muted); font-size: .72rem; }

.phase-badge,
.status-dot {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 248, .76);
    font-size: .78rem;
    font-weight: 700;
}

.phase-badge { padding: 9px 14px; }

.hero {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: clamp(42px, 8vw, 100px);
    align-items: center;
    min-height: 650px;
    padding-block: 70px 90px;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--forest);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

h1, h2, h3 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; }

h1 {
    max-width: 760px;
    margin-bottom: 26px;
    font-size: clamp(3.4rem, 8vw, 6.8rem);
    line-height: .94;
    letter-spacing: -.055em;
}

h1 span { color: var(--forest); }

.hero-intro {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    margin-top: 38px;
}

.primary-action {
    display: inline-block;
    padding: 14px 20px;
    border-radius: 12px;
    color: white;
    background: var(--forest);
    box-shadow: 0 12px 28px rgba(23, 92, 75, .2);
    font-weight: 700;
    text-decoration: none;
}

.text-link { color: var(--forest); font-weight: 700; text-underline-offset: 5px; }

.overview-card {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border: 1px solid rgba(23, 92, 75, .15);
    border-radius: 28px 28px 28px 8px;
    background: rgba(255, 253, 248, .9);
    box-shadow: var(--shadow);
}

.overview-card::before {
    position: absolute;
    top: -75px;
    right: -65px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--mint);
    content: "";
    opacity: .65;
}

.overview-heading {
    position: relative;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.overview-heading p { margin: 0 0 6px; color: var(--muted); font-size: .78rem; }
.overview-heading h2 { margin-bottom: 0; font-size: 1.45rem; letter-spacing: -.03em; }
.status-dot { display: flex; gap: 7px; align-items: center; padding: 7px 10px; white-space: nowrap; }
.status-dot i { width: 7px; height: 7px; border-radius: 50%; background: #2a9b65; box-shadow: 0 0 0 4px rgba(42,155,101,.12); }

dl { margin: 0; }
dl div { display: flex; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--line); }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 700; }

.overview-note { margin: 20px 0 0; padding: 15px 17px; border-radius: 12px; color: var(--forest-dark); background: #edf5ef; font-size: .84rem; line-height: 1.55; }

.foundation { padding-block: 105px 120px; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: end; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -18px; }
.section-heading h2 { margin: 0; max-width: 620px; font-size: clamp(2.2rem, 4.5vw, 4rem); line-height: 1.06; letter-spacing: -.05em; }
.section-heading > p:last-child { margin: 0; max-width: 440px; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 65px; }
.feature-grid article { min-height: 260px; padding: 26px; border: 1px solid var(--line); border-radius: 20px 20px 20px 6px; background: rgba(255, 253, 248, .65); }
.feature-number { color: var(--gold); font-size: .82rem; font-weight: 800; }
.feature-grid h3 { margin: 70px 0 13px; font-size: 1.25rem; }
.feature-grid p { margin: 0; color: var(--muted); line-height: 1.65; }

footer { display: flex; justify-content: space-between; padding-block: 28px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
footer span:first-child { color: var(--ink); font-weight: 800; }

.admin-navigation {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-left: auto;
    scrollbar-width: thin;
}

.brand-mark svg { width: 40px; height: 40px; overflow: visible; }
.brand-mark svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.8; }
.logo-book, .logo-pen { stroke: var(--emerald-600); }
.logo-cap, .logo-pen-tip { stroke: var(--gold-500); }

.admin-navigation a {
    padding: 8px 10px;
    border-radius: 9px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.admin-navigation a:hover,
.admin-navigation a:focus-visible,
.admin-navigation a.current {
    color: var(--forest);
    background: #edf5ef;
    outline: none;
}

.account-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--muted);
    font-size: .82rem;
}

.account-actions button {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--forest);
    background: var(--surface);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.auth-shell,
.dashboard-shell {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: clamp(40px, 8vw, 110px);
    align-items: center;
    min-height: 690px;
    padding-block: 65px 100px;
}

.auth-intro h1,
.dashboard-shell h1 {
    margin-bottom: 24px;
    font-size: clamp(3.4rem, 7vw, 6.4rem);
    line-height: .94;
}

.auth-intro > p:last-child {
    max-width: 580px;
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.7;
}

.auth-card {
    padding: 34px;
    border: 1px solid rgba(23, 92, 75, .16);
    border-radius: 28px 28px 28px 8px;
    background: rgba(255, 253, 248, .94);
    box-shadow: var(--shadow);
}

.auth-card h1,
.auth-card h2 { margin-bottom: 12px; font-size: 2rem; letter-spacing: -.035em; }
.card-kicker { margin: 0 0 8px; color: var(--forest); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.card-intro { margin: 0 0 28px; color: var(--muted); line-height: 1.6; }

.auth-card label { display: block; margin: 18px 0 8px; font-size: .84rem; font-weight: 700; }
.auth-card input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #bdc9c3;
    border-radius: 11px;
    color: var(--ink);
    background: white;
    font: inherit;
    outline: none;
}
.auth-card input:focus { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(23, 92, 75, .11); }

.submit-button {
    width: 100%;
    margin-top: 25px;
    padding: 14px 18px;
    border: 0;
    border-radius: 11px;
    color: white;
    background: var(--forest);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.submit-button:hover { background: var(--forest-dark); }
.back-link { display: inline-block; margin-top: 22px; color: var(--muted); font-size: .84rem; text-underline-offset: 4px; }
.form-error, .field-error { color: #9c302c; font-size: .84rem; }
.form-error ul { margin: 0 0 14px; padding: 12px 16px 12px 34px; border-radius: 9px; background: #faece8; }
.field-error { display: block; margin-top: 6px; }
.password-hint { color: var(--muted); font-size: .78rem; line-height: 1.5; }
.single-card { grid-template-columns: minmax(0, 520px); justify-content: center; }
.dashboard-shell .overview-card { align-self: center; }

.dashboard-heading {
    display: flex;
    gap: 30px;
    align-items: end;
    justify-content: space-between;
    padding-block: 72px 44px;
}

.dashboard-heading h1 {
    margin: 0;
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: .96;
}

.snapshot-time {
    display: grid;
    gap: 5px;
    padding: 14px 17px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 253, 248, .7);
    text-align: right;
}

.snapshot-time span { color: var(--muted); font-size: .75rem; }
.snapshot-time strong { font-size: .86rem; }

.metric-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px 20px 20px 6px;
    background: rgba(255, 253, 248, .78);
}

.metric-grid article {
    min-width: 0;
    padding: 23px 20px;
    border-right: 1px solid var(--line);
}

.metric-grid article:last-child { border-right: 0; }
.metric-grid span { display: block; min-height: 34px; color: var(--muted); font-size: .76rem; line-height: 1.35; }
.metric-grid strong { display: block; margin-top: 13px; font-family: Georgia, "Times New Roman", serif; font-size: 2.25rem; }

.school-overview { padding-block: 90px 120px; }
.section-bar { display: flex; gap: 25px; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.section-bar .eyebrow { margin-bottom: 8px; }
.section-bar h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.4rem); }
.section-bar > span { padding-bottom: 8px; color: var(--muted); font-size: .82rem; }
.section-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: flex-end; padding-bottom: 4px; }
.section-actions span { color: var(--muted); font-size: .82rem; }
.section-actions a { padding: 10px 14px; border-radius: 10px; color: white; background: var(--forest); font-size: .8rem; font-weight: 800; text-decoration: none; }
.section-actions a:hover { background: var(--forest-dark); }
.section-actions a.secondary-action { border: 1px solid var(--line); color: var(--forest); background: var(--surface); }
.section-actions a.secondary-action:hover { border-color: #9fc8ad; background: #edf7ef; }

.school-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.school-card { padding: 26px; border: 1px solid var(--line); border-radius: 20px 20px 20px 6px; background: rgba(255, 253, 248, .78); }
.school-card-heading { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; }
.school-card-heading p { margin: 0 0 6px; color: var(--muted); font-size: .75rem; }
.school-card-heading h3 { margin-bottom: 0; font-size: 1.35rem; }
.school-card > h3 { margin-bottom: 0; font-size: 1.35rem; }
.admin-tool-description { min-height: 48px; margin: 16px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }

.access-badge { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; font-size: .7rem; font-weight: 800; }
.access-badge.active { color: #176242; background: #e4f3e8; }
.access-badge.blocked { color: #923b2f; background: #fae8e2; }
.access-note { margin: 19px 0 0; padding: 11px 13px; border-left: 3px solid #c75d48; color: #71362c; background: #fff4ef; font-size: .8rem; }

.school-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 24px; border-top: 1px solid var(--line); }
.school-totals div { display: block; padding: 15px 8px 4px 0; border: 0; }
.school-totals dt { font-size: .7rem; }
.school-totals dd { margin-top: 5px; font-size: 1.05rem; }
.school-open-link { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--forest); font-size: .84rem; font-weight: 800; text-decoration: none; }
.school-open-link:hover { color: var(--forest-dark); text-decoration: underline; text-underline-offset: 5px; }
.school-directory { margin-bottom: 110px; }
.school-directory-id { margin: 18px 0 0; color: var(--muted); font-size: .72rem; overflow-wrap: anywhere; }
.user-totals-directory { margin-block: 52px 110px; }
.account-total-badge { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; color: var(--forest); background: #e4f3e8; font-size: .7rem; font-weight: 800; }
.user-total-breakdown { grid-template-columns: repeat(4, 1fr); }

.page-trail { display: flex; gap: 9px; align-items: center; padding-top: 52px; color: var(--muted); font-size: .82rem; }
.page-trail a { color: var(--forest); font-weight: 700; text-underline-offset: 4px; }
.page-navigation { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding-top: 42px; }
.page-navigation .page-trail { padding-top: 0; }
.back-tab { display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--forest); background: var(--surface); font-size: .8rem; font-weight: 800; text-decoration: none; }
.back-tab:hover { border-color: #b4c3bc; color: var(--forest-dark); background: white; }
.school-profile-heading { display: flex; gap: 30px; align-items: flex-end; justify-content: space-between; padding-block: 52px 40px; }
.school-profile-heading h1 { margin-bottom: 0; font-size: clamp(3rem, 6vw, 5.7rem); line-height: .96; }
.school-motto { margin: 18px 0 0; color: var(--muted); font-size: 1.08rem; font-style: italic; }
.profile-access-note { margin: 0 0 24px; }
.school-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-bottom: 32px; }
.profile-panel { padding: 28px; border: 1px solid var(--line); border-radius: 20px 20px 20px 6px; background: rgba(255, 253, 248, .78); }
.profile-panel .eyebrow { margin-bottom: 8px; }
.profile-panel h2 { margin-bottom: 25px; font-size: 1.7rem; }
.profile-details div, .profile-totals div { gap: 24px; }
.profile-details dd { max-width: 62%; text-align: right; overflow-wrap: anywhere; }
.profile-totals dd { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; }
.profile-edit-link { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--forest); font-size: .84rem; font-weight: 800; text-decoration: none; }
.profile-edit-link:hover { color: var(--forest-dark); text-decoration: underline; text-underline-offset: 5px; }
.status-message { margin: 24px 0 0; padding: 14px 17px; border: 1px solid #b9d9c3; border-radius: 11px; color: #176242; background: #edf7ef; font-size: .86rem; font-weight: 700; }
.access-action-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: start; margin-bottom: 110px; padding: 30px; border: 1px solid var(--line); border-radius: 20px 20px 20px 6px; background: rgba(255, 253, 248, .78); }
.access-action-panel h2 { margin-bottom: 10px; font-size: 1.7rem; }
.access-action-panel > div > p:last-child { margin: 0; color: var(--muted); line-height: 1.55; }
.access-action-panel label { display: block; margin-bottom: 8px; font-size: .82rem; font-weight: 800; }
.access-action-panel textarea { width: 100%; resize: vertical; padding: 13px 14px; border: 1px solid #bdc9c3; border-radius: 11px; color: var(--ink); background: white; font: inherit; outline: none; }
.access-action-panel textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(23, 92, 75, .11); }
.access-action-button { margin-top: 15px; padding: 12px 16px; border: 0; border-radius: 10px; color: white; cursor: pointer; font: inherit; font-weight: 800; }
.access-action-button.danger { background: #9b4336; }
.access-action-button.danger:hover { background: #7e342b; }
.access-action-button.restore { background: var(--forest); }
.access-action-button.restore:hover { background: var(--forest-dark); }

.edit-profile-heading { padding-block: 50px 35px; }
.edit-profile-heading h1 { margin-bottom: 16px; font-size: clamp(3rem, 6vw, 5.7rem); line-height: .96; }
.edit-profile-heading > p:last-child { margin: 0; color: var(--muted); font-size: 1.05rem; }
.school-profile-form { margin-bottom: 110px; padding: 30px; border: 1px solid var(--line); border-radius: 22px 22px 22px 6px; background: rgba(255, 253, 248, .86); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid .wide-field { grid-column: 1 / -1; }
.form-grid label { display: block; margin-bottom: 8px; font-size: .82rem; font-weight: 800; }
.form-grid input, .form-grid select { width: 100%; padding: 13px 14px; border: 1px solid #bdc9c3; border-radius: 11px; color: var(--ink); background: white; font: inherit; outline: none; }
.form-grid input:focus, .form-grid select:focus { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(23, 92, 75, .11); }
.protected-period { display: grid; gap: 5px; margin-top: 26px; padding: 16px 18px; border-radius: 12px; background: #edf5ef; }
.protected-period span, .protected-period small { color: var(--muted); font-size: .76rem; }
.protected-period strong { font-size: .92rem; }
.form-actions { display: flex; gap: 18px; align-items: center; justify-content: flex-end; margin-top: 26px; }
.form-actions a { color: var(--muted); font-size: .84rem; font-weight: 700; text-underline-offset: 4px; }
.form-actions button { padding: 13px 18px; border: 0; border-radius: 10px; color: white; background: var(--forest); cursor: pointer; font: inherit; font-weight: 800; }
.form-actions button:hover { background: var(--forest-dark); }

.directory-heading { display: flex; gap: 30px; align-items: flex-end; justify-content: space-between; padding-block: 52px 36px; }
.directory-heading h1 { margin-bottom: 0; font-size: clamp(3rem, 6vw, 5.7rem); line-height: .96; }
.directory-heading > span { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255, 253, 248, .7); font-size: .8rem; font-weight: 700; }
.directory-metrics { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; background: rgba(255, 253, 248, .78); }
.directory-metrics article { padding: 20px; border-right: 1px solid var(--line); }
.directory-metrics article:last-child { border-right: 0; }
.directory-metrics span { display: block; color: var(--muted); font-size: .74rem; }
.directory-metrics strong { display: block; margin-top: 9px; font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; }
.directory-search { margin-block: 32px; }
.directory-search label { display: block; margin-bottom: 9px; font-size: .8rem; font-weight: 800; }
.directory-search > div { display: flex; gap: 10px; align-items: center; }
.directory-search input { flex: 1; min-width: 0; }
.directory-search input, .directory-search select { padding: 12px 14px; border: 1px solid #bdc9c3; border-radius: 10px; color: var(--ink); background: white; font: inherit; outline: none; }
.directory-search input:focus, .directory-search select:focus { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(23, 92, 75, .11); }
.directory-search button { padding: 12px 17px; border: 0; border-radius: 10px; color: white; background: var(--forest); cursor: pointer; font: inherit; font-weight: 800; }
.directory-search a { color: var(--muted); font-size: .82rem; font-weight: 700; text-underline-offset: 4px; }
.user-directory { margin-bottom: 110px; }
.directory-results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.directory-results-bar h2 { margin: 0; font-size: 1.65rem; }
.directory-results-bar span { color: var(--muted); font-size: .8rem; }
.user-list { overflow: hidden; border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; background: rgba(255, 253, 248, .78); }
.user-row { display: grid; grid-template-columns: minmax(190px, 1.4fr) minmax(130px, .8fr) minmax(220px, 1fr); gap: 22px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.user-row:last-child { border-bottom: 0; }
.class-roster-list { display: grid; gap: 22px; }
.class-roster { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,253,248,.78); box-shadow: 0 8px 24px rgba(7,26,47,.04); }
.class-roster-heading { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(110deg, rgba(226,243,253,.7), rgba(255,255,255,.9)); }
.class-roster-heading > div { display: flex; gap: 13px; align-items: center; }
.class-roster-heading .eyebrow { margin: 0 0 2px; }
.class-roster-heading h3 { margin: 0; color: var(--navy-900); font-size: 1.15rem; }
.class-roster .user-list { border: 0; border-radius: 0; background: transparent; }
.roster-warning { display: grid; gap: 4px; margin: -12px 0 28px; border-left-color: var(--gold-500); }
.roster-warning span { color: var(--muted); font-size: .84rem; }
.user-identity { display: grid; gap: 4px; min-width: 0; }
.user-identity strong, .user-identity span { overflow-wrap: anywhere; }
.user-identity span, .user-role { color: var(--muted); font-size: .8rem; }
.user-statuses { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.account-badge, .password-badge { padding: 6px 9px; border-radius: 999px; font-size: .68rem; font-weight: 800; }
.account-badge.active { color: #176242; background: #e4f3e8; }
.account-badge.inactive { color: #6b6254; background: #ece9e1; }
.account-badge.locked { color: #923b2f; background: #fae8e2; }
.account-badge.draft { color: #66551c; background: #fff2c7; }
.account-badge.submitted { color: #275b85; background: #e3f0fa; }
.account-badge.returned { color: #923b2f; background: #fae8e2; }
.account-badge.verified, .account-badge.published, .account-badge.processed, .account-badge.approved, .account-badge.open { color: #176242; background: #e4f3e8; }
.account-badge.closed { color: #4f5d58; background: #e8ece9; }
.password-badge { color: #775318; background: #f9edcf; }
.inline-user-action { margin: 0; }
.inline-user-action button { padding: 6px 10px; border: 1px solid #c79b91; border-radius: 999px; color: #823b31; background: #fff8f5; cursor: pointer; font: inherit; font-size: .68rem; font-weight: 800; }
.inline-user-action button:hover { border-color: #aa6a5e; background: #fae8e2; }
.inline-user-action button.activate { border-color: #9fc8ad; color: #176242; background: #edf7ef; }
.inline-user-action button.activate:hover { border-color: #70a986; background: #e4f3e8; }
.current-account-badge { padding: 6px 9px; border-radius: 999px; color: #4f5d58; background: #e8ece9; font-size: .68rem; font-weight: 800; }
.reset-password-link { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--forest); background: var(--surface); font-size: .68rem; font-weight: 800; text-decoration: none; }
.reset-password-link:hover { border-color: #9fc8ad; background: #edf7ef; }
.account-admin-guide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}
.account-admin-guide article {
    display: flex;
    gap: 11px;
    padding: 14px;
    border: 1px solid rgba(23, 62, 105, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow-soft);
}
.account-admin-guide p { margin: 4px 0 0; color: var(--muted); font-size: .78rem; }
.account-guide-icon {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    color: white;
    font-weight: 900;
}
.account-guide-icon.healthy { background: var(--emerald-600); }
.account-guide-icon.assist { background: var(--sky-600); }
.account-guide-icon.protect { background: #ae463c; }
.account-control-column { display: grid; justify-items: end; }
.account-state-group,
.account-action-group { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.account-action-group { padding-top: 8px; border-top: 1px solid var(--line); }
.account-action-group .status-action .deactivate { border-color: #c79b91; color: #823b31; background: #fff3ef; }
.password-reset-safety {
    display: grid;
    gap: 7px;
    padding: 14px 15px;
    border-left: 4px solid var(--gold-500);
    border-radius: 0 12px 12px 0;
    color: var(--muted);
    background: rgba(255, 244, 213, .72);
    font-size: .78rem;
}
.password-reset-safety strong { color: var(--navy-900); }
.password-reset-safety span::before { content: "•"; margin-right: 7px; color: #9b6b13; font-weight: 900; }

@media (max-width: 760px) {
    .account-admin-guide { grid-template-columns: 1fr; }
    .account-control-column,
    .account-state-group,
    .account-action-group { justify-items: start; justify-content: flex-start; }
    .account-control-column { width: 100%; }
}
.directory-error { margin-bottom: 22px; }
.form-section-heading {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin: 30px 0 16px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #f7faf7;
}
.form-section-heading > span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 10px;
    color: white;
    background: var(--forest);
    font-size: .72rem;
    font-weight: 900;
}
.form-section-heading h2 { margin: 0; color: var(--navy-900); font-size: 1rem; }
.form-section-heading p { margin: 4px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.validation-summary-errors:not(.validation-summary-valid) {
    padding: 14px 16px;
    border: 1px solid #dfaaa2;
    border-left: 5px solid #a53a2e;
    border-radius: 12px;
    color: #802c24;
    background: #fff0ed;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.5;
}
.validation-summary-errors ul { margin: 0; padding-left: 20px; }
.input-validation-error,
.user-directory [aria-invalid="true"] {
    border-color: #b44438 !important;
    background: #fff8f6 !important;
    box-shadow: 0 0 0 3px rgba(180, 68, 56, .14) !important;
}
.directory-pagination { display: flex; gap: 18px; align-items: center; justify-content: center; margin-top: 22px; }
.directory-pagination a { color: var(--forest); font-size: .82rem; font-weight: 800; text-underline-offset: 4px; }
.directory-pagination span { color: var(--muted); font-size: .8rem; }

.audit-directory { margin-bottom: 110px; }
.audit-list { overflow: hidden; border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; background: rgba(255, 253, 248, .78); }
.audit-row { padding: 20px; border-bottom: 1px solid var(--line); }
.audit-row:last-child { border-bottom: 0; }
.audit-event { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; }
.audit-event > div { display: grid; gap: 5px; }
.audit-event strong { font-size: 1rem; }
.audit-event > div > span { color: var(--muted); font-size: .75rem; }
.audit-outcome { padding: 6px 9px; border-radius: 999px; color: #6b6254; background: #ece9e1; font-size: .68rem; font-weight: 800; }
.audit-outcome.success { color: #176242; background: #e4f3e8; }
.audit-metadata { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 18px 0 0; }
.audit-metadata div { display: grid; gap: 4px; }
.audit-metadata dt { color: var(--muted); font-size: .7rem; }
.audit-metadata dd { margin: 0; font-size: .8rem; overflow-wrap: anywhere; }
.audit-row > p { margin: 17px 0 0; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; line-height: 1.55; overflow-wrap: anywhere; }

.password-reset-shell { display: grid; grid-template-columns: 1fr minmax(360px, 480px); gap: clamp(40px, 8vw, 100px); align-items: start; padding-block: 70px 110px; }
.password-reset-intro h1 { margin-bottom: 22px; font-size: clamp(3.2rem, 6vw, 5.8rem); line-height: .96; }
.password-reset-intro > p:last-child { max-width: 560px; margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.password-reset-card { padding: 30px; border: 1px solid rgba(23, 92, 75, .16); border-radius: 24px 24px 24px 7px; background: rgba(255, 253, 248, .94); box-shadow: var(--shadow); }
.reset-target { display: grid; gap: 5px; margin-bottom: 24px; padding: 15px 17px; border-radius: 12px; background: #edf5ef; }
.reset-target span, .reset-target small { color: var(--muted); font-size: .75rem; }
.reset-target strong { font-size: .95rem; overflow-wrap: anywhere; }
.password-reset-card label { display: block; margin: 18px 0 8px; font-size: .82rem; font-weight: 800; }
.password-reset-card input { width: 100%; padding: 13px 14px; border: 1px solid #bdc9c3; border-radius: 11px; color: var(--ink); background: white; font: inherit; outline: none; }
.password-reset-card input:focus { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(23, 92, 75, .11); }
.password-reset-card button { width: 100%; margin-top: 22px; padding: 13px 18px; border: 0; border-radius: 10px; color: white; background: var(--forest); cursor: pointer; font: inherit; font-weight: 800; }
.password-reset-card button:hover { background: var(--forest-dark); }
.password-reset-card > a { display: block; margin-top: 18px; color: var(--muted); font-size: .8rem; text-align: center; text-underline-offset: 4px; }

.empty-state { padding: 45px; border: 1px dashed #aebcb5; border-radius: 18px; text-align: center; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { margin: 0; color: var(--muted); }

@media (max-width: 820px) {
    .site-header { flex-wrap: wrap; }
    .admin-navigation { order: 3; width: 100%; overflow-x: auto; margin-left: 0; padding-top: 13px; border-top: 1px solid var(--line); }
    .admin-navigation a { min-height: 40px; display: inline-flex; align-items: center; }
    .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 70px; }
    .auth-shell, .dashboard-shell { grid-template-columns: 1fr; min-height: auto; padding-block: 70px; }
    .single-card { grid-template-columns: 1fr; }
    .dashboard-heading { display: block; }
    .snapshot-time { width: max-content; margin-top: 28px; text-align: left; }
    .metric-grid { grid-template-columns: repeat(3, 1fr); }
    .metric-grid article:nth-child(3) { border-right: 0; }
    .metric-grid article:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
    .school-grid { grid-template-columns: 1fr; }
    .school-profile-grid { grid-template-columns: 1fr; }
    .access-action-panel { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .wide-field { grid-column: auto; }
    .user-row { grid-template-columns: 1fr; gap: 9px; }
    .class-roster-heading { align-items: flex-start; }
    .audit-metadata { grid-template-columns: 1fr; gap: 10px; }
    .user-statuses { justify-content: flex-start; }
    .password-reset-shell { grid-template-columns: 1fr; }
    .section-heading { grid-template-columns: 1fr; }
    .section-heading .eyebrow { margin-bottom: -10px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-grid article { min-height: auto; }
    .feature-grid h3 { margin-top: 38px; }
}

@media (max-width: 520px) {
    .site-header, main, footer { width: min(100% - 26px, 1180px); }
    .brand small { display: none; }
    .phase-badge { padding: 7px 10px; }
    .account-actions > span { display: none; }
    .account-actions button { min-height: 42px; }
    input, select, textarea, button { font-size: 16px; }
    .empty-state { padding: 30px 18px; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .metric-grid article:nth-child(3) { border-right: 1px solid var(--line); }
    .metric-grid article:nth-child(even) { border-right: 0; }
    .metric-grid article:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
    .section-bar, .school-card-heading { display: block; }
    .section-actions { align-items: flex-start; flex-direction: column; justify-content: flex-start; margin-top: 18px; }
    .school-profile-heading { display: block; }
    .page-navigation { align-items: flex-start; flex-direction: column-reverse; }
    .directory-heading { display: block; }
    .directory-heading > span { display: inline-block; margin-top: 18px; }
    .school-profile-heading .access-badge { margin-top: 22px; }
    .section-bar > span, .access-badge { display: inline-block; margin-top: 12px; }
    .school-totals { grid-template-columns: repeat(2, 1fr); }
    .directory-metrics { grid-template-columns: repeat(2, 1fr); }
    .directory-metrics article:nth-child(2) { border-right: 0; }
    .directory-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .directory-search > div { align-items: stretch; flex-direction: column; }
    .hero { padding-top: 45px; }
    .overview-card { padding: 23px; }
    .overview-heading { display: block; }
    .status-dot { width: max-content; margin-top: 14px; }
    footer { display: block; }
    footer span { display: block; margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
.learner-profile-hero {
    display: flex;
    gap: 28px;
    align-items: center;
    padding-block: 48px 34px;
}

.learner-photo-shell {
    flex: 0 0 auto;
}

.learner-photo,
.learner-photo-placeholder {
    width: 150px;
    height: 180px;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(7, 26, 47, .10);
    background: var(--surface);
}

.learner-photo {
    display: block;
    object-fit: cover;
}

.learner-photo-placeholder {
    display: grid;
    place-items: center;
    color: var(--navy-700);
    background:
        linear-gradient(
            145deg,
            var(--sky-100),
            var(--emerald-100));
    font-size: 3rem;
    font-weight: 800;
}

.learner-profile-heading {
    min-width: 0;
}

.learner-profile-heading h1 {
    margin-bottom: 12px;
}

.learner-profile-admission {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
}

.learner-profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

@media (max-width: 640px) {
    .learner-profile-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .learner-photo,
    .learner-photo-placeholder {
        width: 120px;
        height: 144px;
    }
}

/* Phase 29 final consistency and accessibility pass. */
button,
[type="button"],
[type="submit"],
[type="reset"],
.primary-action,
.back-tab,
.access-action-button,
.reset-password-link {
    min-height: 42px;
}

button,
[type="button"],
[type="submit"],
[type="reset"] {
    touch-action: manipulation;
}

.primary-action,
.back-tab,
.access-action-button,
.reset-password-link {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid #e3ae2e !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .92), 0 0 0 9px rgba(7, 84, 63, .56) !important;
}

:where(button, input, select, textarea):disabled,
[aria-disabled="true"] {
    cursor: not-allowed !important;
    filter: grayscale(.25);
    opacity: .58;
}

.field-error:not(:empty),
.form-error:not(:empty),
.validation-summary-errors:not(:empty) {
    font-weight: 700;
}

.field-error:not(:empty)::before {
    margin-right: 5px;
    content: "!";
}

.empty-state {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.empty-state h3 { color: var(--navy-900); }
.empty-state p { line-height: 1.55; }

.directory-results-bar,
.workflow-section-heading,
.module-group-heading,
.user-row,
.announcement-card,
.delivery-card,
.support-card,
.command-module-card {
    min-width: 0;
}

.directory-results-bar h2,
.workflow-section-heading h2,
.user-identity,
.user-identity strong,
.user-identity span,
.announcement-card h3,
.delivery-card-copy,
.support-card,
.command-module-card {
    overflow-wrap: anywhere;
}

.table-scroll,
.result-sheet {
    max-width: 100%;
    overscroll-behavior-inline: contain;
    scrollbar-gutter: stable;
}

@media (max-width: 620px) {
    .directory-results-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .form-actions,
    .directory-actions {
        align-items: stretch;
    }

    .form-actions > button,
    .form-actions > a,
    .directory-actions > button,
    .directory-actions > a {
        width: 100%;
        text-align: center;
    }

    .user-row {
        overflow: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-delay: 0s !important;
        transition-duration: .001ms !important;
        animation-delay: 0s !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
    }

    :where(.command-module-card, .school-card, .user-row, .assignment-card, .class-action-card, .feature-grid article, button, a):hover {
        transform: none !important;
    }
}

@media (forced-colors: active) {
    .account-badge,
    .status-badge,
    .password-badge,
    .module-icon,
    .section-icon,
    .governance-zone-icon,
    .account-guide-icon {
        border: 1px solid currentColor;
    }
}

.privacy-policy {
    width: min(100%, 900px);
    margin: 24px auto 70px;
    padding: clamp(24px, 5vw, 54px);
    border: 1px solid var(--line);
    border-top: 5px solid var(--emerald-500);
    border-radius: 22px 22px 22px 7px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow-soft);
}
.privacy-policy header { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.privacy-policy h1 { margin: 4px 0 8px; }
.privacy-policy header > p:last-child,
.privacy-policy section p { color: var(--muted); line-height: 1.7; }
.privacy-policy section { padding-top: 22px; }
.privacy-policy section h2 { margin: 0 0 8px; font-size: 1.2rem; }
.privacy-policy section p { margin: 0; }

.hero-assurances {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
    margin: 24px 0 0;
    padding: 0;
    color: var(--muted);
    list-style: none;
    font-size: .78rem;
    font-weight: 750;
}

.hero-assurances li {
    display: inline-flex;
    gap: 7px;
    align-items: center;
}

.hero-assurances li::before {
    content: "✓";
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    color: var(--emerald-800);
    background: var(--emerald-100);
    font-size: .68rem;
    font-weight: 900;
}

.visitor-experience {
    padding-block: 100px;
    border-top: 1px solid rgba(23, 62, 105, .10);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 55px;
}

.audience-card {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    padding: 28px;
    border: 1px solid rgba(23, 62, 105, .12);
    border-radius: 24px 24px 24px 8px;
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow-soft);
    transition: transform .2s ease, box-shadow .2s ease;
}

.audience-card::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -82px;
    bottom: -82px;
    border: 26px solid currentColor;
    border-radius: 50%;
    opacity: .055;
}

.audience-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lifted);
}

.audience-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 38px;
    place-items: center;
    border-radius: 15px;
    color: white;
    font-size: .82rem;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(7, 26, 47, .14);
}

.leadership-audience .audience-icon { background: linear-gradient(145deg, var(--navy-700), var(--sky-600)); }
.teacher-audience .audience-icon { background: linear-gradient(145deg, var(--emerald-500), var(--emerald-800)); }
.guardian-audience .audience-icon { background: linear-gradient(145deg, var(--gold-500), var(--coral-500)); }
.leadership-audience { color: var(--sky-600); }
.teacher-audience { color: var(--emerald-700); }
.guardian-audience { color: var(--gold-600); }

.audience-card > div,
.audience-card > p,
.audience-card > ul { color: var(--ink); }
.audience-card h3 { margin: 5px 0 0; color: var(--navy-900); font-size: 1.35rem; }
.audience-card > p { color: var(--muted); line-height: 1.65; }
.audience-card ul { display: grid; gap: 7px; margin: 21px 0 0; padding: 17px 0 0; border-top: 1px solid var(--line); color: var(--muted); list-style: none; font-size: .78rem; }
.audience-card li::before { content: "•"; margin-right: 8px; color: currentColor; }

.visitor-callout {
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 100px;
    padding: clamp(30px, 5vw, 55px);
    border-radius: 28px 28px 28px 9px;
    color: white;
    background: linear-gradient(125deg, var(--navy-950), var(--navy-700) 58%, var(--emerald-800));
    box-shadow: var(--shadow-lifted);
}

.visitor-callout::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: 8%;
    top: -185px;
    border: 38px solid rgba(216, 165, 54, .14);
    border-radius: 50%;
}

.visitor-callout > * { position: relative; z-index: 1; }
.visitor-callout > div { max-width: 720px; }
.visitor-callout .eyebrow { color: #7ce1be; }
.visitor-callout h2 { margin: 8px 0 12px; color: white; font-size: clamp(1.8rem, 3.5vw, 3.2rem); line-height: 1.05; }
.visitor-callout p:last-child { margin: 0; color: #cbd9e7; line-height: 1.65; }
.visitor-callout .primary-action { flex: 0 0 auto; color: var(--navy-950); background: linear-gradient(135deg, #ffe5a2, var(--gold-500)); box-shadow: 0 10px 22px rgba(0, 0, 0, .18); }

@media (max-width: 820px) {
    .audience-grid { grid-template-columns: 1fr; }
    .audience-card { min-height: auto; }
    .audience-icon { margin-bottom: 24px; }
    .visitor-callout { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .audience-card { transition: none; }
}

.auth-shell {
    position: relative;
}

.auth-shell::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: min(44vw, 520px);
    aspect-ratio: 1;
    left: -16%;
    bottom: 4%;
    border: clamp(36px, 6vw, 72px) solid rgba(35, 136, 201, .055);
    border-radius: 50%;
}

.auth-intro h1 span {
    color: var(--emerald-700);
    background: linear-gradient(110deg, var(--emerald-700), var(--sky-600));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-benefits {
    display: grid;
    gap: 11px;
    max-width: 520px;
    margin-top: 32px;
}

.auth-benefits > div {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 14px;
    align-items: center;
    padding: 11px 14px;
    border: 1px solid rgba(23, 62, 105, .10);
    border-radius: 12px;
    background: rgba(255, 255, 255, .60);
}

.auth-benefits strong { color: var(--navy-900); font-size: .78rem; }
.auth-benefits span { color: var(--muted); font-size: .76rem; }

.auth-card {
    position: relative;
    overflow: hidden;
    border-top: 5px solid var(--gold-500);
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow-lifted);
}

.auth-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -73px;
    top: -73px;
    border: 21px solid var(--emerald-500);
    border-radius: 50%;
    opacity: .08;
    pointer-events: none;
}

.password-input-shell {
    position: relative;
}

.password-input-shell input {
    padding-right: 68px;
}

.password-input-shell button {
    position: absolute;
    right: 7px;
    top: 50%;
    min-width: 50px;
    padding: 7px 9px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    color: var(--emerald-700);
    background: var(--emerald-100);
    cursor: pointer;
    font: inherit;
    font-size: .7rem;
    font-weight: 850;
}

.password-input-shell button:hover,
.password-input-shell button:focus-visible {
    color: white;
    background: var(--emerald-700);
    outline: none;
}

.auth-card-links {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
}

.auth-card-links .back-link { margin-top: 0; }
.recovery-link { color: var(--emerald-700); font-size: .82rem; font-weight: 800; text-underline-offset: 4px; }

@media (max-width: 520px) {
    .auth-benefits > div { grid-template-columns: 1fr; gap: 3px; }
    .auth-card-links { align-items: flex-start; flex-direction: column-reverse; gap: 12px; }
}

.portal-hero {
    background:
        radial-gradient(circle at 80% 20%, rgba(216, 165, 54, .18), transparent 17rem),
        linear-gradient(125deg, var(--navy-950), var(--navy-700) 58%, var(--emerald-800) 145%);
}

.portal-role-chip {
    display: inline-flex;
    margin-top: 16px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: #dce9f3;
    background: rgba(255, 255, 255, .08);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .03em;
}

.portal-jump-nav {
    position: sticky;
    z-index: 20;
    top: calc(var(--topbar-height) + 10px);
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    width: fit-content !important;
    max-width: 100%;
    padding: 8px;
    border: 1px solid rgba(23, 62, 105, .12);
    border-radius: 13px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 8px 24px rgba(7, 26, 47, .08);
    backdrop-filter: blur(12px);
}

.portal-jump-nav > span {
    padding: 0 7px;
    color: var(--muted);
    font-size: .66rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.portal-jump-nav a {
    padding: 7px 11px;
    border-radius: 8px;
    color: var(--navy-700);
    background: var(--grey-50);
    font-size: .72rem;
    font-weight: 800;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

.portal-jump-nav a:hover,
.portal-jump-nav a:focus-visible {
    color: white;
    background: var(--emerald-700);
    outline: none;
    transform: translateY(-1px);
}

.portal-module-group {
    scroll-margin-top: calc(var(--topbar-height) + 78px);
}

.portal-module-group:nth-of-type(4n + 1) .module-group-heading {
    padding: 11px 14px;
    border-radius: 13px;
    background: linear-gradient(90deg, rgba(223, 245, 236, .72), transparent);
}

.portal-module-group:nth-of-type(4n + 2) .module-group-heading {
    padding: 11px 14px;
    border-radius: 13px;
    background: linear-gradient(90deg, rgba(255, 242, 206, .72), transparent);
}

.portal-module-group:nth-of-type(4n + 3) .module-group-heading {
    padding: 11px 14px;
    border-radius: 13px;
    background: linear-gradient(90deg, rgba(226, 243, 253, .76), transparent);
}

.portal-metrics .metric-card:nth-child(1) { border-bottom: 3px solid var(--emerald-500); }
.portal-metrics .metric-card:nth-child(2) { border-bottom: 3px solid var(--sky-600); }
.portal-metrics .metric-card:nth-child(3) { border-bottom: 3px solid var(--gold-500); }

@media (max-width: 720px) {
    .portal-jump-nav {
        position: static;
        width: 100% !important;
    }

    .portal-jump-nav > span { width: 100%; }
    .portal-jump-nav a { flex: 1 1 130px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .portal-jump-nav a { transition: none; }
}

.teacher-command .teacher-alerts,
.teacher-command .portal-module-group {
    scroll-margin-top: calc(var(--topbar-height) + 78px);
}

.teacher-returned-metric {
    border-bottom: 3px solid var(--gold-500);
}

.teacher-alerts {
    padding: 18px;
    border: 1px solid rgba(216, 165, 54, .24);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(255, 242, 206, .56), rgba(255, 255, 255, .82));
}

.teacher-alert {
    border-color: rgba(216, 165, 54, .28);
    background: rgba(255, 255, 255, .90);
    box-shadow: 0 7px 18px rgba(7, 26, 47, .05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.teacher-alert:hover,
.teacher-alert:focus-visible {
    transform: translateY(-2px);
    border-color: var(--gold-500);
    box-shadow: var(--shadow-soft);
    outline: none;
}

.teacher-command .assignment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teacher-command .assignment-card {
    min-height: 112px;
    border-bottom: 3px solid rgba(35, 136, 201, .55);
}

.teacher-command .assignment-card > div {
    gap: 6px;
}

.teacher-command .assignment-learning-areas {
    overflow: visible;
    color: var(--navy-700);
    line-height: 1.45;
    text-overflow: clip;
    white-space: normal;
}

@media (max-width: 720px) {
    .teacher-command .assignment-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .teacher-alert { transition: none; }
}

.guardian-hero .portal-period {
    max-width: 320px;
}

.guardian-hero .portal-period strong {
    max-width: 300px;
    text-align: right;
}

.guardian-metrics .metric-card:nth-child(1) { border-bottom: 3px solid var(--emerald-500); }
.guardian-metrics .metric-card:nth-child(2) { border-bottom: 3px solid var(--gold-500); }
.guardian-metrics .metric-card:nth-child(3) { border-bottom: 3px solid var(--sky-600); }

.guardian-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.guardian-quick-actions a {
    position: relative;
    display: grid;
    gap: 4px;
    padding: 16px 18px 16px 52px;
    border: 1px solid rgba(23, 62, 105, .12);
    border-radius: 14px;
    color: inherit;
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.guardian-quick-actions a::before {
    content: "→";
    position: absolute;
    left: 16px;
    top: 18px;
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 8px;
    color: var(--emerald-700);
    background: var(--emerald-100);
    font-weight: 900;
}

.guardian-quick-actions a:hover,
.guardian-quick-actions a:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(16, 166, 120, .36);
    box-shadow: var(--shadow-lifted);
    outline: none;
}

.guardian-quick-actions strong { color: var(--navy-900); font-size: .82rem; }
.guardian-quick-actions span { color: var(--muted); font-size: .7rem; line-height: 1.4; }

.guardian-section {
    scroll-margin-top: calc(var(--topbar-height) + 78px);
}

.guardian-section .directory-results-bar,
.guardian-section .section-bar {
    background: linear-gradient(90deg, rgba(223, 245, 236, .52), rgba(255, 255, 255, .86));
}

.guardian-section .school-card {
    border-bottom: 3px solid rgba(16, 166, 120, .55);
}

@media (max-width: 820px) {
    .guardian-quick-actions { grid-template-columns: 1fr; }
    .guardian-hero .portal-period { max-width: none; }
    .guardian-hero .portal-period strong { max-width: none; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    .guardian-quick-actions a { transition: none; }
}

.learner-directory-heading > span {
    color: var(--emerald-800);
    border-color: rgba(16, 166, 120, .22);
    background: linear-gradient(135deg, var(--emerald-100), rgba(255, 255, 255, .88));
}

.learner-directory-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.learner-directory-actions .back-tab {
    margin: 0;
    padding: 9px 12px;
    border: 1px solid rgba(23, 62, 105, .13);
    border-radius: 9px;
    color: var(--navy-700);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 5px 14px rgba(7, 26, 47, .045);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.learner-directory-actions .back-tab:hover,
.learner-directory-actions .back-tab:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(16, 166, 120, .36);
    box-shadow: var(--shadow-soft);
    outline: none;
}

.learner-directory-actions .learner-primary-action {
    color: white;
    border-color: transparent;
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-800));
}

.learner-directory-search {
    border-top: 4px solid var(--sky-600);
    box-shadow: var(--shadow-soft);
}

.learner-directory-results {
    overflow: hidden;
    border: 1px solid rgba(23, 62, 105, .12);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .80);
    box-shadow: var(--shadow-soft);
}

.learner-directory-results > .directory-results-bar {
    padding: 18px 20px;
    background: linear-gradient(90deg, rgba(226, 243, 253, .72), rgba(255, 255, 255, .90));
}

.learner-directory-results .class-roster-list {
    display: grid;
    gap: 16px;
    padding: 16px;
}

.learner-directory-results .class-roster {
    border-color: rgba(23, 62, 105, .12);
    background: rgba(255, 255, 255, .94);
}

.learner-directory-row .user-identity {
    display: flex;
    gap: 11px;
    align-items: center;
}

.learner-directory-avatar {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: var(--navy-700);
    background: linear-gradient(145deg, var(--sky-100), var(--emerald-100));
    box-shadow: inset 0 0 0 1px rgba(35, 136, 201, .10);
    font-size: .72rem;
    font-weight: 900;
}

.learner-directory-name {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.learner-directory-name strong,
.learner-directory-name > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.learner-directory-row .user-statuses {
    gap: 6px;
}

@media (max-width: 520px) {
    .learner-directory-actions { display: grid; grid-template-columns: 1fr; }
    .learner-directory-actions .back-tab { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .learner-directory-actions .back-tab { transition: none; }
}

.teacher-directory-heading > span {
    color: var(--navy-700);
    border-color: rgba(35, 136, 201, .22);
    background: linear-gradient(135deg, var(--sky-100), rgba(255, 255, 255, .9));
}

.teacher-directory-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.teacher-directory-actions .back-tab {
    margin: 0;
    padding: 9px 12px;
    border: 1px solid rgba(23, 62, 105, .13);
    border-radius: 9px;
    color: var(--navy-700);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 5px 14px rgba(7, 26, 47, .045);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.teacher-directory-actions .back-tab:hover,
.teacher-directory-actions .back-tab:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(35, 136, 201, .4);
    box-shadow: var(--shadow-soft);
    outline: none;
}

.teacher-directory-actions .teacher-primary-action {
    color: white;
    border-color: transparent;
    background: linear-gradient(135deg, var(--sky-600), var(--navy-700));
}

.teacher-directory-search {
    border-top: 4px solid var(--emerald-500);
    box-shadow: var(--shadow-soft);
}

.teacher-directory-results {
    overflow: hidden;
    border: 1px solid rgba(23, 62, 105, .12);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .82);
    box-shadow: var(--shadow-soft);
}

.teacher-directory-results > .directory-results-bar {
    padding: 18px 20px;
    background: linear-gradient(90deg, rgba(226, 243, 253, .74), rgba(255, 255, 255, .92));
}

.teacher-directory-row .user-identity {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 11px;
    align-items: center;
}

.teacher-directory-row .staff-directory-photo,
.teacher-directory-avatar {
    grid-row: 1 / span 2;
    width: 42px;
    height: 42px;
}

.teacher-directory-avatar {
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--navy-700);
    background: linear-gradient(145deg, var(--sky-100), var(--gold-100));
    box-shadow: inset 0 0 0 1px rgba(35, 136, 201, .11);
    font-size: .75rem;
    font-weight: 900;
}

.teacher-directory-name {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.teacher-directory-name strong,
.teacher-directory-name > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 620px) {
    .teacher-directory-actions { display: grid; grid-template-columns: 1fr; }
    .teacher-directory-actions .back-tab { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .teacher-directory-actions .back-tab { transition: none; }
}

.class-directory-heading > span {
    color: #74500a;
    border-color: rgba(239, 212, 137, .75);
    background: linear-gradient(135deg, var(--gold-100), rgba(255, 255, 255, .9));
}

.class-directory-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.class-directory-actions .back-tab {
    margin: 0;
    padding: 9px 12px;
    border: 1px solid rgba(23, 62, 105, .13);
    border-radius: 9px;
    color: var(--navy-700);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 5px 14px rgba(7, 26, 47, .045);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.class-directory-actions .back-tab:hover,
.class-directory-actions .back-tab:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(218, 165, 32, .42);
    box-shadow: var(--shadow-soft);
    outline: none;
}

.class-directory-actions .class-primary-action {
    color: var(--navy-950);
    border-color: transparent;
    background: linear-gradient(135deg, #f5c958, #e4a91f);
}

.class-directory-search {
    border-top: 4px solid #e4a91f;
    box-shadow: var(--shadow-soft);
}

.class-directory-results {
    overflow: hidden;
    border: 1px solid rgba(23, 62, 105, .12);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .82);
    box-shadow: var(--shadow-soft);
}

.class-directory-results > .directory-results-bar {
    padding: 18px 20px;
    background: linear-gradient(90deg, rgba(255, 242, 206, .7), rgba(255, 255, 255, .92));
}

.class-directory-results .school-grid {
    padding: 16px;
}

.class-directory-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(23, 62, 105, .12);
    background: rgba(255, 255, 255, .95);
}

.class-directory-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    content: "";
    background: linear-gradient(180deg, #e4a91f, var(--emerald-500));
}

.class-card-heading {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.class-card-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: #74500a;
    background: var(--gold-100);
    font-size: .7rem;
    font-weight: 900;
}

.class-card-actions {
    gap: 7px;
    margin-top: 16px;
}

.class-card-actions form {
    margin: 0;
}

@media (max-width: 620px) {
    .class-directory-actions { display: grid; grid-template-columns: 1fr; }
    .class-directory-actions .back-tab { text-align: center; }
    .class-card-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .class-card-actions a,
    .class-card-actions button { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .class-directory-actions .back-tab { transition: none; }
}

.guardian-management-heading,
.guardian-link-heading {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(23, 62, 105, .12);
    border-radius: var(--radius-md);
    background: linear-gradient(125deg, rgba(226, 243, 253, .82), rgba(255, 255, 255, .94));
    box-shadow: var(--shadow-soft);
}

.guardian-management-heading::after,
.guardian-link-heading::after {
    position: absolute;
    right: -42px;
    bottom: -58px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    content: "";
    background: rgba(16, 166, 120, .10);
}

.guardian-link-heading {
    margin-top: 34px;
    background: linear-gradient(125deg, rgba(255, 242, 206, .78), rgba(255, 255, 255, .94));
}

.guardian-create-form,
.guardian-link-form {
    border-top: 4px solid var(--emerald-500);
    box-shadow: var(--shadow-soft);
}

.guardian-link-form {
    border-top-color: #e4a91f;
}

.guardian-form-intro {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(23, 62, 105, .10);
}

.guardian-readiness { margin: 20px 0 24px; }
.guardian-readiness-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.guardian-readiness-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.guardian-readiness-summary span { color: var(--muted); font-size: .78rem; font-weight: 800; }
.guardian-readiness-summary strong { color: var(--navy-900); font-size: 1.35rem; }
.guardian-readiness-summary .ready { border-color: #a7dfc3; background: var(--emerald-100); }
.guardian-readiness-summary .attention { border-color: #ead28b; background: var(--gold-100); }
.guardian-onboarding-list { display: grid; gap: 10px; margin-top: 12px; }
.guardian-onboarding-list article { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.3fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.guardian-onboarding-list article > div { display: grid; gap: 3px; }
.guardian-onboarding-list article span { color: var(--muted); font-size: .78rem; }

@media (max-width: 760px) {
    .guardian-readiness-summary { grid-template-columns: 1fr; }
    .guardian-onboarding-list article { grid-template-columns: 1fr; align-items: stretch; }
}

.guardian-form-intro > span {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-800));
    font-weight: 900;
}

.guardian-link-form .guardian-form-intro > span {
    color: var(--navy-950);
    background: linear-gradient(135deg, #f5c958, #e4a91f);
}

.guardian-form-intro strong {
    color: var(--navy-900);
    font-size: 1rem;
}

.guardian-form-intro p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: .86rem;
}

.guardian-destination-directory,
.guardian-link-directory {
    overflow: hidden;
    border: 1px solid rgba(23, 62, 105, .12);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .84);
    box-shadow: var(--shadow-soft);
}

.guardian-destination-directory > .directory-results-bar,
.guardian-link-directory > .directory-results-bar {
    padding: 18px 20px;
    background: linear-gradient(90deg, rgba(226, 243, 253, .72), rgba(255, 255, 255, .92));
}

.guardian-link-directory > .directory-results-bar {
    background: linear-gradient(90deg, rgba(255, 242, 206, .68), rgba(255, 255, 255, .92));
}

.guardian-destination-directory .user-list,
.guardian-link-directory .user-list {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 0;
    background: transparent;
}

.guardian-account-row,
.guardian-link-row {
    border: 1px solid rgba(23, 62, 105, .11);
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 5px 15px rgba(7, 26, 47, .04);
}

.guardian-account-row {
    grid-template-columns: minmax(170px, 1.2fr) minmax(180px, 1fr) auto minmax(150px, auto);
}

.guardian-link-row {
    grid-template-columns: repeat(2, minmax(170px, 1fr)) repeat(2, minmax(140px, auto));
}

.guardian-account-row .inline-user-action button,
.guardian-link-row .inline-user-action button {
    width: 100%;
}

@media (max-width: 900px) {
    .guardian-account-row,
    .guardian-link-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
    .guardian-management-heading,
    .guardian-link-heading { padding: 20px; }
    .guardian-account-row,
    .guardian-link-row { grid-template-columns: 1fr; }
}

.attendance-workflow-heading > span {
    color: var(--emerald-800);
    border-color: rgba(16, 166, 120, .24);
    background: linear-gradient(135deg, var(--emerald-100), rgba(255, 255, 255, .9));
}

.attendance-scope-form {
    border-top: 4px solid var(--emerald-500);
    box-shadow: var(--shadow-soft);
}

.workflow-step-intro {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(23, 62, 105, .10);
}

.workflow-step-intro > span {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-800));
    font-weight: 900;
}

.workflow-step-intro strong {
    color: var(--navy-900);
}

.workflow-step-intro p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: .85rem;
}

.academic-workflow-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0 22px;
    padding: 0;
    list-style: none;
}

.academic-workflow-progress li {
    display: flex;
    gap: 9px;
    align-items: center;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(23, 62, 105, .11);
    border-radius: 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, .78);
}

.academic-workflow-progress li > span {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    color: var(--navy-700);
    background: var(--sky-100);
    font-size: .78rem;
    font-weight: 900;
}

.academic-workflow-progress li strong {
    overflow: hidden;
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.academic-workflow-progress li.is-current {
    color: var(--navy-900);
    border-color: rgba(16, 166, 120, .25);
    background: linear-gradient(135deg, rgba(215, 247, 235, .88), white);
}

.academic-workflow-progress li.is-current > span {
    color: white;
    background: var(--emerald-500);
}

.workflow-filter-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 12px !important;
    align-items: end !important;
}

.workflow-filter-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}

.workflow-filter-grid > div {
    min-width: 0;
}

.workflow-filter-grid label,
.learner-entry-control label {
    display: block;
    margin-bottom: 6px;
    color: var(--navy-800);
    font-size: .72rem;
    font-weight: 850;
}

.workflow-filter-grid input,
.workflow-filter-grid select {
    width: 100%;
}

.academic-workflow-metrics {
    margin-bottom: 18px;
}

.learner-entry-control {
    min-width: 0;
}

.learner-entry-control input,
.learner-entry-control select {
    width: 100%;
}

.workflow-action-panel {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 16px;
    border-top: 1px solid rgba(23, 62, 105, .10);
}

.workflow-action-panel > div {
    display: grid;
    gap: 4px;
}

.workflow-action-panel strong {
    color: var(--navy-900);
}

.workflow-action-panel span {
    color: var(--muted);
    font-size: .82rem;
}

.workflow-action-panel button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 11px 16px;
    border: 0;
    border-radius: 10px;
    color: white;
    background: var(--navy-700);
    cursor: pointer;
    font: inherit;
    font-weight: 850;
}

.workflow-action-panel button:hover {
    background: var(--navy-900);
}

.workflow-action-panel button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.draft-action-panel {
    margin-top: 14px;
    border-radius: 12px;
    background: rgba(226, 243, 253, .52);
}

.submit-action-panel {
    background: rgba(215, 247, 235, .48);
}

.submit-action-panel button {
    background: var(--emerald-700);
}

.field-help {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.4;
}

[hidden] {
    display: none !important;
}

.attendance-register,
.attendance-review-directory {
    overflow: hidden;
    border: 1px solid rgba(23, 62, 105, .12);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .84);
    box-shadow: var(--shadow-soft);
}

.attendance-register > .directory-results-bar,
.attendance-review-directory > .directory-results-bar {
    padding: 18px 20px;
    background: linear-gradient(90deg, rgba(215, 247, 235, .72), rgba(255, 255, 255, .92));
}

.attendance-register .directory-results-bar .eyebrow {
    margin: 0 0 3px;
}

.attendance-register .directory-results-bar h2 {
    margin: 0;
}

.attendance-learner-list {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 0;
    background: transparent;
}

.attendance-learner-row {
    grid-template-columns: minmax(190px, 1fr) minmax(150px, 220px);
    border: 1px solid rgba(23, 62, 105, .10);
    border-radius: 12px;
    background: rgba(255, 255, 255, .96);
}

.attendance-learner-row select {
    min-height: 42px;
    border-color: rgba(23, 62, 105, .18);
    background: white;
}

.attendance-learner-row .learner-entry-control {
    width: 100%;
}

.attendance-save-actions,
.attendance-submit-actions {
    align-items: center;
    padding: 14px 16px;
}

.attendance-save-actions span {
    color: var(--muted);
    font-size: .82rem;
}

.attendance-submit-actions {
    margin-top: 0;
    border-top: 1px solid rgba(23, 62, 105, .10);
    background: rgba(226, 243, 253, .42);
}

@media (max-width: 620px) {
    .attendance-learner-row { grid-template-columns: 1fr; }
    .attendance-save-actions { align-items: stretch; }
    .attendance-save-actions button { width: 100%; }
}

.marks-workflow-heading > span {
    color: var(--navy-700);
    border-color: rgba(35, 136, 201, .24);
    background: linear-gradient(135deg, var(--sky-100), rgba(255, 255, 255, .9));
}

.marks-scope-form {
    border-top: 4px solid var(--sky-600);
    box-shadow: var(--shadow-soft);
}

.marks-step-intro > span {
    background: linear-gradient(135deg, var(--sky-600), var(--navy-700));
}

.marks-workflow-metrics article:nth-child(2) {
    border-color: rgba(196, 74, 74, .18);
    background: linear-gradient(145deg, rgba(255, 238, 238, .82), rgba(255, 255, 255, .95));
}

.marks-workflow-metrics article:nth-child(4) {
    border-color: rgba(218, 165, 32, .24);
    background: linear-gradient(145deg, rgba(255, 242, 206, .8), rgba(255, 255, 255, .95));
}

.marks-entry-directory {
    overflow: hidden;
    border: 1px solid rgba(23, 62, 105, .12);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .84);
    box-shadow: var(--shadow-soft);
}

.marks-entry-directory > .directory-results-bar {
    padding: 18px 20px;
    background: linear-gradient(90deg, rgba(226, 243, 253, .78), rgba(255, 255, 255, .94));
}

.marks-entry-directory .directory-results-bar .eyebrow {
    margin: 0 0 3px;
}

.marks-entry-directory .directory-results-bar h2 {
    margin: 0;
}

.marks-learner-list {
    display: grid;
    gap: 9px;
    padding: 14px;
    border: 0;
    background: transparent;
}

.marks-entry-row {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    align-items: start;
    border: 1px solid rgba(23, 62, 105, .10);
    border-radius: 12px;
    background: rgba(255, 255, 255, .97);
}

.marks-entry-row > .user-identity,
.marks-entry-row > .user-statuses {
    grid-column: 1 / -1;
}

.marks-entry-row > .user-statuses {
    justify-content: flex-start;
}

.marks-entry-row input,
.marks-entry-row select {
    min-height: 42px;
    border-color: rgba(23, 62, 105, .17);
    background: white;
}

.marks-entry-row input[type="number"] {
    border-color: rgba(35, 136, 201, .3);
    font-weight: 800;
}

.marks-save-actions,
.marks-submit-actions {
    align-items: center;
    padding: 14px 16px;
}

.marks-save-actions span {
    color: var(--muted);
    font-size: .82rem;
}

.marks-submission-notice {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 16px;
}

.marks-submission-notice > div {
    display: grid;
    gap: 3px;
}

.workflow-step-number {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 11px;
    color: var(--navy-700);
    background: var(--sky-100);
    font-weight: 900;
}

.marks-submission-notice.submission-ready .workflow-step-number {
    color: white;
    background: var(--emerald-500);
}

.marks-submit-actions {
    margin-top: 0;
    border-top: 1px solid rgba(23, 62, 105, .10);
    background: rgba(226, 243, 253, .42);
}

@media (max-width: 720px) {
    .marks-entry-row { grid-template-columns: 1fr; }
    .marks-save-actions { align-items: stretch; }
    .marks-save-actions button,
    .marks-submit-actions button { width: 100%; }
}

.cbc-workflow-heading > span {
    color: var(--emerald-800);
    border-color: rgba(16, 166, 120, .24);
    background: linear-gradient(135deg, var(--emerald-100), rgba(255, 255, 255, .9));
}

.cbc-scope-form {
    border-top: 4px solid var(--emerald-500);
    box-shadow: var(--shadow-soft);
}

.cbc-workflow-metrics article:nth-child(2) {
    border-color: rgba(218, 165, 32, .24);
    background: linear-gradient(145deg, rgba(255, 242, 206, .8), rgba(255, 255, 255, .95));
}

.cbc-record-directory,
.cbc-history-directory {
    overflow: hidden;
    border: 1px solid rgba(23, 62, 105, .12);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .84);
    box-shadow: var(--shadow-soft);
}

.cbc-record-directory > .directory-results-bar,
.cbc-history-directory > .directory-results-bar {
    padding: 18px 20px;
    background: linear-gradient(90deg, rgba(215, 247, 235, .74), rgba(255, 255, 255, .94));
}

.cbc-record-directory .directory-results-bar .eyebrow {
    margin: 0 0 3px;
}

.cbc-record-directory .directory-results-bar h2 {
    margin: 0;
}

.cbc-evidence-form {
    margin: 16px;
    border-top: 4px solid var(--emerald-500);
    box-shadow: none;
}

.cbc-evidence-form textarea,
.development-profile-form textarea {
    width: 100%;
    resize: vertical;
}

.cbc-save-actions {
    align-items: center;
}

.cbc-save-actions span {
    color: var(--muted);
    font-size: .82rem;
}

.cbc-submit-actions {
    display: flex;
    margin: 0;
    padding: 16px;
    border-top: 1px solid rgba(23, 62, 105, .10);
    background: rgba(215, 247, 235, .42);
}

.cbc-submit-actions > div {
    display: grid;
    gap: 3px;
}

.cbc-evidence-list {
    display: grid;
    gap: 9px;
    padding: 14px;
    border: 0;
    background: transparent;
}

.cbc-evidence-row {
    border: 1px solid rgba(23, 62, 105, .10);
    border-radius: 12px;
    background: rgba(255, 255, 255, .97);
}

@media (max-width: 720px) {
    .cbc-submit-actions button { width: 100%; }
    .cbc-evidence-row { grid-template-columns: 1fr; }
    .cbc-save-actions { align-items: stretch; }
    .cbc-save-actions button { width: 100%; }
}

.development-workflow-heading > span {
    color: #74500a;
    border-color: rgba(218, 165, 32, .28);
    background: linear-gradient(135deg, var(--gold-100), rgba(255, 255, 255, .9));
}

.development-scope-form {
    border-top: 4px solid #e4a91f;
    box-shadow: var(--shadow-soft);
}

.development-step-intro > span {
    color: var(--navy-950);
    background: linear-gradient(135deg, #f5c958, #e4a91f);
}

.development-workflow-metrics article:first-child {
    border-color: rgba(35, 136, 201, .20);
    background: linear-gradient(145deg, rgba(226, 243, 253, .82), rgba(255, 255, 255, .95));
}

.development-workflow-metrics article:nth-child(3) {
    border-color: rgba(218, 165, 32, .24);
    background: linear-gradient(145deg, rgba(255, 242, 206, .8), rgba(255, 255, 255, .95));
}

.development-profile-directory {
    overflow: hidden;
    border: 1px solid rgba(23, 62, 105, .12);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .84);
    box-shadow: var(--shadow-soft);
}

.development-profile-directory > .directory-results-bar {
    padding: 18px 20px;
    background: linear-gradient(90deg, rgba(255, 242, 206, .72), rgba(255, 255, 255, .94));
}

.development-profile-directory .directory-results-bar .eyebrow {
    margin: 0 0 3px;
}

.development-profile-directory .directory-results-bar h2 {
    margin: 0;
}

.development-profile-form {
    margin: 16px;
    border-top: 4px solid #e4a91f;
    box-shadow: none;
}

.development-observation-grid > div {
    position: relative;
    padding: 14px;
    border: 1px solid rgba(23, 62, 105, .10);
    border-radius: 12px;
    background: rgba(255, 255, 255, .92);
}

.development-observation-grid textarea {
    min-height: 100px;
    background: white;
}

.development-save-actions {
    align-items: center;
}

.development-save-actions span {
    color: var(--muted);
    font-size: .82rem;
}

.development-submit-actions {
    display: flex;
    margin: 0;
    padding: 16px;
    border-top: 1px solid rgba(23, 62, 105, .10);
    background: rgba(255, 242, 206, .38);
}

.development-submit-actions > div {
    display: grid;
    gap: 3px;
}

@media (max-width: 720px) {
    .development-submit-actions button { width: 100%; }
    .development-save-actions { align-items: stretch; }
    .development-save-actions button { width: 100%; }
}

@media (max-width: 820px) {
    .academic-workflow-progress {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workflow-filter-grid,
    .workflow-filter-grid-compact {
        grid-template-columns: 1fr 1fr;
    }

    .workflow-filter-grid > button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 620px) {
    .academic-workflow-progress {
        gap: 6px;
    }

    .academic-workflow-progress li {
        padding: 8px;
    }

    .academic-workflow-progress li strong {
        font-size: .7rem;
    }

    .workflow-filter-grid,
    .workflow-filter-grid-compact,
    .marks-entry-row {
        grid-template-columns: 1fr;
    }

    .workflow-filter-grid > button,
    .marks-entry-row > .user-identity,
    .marks-entry-row > .user-statuses {
        grid-column: auto;
    }

    .workflow-action-panel,
    .cbc-submit-actions,
    .development-submit-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .workflow-action-panel button {
        width: 100%;
    }
}

.reports-workflow-heading > span {
    color: var(--navy-700);
    border-color: rgba(35, 136, 201, .24);
    background: linear-gradient(135deg, var(--sky-100), rgba(255, 255, 255, .9));
}

.reports-scope-form {
    border-top: 4px solid var(--sky-600);
    box-shadow: var(--shadow-soft);
}

.reports-step-intro > span {
    background: linear-gradient(135deg, var(--sky-600), var(--navy-700));
}

.reports-readiness-metrics article:first-child {
    border-color: rgba(16, 166, 120, .22);
    background: linear-gradient(145deg, rgba(215, 247, 235, .82), rgba(255, 255, 255, .95));
}

.reports-readiness-metrics article:nth-child(2) {
    border-color: rgba(218, 165, 32, .24);
    background: linear-gradient(145deg, rgba(255, 242, 206, .8), rgba(255, 255, 255, .95));
}

.report-period-summary {
    display: grid;
    gap: 5px;
    align-self: stretch;
    align-content: center;
    padding: 9px 12px;
    border: 1px solid rgba(23, 62, 105, .12);
    border-radius: 10px;
    background: rgba(226, 243, 253, .5);
}

.report-period-summary span {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 800;
}

.report-period-summary strong {
    color: var(--navy-800);
    font-size: .82rem;
}

.report-gate-summary {
    margin: 0 0 16px;
    padding: 16px 18px;
    border: 1px solid rgba(218, 165, 32, .25);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(255, 242, 206, .74), rgba(255, 255, 255, .94));
}

.report-gate-summary > div {
    display: flex;
    gap: 12px;
    align-items: center;
}

.report-gate-summary strong {
    color: var(--navy-900);
}

.report-gate-summary p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.5;
}

.report-gate-summary.is-ready {
    border-color: rgba(16, 166, 120, .24);
    background: linear-gradient(135deg, rgba(215, 247, 235, .78), rgba(255, 255, 255, .95));
}

.report-gate-summary.is-ready .workflow-step-number {
    color: white;
    background: var(--emerald-500);
}

.report-approval-notice,
.report-generate-actions {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.report-approval-notice {
    margin-bottom: 18px;
    border-color: rgba(35, 136, 201, .18);
    background: linear-gradient(135deg, rgba(226, 243, 253, .68), white);
}

.report-approval-notice.is-approved {
    border-color: rgba(16, 166, 120, .24);
    background: linear-gradient(135deg, rgba(215, 247, 235, .72), white);
}

.report-approval-notice.is-approved .workflow-step-number {
    color: white;
    background: var(--emerald-500);
}

.report-approval-notice form button {
    min-height: 42px;
    padding: 11px 15px;
    border: 0;
    border-radius: 10px;
    color: white;
    background: var(--navy-700);
    cursor: pointer;
    font: inherit;
    font-weight: 850;
}

.report-approval-notice form button:disabled {
    cursor: not-allowed;
    opacity: .48;
}

.report-approval-notice > div,
.report-generate-actions > div {
    display: grid;
    gap: 4px;
}

.report-readiness-directory,
.report-batch-result,
.report-history-directory {
    overflow: hidden;
    border: 1px solid rgba(23, 62, 105, .12);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .84);
    box-shadow: var(--shadow-soft);
}

.report-readiness-directory > .directory-results-bar,
.report-batch-result > .directory-results-bar,
.report-history-directory > .directory-results-bar {
    padding: 18px 20px;
    background: linear-gradient(90deg, rgba(226, 243, 253, .76), rgba(255, 255, 255, .94));
}

.report-readiness-directory .directory-results-bar .eyebrow {
    margin: 0 0 3px;
}

.report-readiness-directory .directory-results-bar h2 {
    margin: 0;
}

.report-learner-list {
    display: grid;
    gap: 9px;
    padding: 14px;
    border: 0;
    background: transparent;
}

.report-learner-row {
    border: 1px solid rgba(23, 62, 105, .10);
    border-radius: 12px;
    background: rgba(255, 255, 255, .97);
}

.report-learner-row.is-ready {
    border-left: 4px solid var(--emerald-500);
}

.report-learner-row.is-incomplete {
    align-items: start;
    border-left: 4px solid #e4a91f;
}

.report-readiness-state {
    display: grid;
    gap: 5px;
    justify-items: start;
}

.report-readiness-state small {
    color: var(--muted);
}

.report-missing-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.report-missing-list span {
    padding: 4px 7px;
    border-radius: 999px;
    color: #74500a;
    background: var(--gold-100);
    font-size: .68rem;
    font-weight: 800;
}

.report-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.report-individual-download {
    padding: 8px 10px;
    border-radius: 9px;
    color: white;
    background: var(--emerald-700);
    font-size: .74rem;
    font-weight: 850;
    text-decoration: none;
}

.report-individual-download:hover {
    background: var(--emerald-800);
}

.report-generate-actions {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 16px;
    border-top: 1px solid rgba(23, 62, 105, .10);
    background: rgba(215, 247, 235, .40);
}

.report-batch-warnings {
    margin: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(196, 74, 74, .22);
    border-radius: 12px;
    color: #812f2f;
    background: rgba(255, 238, 238, .76);
}

.report-batch-warnings ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.report-batch-download {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-top: 1px solid rgba(23, 62, 105, .1);
    background: rgba(215, 247, 235, .42);
}

.report-batch-download > div {
    display: grid;
    gap: 4px;
}

.report-batch-download span {
    color: var(--muted);
    font-size: .8rem;
}

.report-download-action {
    color: white;
    border-color: transparent;
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-800));
}

@media (max-width: 720px) {
    .report-approval-notice,
    .report-generate-actions { grid-template-columns: auto 1fr; }
    .report-approval-notice form,
    .report-generate-actions button { grid-column: 1 / -1; width: 100%; }
    .report-learner-row { grid-template-columns: 1fr; }
    .report-row-actions { justify-content: flex-start; }
    .report-batch-download,
    .report-generate-actions { flex-direction: column; align-items: stretch; }
    .report-download-action { text-align: center; }
}

.governance-heading > span,
.approvals-workflow-heading > span {
    color: #74500a;
    border-color: rgba(218, 165, 32, .28);
    background: linear-gradient(135deg, var(--gold-100), rgba(255, 255, 255, .9));
}

.governance-heading > div > p:last-child,
.approvals-workflow-heading > div > p:last-child {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--muted);
}

.governance-primary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.governance-zone-guide,
.approval-flow-guide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.governance-zone-guide article {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid rgba(23, 62, 105, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow-soft);
}

.governance-zone-guide p,
.workspace-routing-note,
.governance-risk-divider p,
.governance-safety-banner p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; }

.governance-zone-icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: white;
    font-weight: 900;
}
.governance-zone-icon.routine { background: var(--emerald-600); }
.governance-zone-icon.controlled { background: var(--sky-600); }
.governance-zone-icon.protected { background: #b83f3f; }

.governance-risk-divider {
    margin: 28px 0 14px;
    padding: 15px 18px;
    border-left: 5px solid #b83f3f;
    border-radius: 0 12px 12px 0;
    background: rgba(255, 235, 235, .72);
}
.governance-risk-divider span { color: #8c2929; font-weight: 900; }

.governance-safety-banner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 14px 0;
    padding: 15px 17px;
    border: 1px solid rgba(23, 128, 91, .22);
    border-radius: 14px;
    background: rgba(229, 249, 239, .72);
}
.governance-safety-banner > span { color: var(--emerald-700); font-size: 1.25rem; font-weight: 900; }

.workspace-routing-note {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-left: 4px solid var(--emerald-500);
    background: rgba(233, 248, 241, .7);
}

.approval-flow-guide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.approval-flow-guide span {
    padding: 12px 13px;
    border: 1px solid rgba(23, 92, 75, .14);
    border-radius: 12px;
    color: var(--muted);
    background: linear-gradient(145deg, rgba(238, 250, 244, .9), white);
    font-size: .78rem;
}
.approval-flow-guide strong { display: block; margin-bottom: 3px; color: var(--emerald-800); }

.governance-operation,
.term-reset-directory,
.approvals-queue {
    overflow: hidden;
    border: 1px solid rgba(23, 62, 105, .12);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .84);
    box-shadow: var(--shadow-soft);
}

.governance-operation > .directory-results-bar,
.term-reset-directory > .directory-results-bar,
.approvals-queue > .directory-results-bar {
    padding: 18px 20px;
    background: linear-gradient(90deg, rgba(255, 242, 206, .72), rgba(255, 255, 255, .94));
}

.governance-operation .directory-results-bar .eyebrow {
    margin: 0 0 3px;
}

.governance-operation .directory-results-bar h2 {
    margin: 0;
}

.governance-rollover {
    border-top: 4px solid #e4a91f;
}

.governance-recovery {
    border-top: 4px solid #c44a4a;
}

.governance-recovery > .directory-results-bar {
    background: linear-gradient(90deg, rgba(255, 232, 232, .78), rgba(255, 255, 255, .94));
}

.governance-progression {
    border-top: 4px solid var(--emerald-500);
}

.term-setup-heading {
    padding: 24px;
    border: 1px solid rgba(23, 62, 105, .12);
    border-radius: var(--radius-md);
    background: linear-gradient(125deg, rgba(226, 243, 253, .80), rgba(255, 255, 255, .94));
    box-shadow: var(--shadow-soft);
}

.term-setup-form {
    border-top: 4px solid var(--sky-600);
    box-shadow: var(--shadow-soft);
}

.term-step-intro > span {
    background: linear-gradient(135deg, var(--sky-600), var(--navy-700));
}

.term-reset-directory {
    border-top: 4px solid #c44a4a;
}

.approvals-queue {
    border-top: 4px solid #e4a91f;
}

@media (max-width: 620px) {
    .governance-primary-actions { display: grid; grid-template-columns: 1fr; }
    .governance-primary-actions a { text-align: center; }
    .governance-zone-guide,
    .approval-flow-guide { grid-template-columns: 1fr; }
}

.analytics-workflow-heading > span {
    color: var(--navy-700);
    border-color: rgba(35, 136, 201, .24);
    background: linear-gradient(135deg, var(--sky-100), rgba(255, 255, 255, .9));
}

.analytics-workflow-heading > div > p:last-child {
    margin: 7px 0 0;
    color: var(--muted);
}

.analytics-scope-form {
    border-top: 4px solid var(--sky-600);
    box-shadow: var(--shadow-soft);
}

.analytics-filter-fields {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) auto auto;
    gap: 12px;
    align-items: end;
}
.analytics-filter-fields label { display: grid; gap: 6px; }
.analytics-filter-fields label > span { color: var(--navy-800); font-size: .76rem; font-weight: 850; }
.analytics-filter-fields select { width: 100%; }
.analytics-filter-fields a { align-self: center; color: var(--emerald-700); font-size: .8rem; font-weight: 800; }

.analytics-scope-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 10px 0 16px;
    color: var(--muted);
    font-size: .78rem;
}
.analytics-scope-summary > span { padding: 6px 10px; border-radius: 999px; color: var(--navy-800); background: var(--sky-100); font-weight: 800; }
.analytics-scope-summary small { margin-left: auto; }

.analytics-section-heading {
    display: flex;
    gap: 13px;
    align-items: center;
    margin: 30px 0 12px;
}
.analytics-section-heading > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    color: white;
    background: linear-gradient(135deg, var(--sky-600), var(--navy-700));
    font-weight: 900;
}
.analytics-section-heading.support > span { background: linear-gradient(135deg, #d49316, #a65b16); }
.analytics-section-heading h2,
.analytics-section-heading p { margin: 0; }
.analytics-section-heading div > p:last-child { margin-top: 3px; color: var(--muted); font-size: .82rem; }

.analytics-support-panel { border-top: 4px solid #d49316; }
.analytics-support-panel > .directory-results-bar { background: linear-gradient(90deg, rgba(255, 242, 206, .72), white); }
.analytics-results-panel { border-top: 4px solid var(--navy-700); }

.analytics-step-intro > span {
    background: linear-gradient(135deg, var(--sky-600), var(--navy-700));
}

.analytics-evidence-metrics article:nth-child(2) {
    background: linear-gradient(145deg, rgba(215, 247, 235, .72), rgba(255, 255, 255, .96));
}

.analytics-evidence-metrics article:nth-child(3) {
    background: linear-gradient(145deg, rgba(226, 243, 253, .78), rgba(255, 255, 255, .96));
}

.analytics-evidence-metrics article:nth-child(4) {
    background: linear-gradient(145deg, rgba(255, 242, 206, .72), rgba(255, 255, 255, .96));
}

.analytics-insight-grid .analytics-panel {
    border: 1px solid rgba(23, 62, 105, .12);
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow-soft);
}

.analytics-insight-grid .analytics-panel > .directory-results-bar {
    background: linear-gradient(90deg, rgba(226, 243, 253, .68), rgba(255, 255, 255, .94));
}

@media (max-width: 800px) {
    .analytics-filter-fields { grid-template-columns: 1fr 1fr; }
    .analytics-filter-fields button,
    .analytics-filter-fields a { text-align: center; }
    .analytics-scope-summary small { width: 100%; margin-left: 0; }
}

@media (max-width: 620px) {
    .analytics-filter-fields { grid-template-columns: 1fr; }
    .analytics-results-panel .table-scroll { overflow: visible; }
    .analytics-results-panel table,
    .analytics-results-panel tbody { display: block; }
    .analytics-results-panel thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .analytics-results-panel tr { display: grid; gap: 8px; margin: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: white; }
    .analytics-results-panel td { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 0; border: 0; }
    .analytics-results-panel td::before { content: attr(data-label); color: var(--muted); font-size: .68rem; font-weight: 850; text-transform: uppercase; }
}

.accounts-directory-heading > span {
    color: var(--navy-700);
    border-color: rgba(35, 136, 201, .24);
    background: linear-gradient(135deg, var(--sky-100), rgba(255, 255, 255, .9));
}

.accounts-primary-action {
    color: white;
    border-color: transparent;
    background: linear-gradient(135deg, var(--sky-600), var(--navy-700));
}

.accounts-search {
    border-top: 4px solid var(--sky-600);
    box-shadow: var(--shadow-soft);
}

.accounts-directory {
    overflow: hidden;
    border: 1px solid rgba(23, 62, 105, .12);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .86);
    box-shadow: var(--shadow-soft);
}

.accounts-directory > .directory-results-bar {
    padding: 18px 20px;
    background: linear-gradient(90deg, rgba(226, 243, 253, .72), rgba(255, 255, 255, .94));
}

.account-directory-row { border-bottom-color: rgba(23, 62, 105, .10); }
.account-directory-row .user-statuses { gap: 7px; }

@media (max-width: 720px) {
    .account-directory-row { grid-template-columns: 1fr; }
}

/* Communications workspace */
.communications-heading { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(240px, .55fr); gap: 24px; align-items: end; }
.communications-guidance { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid rgba(28, 102, 89, .18); border-radius: 16px 16px 16px 5px; background: linear-gradient(135deg, rgba(230, 245, 239, .96), rgba(255, 249, 226, .9)); color: var(--muted); }
.communications-guidance strong { color: var(--navy-800); }
.communications-guidance span { line-height: 1.55; }
.communications-workspace { margin: 24px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px 20px 20px 7px; background: rgba(255, 253, 248, .9); box-shadow: 0 18px 45px rgba(28, 43, 50, .07); }
.workflow-section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; padding: 22px 24px; background: linear-gradient(110deg, var(--navy-800), #1c6659); color: white; }
.workflow-section-heading h2 { margin: 4px 0 0; color: white; }
.workflow-section-heading p { max-width: 440px; margin: 0; color: rgba(255, 255, 255, .8); }
.workflow-step { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #f5d477; }
.announcement-compose-form { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.communications-history, .provider-readiness, .delivery-audit { margin-top: 24px; }
.communications-history .directory-results-bar > div,
.provider-readiness .directory-results-bar > div,
.delivery-audit .directory-results-bar > div { display: grid; gap: 2px; }
.communications-history .directory-results-bar .eyebrow,
.provider-readiness .directory-results-bar .eyebrow,
.delivery-audit .directory-results-bar .eyebrow { margin: 0; }
.announcement-list, .delivery-list { display: grid; gap: 14px; padding: 18px; }
.announcement-card, .delivery-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 15px 15px 15px 5px; background: white; }
.announcement-card-heading { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.announcement-card h3 { margin: 4px 0 0; }
.announcement-card p { margin: 13px 0 0; color: var(--muted); line-height: 1.6; }
.announcement-card time { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.announcement-audience { color: #1c6659; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.announcement-audience-preview { display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px; border: 1px solid rgba(23, 128, 91, .2); border-radius: 12px; background: rgba(229, 249, 239, .68); }
.announcement-audience-preview > span { color: var(--emerald-700); font-size: 1.2rem; font-weight: 900; }
.announcement-audience-preview p { margin: 3px 0 0; color: var(--muted); font-size: .78rem; }
.announcement-card.current { border-left: 4px solid var(--emerald-500); }
.announcement-card.expired { opacity: .78; border-left: 4px solid #9d9688; background: #fbfaf7; }
.announcement-publication-state { display: grid; gap: 4px; justify-items: end; }
.announcement-publication-state small { color: var(--muted); font-size: .7rem; }
.delivery-metrics { grid-template-columns: repeat(3, 1fr); }
.delivery-metrics .metric-delivered strong { color: #176242; }
.delivery-metrics .metric-failed strong { color: #923b2f; }
.provider-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; padding: 18px; }
.provider-card { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.provider-card > div:not(.provider-icon) { display: grid; gap: 2px; }
.provider-card small { color: var(--muted); }
.provider-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: white; background: linear-gradient(135deg, var(--navy-700), #2c806c); font-weight: 800; }
.delivery-card { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; }
.delivery-card-copy { display: grid; gap: 4px; min-width: 0; }
.delivery-card-copy span, .delivery-card-copy small { color: var(--muted); }
.communications-route-actions { display: flex; gap: 14px; align-items: center; margin: 16px 0 22px; padding: 13px 15px; border-radius: 13px; background: rgba(226, 243, 253, .62); }
.communications-route-actions span { color: var(--muted); font-size: .78rem; }
.delivery-state { display: grid; gap: 4px; justify-items: center; }
.delivery-state small { color: var(--muted); font-size: .66rem; }

@media (max-width: 760px) {
    .communications-heading { grid-template-columns: 1fr; }
    .workflow-section-heading, .announcement-card-heading { align-items: start; flex-direction: column; }
    .delivery-metrics { grid-template-columns: 1fr; }
    .delivery-metrics article { border-right: 0; border-bottom: 1px solid var(--line); }
    .delivery-metrics article:last-child { border-bottom: 0; }
    .delivery-card { grid-template-columns: 1fr; align-items: start; }
    .announcement-card time { white-space: normal; }
    .announcement-publication-state,
    .delivery-state { justify-items: start; }
    .communications-route-actions { align-items: stretch; flex-direction: column; }
}

/* Phase 29 visual polish: a warmer, more inviting CBC Master experience. */
.login-school-shell .auth-card {
    overflow: hidden;
    border-color: rgba(23, 92, 75, .22);
    background-image:
        linear-gradient(180deg, rgba(255, 253, 248, .12) 0%, rgba(255, 253, 248, .24) 34%, rgba(255, 253, 248, .66) 72%, rgba(255, 253, 248, .78) 100%),
        url('/images/cbcmaster-school-compound-login.webp');
    background-position: 62% center;
    background-size: cover;
    box-shadow: 0 24px 60px rgba(10, 34, 43, .2);
}
.login-school-shell .auth-benefits > div {
    border: 1px solid rgba(211, 165, 45, .92);
    background: linear-gradient(135deg, rgba(18, 112, 81, .94), rgba(8, 76, 59, .96));
    box-shadow: 0 8px 20px rgba(7, 66, 52, .18), inset 0 0 0 1px rgba(255, 225, 136, .18);
}
.login-school-shell .auth-benefits strong {
    color: #ffe7a3;
}
.login-school-shell .auth-benefits span {
    color: rgba(255, 255, 255, .94);
}
.login-school-shell .auth-card .card-kicker,
.login-school-shell .auth-card h2,
.login-school-shell .auth-card .card-intro { text-shadow: 0 1px 12px white, 0 1px 20px white; }
.login-school-shell .auth-card .card-kicker,
.login-school-shell .auth-card h2 { width: max-content; max-width: 100%; padding: 4px 8px; border-radius: 8px; background: rgba(255, 253, 248, .56); }
.login-school-shell .auth-card .card-intro { padding: 9px 11px; border-radius: 10px; background: rgba(255, 253, 248, .56); }
.login-school-shell .auth-card form {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 16px;
    background: rgba(255, 253, 248, .16);
    backdrop-filter: blur(1.5px);
}
.login-school-shell .auth-card form label { color: #071f2a; text-shadow: 0 1px 8px rgba(255, 255, 255, .95); }
.login-school-shell .auth-card form input {
    border-color: rgba(7, 31, 42, .36);
    color: #071f2a;
    background: rgba(255, 255, 255, .25);
    backdrop-filter: blur(1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 2px 10px rgba(7, 31, 42, .08);
}
.login-school-shell .auth-card form input:focus {
    border-color: var(--forest);
    background: rgba(255, 255, 255, .52);
    box-shadow: 0 0 0 4px rgba(23, 92, 75, .16);
}
.login-school-shell .password-input-shell button { background: rgba(255, 253, 248, .48); }

@media (max-width: 820px) {
    .login-school-shell .auth-card { padding: 24px; }
    .login-school-shell .auth-card form { padding: 15px; }
}

.public-body .landing-classroom-hero {
    isolation: isolate;
    overflow: hidden;
    min-height: 680px;
    margin-top: 24px;
    padding: clamp(56px, 7vw, 88px) clamp(28px, 5vw, 72px);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 30px 30px 30px 10px;
    color: white;
    background-image:
        linear-gradient(90deg, rgba(6, 22, 32, .94) 0%, rgba(7, 30, 40, .84) 34%, rgba(8, 32, 40, .48) 58%, rgba(8, 30, 38, .18) 100%),
        url('/images/cbcmaster-classroom-hero.webp');
    background-position: center;
    background-size: cover;
    box-shadow: 0 26px 65px rgba(10, 34, 43, .2);
}

.public-body .landing-classroom-hero::before { display: none; }
.landing-classroom-hero .hero-copy,
.landing-classroom-hero .overview-card { position: relative; z-index: 1; }
.landing-classroom-hero .hero-copy { max-width: 720px; text-shadow: 0 2px 20px rgba(0, 0, 0, .18); }
.landing-classroom-hero .eyebrow { color: #86e5c4; }
.landing-classroom-hero h1 { color: white; }
.public-body .landing-classroom-hero h1 span {
    color: #f5d477;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: currentColor;
}
.landing-classroom-hero .hero-intro { color: rgba(255, 255, 255, .88); }
.landing-classroom-hero .primary-action { color: #08222b; background: #f5d477; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); }
.landing-classroom-hero .text-link { color: white; }
.landing-classroom-hero .hero-assurances li { color: rgba(255, 255, 255, .86); }
.landing-classroom-hero .overview-card {
    border-color: rgba(255, 225, 136, .46);
    color: #071f2a;
    text-shadow: 0 1px 10px rgba(255, 255, 255, .9);
    background: rgba(255, 253, 248, .44);
    backdrop-filter: blur(2px);
    box-shadow: 0 22px 48px rgba(5, 24, 34, .2);
}
.landing-classroom-hero .overview-card::before { opacity: .24; }
.landing-classroom-hero .overview-card .overview-note { background: rgba(237, 245, 239, .62); }
.landing-classroom-hero .overview-card dt { color: #233f49; }

@media (max-width: 1080px) {
    .public-body .landing-classroom-hero { grid-template-columns: 1fr; background-position: 62% center; }
    .landing-classroom-hero .overview-card { max-width: 620px; }
}

@media (max-width: 700px) {
    .public-body .landing-classroom-hero {
        min-height: auto;
        margin-top: 14px;
        padding: 44px 22px 26px;
        border-radius: 22px 22px 22px 7px;
        background-image:
            linear-gradient(180deg, rgba(5, 24, 34, .95) 0%, rgba(6, 27, 36, .88) 52%, rgba(6, 25, 33, .68) 100%),
            url('/images/cbcmaster-classroom-hero.webp');
        background-position: 58% center;
    }
    .landing-classroom-hero h1 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
    .landing-classroom-hero .overview-card { padding: 22px; }
}

:root {
    --emerald-800: #07543f;
    --emerald-500: #10a678;
    --gold-600: #bd8420;
    --coral-500: #e26b55;
    --violet-500: #7567d8;
    --page-glow: rgba(16, 166, 120, .10);
    --shadow-soft: 0 10px 30px rgba(7, 26, 47, .07);
    --shadow-lifted: 0 20px 46px rgba(7, 26, 47, .13);
}

body {
    background-color: #f6f9fb;
}

.public-body {
    background:
        radial-gradient(circle at 8% 5%, rgba(16, 166, 120, .15), transparent 28rem),
        radial-gradient(circle at 92% 18%, rgba(216, 165, 54, .16), transparent 25rem),
        linear-gradient(180deg, #fbfdfd 0%, #f4f8f7 56%, #fffaf0 100%);
}

.command-body {
    background:
        radial-gradient(circle at 84% 3%, rgba(35, 136, 201, .08), transparent 27rem),
        radial-gradient(circle at 25% 90%, rgba(16, 166, 120, .07), transparent 30rem),
        #f5f8fa;
}

.command-body .command-sidebar {
    background:
        radial-gradient(circle at 18% 8%, rgba(16, 166, 120, .20), transparent 15rem),
        linear-gradient(165deg, #06182b 0%, #0b2d4c 58%, #07543f 145%);
}

.command-body .admin-navigation a {
    transition: color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.command-body .admin-navigation a:hover {
    transform: translateX(3px);
    background: linear-gradient(90deg, rgba(16, 166, 120, .19), rgba(255, 255, 255, .06));
}

.command-body .admin-navigation a.current {
    background: linear-gradient(90deg, rgba(16, 166, 120, .36), rgba(16, 166, 120, .13));
    box-shadow: inset 3px 0 var(--gold-500), 0 8px 18px rgba(0, 0, 0, .08);
}

.command-topbar {
    box-shadow: 0 7px 24px rgba(7, 26, 47, .045);
}

.directory-heading,
.school-profile-heading,
.edit-profile-heading,
.learner-profile-hero {
    position: relative;
}

.directory-heading::after,
.school-profile-heading::after,
.edit-profile-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 7px;
    width: 74px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--emerald-500), var(--gold-500));
}

.profile-panel,
.user-directory,
.user-list,
.audit-list,
.class-roster,
.overview-card,
.school-card,
.ui-card,
.command-module-card {
    border-color: rgba(23, 62, 105, .12);
    background: rgba(255, 255, 255, .91);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px);
}

.profile-panel,
.school-card,
.overview-card,
.command-module-card {
    position: relative;
    overflow: hidden;
}

.profile-panel::before,
.school-card::before,
.overview-card::before,
.command-module-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--emerald-500), var(--sky-600), var(--gold-500));
    opacity: .78;
}

.command-module-card,
.school-card,
.user-row,
.assignment-card,
.class-action-card {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

.command-module-card:hover,
.school-card:hover,
.assignment-card:hover,
.class-action-card:hover {
    transform: translateY(-3px);
    border-color: rgba(16, 166, 120, .36);
    box-shadow: var(--shadow-lifted);
}

.user-row:hover {
    background: linear-gradient(90deg, rgba(16, 166, 120, .055), rgba(35, 136, 201, .035));
}

.module-icon,
.section-icon,
.brand-mark {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38), 0 8px 18px rgba(7, 26, 47, .10);
}

.tint-emerald { background: linear-gradient(145deg, #dff8ee, #c9f0e3); }
.tint-gold { background: linear-gradient(145deg, #fff3cf, #ffe5a2); }
.tint-sky { background: linear-gradient(145deg, #e3f4ff, #c9e9fb); }
.tint-navy { background: linear-gradient(145deg, #e9eff7, #d9e4f0); }

input,
select,
textarea {
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #9cb7ad;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--emerald-500) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(16, 166, 120, .13) !important;
    outline: none;
}

.form-actions button,
.directory-search button,
.submit-button,
.primary-action,
.access-action-button.restore {
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-800));
    box-shadow: 0 8px 18px rgba(8, 112, 82, .20);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.form-actions button:hover,
.directory-search button:hover,
.submit-button:hover,
.primary-action:hover,
.access-action-button.restore:hover {
    transform: translateY(-1px);
    filter: saturate(1.08) brightness(1.03);
    box-shadow: 0 12px 24px rgba(8, 112, 82, .27);
}

.status-message,
.ui-notice,
.notice {
    border-left-color: var(--emerald-500);
    background: linear-gradient(90deg, rgba(223, 245, 236, .78), rgba(255, 255, 255, .92));
    box-shadow: 0 6px 18px rgba(7, 26, 47, .045);
}

.validation-summary-errors,
.form-error {
    box-shadow: 0 7px 20px rgba(180, 68, 56, .08);
}

.public-body .hero {
    position: relative;
}

.public-body .hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: min(42vw, 520px);
    aspect-ratio: 1;
    right: -8%;
    top: 2%;
    border: clamp(34px, 5vw, 68px) solid rgba(16, 166, 120, .07);
    border-radius: 50%;
}

.public-body .hero h1 span {
    color: var(--emerald-700);
    background: linear-gradient(110deg, var(--emerald-700), var(--sky-600));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.public-body .overview-card {
    border-top: 5px solid var(--gold-500);
    box-shadow: var(--shadow-lifted);
}

.feature-grid article {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.feature-grid article:nth-child(1) { border-top-color: var(--emerald-500); }
.feature-grid article:nth-child(2) { border-top-color: var(--sky-600); }
.feature-grid article:nth-child(3) { border-top-color: var(--gold-500); }
.feature-grid article:hover { transform: translateY(-4px); box-shadow: var(--shadow-lifted); }

@media (prefers-reduced-motion: reduce) {
    .command-body .admin-navigation a,
    .command-module-card,
    .school-card,
    .user-row,
    .assignment-card,
    .class-action-card,
    .feature-grid article,
    .form-actions button,
    .directory-search button,
    .submit-button,
    .primary-action {
        transition: none;
    }
}
