@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

:root {
    /* Olive & Tide brand palette */
    --olive: #556b2f;
    --sage: #8ca88c;
    --tide: #2e5d7a;
    --sky: #8cc0d9;
    --sand: #e8d4a9;
    --sunrise: #f4b183;
    --canvas: #faf7ef;

    /* Semantic aliases retained for existing component styles */
    --teal-950: #234961;
    --teal-900: var(--tide);
    --teal-800: #397392;
    --green-900: #3f5226;
    --green-700: var(--olive);
    --green-100: #e5eee5;
    --gold-500: var(--sand);
    --gold-100: #f7edd7;
    --paper: var(--canvas);
    --card: #ffffff;
    --line: #d8e1dc;
    --ink: #29443f;
    --muted: #657871;
    --shadow: 0 18px 50px rgba(46, 93, 122, 0.12);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: radial-gradient(circle at 90% 0%, #fffdf7 0, transparent 30rem), var(--canvas);
    color: var(--ink);
    font: 15px/1.6 'DM Sans', sans-serif;
}

body::before {
    content: '';
    display: block;
    height: 0;
    background: linear-gradient(90deg, var(--sunrise), var(--sand) 45%, var(--sage));
}

h1, h2, h3 { color: var(--green-900); font-family: 'Libre Baskerville', Georgia, serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 1.8rem 0 .6rem; }
h2 { font-size: 1.45rem; margin-top: 0; }
h3 { font-size: 1.22rem; }
a { color: var(--teal-800); font-weight: 600; }
a:hover { color: var(--green-700); }

main, body > section, body > h1, body > p, body > form { width: min(1320px, calc(100vw - 240px)); margin-left: 213px; margin-right: auto; }
.admin-page { width: min(1320px, calc(100vw - 240px)); margin-left: 213px; margin-right: auto; padding: 1.5rem 1rem 3rem; }

.site-header { position: fixed; inset: 0 auto 0 0; z-index: 10; width: 181px; padding: 1.5rem .55rem .8rem; display: flex; flex-direction: column; overflow-y: auto; background: var(--olive); color: #fff; box-shadow: 12px 0 35px rgba(46,93,122,.12); }
.current-school-banner { display: flex; align-items: center; justify-content: flex-end; gap: .7rem; width: calc(100% - 240px); min-height: 64px; margin: 0 1.5rem 0 213px; padding: .65rem 0; color: var(--green-900); text-align: right; text-decoration: none; }
.current-school-banner:hover { color: var(--teal-800); }
.current-school-banner > span:first-child { display: grid; gap: .05rem; }
.current-school-banner small { color: var(--muted); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.current-school-banner strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; }
.current-school-banner__logo { display: grid; place-items: center; width: 42px; height: 42px; overflow: hidden; border-radius: 12px; background: linear-gradient(135deg, var(--green-900), var(--teal-800)); color: #fff; font: 700 1.1rem 'Libre Baskerville', serif; }
.current-school-banner__logo img { width: 100%; height: 100%; object-fit: cover; }

.brand { display: block; color: #fff; text-decoration: none; margin: 0 .2rem 1.8rem; padding: .55rem .35rem .45rem; border: 1px solid rgba(250,247,239,.72); border-radius: 14px; background: rgba(250,247,239,.96); box-shadow: 0 8px 20px rgba(22,57,52,.22); }
.brand img { display: block; width: 100%; height: auto; max-height: 76px; object-fit: contain; object-position: center; border: 0; border-radius: 8px; background: transparent; mix-blend-mode: normal; }
.brand strong { display: none; }
.brand small { color: #cde1db; letter-spacing: .08em; text-transform: uppercase; font-size: .64rem; }
.site-nav { flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: .35rem; }
.site-nav a { padding: .58rem .6rem; color: #fff; text-decoration: none; border-radius: 6px; font-size: .82rem; font-weight: 500; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(0,0,0,.22); color: #fff; }
.site-nav a::before { display: inline-block; width: 1.3rem; margin-right: .35rem; color: var(--gold-500); font-size: 1.18rem; vertical-align: -1px; text-align: center; }
.site-nav a[href="/dashboard"]::before { content: '⌂'; }
.site-nav a[href="/students"]::before { content: '♟'; }
.site-nav a[href="/transcripts"]::before { content: '▣'; }
.site-nav a[href="/school-years"]::before { content: '▤'; }
.site-nav a[href="/courses"]::before { content: '▤'; }
.site-nav a[href="/report-cards"]::before { content: '▣'; }
.site-nav a[href="/attendance"]::before { content: '◷'; }
.site-nav a[href="/account/connections"]::before { content: '↔'; }
.site-nav a[href="/admin/schools"]::before { content: '⌂'; }
.site-nav a[href="/logout"]::before { content: '➜'; }
.nav-group { margin: .2rem .6rem .35rem; color: #b8d8c0; font-size: .58rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.management-label { margin-top: 1.2rem; color: var(--gold-500); border-top: 1px solid rgba(255,255,255,.18); padding-top: 1.1rem; }
.lead-copy { max-width: 760px; color: var(--muted); font-size: 1rem; }
.page-breadcrumbs { margin: 1.5rem 0 .4rem; }
.page-hero { display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start; padding: 1.5rem; margin-bottom: 1rem; background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(251,248,241,.96)); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.dashboard-page > .page-hero { padding-top: .8rem; padding-bottom: .8rem; }
.dashboard-page > .page-hero h1 { margin-top: .7rem; margin-bottom: .35rem; }
.page-hero__identity { display: flex; gap: 1rem; align-items: center; min-width: 0; }
.page-hero__actions { display: grid; gap: .85rem; min-width: 280px; }
.school-mark-wrap { position: relative; flex: 0 0 auto; }
.school-mark { width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--green-900), var(--teal-800)); color: #fff; font: 700 1.9rem 'Libre Baskerville', serif; box-shadow: 0 12px 30px rgba(7,58,73,.18); }
.school-mark img { width: 100%; height: 100%; object-fit: cover; }
.school-mark-edit { position: absolute; right: -7px; bottom: -7px; display: grid; place-items: center; width: 30px; min-height: 30px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--gold-500); color: var(--green-900); font-size: 1rem; line-height: 1; box-shadow: 0 5px 12px rgba(7,58,73,.2); }
.school-mark-edit:hover { background: var(--green-900); color: #fff; }
.page-subtitle { display: flex; align-items: center; gap: .5rem; color: var(--muted); }
.inline-action { min-height: 30px; padding: .25rem .5rem; background: transparent; color: var(--teal-800); border: 1px solid var(--line); }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; }
.info-grid > div { padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.info-grid strong { display: block; margin-bottom: .2rem; color: var(--green-900); }
.school-settings-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; margin-bottom: .8rem; }
.school-settings-row > div { padding: .65rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.school-information-section .info-grid { grid-template-columns: repeat(20, minmax(0, 1fr)); }
.school-field--name { grid-column: 1 / span 15; grid-row: 1; }
.school-field--school-id { grid-column: 16 / span 5; grid-row: 1; }
.school-field--address1 { grid-column: 1 / span 10; grid-row: 2; }
.school-field--address2 { grid-column: 11 / span 10; grid-row: 2; }
.school-field--city { grid-column: 1 / span 12; grid-row: 3; }
.school-field--state { grid-column: 13 / span 4; grid-row: 3; }
.school-field--zip { grid-column: 17 / span 4; grid-row: 3; }
.school-field--admin-name { grid-column: 1 / span 10; grid-row: 4; }
.school-field--admin-email { grid-column: 11 / span 10; grid-row: 4; }
.school-action-row { display: grid; grid-template-columns: repeat(2, minmax(240px, 1fr)); gap: .8rem 1rem; margin-top: .8rem; }
.school-action-row > div { min-width: 0; min-height: 7rem; padding: .65rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.school-action-row strong { display: block; margin-bottom: .35rem; color: var(--green-900); }
.school-action-row form { display: flex; align-items: center; flex-wrap: nowrap; gap: .55rem; min-height: 42px; }
.school-action-row .checkbox-field { flex-direction: row; align-items: center; margin: 0; }
.school-action-row select { min-height: 38px; }
.school-action-row button { padding: .55rem .8rem; white-space: nowrap; }
.school-action-card { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; }
.school-action-card small { color: var(--muted); font-size: .75rem; }
.school-directory-box { margin-bottom: 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.school-directory-box > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; cursor: pointer; list-style: none; }
.school-directory-box > summary::-webkit-details-marker { display: none; }
.school-directory-box > summary strong { display: block; margin-top: .2rem; color: var(--green-900); font: 700 1.35rem 'Libre Baskerville', Georgia, serif; }
.school-directory-toggle { padding: .45rem .7rem; border-radius: 999px; background: var(--green-100); color: var(--teal-800); font-size: .78rem; font-weight: 700; }
.school-directory-box > summary .school-directory-toggle { font-size: 0; }
.school-directory-box > summary .school-directory-toggle::after { content: 'Expand'; font-size: .78rem; }
.school-directory-box[open] > summary { border-bottom: 1px solid var(--line); }
.school-directory-box[open] .school-directory-toggle { background: var(--gold-100); color: var(--green-900); }
.school-directory-box[open] > summary .school-directory-toggle::after { content: 'Collapse'; }
.school-directory-content { margin: 0; padding: 1.25rem; }
.school-directory-content > .section-heading:first-child { margin-top: 0; }
.graduates-table { min-width: 900px; }
.graduates-table th:nth-child(4), .graduates-table td:nth-child(4) { text-align: right; }
.school-invite-panel { display: grid; gap: 1rem; margin-bottom: 1.35rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfa; }
.school-invite-copy strong { display: block; color: var(--green-900); font-size: .98rem; }
.school-invite-copy p { margin: .2rem 0 0; color: var(--muted); font-size: .88rem; }
.school-invite-fields { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(220px, 1.35fr) minmax(160px, .8fr) auto; align-items: end; gap: .75rem; }
.school-invite-fields label { margin: 0; }
.school-invite-fields button { min-height: 42px; white-space: nowrap; }
.student-profile-actions { display: flex; align-items: center; gap: .55rem; }
.student-profile-actions .danger { background: #a6342b; color: #fff; }
.student-delete-modal { max-width: 560px; }
.directory-toolbar { display: flex; justify-content: flex-end; margin-bottom: .9rem; }
.school-action-button-group { min-width: 0; min-height: 7rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.school-action-row > .school-action-button-group { grid-column: 1 / -1; }
.school-action-buttons { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .55rem 1rem; margin-top: .7rem; }
.school-action-button-group .school-action-card { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; }
.school-action-button-group .school-action-card button { min-height: 42px; }
.school-action-button-group .school-action-card small { margin-top: .2rem; }
.school-status-card, .school-attendance-card { min-height: 7rem !important; padding: .65rem .9rem !important; }
.school-status-card form, .school-attendance-card form { display: flex; align-items: center; flex-wrap: nowrap; gap: .55rem; min-height: 42px; margin-top: .45rem; }
.school-status-card select { min-height: 38px; }
.school-status-card button, .school-attendance-card button { padding: .55rem .8rem; }
.school-attendance-card .checkbox-field { flex-direction: row; align-items: center; margin: 0; }
.school-attendance-card .checkbox-field { white-space: nowrap; }
.stacked-cards { display: grid; gap: .8rem; }
.subcard { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fcfcfa; }
.subcard strong { display: block; margin-bottom: .35rem; }
.subcard-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.school-year-editor { display: grid; gap: .75rem; margin-top: .75rem; }
.school-year-editor[hidden] { display: none; }
.school-year-editor > form:first-child { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto; align-items: end; gap: .6rem; }
.school-year-editor button { min-height: 40px; }
.school-year-editor > form:last-child { justify-self: start; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
.admin-table th, .admin-table td { padding: .75rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.admin-table th { color: var(--green-900); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.course-assigned-table { min-width: 1120px; }
.course-assigned-table th, .course-assigned-table td { white-space: nowrap; }
.course-assigned-table .inline-form { flex-wrap: nowrap; }
.course-assigned-table .inline-form select { min-width: 9rem; }
.course-assigned-table td:nth-child(5) { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.course-assigned-table.grouped thead th:first-child, .course-assigned-table.grouped tbody > tr:not(.student-group-row) > td:first-child { display: none; }
.course-assigned-table .student-group-row th { padding: .85rem .75rem .45rem; background: #eef7f4; color: var(--teal-800); font-size: .8rem; }
.course-assigned-table .student-summary-row th { padding: .7rem .75rem; border-top: 1px solid var(--line); background: #f7faf8; font-weight: 700; }
.course-assigned-table tfoot { display: none; }
.course-assigned-table tfoot th { border-top: 2px solid var(--line); background: #f7faf8; font-weight: 700; }
.event-toolbar, .event-pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0; }
.event-toolbar label { flex-direction: row; align-items: center; gap: .5rem; }
.event-toolbar select { min-height: 34px; }
.event-pagination { justify-content: flex-end; color: var(--muted); }
.event-table td form { margin: 0; }
.student-toolbar { display: grid; grid-template-columns: minmax(16rem, 1fr) auto auto; align-items: end; gap: 1rem 1.25rem; margin: 1.25rem 0 0; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.student-toolbar label { gap: .4rem; }
.student-toolbar .search-field { min-width: 0; }
.student-toolbar .search-field input { width: 100%; margin: 0; }
.student-toolbar-checkbox { min-width: 0; min-height: 40px; gap: .55rem !important; padding: .55rem .75rem; border: 1px solid #c3d8c7; border-radius: 8px; background: var(--green-100); color: var(--green-900); white-space: nowrap; }
.student-toolbar-checkbox input[type="checkbox"] { display: grid; place-items: center; width: 1.1rem; height: 1.1rem; min-height: 0; margin: 0; padding: 0; appearance: none; border: 1.5px solid var(--green-700); border-radius: 4px; background: #fff; cursor: pointer; }
.student-toolbar-checkbox input[type="checkbox"]::after { content: '\2713'; color: #fff; font-size: .78rem; font-weight: 700; line-height: 1; transform: scale(0); transition: transform .12s ease; }
.student-toolbar-checkbox input[type="checkbox"]:checked { border-color: var(--green-700); background: var(--green-700); }
.student-toolbar-checkbox input[type="checkbox"]:checked::after { transform: scale(1); }
.student-toolbar-checkbox input[type="checkbox"]:focus-visible { outline: 3px solid rgba(216,168,68,.35); outline-offset: 2px; }
.student-toolbar > label:last-child { flex: 0 0 auto; flex-direction: row; align-items: center; gap: .5rem; min-height: 40px; white-space: nowrap; }
.student-toolbar > label:last-child select { margin: 0; }
.student-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--green-100); color: var(--green-900); font-weight: 700; }
.student-avatar[src] { object-fit: cover; }
.student-avatar-wrap { position: relative; width: 42px; height: 42px; }
.student-detail-avatar-wrap { position: relative; width: 78px; height: 78px; flex: 0 0 auto; }
.graduation-cap { position: absolute; top: -10px; right: -9px; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid #fff; border-radius: 50%; background: var(--gold-500); color: var(--green-900); font-size: .9rem; line-height: 1; }
.student-grade-cell { white-space: nowrap; }
.student-grade-badge { display: inline-flex; align-items: center; }
.student-grade-cap { position: static; width: 28px; height: 28px; border: 0; background: var(--green-100); color: var(--green-900); font-size: 1rem; }
.student-grade-text { display: none; }
.student-avatar-edit { position: absolute; right: -7px; bottom: -7px; display: grid; place-items: center; width: 22px; min-height: 22px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--gold-500); color: var(--green-900); font-size: .78rem; line-height: 1; }
.student-avatar-edit:hover { background: var(--gold-600); }
.student-table { min-width: 860px; table-layout: fixed; }
.student-table th, .student-table td { vertical-align: middle; }
.student-table th, .student-table td { padding: .8rem .65rem; }
.student-table th:nth-child(1), .student-table td:nth-child(1) { width: 5.25rem; }
.student-table th:nth-child(2), .student-table td:nth-child(2) { width: 9%; }
.student-table th:nth-child(3), .student-table td:nth-child(3) { width: 10%; }
.student-table th:nth-child(4), .student-table td:nth-child(4) { width: 10%; }
.student-table th:nth-child(5), .student-table td:nth-child(5) { width: 22%; }
.student-table th:nth-child(6), .student-table td:nth-child(6) { width: 12%; }
.student-table th:nth-child(7), .student-table td:nth-child(7) { width: 12%; }
.student-table th:nth-child(8), .student-table td:nth-child(8) { width: 13%; }
.student-table th:nth-child(9), .student-table td:nth-child(9) { width: 5.5rem; }
.student-table td:nth-child(5), .student-table td:nth-child(6), .student-table td:nth-child(7) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-table tbody tr.is-graduated-row td { background: #f1f7ee; }
.student-table tbody tr.is-graduated-row td:first-child { border-left: 3px solid var(--green-500); }
.student-table + .event-pagination { margin-top: 1rem; }
.student-modal { width: min(70rem, calc(100vw - 2rem)); max-width: 70rem; }
.student-detail-hero { align-items: center; }
.student-detail-hero__actions { align-items: center; }
.student-detail-hero.is-collapsed .student-detail-hero__identity { display: none; }
.student-hero-toggle { min-width: 40px; padding-inline: .55rem; }
.student-detail-avatar { display: grid; place-items: center; width: 78px; height: 78px; flex: 0 0 auto; border-radius: 22px; object-fit: cover; background: linear-gradient(135deg, var(--green-900), var(--teal-800)); color: #fff; font: 700 1.9rem 'Libre Baskerville', serif; }
.student-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.student-detail-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.student-detail-grid section { margin: 0; }
.student-detail-grid--three > section { display: flex; flex-direction: column; }
.student-detail-grid--three > section > .section-heading { min-height: 5.75rem; align-items: flex-start; }
.student-detail-grid--three > section > form { display: flex; flex: 1; flex-direction: column; }
.student-detail-grid--three > section > form > button { margin-top: auto; }
.section-heading__actions { display: flex; align-items: center; gap: .65rem; }
.section-collapse-toggle { min-width: 2.5rem; padding: .45rem .7rem; }
.section-collapse-toggle[aria-expanded="false"] { background: var(--gold-500); color: var(--green-900); }
.course-card-actions { display: flex; align-items: center; gap: .6rem; }
.course-card-actions form { margin: 0; }
.course-school-year { display: block; margin-top: .2rem; color: var(--muted); font-size: .78rem; }
.graduation-details-full-width > .section-heading { align-items: center; }
.graduation-details-full-width > .section-heading .section-collapse-toggle { margin-left: auto; }
.student-reporting-form { display: grid; gap: .85rem; margin: 1.5rem 0; }
.grade-reporting-card { width: min(68rem, 100%); margin: 1.25rem auto 0; padding: 1.15rem 1.25rem; }
.grade-reporting-card .section-heading { min-height: 0; margin-bottom: .75rem; }
.grade-reporting-card .section-heading h2 { margin-bottom: 0; }
.reporting-period-preview { display: grid; gap: .5rem; padding: .8rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--gold-100); }
.reporting-period-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reporting-period-preview > strong { grid-column: 1 / -1; }
.reporting-period-preview__row { display: flex; justify-content: space-between; gap: .75rem; color: var(--teal-900); font-size: .85rem; }
.reporting-period-preview__row strong { color: var(--green-900); }
.reporting-actions { justify-content: space-between; margin-top: .25rem; }
.reporting-actions button:first-child { background: var(--gold-500); color: var(--green-900); }
.reporting-add-events { background: #a94a42; color: #fff; }
.reporting-add-events:hover { background: #873b35; }
.student-number-line { display: flex; align-items: center; gap: .55rem; margin: 0 0 1rem; color: var(--muted); }
.student-number-line strong { color: var(--green-900); }
.student-number-line span { color: var(--teal-800); font-weight: 700; letter-spacing: .04em; }
.student-widget-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
.student-widget { display: flex; align-items: center; gap: .8rem; min-height: 100px; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; color: var(--green-900); box-shadow: 0 8px 22px rgba(7,58,73,.07); }
.student-widget small, .student-widget strong { display: block; }
.student-widget small { color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.student-widget strong { margin-top: .25rem; font: 700 1.35rem 'Libre Baskerville', Georgia, serif; }
.student-widget-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; background: var(--gold-500); color: var(--green-900); font-size: 1.2rem; transform: rotate(-8deg); }
.widget-grade { background: #fff7df; }
.widget-gpa { background: #eaf5ed; }
.widget-courses { background: #eaf4f7; }
.widget-status { background: #f4ebf7; }
.student-header-id { margin: .25rem 0 0; color: var(--muted); font-size: .85rem; }
.student-header-id strong { color: var(--teal-800); letter-spacing: .04em; }
.student-graduation-form { display: grid; gap: 1rem; max-width: 36rem; margin: 1.5rem 0; }
.student-graduation-form .checkbox-field { display: flex; flex-direction: row; align-items: center; gap: .5rem; color: var(--ink); font-size: .95rem; }
.student-graduation-form .checkbox-field input { width: 18px; height: 18px; }
.final-transcript-placeholder { color: var(--teal-800); font-weight: 700; }
.final-transcript-icon { display: inline-block; margin-left: .35rem; color: var(--gold-600); font-weight: 700; }
.heading-with-count { display: flex; align-items: center; gap: .75rem; }
.student-table td { vertical-align: middle; }
.member-edit-field { display: none; min-width: 10rem; }
.is-editing .member-display { display: none; }
.is-editing .member-edit-field { display: inline-block; }
.member-edit-form { align-items: center; }
.inline-form { display: inline-flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.muted-pill { display: inline-block; padding: .3rem .55rem; border-radius: 999px; background: var(--green-100); color: var(--green-900); font-size: .72rem; }
.card-list { list-style: none; padding: 0; display: grid; gap: .75rem; }
.card-list li { display: grid; gap: .25rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.action-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.danger { background: #a9342d; color: #fff; }
.danger:hover { background: #8f2d27; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.section-heading h2 { margin-bottom: .25rem; }
.search-field, .search-form label { display: block; max-width: 42rem; }
.search-form { display: flex; align-items: end; gap: .75rem; margin: 1rem 0; }
.search-form label { flex: 1; }
.notice-success, .notice-error { padding: .8rem 1rem; border-radius: .75rem; }
.notice-success { background: #eaf6ef; color: #21603a; }
.notice-error { background: #fff0f0; color: #8a2d2d; }
.admin-modal { width: min(48rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); border: 0; border-radius: 1rem; padding: 1.5rem; box-shadow: 0 1.5rem 4rem #172a3a33; }
.school-information-section > .section-heading { align-items: center; margin-bottom: 1.1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.school-information-section > .section-heading .action-row { margin-top: 0; margin-left: auto; }
.school-management-modal { width: min(78rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow-y: auto; background: var(--paper); }
.school-management-modal > .section-heading { padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.grading-scales-modal { width: min(92rem, calc(100vw - 2rem)); }
.school-grade-management-modal { width: min(64rem, calc(100vw - 2rem)); }
.school-grade-management-modal > form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.school-grade-management-modal .school-reporting-settings { grid-column: 1 / -1; margin: 0; }
.school-grade-management-modal .reporting-period-preview { grid-column: 1 / -1; gap: .75rem; padding: 1rem; }
.school-grade-management-modal .reporting-period-preview__row { min-height: 3rem; align-items: center; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: .6rem; background: #fff; }
.school-grade-management-modal > form > .field-help { grid-column: 1 / -1; margin: 0; }
.school-grade-management-modal .reporting-actions { grid-column: 1 / -1; margin-top: 0; }
.school-reporting-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--gold-100); }
.grading-scales-modal .lead-copy { max-width: 68rem; margin: 1rem 0; }
.grading-scale-table { min-width: 58rem; margin-top: 1rem; }
.grading-scale-table th, .grading-scale-table td { vertical-align: middle; }
.grading-scale-table tbody th { width: 9rem; color: var(--teal-900); text-align: left; }
.grading-scale-table input { width: 100%; min-width: 7rem; }
.grading-scale-table td:nth-child(2), .grading-scale-table td:nth-child(3), .grading-scale-table td:nth-child(4) { width: 11rem; }
.grading-scale-description { color: var(--muted); }
.grading-scale-weights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--gold-100); }
.grading-scale-weights input { max-width: 12rem; }
.grading-scales-modal .field-help { margin: 1rem 0 0; color: var(--muted); }
  .school-management-modal > form { margin: 1rem 0; }
  .grade-management-modal { width: min(96rem, calc(100vw - 2rem)); }
  .grade-management-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 1rem 0; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--gold-100); }
  .grade-management-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--gold-100); }
  .grade-management-modal .grade-management-settings, .grade-management-modal .grade-management-table { display: none; }
  .grade-gpa-override { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: #fff; }
  .grade-gpa-override .checkbox-field { flex-direction: row; align-items: center; }
  .grade-management-table { min-width: 0; }
  .grade-entry-form { display: grid; grid-template-columns: minmax(7rem, 1fr) minmax(7rem, 1fr) minmax(7rem, 1fr) auto; align-items: center; gap: .5rem; }
  .grade-entry-form input { min-width: 0; }
  .period-grade-grid { display: grid; grid-template-columns: repeat(4, minmax(7rem, 1fr)); gap: .4rem; }
  .period-grade-box { display: grid; gap: .25rem; min-width: 0; }
  .period-grade-box strong { font-size: .72rem; color: var(--teal-900); }
  .period-grade-box input { min-width: 0; padding: .45rem .55rem; }
  .period-grade-summary { white-space: nowrap; color: var(--teal-900); font-size: .78rem; font-weight: 700; }
  body:has(#edit-course-scale) label:has(#edit-course-scale) { display: none; }
  #edit-custom-scale { display: none !important; }
  @media (max-width: 800px) { .grade-management-toolbar, .grade-management-settings { align-items: stretch; flex-direction: column; grid-template-columns: 1fr; } .grade-entry-form { grid-template-columns: 1fr; } .period-grade-grid { grid-template-columns: repeat(2, minmax(7rem, 1fr)); } .grade-management-table { min-width: 42rem; } }
#school-years-modal > form:first-of-type { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; align-items: end; gap: .75rem 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: #fff; }
#school-years-modal { width: calc(100vw - 2rem); max-width: none; }
#school-years-modal > form:first-of-type button { white-space: nowrap; }
#school-years-modal .stacked-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: .75rem; }
#school-years-modal .stacked-cards:has(> article:not([hidden])) > article:not([hidden]) { grid-column: 1 / -1; }
#school-years-modal .subcard { background: #fff; }
#school-years-modal .school-year-editor > form:first-child button { align-self: end; }
#school-years-modal .school-year-status { display: inline-block; margin-left: .55rem; padding: .25rem .5rem; border-radius: 999px; background: var(--green-100); color: var(--teal-800); font-size: .7rem; font-weight: 700; }
#school-years-modal .school-year-status--locked { background: #fbe8e6; color: #8f2d27; }
#school-years-modal .school-year-status--manual-open { background: var(--gold-100); color: var(--green-900); }
#school-years-modal .school-year-lifecycle-form { display: grid; grid-template-columns: minmax(12rem, 16rem) auto; align-items: end; gap: .75rem 1rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); }
#school-years-modal .school-year-lifecycle-form .action-row { margin: 0; }
@media (max-width: 700px) { #school-years-modal .school-year-lifecycle-form { grid-template-columns: 1fr; } #school-years-modal .school-year-lifecycle-form .action-row { align-items: stretch; } }
#school-events-modal > form:first-of-type { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--gold-100); }
#school-events-modal > form:nth-of-type(2) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: #fff; }
#school-events-modal > form:nth-of-type(2) label:nth-of-type(5) { grid-column: 1 / -1; }
#school-events-modal > form:nth-of-type(2) label:nth-of-type(6) { flex-direction: row; align-items: center; }
#school-events-modal > form:nth-of-type(2) button { justify-self: start; }
#school-events-modal .event-toolbar { margin: 1rem 0 .65rem; padding-top: .75rem; border-top: 1px solid var(--line); }
#school-events-modal .event-table { min-width: 0; }
#school-events-modal .event-pagination { margin-bottom: 0; }
.admin-modal[id^="calendar-modal-"] { width: min(62rem, calc(100vw - 2rem)); }
.course-modal { width: min(80rem, calc(100vw - 2rem)); max-height: calc(100vh - .5rem); overflow-y: auto; background: var(--paper); padding: .5rem; }
.course-modal > form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .25rem 1.25rem; }
.course-modal > form > .section-heading, .course-modal > form > .form-grid, .course-modal > form > .field-help, .course-modal > form > .action-row { grid-column: 1 / -1; }
.course-modal .section-heading { padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.course-modal .section-heading h2 { margin-bottom: 0; }
.course-modal .form-grid { grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, .85fr)); gap: .25rem .85rem; }
.course-modal .form-grid label { margin: .15rem 0; }
.course-modal .form-grid label > input, .course-modal .form-grid label > select { min-height: 36px; padding: .4rem .65rem; }
.course-modal .form-grid label > input, .course-modal .form-grid label > select { background: #fff; }
.course-modal .course-choice { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .5rem; margin: .1rem 0 .25rem; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--gold-100); }
.course-modal .course-choice legend { flex: 0 0 100%; margin: 0; }
.course-modal .course-choice input[type="radio"] { min-height: 0; }
.course-modal .course-choice label { flex: 0 0 auto; flex-direction: row; align-items: center; gap: .35rem; min-height: 32px; margin: 0; padding: .2rem .65rem; border: 1px solid transparent; border-radius: .45rem; background: rgba(255,255,255,.6); }
.course-modal .course-choice label:has(input:checked) { border-color: var(--teal-800); background: #fff; color: var(--teal-900); }
.course-modal #catalog-course-fields { grid-column: 1; grid-row: span 5; align-self: stretch; padding: .9rem; border: 1px solid var(--line); border-radius: .7rem; background: #fff; }
.course-modal #catalog-course-fields .course-search-toolbar { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(9rem, 1fr); gap: .7rem; }
.course-modal #student-catalog-course-fields { grid-column: 1; grid-row: 4 / span 7; align-self: stretch; padding: .9rem; border: 1px solid var(--line); border-radius: .7rem; background: #fff; }
.course-modal #student-catalog-course-fields .course-search-toolbar { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(9rem, 1fr); gap: .7rem; }
.course-modal .course-results { height: 11rem; max-height: none; margin-top: .4rem; padding: .2rem; background: #f7faf8; }
.course-modal .course-result { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .1rem .75rem; padding: .55rem .65rem; border-bottom: 1px solid var(--line); border-radius: .25rem; }
.course-modal .course-result span { text-align: right; }
.course-modal .form-grid > label:has(#course-title) { grid-column: 2 / -1; }
.course-modal .form-grid > label:has(#course-scale) { grid-column: 3; }
.course-modal .form-grid > label:has(select[name="status"]) { grid-column: 2; }
.course-modal .form-grid > label:has(#student-course-title) { grid-column: 2 / -1; }
.course-modal .form-grid > label:has(#student-course-grade), .course-modal .form-grid > label:has(#student-course-term) { grid-row: 5; }
.course-modal .form-grid > label:has(#student-course-grade) { grid-column: 2; }
.course-modal .form-grid > label:has(#student-course-term) { grid-column: 3; }
.course-modal .form-grid > label:has(#student-course-level), .course-modal .form-grid > label:has(#student-course-credit) { grid-row: 6; }
.course-modal .form-grid > label:has(#student-course-level) { grid-column: 2; }
.course-modal .form-grid > label:has(#student-course-credit) { grid-column: 3; }
.course-modal:has(#student-course-method) .form-grid > label:has(select[name="status"]), .course-modal .form-grid > label:has(#student-course-method) { grid-row: 7; }
.course-modal .form-grid > label:has(#student-course-method) { grid-column: 3; }
.course-modal [hidden] { display: none !important; }
.course-modal > form > .field-help { display: none; }
.course-modal > form > .action-row { justify-content: flex-end; }
@media (max-width: 900px) { .course-modal { max-height: calc(100vh - 2rem); } .course-modal > form { display: block; } .course-modal #catalog-course-fields, .course-modal #student-catalog-course-fields { margin: .5rem 0; } .course-modal > form > .field-help { display: block; } .course-modal .form-grid > label:has(#course-title), .course-modal .form-grid > label:has(#course-scale), .course-modal .form-grid > label:has(select[name="status"]), .course-modal .form-grid > label:has(#student-course-title), .course-modal .form-grid > label:has(#student-course-grade), .course-modal .form-grid > label:has(#student-course-term), .course-modal .form-grid > label:has(#student-course-level), .course-modal .form-grid > label:has(#student-course-credit), .course-modal .form-grid > label:has(#student-course-method) { grid-column: auto; grid-row: auto; } }
.course-choice { display: flex; gap: 1rem; border: 0; padding: 0; margin: .65rem 0; }
.course-choice legend { width: 100%; margin-bottom: .35rem; color: var(--green-900); font-weight: 700; }
.course-choice label { margin: 0; display: inline-flex; align-items: center; gap: .35rem; }
.course-results { display: grid; gap: .45rem; max-height: 12rem; overflow-y: auto; margin-top: .5rem; padding: .25rem; border: 1px solid var(--line); border-radius: .6rem; }
.course-result { display: grid; gap: .2rem; width: 100%; padding: .65rem .75rem; border: 1px solid transparent; border-radius: .45rem; background: #fff; color: var(--green-900); text-align: left; cursor: pointer; font: 700 .82rem 'DM Sans', sans-serif; }
.course-result:hover, .course-result.selected { border-color: var(--teal-800); background: #eef7f4; }
.course-result span { color: var(--muted); font-size: .78rem; }
.course-catalog-filters { display: grid; grid-template-columns: minmax(14rem, 2fr) repeat(2, minmax(8rem, 1fr)); gap: .75rem; margin: 1rem 0; }
.course-assigned-filters { display: grid; grid-template-columns: minmax(14rem, 2fr) repeat(5, minmax(8.5rem, 1fr)); gap: .75rem; margin: 1rem 0; }
@media (max-width: 1100px) { .course-assigned-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .course-assigned-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .course-assigned-filters { grid-template-columns: 1fr; } }
.student-group-toggle { display: inline-flex; align-items: center; gap: .45rem; padding: 0; border: 0; background: transparent; color: inherit; font: 700 .8rem 'DM Sans', sans-serif; }
.student-group-toggle:hover { background: transparent; color: inherit; }
.student-group-toggle__icon { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 999px; background: var(--green-100); color: var(--teal-800); font-size: .95rem; }
.student-group-row th { padding: .85rem .75rem .45rem; background: #eef7f4; color: var(--teal-800); font-size: .8rem; }
.quick-student-list { display: grid; gap: .6rem; margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: .6rem; }
.quick-student-list legend { padding: 0 .25rem; color: var(--green-900); font-weight: 700; }
.quick-student-list label { display: flex; align-items: center; gap: .45rem; margin: 0; }
.quick-student-list label span { margin-left: auto; }
.announcement-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.announcement-form textarea { resize: vertical; }
@media (max-width: 700px) { .course-catalog-filters { grid-template-columns: 1fr; } }
.admin-modal::backdrop { background: #172a3a99; }
.admin-modal form { margin: 0; }
.report-card-launch, .report-card-page .panel-card { margin-bottom: 1rem; }
.report-card-launch-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 1rem; }
.report-card-launch-form button { white-space: nowrap; }
.report-card-list { display: grid; gap: .6rem; }
.report-card-student-groups { display: grid; gap: .85rem; }
.report-card-student-group { border: 1px solid var(--line); border-radius: .65rem; overflow: hidden; }
.report-card-student-group > summary { display: flex; align-items: center; gap: .75rem; padding: .85rem 1.1rem; background: var(--green-100); color: var(--ink); cursor: pointer; list-style: none; }
.report-card-student-group > summary::-webkit-details-marker { display: none; }
.report-card-student-group > summary::before { content: '\203A'; font-size: 1.5rem; line-height: 1; transition: transform .15s ease; }
.report-card-student-group[open] > summary::before { transform: rotate(90deg); }
.report-card-student-group > summary:focus-visible { outline: 3px solid var(--gold-500); outline-offset: -3px; }
.report-card-student-group__name { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.report-card-student-group > summary .muted-pill { flex-shrink: 0; }
.report-card-student-group > .report-card-list { padding: .75rem; }
.report-card-list__item { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: .65rem; background: #fff; color: var(--ink); text-decoration: none; }
.report-card-list__item:hover { border-color: var(--teal-800); background: #f7faf8; }
.report-card-list__item strong, .report-card-list__item small { display: block; }
.report-card-list__item small { margin-top: .2rem; color: var(--muted); }
.report-card-list__primary { min-width: 12rem; }
.report-card-list__details { display: flex; align-items: center; justify-content: flex-end; gap: .7rem; flex-wrap: wrap; }
.report-card-template { color: var(--muted); font-size: .9rem; }
.report-card-status { padding: .3rem .6rem; border-radius: 999px; background: #eef4ef; color: var(--teal-800); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.report-card-status--finalized { background: #fff3d7; color: #8a6210; }
.report-card-list__action { white-space: nowrap; }
.student-read-only-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
.student-read-only-grid > div { padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.student-read-only-grid span { display: block; margin-bottom: .25rem; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.student-read-only-grid strong { color: var(--ink); font-size: .95rem; }
.student-read-only-grid__wide { grid-column: 1 / -1; }
.student-management-modal { width: min(1200px, calc(100vw - 2rem)); max-width: 1200px; max-height: calc(100vh - 2rem); overflow-y: auto; padding: 1.75rem; background: var(--paper); }
.student-management-modal > form { display: block; }
.student-management-modal > form > .section-heading { margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.student-management-modal > form > .form-grid { gap: .35rem 1.25rem; }
.student-management-modal__guardian { margin: 1.5rem 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: .7rem; background: #fbfcf8; }
.student-management-modal__guardian .section-heading { margin-bottom: .75rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.student-management-modal__guardian h3 { margin: 0; color: var(--ink); font-family: Georgia, 'Times New Roman', serif; font-size: 1.35rem; }
.guardian-address-options { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin-top: .75rem; }
.guardian-address-options .checkbox-field { display: flex; flex-direction: row; align-items: center; gap: .45rem; margin: 0; }
.report-card-printable { display: none; }
@media (max-width: 700px) { .report-card-list__item { align-items: flex-start; flex-direction: column; } .report-card-list__details { justify-content: flex-start; } }
.report-card-workspace { display: grid; gap: 1rem; }
.report-card-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: .8rem 1rem; }
.report-card-meta .field-help { grid-column: 1 / -1; margin: 0; }
.report-card-status { padding: .35rem .65rem; border-radius: 999px; background: var(--gold-100); color: var(--green-900); font-size: .75rem; font-weight: 700; }
.report-card-status--finalized { background: var(--green-100); color: var(--teal-800); }
.report-card-period-tabs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .55rem; padding: .75rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.report-card-period-tabs button { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.35rem; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: .5rem; background: #fff; color: var(--teal-800); }
.report-card-period-tabs button[aria-selected="true"] { border-color: var(--teal-800); background: var(--teal-800); color: #fff; }
.report-card-period-status { display: inline-grid; place-items: center; min-width: 2.1rem; min-height: 1.35rem; padding: .1rem .3rem; border-radius: 999px; background: #eef0ee; color: var(--muted); font-size: .68rem; font-weight: 700; line-height: 1; }
.report-card-period-status--partial { background: var(--gold-100); color: #8a6210; }
.report-card-period-status--complete { background: var(--green-100); color: var(--green-900); }
.report-card-period-tabs button[aria-selected="true"] .report-card-period-status { background: rgba(255,255,255,.18); color: #fff; }
.report-card-dates { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(16rem, 24rem); gap: .75rem; padding-top: .25rem; }
.report-card-dates label { max-width: none; margin: 0; }
.report-card-dates [hidden] { display: none !important; }
.report-card-grade-panel { min-width: 0; }
.report-card-table { min-width: 0; }
.report-card-table th, .report-card-table td { vertical-align: middle; }
.report-card-table th small, .report-card-table td small { display: block; margin-top: .2rem; color: var(--muted); font-size: .7rem; font-weight: 400; }
.report-card-table td:first-child { min-width: 12rem; }
.report-card-table td:first-child small { color: var(--teal-800); font-weight: 700; }
.report-card-table td input, .report-card-table td select { width: 7rem; min-width: 0; margin: .15rem 0; padding: .4rem .5rem; }
.report-card-period--inactive { background: #eef0ee; color: #87918e; text-align: center; }
.report-card-period-help { margin: 0 0 .75rem; }
.report-card-inactive-label { font-size: .75rem; font-weight: 700; }
.report-card-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.report-card-summary > div:first-child span, .report-card-summary > div:first-child strong { display: block; }
.report-card-summary > div:first-child span { color: var(--muted); font-size: .8rem; }
.report-card-summary > div:first-child strong { margin-top: .15rem; color: var(--teal-900); font: 700 1.5rem 'Libre Baskerville', serif; }
.report-card-summary .action-row { margin: 0; }
.finalized-note { color: var(--muted); font-weight: 700; }
.button-link { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .55rem .8rem; border: 1px solid #b8c6cc; border-radius: .45rem; color: inherit; text-decoration: none; }
@media (max-width: 700px) { .section-heading, .search-form { align-items: stretch; flex-direction: column; } .school-year-editor { align-items: stretch; } .school-year-editor > form:first-child { grid-template-columns: 1fr; width: 100%; } .school-year-editor > form:last-child { width: 100%; } .school-year-editor button { width: 100%; } .admin-modal { padding: 1rem; } }
@media (max-width: 800px) { .report-card-launch-form { grid-template-columns: 1fr; } .report-card-meta, .report-card-summary { align-items: stretch; flex-direction: column; } .report-card-summary .action-row { flex-direction: column; } }
@media (max-width: 700px) { .student-read-only-grid { grid-template-columns: 1fr; } .student-read-only-grid__wide { grid-column: auto; } .student-management-modal { width: calc(100vw - 1rem); } }
@media (max-width: 700px) { .student-toolbar { grid-template-columns: minmax(0, 1fr) auto; } .student-toolbar > label:last-child { grid-column: 2; grid-row: 1; } }
@media (max-width: 560px) { .student-toolbar { grid-template-columns: 1fr; } .student-toolbar-checkbox, .student-toolbar > label:last-child { grid-column: auto; grid-row: auto; } }
.print-view { background: #fff; }
.print-view .site-header, .print-view .current-school-banner, .print-view .page-breadcrumbs, .print-view .report-card-page > header, .print-view .report-card-page > .notice-success, .print-view .report-card-page > .notice-error, .print-view .report-card-workspace { display: none !important; }
.print-view .report-card-page, .print-view .admin-page { width: 100%; max-width: none; margin: 0; padding: 0; }
.print-view .report-card-printable { display: block; width: min(100%, 8.5in); margin: 0 auto; padding: 1.25rem; color: #102f2a; background: #fff; font-family: Georgia, 'Times New Roman', serif; }
.print-view .print-report-card__header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 2px solid #164d4a; }
.print-view .print-report-card__header img { width: 4rem; height: 4rem; object-fit: contain; }
.print-view .print-report-card__header h1 { margin: 0 0 .25rem; font-size: 1.7rem; }
.print-view .print-report-card__header p { margin: .1rem 0; color: #557277; font-size: .8rem; }
.print-view .print-report-card__title { text-align: right; }
.print-view .print-report-card__title p, .print-view .print-report-card__student-info span, .print-view .print-report-card__summary span { color: #164d4a; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.print-view .print-report-card__title strong { font-size: 1rem; }
.print-view .print-report-card__student-info { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1fr; gap: .7rem 1rem; padding: .9rem 0; border-bottom: 1px solid #cddbd8; }
.print-view .print-report-card__student-info span, .print-view .print-report-card__summary span { display: block; margin-bottom: .15rem; }
.print-view .print-report-card__student-address { grid-column: 1 / -1; }
.print-view .print-report-card__table { width: 100%; border-collapse: collapse; margin-top: .9rem; font-family: 'DM Sans', sans-serif; font-size: .78rem; }
.print-view .print-report-card__table th, .print-view .print-report-card__table td { padding: .5rem .45rem; border: 1px solid #cddbd8; text-align: left; }
.print-view .print-report-card__table th { background: #eef4ef; color: #164d4a; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }
.print-view .print-report-card__table th small, .print-view .print-report-card__table td small { display: block; margin-top: .12rem; color: #557277; font-size: .62rem; font-weight: 400; }
.print-view .print-report-card__table td:not(:first-child) { text-align: center; }
.print-view .print-report-card__not-applicable { background: #e6e9e7; color: #7d8884; font-style: italic; }
.print-view .print-report-card__summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .9rem; padding: .75rem .9rem; background: #fff5d9; border: 1px solid #e6d5a7; }
.print-view .print-report-card__summary strong { display: block; margin-top: .15rem; font-size: 1.25rem; }
.print-view .print-report-card__summary p { margin: 0; color: #557277; font-size: .7rem; }
.print-view .print-report-card__footer { display: grid; grid-template-columns: 2fr 1fr 2fr 1fr; gap: .8rem; margin-top: 2.4rem; color: #557277; font-family: 'DM Sans', sans-serif; font-size: .68rem; }
.print-view .print-report-card__footer div { padding-top: .3rem; border-top: 1px solid #557277; }
@media (max-width: 700px) {
    .print-view .report-card-printable { padding: .8rem; }
    .print-view .print-report-card__header { grid-template-columns: 1fr; gap: .55rem; text-align: center; }
    .print-view .print-report-card__header img { margin: 0 auto; }
    .print-view .print-report-card__title { text-align: center; }
    .print-view .print-report-card__student-info { grid-template-columns: 1fr 1fr; gap: .55rem .8rem; }
    .print-view .print-report-card__footer { grid-template-columns: 1fr 1fr; gap: 1.1rem .8rem; }
}
@media print { .site-nav, .page-breadcrumbs, .report-card-page > header, .report-card-page > .notice-success, .report-card-page > .notice-error, .report-card-workspace { display: none !important; } body { background: #fff; color: #102f2a; } .admin-page { width: 100%; margin: 0; padding: 0; } .report-card-printable { display: block; padding: 1rem 0; } .print-report-card__header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 2px solid #0b6878; } .print-report-card__header img { width: 4rem; max-height: 4rem; object-fit: contain; } .print-report-card__header h1 { margin: 0 0 .25rem; font-size: 1.7rem; } .print-report-card__header p { margin: .1rem 0; color: #557277; font-size: .85rem; } .print-report-card__title { text-align: right; } .print-report-card__title p { color: #bd8b23; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; } .print-report-card__title strong { font-size: 1.1rem; } .print-report-card__student-info { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1fr; gap: .8rem; padding: 1rem 0; border-bottom: 1px solid #cddbd8; } .print-report-card__student-info span, .print-report-card__summary span { display: block; color: #557277; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; } .print-report-card__student-info strong { display: block; margin-top: .2rem; } .print-report-card__table { width: 100%; border-collapse: collapse; margin-top: 1rem; } .print-report-card__table th, .print-report-card__table td { padding: .65rem .55rem; border: 1px solid #cddbd8; text-align: left; } .print-report-card__table th { background: #eef4ef; color: #164d4a; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; } .print-report-card__table th small, .print-report-card__table td small { display: block; margin-top: .15rem; color: #557277; font-size: .7rem; font-weight: 400; } .print-report-card__table td:not(:first-child) { text-align: center; } .print-report-card__summary { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: .9rem 1rem; background: #fff5d9; border: 1px solid #e6d5a7; } .print-report-card__summary strong { display: block; margin-top: .15rem; font-size: 1.35rem; } .print-report-card__summary p { margin: 0; color: #557277; font-size: .8rem; } .print-report-card__footer { display: grid; grid-template-columns: 2fr 1fr 2fr 1fr; gap: 1rem; margin-top: 3rem; color: #557277; font-size: .75rem; } .print-report-card__footer div { padding-top: .45rem; border-top: 1px solid #557277; } }
@page { size: Letter portrait; margin: .5in; }
@media print {
    html, body { width: 8.5in; min-height: 11in; margin: 0; padding: 0; background: #fff; }
    .site-header, .current-school-banner, .site-nav, .page-breadcrumbs, .report-card-page > header, .report-card-page > .notice-success, .report-card-page > .notice-error, .report-card-workspace { display: none !important; }
    .report-card-page, .admin-page { width: 100%; max-width: none; margin: 0; padding: 0; }
    .report-card-printable { display: block; padding: 0; color: #102f2a; font-family: Georgia, 'Times New Roman', serif; }
    .print-report-card__header { display: block; padding: 0 0 .7rem; border-bottom: 2px solid #164d4a; text-align: center; }
    .print-report-card__header img { display: block; width: .7in; height: .7in; margin: 0 auto .35rem; object-fit: contain; }
    .print-report-card__header h1 { margin: 0; font-size: 1.55rem; }
    .print-report-card__header p { margin: .1rem 0; color: #557277; font-family: Arial, sans-serif; font-size: .72rem; }
    .print-report-card__title { margin-top: .45rem; text-align: center; }
    .print-report-card__title p { margin: 0; color: #164d4a; font-family: Arial, sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
    .print-report-card__title strong { display: block; margin-top: .1rem; font-size: 1rem; }
    .print-report-card__student-info { grid-template-columns: 2fr 1fr; gap: .45rem 1rem; padding: .7rem 0; border-bottom: 1px solid #cddbd8; font-family: Arial, sans-serif; }
    .print-report-card__student-address { grid-column: 1 / -1; }
    .print-report-card__student-info span, .print-report-card__summary span { font-size: .62rem; }
    .print-report-card__student-info strong { margin-top: .1rem; font-size: .78rem; }
    .print-report-card__table { table-layout: fixed; margin-top: .7rem; font-family: Arial, sans-serif; font-size: .7rem; }
    .print-report-card__table th, .print-report-card__table td { padding: .36rem .28rem; }
    .print-report-card__table th { font-size: .6rem; }
    .print-report-card__table th:first-child, .print-report-card__table td:first-child { width: 2.2in; }
    .print-report-card__table th small, .print-report-card__table td small { margin-top: .08rem; font-size: .56rem; }
    .print-report-card__not-applicable { background: #e6e9e7; color: #7d8884; font-style: italic; }
    .print-report-card__summary { margin-top: .7rem; padding: .55rem .7rem; font-family: Arial, sans-serif; }
    .print-report-card__summary strong { font-size: 1.22rem; }
    .print-report-card__summary p { font-size: .65rem; }
    .print-report-card__footer { grid-template-columns: 2fr 1fr 2fr 1fr; gap: .7rem; margin-top: 1.1in; font-family: Arial, sans-serif; font-size: .62rem; }
    .print-report-card__footer div { padding-top: .25rem; }
}
@media print {
    .report-card-printable { border: 0; border-radius: 0; box-shadow: none; }
    .print-report-card__header { padding-bottom: .9rem; }
    .print-report-card__header img { width: .85in; height: .85in; margin-bottom: .45rem; }
    .print-report-card__header h1 { font-size: 1.85rem; }
    .print-report-card__header p { font-size: .8rem; }
    .print-report-card__title { margin-top: .6rem; }
    .print-report-card__title p { font-size: .78rem; }
    .print-report-card__title strong { font-size: 1.15rem; }
    .print-report-card__student-info { grid-template-columns: 1.7fr 1fr 1.2fr; gap: .65rem 1rem; padding: .9rem 0; }
    .print-report-card__student-info strong { font-size: .86rem; }
    .print-report-card__student-address { grid-column: 1 / -1; }
    .print-report-card__table { margin-top: .9rem; font-size: .8rem; }
    .print-report-card__table th, .print-report-card__table td { padding: .52rem .4rem; }
    .print-report-card__table th { font-size: .68rem; }
    .print-report-card__table th small, .print-report-card__table td small { font-size: .62rem; }
    .print-report-card__summary { margin-top: .9rem; padding: .7rem .85rem; }
    .print-report-card__summary strong { font-size: 1.2rem; }
    .print-report-card__summary p { font-size: .72rem; }
    .print-report-card__footer { margin-top: .85in; font-size: .7rem; }
}
@media (max-width: 700px) { .grading-scale-weights { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .reporting-period-preview { grid-template-columns: 1fr; } .reporting-period-preview > strong { grid-column: auto; } }
@media (max-width: 700px) { .school-reporting-settings { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .school-grade-management-modal > form { grid-template-columns: 1fr; } .school-grade-management-modal .school-reporting-settings, .school-grade-management-modal .reporting-period-preview, .school-grade-management-modal > form > .field-help, .school-grade-management-modal .reporting-actions { grid-column: auto; } }
.site-nav .user { margin-top: 1.2rem; padding: .7rem .6rem; color: #fff; font-size: .68rem; border-top: 1px solid rgba(255,255,255,.18); }
.site-nav .user strong, .site-nav .user small { display: block; }
.site-nav .user small { color: #b8d8c0; font-size: .54rem; overflow: hidden; text-overflow: ellipsis; }
.site-nav .logout { margin-top: .2rem; }
.school-switcher { display: flex; flex-direction: column; align-items: stretch; gap: .25rem; margin-bottom: .7rem; }
.school-switcher label { color: #cde1db; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.school-switcher select { max-width: 100%; padding: .42rem .35rem; border: 1px solid rgba(255,255,255,.35); border-radius: 7px; color: var(--teal-900); background: #fff; font-size: .68rem; }

.eyebrow { color: var(--gold-500); font-size: .73rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.lede { max-width: 680px; color: var(--muted); font-size: 1.22rem; }
section { margin: 1.5rem 0; padding: 1.5rem; background: rgba(255,255,255,.86); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 30px rgba(7,58,73,.04); }
body > section { margin-left: 213px; margin-right: auto; }
main > h1, body > h1 { margin-top: 2.5rem; }
.dashboard-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.auth-shell { width: min(460px, calc(100% - 2rem)); min-height: calc(100vh - 2rem); margin: 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.auth-brand { width: min(330px, 80vw); margin: 0 auto 1.5rem; }
.auth-brand img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.auth-card { width: 100%; margin: 0; padding: 2rem; background: rgba(255,255,255,.9); border: 1px solid #e5dfd3; border-radius: 18px; box-shadow: 0 18px 50px rgba(7,58,73,.1); }
.auth-card h1 { margin-top: .25rem; }
.auth-card form { display: flex; flex-direction: column; align-items: stretch; }
.auth-card form button { width: 100%; margin-top: .5rem; }
.auth-link { display: block; margin-top: 1rem; text-align: center; }
.auth-register { margin-bottom: 0; color: var(--muted); text-align: center; font-size: .9rem; }
.signup-shell { width: min(680px, calc(100% - 2rem)); min-height: 100vh; margin: 0 auto; padding: 1.5rem 0 3rem; }
.signup-logo { display: block; width: 190px; margin: 0 auto 2rem; }
.signup-logo img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.signup-progress { height: 6px; overflow: hidden; border-radius: 99px; background: #e5dfd3; }
.progress-fill { display: block; width: 0; height: 100%; background: var(--gold-500); transition: width .2s ease; }
.signup-progress { position: relative; width: 100%; }
.progress-dot { position: absolute; top: 50%; left: 0; width: 16px; height: 16px; border: 3px solid #fff; border-radius: 50%; background: var(--gold-500); box-shadow: 0 1px 5px rgba(0,0,0,.18); transform: translate(-50%, -50%); transition: left .2s ease; }
.signup-steps { display: flex; justify-content: space-between; margin: .6rem 0 2rem; color: #9a9b91; font-size: .75rem; }
.step-label.active { color: var(--green-900); font-weight: 700; }
.signup-panel { display: none; margin: 0; padding: 2.2rem; }
.signup-panel { width: 100%; }
.signup-panel.active { display: block; }
.signup-panel label { display: flex; flex-direction: column; align-items: stretch; gap: .25rem; margin: 1rem 0; }
.signup-panel label span { color: var(--muted); font-weight: 400; }
.account-type-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 560px; margin: 2rem auto .5rem; }
.account-type-card { min-height: 150px; padding: 1.4rem 1rem; border: 2px solid var(--gold-500); border-radius: 14px; background: var(--gold-500); color: var(--green-900); text-align: center; box-shadow: 0 8px 20px rgba(216,168,68,.16); }
.account-type-card strong, .account-type-card span { display: block; }
.account-type-card strong { margin-bottom: .45rem; font: 700 1rem 'Libre Baskerville', Georgia, serif; }
.account-type-card span { color: var(--green-900); font-size: .8rem; line-height: 1.4; }
.account-type-card:hover, .account-type-card.selected { background: var(--green-900); color: #fff; }
.account-type-card:hover span, .account-type-card.selected span { color: #e6efe6; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.form-grid label { margin: .65rem 0; }
.form-grid .wide { grid-column: 1 / -1; }
.field-help { color: var(--muted); font-size: .85rem; }
.future-billing { display: grid; gap: .3rem; margin: 1.5rem 0; padding: 1rem; border: 1px dashed #d7c79f; border-radius: 10px; background: var(--gold-100); color: var(--green-900); }
.future-billing span { color: var(--muted); font-size: .9rem; }
.signup-actions { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; }
.signup-actions a { margin-right: auto; }
.signup-actions button[hidden] { display: none; }
@media (max-width: 800px) { .signup-shell { padding-top: 1rem; } .signup-panel { padding: 1.3rem; } .signup-steps { font-size: .66rem; } }
@media (max-width: 800px) { .student-widget-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .student-detail-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-grid .wide { grid-column: auto; } .student-detail-grid, .student-widget-row { grid-template-columns: 1fr; } }

.attendance-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin: 1rem 0 1.25rem; }
.attendance-summary-card { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.attendance-summary-card span, .attendance-summary-card small { display: block; color: var(--muted); font-size: .78rem; }
.attendance-summary-card strong { display: block; margin: .25rem 0; color: var(--green-900); font-size: 1.7rem; }
.attendance-summary-card--absent { background: #fff7f5; }
.attendance-summary-card--tardy { background: #fffaf0; }
.attendance-summary-card--excused { background: #f4f8fb; }
.attendance-entry-card { margin-bottom: 2rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.attendance-status { display: inline-block; padding: .3rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.attendance-status--present { background: var(--green-100); color: var(--teal-800); }
.attendance-status--absent { background: #fbe8e6; color: #8f2d27; }
.attendance-status--tardy { background: var(--gold-100); color: #8a6210; }
.attendance-status--excused { background: #e8f0f6; color: #285a78; }
.attendance-table td:last-child { max-width: 24rem; white-space: normal; }
@media (max-width: 700px) { .attendance-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .attendance-entry-card { padding: 1rem; } }
.attendance-calendar-box { margin-bottom: 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.attendance-calendar-box > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; cursor: pointer; list-style: none; }
.attendance-calendar-box > summary::-webkit-details-marker { display: none; }
.attendance-calendar-box > summary strong { display: block; margin-top: .2rem; color: var(--green-900); font: 700 1.35rem 'Libre Baskerville', Georgia, serif; }
.attendance-calendar-toggle { padding: .45rem .7rem; border-radius: 999px; background: var(--green-100); color: var(--teal-800); font-size: .78rem; font-weight: 700; }
.attendance-calendar-box[open] .attendance-calendar-toggle { background: var(--gold-100); color: var(--green-900); }
.attendance-calendar-content { padding: 0 1.25rem 1.25rem; }
.attendance-calendar-heading { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.attendance-calendar-heading h2 { min-width: 12rem; margin: 0; text-align: center; }
.attendance-calendar-heading button { min-width: 2.5rem; padding: .45rem .7rem; }
.attendance-calendar-legend { display: flex; justify-content: center; gap: 1.25rem; margin-bottom: .8rem; color: var(--muted); font-size: .78rem; }
.attendance-calendar-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.calendar-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--teal-800); }
.calendar-dot--absent { background: #c45a50; }
.calendar-dot--closed { background: #b8c0be; }
.attendance-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; }
.attendance-calendar-weekday { padding: .35rem; color: var(--muted); font-size: .72rem; font-weight: 700; text-align: center; text-transform: uppercase; }
.attendance-calendar-day { min-height: 6.4rem; border: 1px solid var(--line); border-radius: 9px; background: #fbfdfb; }
.attendance-calendar-day.is-non-school { background: #f0f2f1; color: #9aa4a1; }
.attendance-calendar-day-link { display: flex; height: 100%; min-height: 6.4rem; flex-direction: column; gap: .35rem; padding: .55rem; color: inherit; text-decoration: none; }
.attendance-calendar-day.is-school:hover { border-color: var(--teal-800); background: #f4faf6; }
.attendance-calendar-day strong { color: var(--green-900); font-size: .9rem; }
.attendance-calendar-day.is-non-school strong { color: #8d9794; }
.attendance-calendar-day small { font-size: .68rem; }
.calendar-counts { display: grid; gap: .18rem; margin-top: auto; }
.calendar-present { color: var(--teal-800); }
.calendar-absent { color: #c45a50; }
@media (max-width: 700px) { .attendance-calendar-content { padding: 0 .65rem .75rem; } .attendance-calendar-grid { gap: .2rem; } .attendance-calendar-day, .attendance-calendar-day-link { min-height: 4.8rem; } .attendance-calendar-day-link { padding: .35rem; } .attendance-calendar-legend { flex-wrap: wrap; gap: .6rem; } }
.attendance-enabled-badge { align-self: center; padding: .5rem .75rem; border-radius: 999px; background: var(--green-100); color: var(--teal-800); font-size: .78rem; font-weight: 700; }
.attendance-controls, .attendance-exception-card, .attendance-roster { margin-bottom: 1.25rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.attendance-controls form { display: flex; align-items: end; gap: 1rem; }
.attendance-controls label { min-width: 13rem; }
.attendance-exception-card { background: linear-gradient(135deg, #fffdf6, #fff); }
.attendance-exception-form { display: grid; grid-template-columns: 1.1fr 1.5fr 1.1fr 1.5fr auto; align-items: end; gap: .8rem; }
.attendance-exception-form label { margin: 0; }
.attendance-exception-form input, .attendance-exception-form select { min-height: 42px; }
.attendance-note-field { min-width: 12rem; }
.field-help { margin: .9rem 0 0; color: var(--muted); font-size: .85rem; }
.attendance-closure-banner, .attendance-disabled { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; padding: 1rem 1.25rem; border: 1px solid #e6d5a7; border-radius: 12px; background: #fff5d9; }
.attendance-closure-banner span { flex: 1; color: var(--muted); }
.attendance-disabled { display: block; background: #f7faf8; border-color: var(--line); }
.attendance-disabled h2 { margin: .2rem 0; }
.attendance-disabled p:not(.eyebrow) { color: var(--muted); }
.attendance-status--absence { background: #fbe8e6; color: #8f2d27; }
.attendance-status--closure { background: var(--gold-100); color: #8a6210; }
.attendance-roster-count { padding: .35rem .65rem; border-radius: 999px; background: var(--green-100); color: var(--teal-800); font-size: .78rem; font-weight: 700; }
.inline-form { display: inline; }
@media (max-width: 1000px) { .attendance-exception-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .attendance-exception-form button { min-height: 42px; } }
@media (max-width: 700px) { .attendance-controls form, .attendance-closure-banner { align-items: stretch; flex-direction: column; } .attendance-controls label { min-width: 0; } .attendance-exception-form { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .account-type-options { grid-template-columns: 1fr; } }
.dashboard-stat { display: flex; align-items: center; gap: 1rem; padding: 1.2rem; border: 1px solid #e5dfd3; border-radius: 12px; background: linear-gradient(135deg, #fff, #fbf8f1); }
.dashboard-stat strong { display: block; color: var(--green-900); font: 700 1.8rem 'Libre Baskerville', Georgia, serif; }
.dashboard-stat span { color: var(--teal-800); }
.dashboard-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 2rem 0 1.4rem; border-bottom: 1px solid #e5dfd3; color: var(--green-900); }
.dashboard-header-meta { display: flex; align-items: center; gap: .7rem; }
.dashboard-widget-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.dashboard-widget { display: flex; align-items: center; gap: .8rem; min-height: 106px; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 24px rgba(7,58,73,.07); }
.dashboard-widget strong, .dashboard-widget small { display: block; }
.dashboard-widget strong { font: 700 1.7rem 'Libre Baskerville', Georgia, serif; color: var(--green-900); }
.dashboard-widget small { color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.dashboard-widget-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--gold-500); color: var(--green-900); font-size: 1.15rem; }
.dashboard-widget-gold { background: #fff7df; } .dashboard-widget-green { background: #eaf5ed; } .dashboard-widget-blue { background: #eaf4f7; } .dashboard-widget-rose { background: #f7edf5; }
.dashboard-event-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.dashboard-event-card { min-height: 145px; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, #fff, #fff8ea); }
.dashboard-event-card.event-holiday { background: #eaf4fb; border-color: #b8d9ec; }
.dashboard-event-card.event-break { background: #eaf6ed; border-color: #b9dbbf; }
.dashboard-event-card.event-school { background: #fff4d9; border-color: #ead19a; }
.dashboard-event-card .event-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: .45rem; border-radius: 9px; background: rgba(255,255,255,.72); color: var(--teal-800); font-size: 1.1rem; vertical-align: middle; }
.dashboard-event-card[hidden], .dashboard-student-table tr[hidden] { display: none; }
.dashboard-event-card .event-date { color: var(--gold-500); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.dashboard-event-card h3 { margin: .45rem 0 .25rem; }
.dashboard-event-card p { margin: 0; color: var(--muted); font-size: .85rem; }
.dashboard-filter { display: flex; flex-direction: row; align-items: center; gap: .5rem; }
.dashboard-event-pagination { display: flex; align-items: center; justify-content: flex-end; gap: .8rem; margin-top: 1rem; color: var(--muted); }
.dashboard-announcements { padding-top: 1rem; padding-bottom: 1rem; }
.dashboard-announcements .section-heading { margin-bottom: .45rem; }
.dashboard-announcements .subcard { padding: .7rem .9rem; }
.dashboard-resources { padding-top: 1rem; padding-bottom: 1rem; }
.resource-tile-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.resource-tile { display: flex; min-height: 112px; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; padding: .8rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--green-900); text-align: center; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.resource-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.resource-tile__icon { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(7,58,73,.14); border-radius: 14px; background: #fff; color: var(--teal-800); box-shadow: 0 3px 8px rgba(7,58,73,.12); font-size: 1.25rem; font-weight: 800; }
.resource-tile__icon img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.resource-tile__name { font-weight: 800; }
.resource-tile small { color: var(--muted); font-size: .72rem; }
.resource-tile--monarch { background: #f8f1e8; }
.resource-tile--empty { border-style: dashed; color: var(--muted); }
.resource-tile--empty .resource-tile__icon { color: var(--muted); background: #f4f7f6; }
.resource-tile--moodle { background: #edf5f7; }
.resource-tile.is-disabled { filter: grayscale(1); opacity: .55; cursor: default; }
.resource-tile.is-disabled:hover { transform: none; box-shadow: none; }
.resource-picker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 1rem 0; }
.resource-picker { display: grid; grid-template-columns: auto 42px 1fr; align-items: center; gap: .6rem; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.resource-picker { cursor: grab; }
.resource-picker.is-dragging { opacity: .45; }
.resource-picker input { width: auto; }
.resource-picker small { grid-column: 2 / -1; overflow: hidden; color: var(--muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.resource-selector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 1rem 0 1.4rem; }
.resource-option { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; min-height: 78px; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.resource-option input { flex: 0 0 auto; }
.resource-option > span:not(.resource-tile__icon):not(.resource-visibility) { display: grid; gap: .2rem; min-width: 0; }
.resource-option small { overflow: hidden; color: var(--muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.resource-visibility { display: inline-flex; align-items: center; gap: .25rem; margin-left: auto; color: var(--muted); font-size: .72rem; white-space: nowrap; }
.resource-order-list { display: grid; gap: .55rem; min-height: 52px; margin: 1rem 0 1.25rem; }
.resource-order-item { display: flex; align-items: center; gap: .7rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfa; cursor: grab; }
.resource-order-item.is-dragging { opacity: .45; }
.resource-order-item--fixed { cursor: default; background: #f1f4f3; color: var(--muted); }
.resource-order-handle { color: var(--muted); font-size: 1.1rem; }
.resource-order-controls { display: inline-flex; gap: .25rem; margin-left: auto; }
.resource-order-controls button { min-width: 3.25rem; padding: .25rem .45rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--teal-800); font-size: .72rem; }
.resource-management-form { display: block; }
.resource-management-form h2 { margin-top: 1.25rem; }
.resource-management-form .resource-order-list { width: 100%; }
.resource-management-form > button { margin-top: .25rem; }
.dashboard-toolbar > strong { font: 700 1.55rem 'Libre Baskerville', Georgia, serif; }
.chevron { color: var(--teal-800); font: 1.3rem 'DM Sans', sans-serif; }
.date-actions, .view-toggle { display: flex; align-items: center; gap: .35rem; }
.icon-button { min-width: 34px; padding: .2rem; background: transparent; color: var(--green-900); font-size: 2rem; }
.today-button, .view-toggle button { background: #fff; color: var(--ink); border: 1px solid #e5dfd3; box-shadow: 0 3px 10px rgba(7,58,73,.05); }
.view-toggle { margin-left: 1.2rem; border-radius: 9px; overflow: hidden; }
.view-toggle button { border-radius: 0; }
.view-toggle .selected, .create-event { background: var(--green-900); color: #fff; }
.account-indicator { font-weight: 600; }
.dashboard-filters { display: flex; align-items: end; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid #e5dfd3; }
.dashboard-filters label { flex-direction: row; align-items: center; color: var(--teal-800); font-size: .9rem; font-weight: 500; }
.dashboard-filters select { min-width: 230px; }
.dashboard-filters > select { min-width: 255px; }
.create-event { margin-left: auto; padding-inline: 1.2rem; }
.calendar-card { padding: 1rem 0 0; background: transparent; border: 0; box-shadow: none; }
.calendar-audience { display: flex; align-items: center; gap: .8rem; margin: 0 0 1rem; font-size: 1.22rem; }
.audience-icon, .stat-icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--gold-100); color: #c58b1e; font-size: 1.5rem; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); overflow-x: auto; border: 1px solid #e5dfd3; border-radius: 10px; background: #fff; }
.day-column { min-width: 120px; border-right: 1px solid #e5dfd3; }
.day-column:last-child { border-right: 0; }
.day-heading { padding: .85rem; text-align: center; border-bottom: 1px solid #e5dfd3; font-weight: 600; }
.day-heading span { margin-right: .35rem; }
.day-column:last-child .day-heading { color: #d08f19; }
.day-body { position: relative; min-height: 360px; }
.empty-day { position: absolute; inset: 40% 0 auto; display: flex; flex-direction: column; align-items: center; gap: .7rem; color: #989898; text-align: center; font-size: .8rem; }
.calendar-icon { color: #d8d0c3; font-size: 2rem; }
.calendar-event { margin: 1rem .45rem; padding: .65rem .6rem; border-left: 3px solid var(--gold-500); border-radius: 8px; background: var(--green-100); color: var(--green-900); font-size: .78rem; }
.glance-card { margin-top: 1rem; }
.stat-icon { flex: 0 0 auto; background: var(--green-100); color: var(--green-900); }
.stat-icon.gold { background: var(--gold-100); color: #c58b1e; }
.glance-card .dashboard-stat span { display: block; }
section > h2:first-child { margin-top: 0; }

form { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; }
label { display: flex; flex-direction: column; gap: .25rem; color: var(--muted); font-size: .8rem; font-weight: 700; }
label:has(input[type="checkbox"]) { flex-direction: row; align-items: center; }
input, select, textarea { min-height: 40px; padding: .55rem .7rem; border: 1px solid #c8d8d4; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(216,168,68,.25); border-color: var(--gold-500); }
button { min-height: 40px; padding: .55rem .9rem; border: 0; border-radius: 8px; background: var(--teal-800); color: #fff; cursor: pointer; font: 700 .82rem 'DM Sans', sans-serif; }
button:hover { background: var(--green-700); }
button[type="submit"]:last-child { background: var(--gold-500); color: var(--green-900); }

ul { padding-left: 1.2rem; }
li { margin: .5rem 0; }
section > ul > li { padding: .8rem; background: #fbfcf8; border-left: 3px solid var(--gold-500); border-radius: 6px; }
[role="alert"] { padding: .8rem 1rem; background: #fff0ee; border: 1px solid #e7b8b0; border-radius: 9px; color: #7c332b; }
[role="status"] { padding: .8rem 1rem; background: var(--green-100); border: 1px solid #b8d0bc; border-radius: 9px; color: var(--green-900); }

@media (max-width: 800px) {
    .dashboard-widget-row, .dashboard-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .resource-tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .resource-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .resource-selector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-header { position: static; width: 100%; min-height: auto; padding: 1rem; }
    .site-nav { justify-content: flex-start; }
    main, body > section, body > h1, body > p, body > form, .admin-page { width: calc(100% - 1.5rem); margin: 0 auto; }
    section { padding: 1rem; }
    .page-hero { flex-direction: column; }
    .info-grid, .school-settings-row, .school-action-row { grid-template-columns: 1fr; }
    .school-information-section .info-grid { grid-template-columns: 1fr; }
    .school-field--name, .school-field--school-id, .school-field--address1, .school-field--address2, .school-field--city, .school-field--state, .school-field--zip, .school-field--admin-name, .school-field--admin-email { grid-column: 1; grid-row: auto; }
    .school-directory-box > summary { align-items: flex-start; }
    .school-directory-content { padding: .9rem; }
    .school-invite-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .school-invite-fields button { width: 100%; }
    .school-action-row form, .school-status-card form, .school-attendance-card form { flex-wrap: wrap; }
    .page-hero__actions { width: 100%; min-width: 0; }
    .dashboard-stat-grid { grid-template-columns: 1fr; }
    .dashboard-toolbar { align-items: flex-start; flex-direction: column; }
    .account-indicator { display: none; }
    .dashboard-filters { align-items: stretch; flex-direction: column; }
    .dashboard-filters select { width: 100%; }
    .create-event { margin-left: 0; }
    form > label, form > button { width: 100%; }
    .site-nav .user { border-left: 0; padding-left: .7rem; width: 100%; }
    .current-school-banner { width: calc(100% - 1.5rem); min-height: 52px; margin: .25rem auto 0; }
}
@media (max-width: 560px) {
    .dashboard-widget-row, .dashboard-event-grid { grid-template-columns: 1fr; }
    .resource-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .resource-picker-grid { grid-template-columns: 1fr; }
    .resource-selector-grid { grid-template-columns: 1fr; }
    .dashboard-header-meta { align-items: stretch; flex-direction: column; }
    .school-invite-fields { grid-template-columns: 1fr; }
}
.availability-card .availability-logo { width: 170px !important; height: 108px !important; }
.availability-card h1 { line-height: 1.05; }
.announcement-footer { display: flex; justify-content: flex-end; margin-top: .75rem; }
.announcement-footer a { font-weight: 800; color: var(--teal-800); }
.announcement-list { gap: 1rem; }
.announcement-entry h2 { margin: .25rem 0 .65rem; }
.announcement-urgency-icon { display: inline-grid; width: 1.35rem; height: 1.35rem; place-items: center; border-radius: 50%; background: var(--gold-300, #e1ad3f); color: var(--green-900, #073a49); font-size: .85rem; font-weight: 800; vertical-align: -.15rem; }
.announcement-urgency-icon { display: inline-grid; width: 1.35rem; height: 1.35rem; place-items: center; border-radius: 50%; background: var(--gold-300, #e1ad3f); color: var(--green-900, #073a49); font-size: .85rem; font-weight: 800; vertical-align: -.15rem; }

/* Olive & Tide premium theme overrides */
:root { --ga-forest: #064e3b; --ga-forest-dark: #033d32; --ga-sage: #a8bfa3; --ga-sage-soft: #e8f0e5; --ga-gold: #d5a62e; --ga-gold-light: #e6be58; --ga-cream: #f8f6ef; --ga-card: #fff; --ga-text: #17352e; --ga-text-muted: #64746f; --ga-border: #dce4de; --ga-success: #2e8b57; --ga-warning: #d59b2d; --ga-danger: #b84a4a; --ga-info: #2e7180; --paper: var(--ga-cream); --card: var(--ga-card); --ink: var(--ga-text); --muted: var(--ga-text-muted); --line: var(--ga-border); --green-900: var(--ga-forest); --teal-950: var(--ga-forest-dark); --teal-900: var(--ga-forest); --gold-500: var(--ga-gold); --gold-100: #f8edcc; --shadow: 0 10px 28px rgba(3,61,50,.08); }
body { background: var(--ga-cream); color: var(--ga-text); }
.site-header { background: var(--ga-forest-dark); }
.site-nav a[aria-current="page"] { background: rgba(168,191,163,.18); border-left: 3px solid var(--ga-gold-light); padding-left: calc(.6rem - 3px); }
.site-nav a:hover { background: rgba(168,191,163,.12); }
.nav-group { color: var(--ga-sage); }
.management-label { border-top-color: rgba(168,191,163,.25); color: var(--ga-gold-light); }
.page-hero, .admin-console section, .info-grid > div, .school-settings-row > div, .console-savebar { background: var(--ga-card); border-color: var(--ga-border); box-shadow: var(--shadow); border-radius: 12px; }
button, .button-link { border-radius: 9px; background: var(--ga-forest); color: #fff; }
button:hover, .button-link:hover { background: var(--ga-forest-dark); color: #fff; }
button.secondary, .button-link.secondary { background: var(--ga-sage-soft); color: var(--ga-forest-dark); border-color: var(--ga-sage); }
input, select, textarea { border-color: var(--ga-border); border-radius: 9px; background: #fff; color: var(--ga-text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ga-forest); outline-offset: 1px; }
.metric-card:first-child { background: var(--ga-card); color: var(--ga-text); border-color: var(--ga-border); }
.metric-card:first-child .metric-label, .metric-card:first-child .metric-detail { color: var(--ga-text-muted); }
.metric-card strong { color: var(--ga-forest); }
.status-active { background: var(--ga-sage-soft); color: #216b43; }.status-suspended { background: #fff2d8; color: #805c13; }.status-pending_delete { background: #f8e2df; color: #963f3f; }.status-disabled,.status-deleted { background: #eef0ee; color: #53615c; }
.admin-table th { color: var(--ga-forest); }.admin-table tr:hover td { background: var(--ga-sage-soft); }
.future-card { background: var(--ga-sage-soft) !important; }

/* Sidebar refinement: scoped navigation polish */
.site-header { width: 230px; padding: 1.4rem .8rem 1rem; background: #033d32; }
.brand { margin: 0 .45rem 1.7rem; }
.brand img { max-height: 84px; }
.site-nav { gap: .22rem; }
.site-nav a { min-height: 46px; box-sizing: border-box; display: flex; align-items: center; padding: .65rem .75rem; border-radius: 8px; font-size: 1rem; font-weight: 600; transition: background-color .18s ease, border-color .18s ease; }
.site-nav a::before { flex: 0 0 1.35rem; width: 1.35rem; margin-right: .55rem; font-size: 1.22rem; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { background: #064e3b; color: #fff; }
.site-nav a[aria-current="page"] { border-left: 3px solid #d5a62e; padding-left: calc(.75rem - 3px); }
.site-nav a:focus-visible { outline: 2px solid #e6be58; outline-offset: 2px; }
.nav-group { margin: 1.15rem .75rem .4rem; color: #a8bfa3; font-size: .66rem; letter-spacing: .14em; }
.management-label { margin-top: 1.05rem; padding-top: .85rem; border-top: 1px solid rgba(168,191,163,.2); color: #d5a62e; }
.site-nav .user { margin-top: auto; padding: 1rem .75rem .7rem; border-top: 1px solid rgba(168,191,163,.2); }
.site-nav .user strong { font-size: .82rem; }
.site-nav .user small { margin-top: .2rem; color: #a8bfa3; font-size: .64rem; }
main, body > section, body > h1, body > p, body > form { width: min(1320px, calc(100vw - 289px)); margin-left: 262px; }
.admin-page { width: min(1320px, calc(100vw - 289px)); margin-left: 262px; }
.current-school-banner { width: calc(100% - 289px); margin-left: 262px; }
@media (max-width: 800px) { .site-header { width: 100%; padding: 1rem; } main, body > section, body > h1, body > p, body > form, .admin-page, .current-school-banner { width: calc(100% - 1.5rem); margin-left: auto; margin-right: auto; } }
