:root {
  --ink: #203a34;
  --green: #174f43;
  --green-2: #286153;
  --cream: #f8f6ee;
  --paper: #fffefa;
  --line: #e4e0d5;
  --muted: #75817b;
  --gold: #e6bd70;
  --peach: #dc9b74;
  --danger: #a5483e;
  --shadow: 0 18px 50px rgba(32, 58, 52, .08);
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green-2); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
img, svg { max-width: 100%; }

.topbar { min-height: 76px; display: flex; align-items: center; gap: 32px; padding: 12px clamp(18px, 4vw, 58px); background: rgba(255, 254, 250, .92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--gold); color: var(--green); font-weight: 900; font-size: 20px; }
.brand-dot { color: var(--peach); }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: 5px; flex: 1; }
.primary-nav a, .account-link { display: inline-flex; align-items: center; padding: 9px 12px; border-radius: 999px; color: #65726c; font-size: 13px; font-weight: 650; white-space: nowrap; }
.primary-nav a:hover, .primary-nav a.active { background: #e7eee8; color: var(--green); }
.account-nav { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; }
.page-shell { width: min(1160px, calc(100% - 48px)); min-height: 66vh; margin: 34px auto 72px; }
.site-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 35px; padding: 36px max(24px, calc((100vw - 1160px) / 2)); background: var(--green); color: #f4f1e8; }
.site-footer p, .site-footer small { color: #b9c9c1; margin: 8px 0 0; }
.site-footer small { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 15px; font-size: 11px; }
.brand-footer { color: white; }
.brand-footer:hover { color: white; }
.footer-links { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 12px 20px; font-size: 13px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.13; letter-spacing: -.035em; }
h1 { margin-bottom: 14px; font-size: clamp(2.2rem, 5vw, 4.3rem); }
h2 { margin-bottom: 12px; font-size: clamp(1.45rem, 2.5vw, 2rem); }
h3 { margin-bottom: 8px; font-size: 1.15rem; }
p { color: #6e7d76; }
.eyebrow { margin-bottom: 9px; color: #bd805e; font-size: 10px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.meta, .small, small { color: var(--muted); }
.small { font-size: 12px; }
.field-hint { display: block; margin: -7px 0 3px; font-size: 12px; color: var(--muted); }
.optional { color: var(--muted); font-size: 12px; font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; padding: 11px 18px; border: 1px solid var(--green); border-radius: 13px; background: var(--green); color: white; font-weight: 750; font-size: 13px; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { color: white; background: var(--green-2); transform: translateY(-1px); box-shadow: 0 7px 20px rgba(23,79,67,.15); }
.button-small { min-height: 36px; padding: 7px 12px; border-radius: 10px; font-size: 12px; }
.button-outline { background: transparent; color: var(--green); border-color: #c9d5cd; }
.button-outline:hover { color: var(--green); background: #eaf0ea; }
.button-ghost { background: transparent; border-color: transparent; color: var(--green); }
.button-ghost:hover { color: var(--green); background: rgba(23,79,67,.06); box-shadow: none; }
.button-light { background: var(--cream); color: var(--green); border-color: var(--cream); }
.button-light:hover { color: var(--green); background: white; }
.button-danger { background: #fff6f4; color: var(--danger); border-color: #e8c8c4; }
.button-danger:hover { background: #f9e4e1; color: #84372f; }
.button-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 13px; font-weight: 750; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--green); font-size: 13px; font-weight: 700; }
.arrow { color: var(--green); font-size: 20px; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr); align-items: center; min-height: 365px; overflow: hidden; padding: clamp(30px, 5vw, 54px); border-radius: 26px; background: var(--green); color: white; }
.hero h1 { color: var(--paper); max-width: 680px; font-size: clamp(2.8rem, 6vw, 4.8rem); }
.hero h1 span { color: var(--gold); }
.hero .eyebrow { color: var(--peach); }
.hero-lead { max-width: 580px; margin-bottom: 24px; color: #c2d1c8; font-size: 16px; }
.hero-art { position: relative; min-height: 270px; }
.orbit { position: absolute; top: 50%; left: 50%; width: 260px; height: 260px; border: 1px solid rgba(231,192,116,.38); border-radius: 50%; transform: translate(-50%,-50%); }
.orbit-one { width: 190px; height: 190px; }
.orbit-two { width: 285px; height: 285px; border-color: rgba(255,255,255,.15); }
.sun-disc { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 110px; height: 110px; border: 7px solid rgba(255,255,255,.13); border-radius: 50%; background: var(--gold); color: var(--green); font-size: 44px; font-weight: 900; transform: translate(-50%,-50%); }
.spark { position: absolute; color: var(--gold); font-size: 23px; }
.spark-one { right: 18%; top: 16%; }
.spark-two { left: 18%; bottom: 17%; }
.welcome-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 24px 0; padding: 22px 25px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.welcome-row h2 { margin-bottom: 4px; font-size: 21px; }
.welcome-row p:last-child { margin: 0; font-size: 13px; }
.quick-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 25px 0 44px; }
.tool-card { display: flex; align-items: center; gap: 13px; min-height: 94px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); transition: transform .16s ease, box-shadow .16s ease; }
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tool-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 13px; background: #e9efe9; color: var(--green); font-weight: 850; font-size: 21px; }
.tool-card strong, .tool-card small { display: block; }
.tool-card strong { font-size: 13px; }
.tool-card small { margin-top: 3px; font-size: 11px; }
.tool-card .arrow { margin-left: auto; }
.section-block { margin-top: 48px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; }
.section-heading .eyebrow { margin-bottom: 6px; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.course-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); transition: transform .18s ease, box-shadow .18s ease; }
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.course-art { position: relative; display: flex; align-items: start; justify-content: space-between; min-height: 140px; padding: 18px; background: radial-gradient(circle at 12px 12px, rgba(23,79,67,.12) 1.1px, transparent 1.3px) 0 0 / 18px 18px, linear-gradient(110deg, #e5eddf 5%, #ede8d3 54%, #e8b985); }
.tag { display: inline-flex; padding: 6px 10px; border: 1px solid rgba(23,79,67,.1); border-radius: 999px; background: rgba(255,254,250,.88); color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.course-symbol { align-self: end; color: var(--green); font-size: 36px; }
.course-card-body { padding: 17px 19px 19px; }
.course-card-body .meta { margin-bottom: 8px; font-size: 11px; }
.course-card-body h3 { font-size: 16px; }
.course-card-body > p:not(.meta) { min-height: 44px; margin-bottom: 15px; font-size: 12px; }
.teacher-callout, .coaching-banner { margin-top: 45px; padding: clamp(26px, 5vw, 44px); border-radius: 23px; background: var(--green); color: white; }
.teacher-callout { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.teacher-callout h2, .coaching-banner h2 { max-width: 670px; color: var(--paper); }
.teacher-callout p:not(.eyebrow), .coaching-banner p:not(.eyebrow) { max-width: 670px; color: #c2d1c8; }
.teacher-callout .eyebrow, .coaching-banner .eyebrow { color: var(--gold); }

.page-intro { max-width: 790px; margin: 24px 0 28px; }
.page-intro h1 { font-size: clamp(2.1rem, 5vw, 3.45rem); }
.page-intro > p:last-child { max-width: 720px; font-size: 16px; }
.filter-panel { display: grid; grid-template-columns: minmax(180px, 1.5fr) minmax(140px, .8fr) minmax(140px, .8fr) auto auto; align-items: center; gap: 10px; margin: 25px 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.filter-panel input, .filter-panel select, input, select, textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #dedbd2; border-radius: 11px; background: #fffefa; color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(40,97,83,.13); }
textarea { min-height: 110px; resize: vertical; }
.search-field { position: relative; }
.search-field input { padding-left: 14px; }
.list-meta { display: flex; justify-content: space-between; margin: 20px 2px 13px; color: var(--muted); font-size: 12px; }
.empty-state { padding: 30px; border: 1px dashed #c8d3ca; border-radius: 18px; background: rgba(255,254,250,.7); }
.empty-state h2, .empty-state h3 { margin-bottom: 7px; }
.empty-state p:last-child { margin-bottom: 0; }

.detail-hero { padding: clamp(28px, 5vw, 50px); border-radius: 24px; background: linear-gradient(130deg, #e4ebdf, #f4e4c9); }
.detail-hero h1 { max-width: 850px; font-size: clamp(2rem, 5vw, 3.5rem); }
.detail-hero > div > p:not(.eyebrow) { max-width: 720px; }
.detail-hero .meta { margin: 18px 0; font-size: 12px; }
.rating-summary { margin: 16px 0; color: #94702e; font-weight: 750; }
.video-frame { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; background: #172f2a; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-list { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.lesson-row { display: grid; grid-template-columns: 48px 1fr 34px; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.lesson-row:last-child { border-bottom: 0; }
.lesson-number { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #e7eee8; color: var(--green); font-weight: 800; font-size: 12px; }
.lesson-row h3 { margin: 0 0 4px; }
.lesson-row p { margin: 0; font-size: 12px; }
.reading-page { max-width: 850px; margin: 20px auto; padding: clamp(22px, 4vw, 42px); border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.reading-page h1 { font-size: clamp(2rem, 5vw, 3rem); }
.prose { margin: 22px 0; color: #465b53; font-size: 16px; line-height: 1.85; }
.exercise-box { margin: 24px 0; padding: 22px; border-radius: 18px; background: #edf2e9; }
.exercise-box h2 { font-size: 21px; }
.exercise-box label { display: block; margin: 16px 0; font-size: 13px; font-weight: 700; }

.calculator-card { max-width: 820px; overflow: hidden; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.calc-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 15px; }
.calc-header h2 { margin-bottom: 4px; font-size: 21px; }
.calc-header p { margin: 0; font-size: 12px; }
.grade-rows { display: grid; gap: 9px; }
.grade-row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(85px, .55fr) minmax(85px, .45fr) 34px; gap: 9px; align-items: center; }
.grade-row input { min-width: 0; }
.remove-row { width: 34px; height: 42px; border: 0; border-radius: 10px; background: #f8eeea; color: var(--danger); font-size: 21px; }
.remove-row:hover { background: #f0d9d5; }
.clear-button { margin: 15px 0 22px; border: 0; background: none; text-decoration: underline; }
.average-panel { padding: 22px; border-radius: 18px; background: var(--green); color: white; }
.average-panel .eyebrow { color: var(--peach); }
.average-value { display: flex; align-items: baseline; gap: 9px; color: white; font-size: clamp(3.3rem, 10vw, 5rem); font-weight: 800; line-height: 1.05; letter-spacing: -.06em; }
.average-value small { color: #c1d0c7; font-size: 19px; letter-spacing: 0; }
.mention { color: var(--gold); font-weight: 700; }
.formula { margin: 18px 0 0; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.2); color: #c5d1cb; font-size: 11px; }

.holiday-list, .guide-list, .admin-list { display: grid; gap: 10px; margin-top: 18px; }
.holiday-card { display: grid; grid-template-columns: 100px 1fr; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.holiday-date { display: grid; place-items: center; min-height: 58px; padding: 8px; border-radius: 13px; background: #e9efe9; color: var(--green); text-align: center; font-weight: 800; font-size: 12px; }
.holiday-card h2 { margin: 0 0 5px; font-size: 17px; }
.holiday-card p { margin: 0; font-size: 12px; }
.holiday-card small { display: block; margin-top: 5px; font-size: 11px; }
.notice { margin: 16px 0; padding: 13px 16px; border: 1px solid #d9e2da; border-radius: 12px; background: #edf3ed; color: var(--green); font-size: 13px; }
.notice-warning { border-color: #e8d5a7; background: #fbf2dc; color: #785d24; }
.notice-error { border-color: #e9c5c0; background: #fff0ed; color: #8c3f35; }
.notice-success { border-color: #c7dccb; background: #eaf4eb; color: #315d3b; }
.notice-info { border-color: #cbd8e0; background: #edf3f6; color: #39596c; }

.pathway-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.pathway-card { min-height: 260px; padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.pathway-card h2 { margin-top: 14px; }
.pathway-card p, .pathway-card li { font-size: 13px; }
.pathway-card ul { padding-left: 20px; color: #62716a; }
.pathway-featured { background: #e8eee5; }
.step-label { color: #b37c5d; font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-card { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.guide-card h3 { margin-top: 13px; }
.guide-card p { font-size: 13px; }
.guide-card .meta { font-size: 11px; }

.coaching-banner { margin: 0 0 18px; }
.coaching-banner h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
.coaching-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-bottom: 20px; }
.coaching-options article { padding: 19px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.coaching-options article > span { color: #bd805e; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.coaching-options h2 { margin-top: 10px; font-size: 17px; }
.coaching-options p { margin: 0; font-size: 12px; }
.compact-form { max-width: 680px; margin-top: 20px; }
.request-list { display: grid; gap: 9px; }
.request-list article { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.request-list small { grid-column: 1 / -1; }
.form-stack { display: grid; gap: 14px; padding: 23px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.form-stack h2 { margin: 0; font-size: 21px; }
.form-stack label { display: grid; gap: 7px; color: #40544c; font-size: 13px; font-weight: 700; }
.form-stack .field-hint { font-weight: 400; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-label { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 10px !important; }
.check-label input { width: 18px; min-height: 18px; }
.rating-field { border: 0; padding: 0; }
.rating-field legend { margin-bottom: 8px; color: #40544c; font-size: 13px; font-weight: 700; }
.stars { display: flex; gap: 8px; }
.stars label { display: block; cursor: pointer; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars span[aria-hidden] { color: #d3ccba; font-size: 30px; transition: color .15s; }
.stars label.selected span[aria-hidden], .stars label:has(input:checked) span[aria-hidden] { color: #d29c38; }
.profile-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 16px; align-items: start; }
.profile-summary { padding: 26px; border-radius: 20px; background: var(--green); color: white; }
.profile-summary h2 { margin: 12px 0 3px; color: white; font-size: 22px; }
.profile-summary p { margin: 0 0 6px; color: #c2d1c8; font-size: 12px; }
.avatar { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--gold); color: var(--green); font-size: 24px; font-weight: 850; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 15px; }
.admin-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.admin-row strong { font-size: 14px; }
.admin-row p { margin: 4px 0 0; font-size: 12px; }
.admin-row .button-row { justify-content: end; }
.request-admin { align-items: start; }
.request-admin form { display: grid; gap: 8px; min-width: 150px; }
.request-admin select { min-height: 38px; }
.feedback-admin p:last-child { margin: 8px 0 0; }
.row-between { display: flex; justify-content: space-between; gap: 10px; }

.auth-page, .install-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; background: radial-gradient(circle at 90% 12%, #e7dec9 0, transparent 32%), var(--cream); }
.auth-card { width: min(100%, 510px); padding: clamp(24px, 5vw, 42px); border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.auth-card .brand { margin-bottom: 36px; }
.auth-card h1 { margin-bottom: 20px; font-size: 2.4rem; }
.auth-card .form-stack { padding: 0; border: 0; background: transparent; }
.auth-bottom { margin: 20px 0 0; text-align: center; font-size: 13px; }
.auth-bottom a { color: var(--green); font-weight: 750; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.google-button { width: 100%; }
.install-page .auth-card { max-width: 590px; }
.install-page .auth-card > p { font-size: 13px; }
.install-page code { padding: 2px 4px; border-radius: 4px; background: #f0eee6; }

@media (max-width: 1080px) {
  .topbar { gap: 16px; padding-inline: 22px; }
  .primary-nav { gap: 0; }
  .primary-nav a { padding-inline: 8px; font-size: 12px; }
  .account-link { display: none; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .filter-panel .search-field { grid-column: 1 / -1; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .topbar { min-height: 62px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 10px 16px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 34px; height: 34px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--green); font-size: 12px; font-weight: 700; }
  .primary-nav { display: none; order: 4; width: 100%; flex: 0 0 100%; flex-wrap: wrap; justify-content: start; padding: 8px 0 3px; border-top: 1px solid var(--line); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 9px 11px; }
  .account-nav { gap: 7px; }
  .account-nav .button { min-height: 34px; padding: 6px 9px; font-size: 11px; }
  .page-shell { width: min(100% - 32px, 560px); margin: 23px auto 45px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 28px 24px; border-radius: 22px; }
  .hero h1 { font-size: clamp(2.7rem, 12vw, 4rem); }
  .hero-lead { font-size: 14px; }
  .hero-art { min-height: 175px; margin-top: 4px; }
  .orbit-two { width: 190px; height: 190px; }
  .orbit-one { width: 135px; height: 135px; }
  .sun-disc { width: 82px; height: 82px; font-size: 34px; }
  .quick-tools { grid-template-columns: 1fr; gap: 9px; margin: 17px 0 35px; }
  .tool-card { min-height: 75px; padding: 13px; }
  .course-grid, .pathway-grid, .guide-list, .coaching-options, .admin-grid, .profile-layout { grid-template-columns: 1fr; }
  .course-art { min-height: 118px; }
  .teacher-callout { display: grid; }
  .welcome-row { align-items: start; flex-direction: column; }
  .filter-panel { grid-template-columns: 1fr; padding: 11px; }
  .filter-panel .search-field { grid-column: auto; }
  .filter-panel .button { width: 100%; }
  .list-meta { gap: 8px; flex-wrap: wrap; }
  .detail-hero { padding: 25px 21px; }
  .lesson-row { grid-template-columns: 38px 1fr 22px; gap: 9px; padding: 15px 12px; }
  .lesson-number { width: 32px; height: 32px; }
  .lesson-row h3 { font-size: 14px; }
  .lesson-row p { font-size: 11px; }
  .calculator-card { padding: 16px; }
  .calc-header { align-items: start; flex-direction: column; }
  .grade-row { grid-template-columns: minmax(0, 1fr) minmax(72px, .75fr) minmax(68px, .6fr) 30px; gap: 6px; }
  .grade-row input { padding: 9px 7px; font-size: 12px; }
  .remove-row { width: 30px; height: 42px; }
  .holiday-card { grid-template-columns: 80px 1fr; gap: 12px; padding: 13px; }
  .holiday-date { min-height: 55px; font-size: 10px; }
  .form-row { grid-template-columns: 1fr; }
  .admin-row { align-items: start; flex-direction: column; }
  .admin-row .button-row { justify-content: start; }
  .request-admin form { width: 100%; }
  .request-admin .button { width: 100%; }
  .site-footer { grid-template-columns: 1fr; padding: 30px 18px; }
  .footer-links { justify-content: start; }
  .site-footer small { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
