:root {
  --brand-primary: #0b6b49;
  --brand-secondary: #ffb612;
  --brand-strong: color-mix(in srgb, var(--brand-primary) 58%, #041d17);
  --brand-accent: color-mix(in srgb, var(--brand-primary) 82%, #0a4c3b);
  --brand-soft: color-mix(in srgb, var(--brand-primary) 9%, #ffffff);
  --brand-faint: color-mix(in srgb, var(--brand-primary) 4%, #ffffff);
  --brand-on-primary: #ffffff;
  --brand-on-secondary: #10231c;
  --green-900: #073b2a;
  --green-700: #0b6b49;
  --green-100: #e6f5ee;
  --gold: #ffb612;
  --amber-100: #fff4d6;
  --red: #de3831;
  --blue: #1f5fbf;
  --blue-100: #e9f1ff;
  --teal: #0f9f91;
  --coral: #e66450;
  --ink: #16231d;
  --ink-2: #26352f;
  --muted: #64736c;
  --line: rgba(14, 54, 39, 0.14);
  --surface: #f7faf8;
  --surface-2: #edf4ef;
  --white: #ffffff;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(9, 30, 24, 0.06), 0 4px 14px rgba(9, 30, 24, 0.04);
  --shadow: 0 1px 2px rgba(9, 30, 24, 0.05), 0 16px 42px rgba(9, 30, 24, 0.07);
  --focus-ring: 0 0 0 4px color-mix(in srgb, var(--brand-primary) 22%, transparent);
  color-scheme: light;
}

/* Pilot entry and role-first navigation */
@view-transition {
  navigation: auto;
}

.pilot-entry {
  min-height: calc(100vh - 132px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .14), transparent 28rem),
    linear-gradient(135deg, #073f31, var(--brand-primary, #0b6b49));
  color: #fff;
  padding: clamp(2rem, 7vw, 7rem);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.pilot-entry-main {
  max-width: 44rem;
}

.pilot-entry-main h1 {
  color: #fff;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.055em;
  margin: .65rem 0 1.1rem;
}

.pilot-entry-main > p:not(.eyebrow) {
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 32rem;
}

.pilot-sign-in {
  margin-top: 1.5rem;
  background: #fff;
  color: #073f31;
  min-width: 10rem;
}

.pilot-entry-options {
  display: grid;
  gap: .85rem;
}

.pilot-entry-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 1.25rem;
  color: #fff;
  background: rgba(255, 255, 255, .09);
  backdrop-filter: blur(10px);
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}

.pilot-entry-card:hover,
.pilot-entry-card:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .16);
}

.pilot-entry-card.primary {
  background: #fff;
  color: #073f31;
}

.pilot-entry-card strong,
.pilot-entry-card small {
  display: block;
}

.pilot-entry-card strong {
  font-size: 1.08rem;
}

.pilot-entry-card small {
  margin-top: .2rem;
  color: inherit;
  opacity: .72;
}

.pilot-entry-icon,
.dashboard-launcher-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: .85rem;
  background: rgba(255, 255, 255, .13);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.pilot-entry-card.primary .pilot-entry-icon {
  background: #e1f3ea;
}

.pilot-school-strip {
  display: flex;
  align-items: center;
  gap: 1rem 2rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.pilot-school-strip div,
.pilot-school-strip strong,
.pilot-school-strip small {
  display: block;
}

.pilot-school-strip div {
  margin-right: auto;
}

.dashboard-launcher {
  min-height: min(62vh, 46rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin: 1.25rem 0 2rem;
  border: 1px solid var(--line, #dce7e1);
  border-radius: 1.5rem;
  background: linear-gradient(145deg, #fff, #f2f8f5);
  display: flex;
  flex-direction: column;
}

.dashboard-launcher-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.dashboard-launcher-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin: .2rem 0 0;
}

.dashboard-launcher-head > span {
  color: var(--muted, #617068);
  font-size: .9rem;
}

.dashboard-launcher-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(8.2rem, 1fr);
  gap: .85rem;
}

.dashboard-launcher-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .85rem;
  padding: 1.15rem;
  border: 1px solid #d9e7df;
  border-radius: 1.15rem;
  background: #fff;
  color: var(--ink, #14251d);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(18, 54, 39, .06);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.dashboard-launcher-form {
  margin: 0;
}

.dashboard-launcher-form .dashboard-launcher-card {
  width: 100%;
  height: 100%;
  text-align: left;
  font: inherit;
}

.dashboard-launcher-card:hover,
.dashboard-launcher-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--brand-primary, #0b6b49);
  box-shadow: 0 12px 32px rgba(18, 54, 39, .11);
}

.dashboard-launcher-icon {
  color: var(--brand-primary, #0b6b49);
  background: #e8f5ef;
}

.dashboard-launcher-copy,
.dashboard-launcher-copy strong,
.dashboard-launcher-copy small {
  display: block;
}

.dashboard-launcher-copy strong {
  font-size: 1.05rem;
}

.dashboard-launcher-copy small {
  color: var(--muted, #617068);
  margin-top: .2rem;
}

.dashboard-launcher-arrow {
  color: var(--brand-primary, #0b6b49);
  font-size: 1.25rem;
}

.view-as-control {
  width: min(34rem, 100%);
  display: grid;
  grid-template-columns: 1fr .7fr auto;
  gap: .6rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .1);
}

.view-as-control > strong,
.view-as-control > small {
  grid-column: 1 / -1;
}

.view-as-control select,
.view-as-control button {
  width: 100%;
  min-height: 2.8rem;
}

.view-as-control small {
  color: rgba(255, 255, 255, .78);
}

.view-as-banner {
  position: sticky;
  top: 0;
  z-index: 90;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: .65rem 1rem;
  background: #fff2bd;
  color: #4a3500;
  border-bottom: 2px solid #d59d00;
  box-shadow: 0 4px 18px rgba(66, 47, 0, .15);
}

.view-as-banner div,
.view-as-banner strong,
.view-as-banner span {
  display: block;
}

.view-as-banner span {
  font-size: .84rem;
}

.view-as-banner button {
  min-height: 2.35rem;
  padding: .5rem .9rem;
  background: #4a3500;
  color: #fff;
}

.is-authenticated .app-footer {
  padding-top: .85rem;
  padding-bottom: calc(.85rem + env(safe-area-inset-bottom));
}

@media (max-width: 980px) {
  .pilot-entry {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .dashboard-launcher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .view-as-control {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .pilot-entry {
    padding: 2.25rem 1rem;
  }

  .pilot-entry-main h1 {
    font-size: 2.65rem;
  }

  .pilot-school-strip,
  .view-as-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-launcher {
    min-height: auto;
    padding: 1rem;
    border-radius: 1.1rem;
  }

  .dashboard-launcher-head > span {
    display: none;
  }

  .dashboard-launcher-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
  }

  .dashboard-launcher-card {
    grid-template-columns: 1fr;
    align-content: start;
    min-height: 8.5rem;
  }

  .dashboard-launcher-arrow {
    display: none;
  }
}

/* Teacher schedule, class presentation, and permanent learner records */
.teacher-schedule-shell,
.scheduled-class-shell,
.presentation-shell,
.permanent-record-shell {
  display: grid;
  gap: 20px;
}

.teacher-schedule-hero,
.scheduled-class-hero,
.presentation-header,
.permanent-record-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--radius-xl);
  color: var(--brand-on-primary);
  background:
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--brand-secondary) 34%, transparent), transparent 25%),
    linear-gradient(135deg, var(--brand-strong), var(--brand-primary));
  box-shadow: var(--shadow);
}

.teacher-schedule-hero::after,
.scheduled-class-hero::after,
.presentation-header::after,
.permanent-record-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
}

.teacher-schedule-hero > *,
.scheduled-class-hero > *,
.presentation-header > *,
.permanent-record-hero > * {
  position: relative;
  z-index: 1;
}

.teacher-schedule-hero h1,
.scheduled-class-hero h1,
.presentation-header h1,
.permanent-record-hero h1 {
  margin: 4px 0 7px;
  color: inherit;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.teacher-schedule-hero p,
.scheduled-class-hero p,
.presentation-header p,
.permanent-record-hero p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
}

.teacher-schedule-next {
  display: grid;
  gap: 3px;
  max-width: 630px;
  margin-top: 24px;
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .1);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}

.teacher-schedule-next:not(.is-empty):hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .16);
}

.teacher-schedule-next > span,
.teacher-schedule-status {
  color: color-mix(in srgb, var(--brand-secondary) 82%, #fff);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.teacher-schedule-next > strong {
  font-size: 18px;
}

.teacher-schedule-next small {
  color: rgba(255, 255, 255, .7);
}

.teacher-schedule-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.teacher-schedule-summary,
.permanent-record-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.teacher-schedule-summary article,
.permanent-record-totals article {
  display: grid;
  gap: 2px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.teacher-schedule-summary strong,
.permanent-record-totals strong {
  color: var(--brand-strong);
  font-size: 28px;
  line-height: 1;
}

.teacher-schedule-summary span,
.permanent-record-totals span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.teacher-schedule-panel {
  overflow-x: auto;
}

.teacher-schedule-panel-head,
.teacher-schedule-attendance-head,
.presentation-attendance-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.teacher-schedule-panel-head h2,
.presentation-attendance-head h2 {
  margin: 2px 0;
}

.teacher-schedule-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.teacher-schedule-tabs a {
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.teacher-schedule-tabs a[aria-current="page"] {
  color: var(--brand-on-primary);
  background: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

.teacher-schedule-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 18px 0;
}

.teacher-schedule-day {
  position: relative;
  display: grid;
  gap: 10px;
  max-width: 850px;
  margin: 0 auto;
  padding: 4px 0;
  list-style: none;
}

.teacher-schedule-day::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 78px;
  width: 2px;
  background: var(--line);
}

.teacher-schedule-occurrence {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.teacher-schedule-occurrence::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 25px;
  left: 74px;
  width: 10px;
  height: 10px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 1px var(--line);
}

.teacher-schedule-occurrence.is-completed::before {
  background: var(--teal);
}

.teacher-schedule-occurrence.is-now::before,
.teacher-schedule-occurrence.is-active::before {
  background: var(--brand-secondary);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-secondary) 25%, transparent);
}

.teacher-schedule-time {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 1px;
  padding-top: 16px;
}

.teacher-schedule-time strong {
  font-size: 15px;
}

.teacher-schedule-time span {
  color: var(--muted);
  font-size: 11px;
}

.teacher-schedule-occurrence > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-md);
  background: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}

.teacher-schedule-occurrence > a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.teacher-schedule-occurrence > a > strong {
  grid-column: 1;
  font-size: 18px;
}

.teacher-schedule-occurrence > a > span:not(.teacher-schedule-status),
.teacher-schedule-occurrence > a > small {
  grid-column: 1;
  color: var(--muted);
}

.teacher-schedule-occurrence .teacher-schedule-status {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 5px 8px;
  border-radius: 99px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.teacher-schedule-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: clamp(32px, 8vw, 70px) 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: center;
}

.teacher-schedule-empty strong {
  font-size: 20px;
}

.teacher-schedule-empty p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.teacher-schedule-week {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 9px;
  min-width: 860px;
}

.teacher-schedule-week-day {
  overflow: hidden;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.teacher-schedule-week-day > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.teacher-schedule-week-day > header span {
  color: var(--muted);
  font-size: 11px;
}

.teacher-schedule-week-day.is-today > header {
  color: var(--brand-on-primary);
  background: var(--brand-primary);
}

.teacher-schedule-week-day.is-today > header span {
  color: color-mix(in srgb, var(--brand-on-primary) 72%, transparent);
}

.teacher-schedule-week-item {
  display: grid;
  gap: 2px;
  margin: 8px;
  padding: 10px;
  border-left: 3px solid var(--brand-primary);
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.teacher-schedule-week-item.is-completed {
  border-left-color: var(--teal);
  opacity: .78;
}

.teacher-schedule-week-item.is-active {
  border-left-color: var(--brand-secondary);
}

.teacher-schedule-week-item span,
.teacher-schedule-week-item small,
.teacher-schedule-day-empty {
  color: var(--muted);
  font-size: 11px;
}

.teacher-schedule-day-empty {
  padding: 16px 10px;
  text-align: center;
}

.teacher-schedule-month-head,
.teacher-schedule-month {
  display: grid;
  grid-template-columns: repeat(7, minmax(118px, 1fr));
  min-width: 850px;
}

.teacher-schedule-month-head span {
  padding: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.teacher-schedule-month-day {
  min-height: 132px;
  padding: 7px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--white);
}

.teacher-schedule-month-day:nth-child(7n) {
  border-right: 1px solid var(--line);
}

.teacher-schedule-month-day:nth-last-child(-n + 7) {
  border-bottom: 1px solid var(--line);
}

.teacher-schedule-month-day > strong {
  display: inline-flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
}

.teacher-schedule-month-day.is-today > strong {
  color: var(--brand-on-primary);
  background: var(--brand-primary);
}

.teacher-schedule-month-day.is-outside {
  opacity: .28;
  background: var(--surface-2);
}

.teacher-schedule-month-day.is-break:not(.is-outside) {
  background: repeating-linear-gradient(-45deg, var(--surface), var(--surface) 7px, var(--surface-2) 7px, var(--surface-2) 14px);
}

.teacher-schedule-month-day > a {
  display: grid;
  gap: 1px;
  margin-top: 5px;
  padding: 5px 6px;
  border-left: 3px solid var(--brand-primary);
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.teacher-schedule-month-day > a.is-completed {
  border-left-color: var(--teal);
  opacity: .72;
}

.teacher-schedule-month-day > a small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-schedule-break-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.teacher-schedule-year {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.teacher-schedule-year-month {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.teacher-schedule-year-month > span {
  font-weight: 850;
}

.teacher-schedule-year-month > strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--brand-strong);
  font-size: 28px;
}

.teacher-schedule-year-month > small {
  color: var(--muted);
}

.teacher-schedule-year-month.is-current {
  border-color: var(--brand-primary);
  background: var(--brand-soft);
}

.teacher-schedule-lower-grid,
.scheduled-class-grid,
.permanent-record-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr);
  gap: 16px;
}

.permanent-record-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.permanent-record-row > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.permanent-record-row small {
  color: var(--muted);
}

.permanent-record-lock {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 5px 8px;
  border-radius: 99px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.teacher-schedule-library-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  background: linear-gradient(145deg, var(--white), var(--brand-soft));
}

.teacher-schedule-library-panel p,
.teacher-schedule-library-panel h2 {
  margin: 0;
}

.teacher-schedule-library-panel > strong {
  color: var(--brand-strong);
  font-size: 18px;
}

/* Scheduled class overview */
.scheduled-class-back,
.presentation-header a {
  width: max-content;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.presentation-header a {
  color: rgba(255, 255, 255, .76);
}

.scheduled-class-meta,
.permanent-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 19px;
}

.scheduled-class-meta span,
.permanent-record-meta span {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 99px;
  background: rgba(255, 255, 255, .09);
  font-size: 11px;
  font-weight: 750;
}

.scheduled-class-primary-action {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 210px;
}

.scheduled-class-primary-action form {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.scheduled-class-primary-action small {
  max-width: 240px;
  color: rgba(255, 255, 255, .72);
  text-align: right;
}

.scheduled-class-present-button {
  min-width: 190px;
  padding: 14px 22px;
  color: var(--brand-on-secondary);
  background: var(--brand-secondary);
  box-shadow: 0 15px 30px color-mix(in srgb, var(--brand-secondary) 25%, transparent);
}

.scheduled-class-state {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 850;
}

.scheduled-class-state.is-active {
  color: var(--brand-on-secondary);
  background: var(--brand-secondary);
}

.scheduled-class-state.is-completed {
  background: rgba(255, 255, 255, .16);
}

.scheduled-class-notice,
.permanent-record-confirmation {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--blue) 25%, var(--line));
  border-radius: var(--radius-md);
  background: var(--blue-100);
  color: color-mix(in srgb, var(--blue) 70%, var(--ink));
}

.scheduled-class-roster-list {
  display: grid;
}

.scheduled-class-roster-list > a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.scheduled-class-avatar,
.presentation-learner-avatar {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 900;
}

.scheduled-class-roster-list > a > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.scheduled-class-roster-list small {
  color: var(--muted);
}

.scheduled-class-profile-link {
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 850;
}

.scheduled-class-resources,
.scheduled-class-report-history {
  min-width: 0;
}

.scheduled-class-course-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
}

.scheduled-class-course-action > span {
  color: rgba(255, 255, 255, .76);
  font-size: 12px;
  font-weight: 750;
}

/* Presentation workspace */
.presentation-header {
  align-items: center;
}

.presentation-live-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 99px;
  color: var(--brand-on-secondary);
  background: var(--brand-secondary);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.presentation-live-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 17%, transparent);
}

.presentation-form {
  display: grid;
  gap: 16px;
  padding-bottom: 88px;
}

.presentation-lesson-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .6fr);
  gap: 12px;
  margin: 13px 0;
}

.presentation-check-card {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--brand-soft);
}

.presentation-check-card input,
.presentation-resource-option input,
.presentation-support-check input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--brand-primary);
}

.presentation-check-card span,
.presentation-resource-option span {
  display: grid;
  gap: 2px;
}

.presentation-check-card small,
.presentation-resource-option small {
  color: var(--muted);
}

.presentation-resource-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.presentation-resource-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.presentation-resource-option:has(input:checked) {
  border-color: var(--brand-primary);
  background: var(--brand-soft);
}

.presentation-resource-option > a {
  grid-column: 2;
  width: max-content;
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 850;
}

.presentation-live-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 14px 0;
}

.presentation-live-summary span {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.presentation-live-summary strong {
  color: var(--brand-strong);
  font-size: 19px;
}

.presentation-learner-list {
  display: grid;
  gap: 8px;
}

.presentation-learner-row {
  min-width: 0;
  margin: 0;
  padding: 10px 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.presentation-learner-row legend {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 0 6px;
}

.presentation-learner-row legend > span:last-child {
  display: grid;
  gap: 1px;
}

.presentation-learner-row legend small {
  color: var(--muted);
  font-weight: 500;
}

.presentation-learner-controls {
  display: grid;
  grid-template-columns: minmax(135px, .65fr) minmax(145px, .7fr) minmax(130px, .55fr) minmax(220px, 1.5fr);
  align-items: end;
  gap: 9px;
  margin-top: 4px;
}

.presentation-support-check {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.presentation-support-check > span {
  font-size: 11px;
  font-weight: 800;
}

.presentation-submit-bar {
  position: fixed;
  z-index: 18;
  right: clamp(14px, 4vw, 48px);
  bottom: 18px;
  left: clamp(14px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: auto;
  padding: 12px 14px 12px 17px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  color: var(--brand-on-primary);
  background: color-mix(in srgb, var(--brand-strong) 94%, transparent);
  box-shadow: 0 20px 55px rgba(4, 29, 23, .32);
  backdrop-filter: blur(15px);
}

.presentation-submit-bar > div {
  display: grid;
  gap: 2px;
}

.presentation-submit-bar small {
  color: rgba(255, 255, 255, .68);
}

.presentation-submit-bar button {
  min-width: 150px;
  color: var(--brand-on-secondary);
  background: var(--brand-secondary);
}

/* Permanent report and learner timeline */
.permanent-record-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.permanent-record-seal {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 150px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  aspect-ratio: 1;
  align-content: center;
  background: rgba(255, 255, 255, .1);
  text-align: center;
}

.permanent-record-seal strong {
  color: color-mix(in srgb, var(--brand-secondary) 82%, #fff);
  font-size: 20px;
  text-transform: uppercase;
}

.permanent-record-seal span {
  color: rgba(255, 255, 255, .68);
  font-size: 10px;
}

.permanent-record-confirmation {
  border-color: color-mix(in srgb, var(--brand-primary) 28%, var(--line));
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.permanent-record-confirmation span {
  color: var(--muted);
}

.permanent-record-totals {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.permanent-record-totals article.is-positive {
  border-top: 4px solid var(--teal);
}

.permanent-record-totals article.is-watch {
  border-top: 4px solid var(--brand-secondary);
}

.permanent-record-totals article.is-alert {
  border-top: 4px solid var(--red);
}

.permanent-record-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.permanent-record-facts span {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 9px;
  background: var(--surface);
}

.permanent-record-facts strong {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.permanent-record-notes {
  display: grid;
  gap: 11px;
  margin-top: 15px;
}

.permanent-record-notes > div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.permanent-record-notes h3,
.permanent-record-notes p {
  margin: 0;
}

.permanent-record-notes p {
  margin-top: 5px;
  color: var(--muted);
  white-space: pre-wrap;
}

.permanent-record-resources {
  align-content: start;
}

.resource-format-snapshot {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.resource-format-snapshot small {
  color: var(--muted);
}

.permanent-record-table-wrap {
  overflow-x: auto;
}

.permanent-record-table {
  min-width: 760px;
}

.permanent-record-table th,
.permanent-record-table td {
  vertical-align: top;
}

.permanent-record-table th > small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 500;
}

.permanent-record-status,
.permanent-record-support {
  display: inline-flex;
  width: max-content;
  padding: 4px 7px;
  border-radius: 99px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 10px;
  font-weight: 850;
}

.permanent-record-status.is-absent,
.permanent-record-status.is-excused_absent,
.permanent-record-status.is-suspended,
.permanent-record-support {
  background: color-mix(in srgb, var(--red) 10%, #fff);
  color: color-mix(in srgb, var(--red) 82%, #641b16);
}

.permanent-record-status.is-late {
  background: var(--amber-100);
  color: #785800;
}

.permanent-record-history-list {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.permanent-record-history-item {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) minmax(220px, .8fr) auto;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-md);
  background: var(--white);
}

.permanent-record-history-date {
  display: grid;
  justify-items: center;
  min-width: 54px;
  padding: 7px;
  border-radius: 9px;
  background: var(--surface-2);
}

.permanent-record-history-date strong {
  color: var(--brand-strong);
  font-size: 23px;
}

.permanent-record-history-date span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.permanent-record-history-main,
.permanent-record-history-private {
  display: grid;
  gap: 3px;
}

.permanent-record-history-main h3,
.permanent-record-history-main p,
.permanent-record-history-private p {
  margin: 0;
}

.permanent-record-history-main p,
.permanent-record-history-main small,
.permanent-record-history-private {
  color: var(--muted);
  font-size: 11px;
}

/* Resource content formats */
.resource-format-list {
  display: grid;
  gap: 9px;
}

.resource-format-card {
  position: relative;
  overflow: hidden;
  border-top-color: var(--brand-primary);
}

.resource-format-card.is-document {
  border-top-color: var(--blue);
}

.resource-format-card.is-form {
  border-top-color: var(--brand-secondary);
}

.resource-format-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.resource-format-badge {
  display: inline-flex;
  width: max-content;
  padding: 4px 7px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.resource-format-input {
  margin: 13px 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.resource-format-input[hidden] {
  display: none;
}

.resource-format-document,
.resource-format-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  padding: 11px;
  border-radius: 10px;
  background: var(--blue-100);
}

.resource-format-document > span,
.resource-format-text {
  display: grid;
  gap: 2px;
}

.resource-format-document small {
  color: var(--muted);
}

.resource-format-text {
  display: block;
  background: var(--brand-soft);
}

.resource-format-text p {
  margin: 4px 0 0;
}

.resource-format-form-preview {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border-radius: 10px;
  background: var(--amber-100);
}

.resource-format-form-preview label {
  margin: 0;
  color: var(--ink-2);
  font-size: 11px;
}

.resource-format-form-preview input:disabled {
  min-height: 35px;
  opacity: .7;
}

@media (max-width: 1000px) {
  .teacher-schedule-lower-grid,
  .scheduled-class-grid,
  .permanent-record-detail-grid {
    grid-template-columns: 1fr;
  }

  .teacher-schedule-year {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .presentation-resource-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .presentation-learner-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .permanent-record-history-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .permanent-record-history-private {
    grid-column: 2 / -1;
  }
}

@media (max-width: 780px) {
  .teacher-schedule-hero,
  .scheduled-class-hero,
  .presentation-header,
  .permanent-record-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 23px 19px;
    border-radius: var(--radius-lg);
  }

  .teacher-schedule-hero-actions,
  .scheduled-class-primary-action,
  .scheduled-class-primary-action form {
    justify-items: stretch;
    width: 100%;
  }

  .teacher-schedule-hero-actions .button,
  .scheduled-class-primary-action .button,
  .scheduled-class-present-button {
    width: 100%;
    text-align: center;
  }

  .scheduled-class-primary-action small {
    max-width: none;
    text-align: left;
  }

  .teacher-schedule-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .teacher-schedule-summary article {
    padding: 13px 10px;
  }

  .teacher-schedule-summary strong {
    font-size: 23px;
  }

  .teacher-schedule-panel-head,
  .presentation-attendance-head {
    align-items: stretch;
    flex-direction: column;
  }

  .teacher-schedule-tabs {
    width: 100%;
  }

  .teacher-schedule-tabs a {
    flex: 1;
    text-align: center;
  }

  .teacher-schedule-day::before {
    left: 57px;
  }

  .teacher-schedule-occurrence {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
  }

  .teacher-schedule-occurrence::before {
    left: 53px;
  }

  .teacher-schedule-occurrence > a {
    grid-template-columns: 1fr;
  }

  .teacher-schedule-occurrence .teacher-schedule-status {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .teacher-schedule-year {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scheduled-class-notice,
  .permanent-record-confirmation,
  .scheduled-class-course-action {
    align-items: stretch;
    flex-direction: column;
  }

  .permanent-record-totals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .permanent-record-seal {
    width: 130px;
    min-width: 130px;
    align-self: flex-start;
  }

  .presentation-lesson-grid,
  .presentation-resource-options,
  .presentation-live-summary,
  .presentation-learner-controls {
    grid-template-columns: 1fr;
  }

  .presentation-live-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .presentation-learner-note {
    grid-column: 1;
  }

  .presentation-submit-bar {
    bottom: 76px;
  }

  .permanent-record-history-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .permanent-record-history-private,
  .permanent-record-history-item > .button {
    grid-column: 2;
  }

  .resource-format-document {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .teacher-schedule-summary,
  .permanent-record-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-schedule-navigation {
    justify-content: space-between;
  }

  .teacher-schedule-navigation .button {
    padding-inline: 9px;
  }

  .teacher-schedule-year {
    grid-template-columns: 1fr;
  }

  .scheduled-class-roster-list > a {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .scheduled-class-profile-link {
    grid-column: 2;
  }

  .presentation-header h1,
  .scheduled-class-hero h1,
  .teacher-schedule-hero h1,
  .permanent-record-hero h1 {
    font-size: 31px;
  }

  .presentation-submit-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }

  .presentation-submit-bar button {
    width: 100%;
  }

  .presentation-form {
    padding-bottom: 150px;
  }

  .permanent-record-facts {
    grid-template-columns: 1fr;
  }

  .permanent-record-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .permanent-record-row > strong:last-child {
    grid-column: 2;
  }
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  --brand-strong: color-mix(in srgb, var(--brand-primary) 58%, #041d17);
  --brand-accent: color-mix(in srgb, var(--brand-primary) 82%, #0a4c3b);
  --brand-soft: color-mix(in srgb, var(--brand-primary) 9%, #ffffff);
  --brand-faint: color-mix(in srgb, var(--brand-primary) 4%, #ffffff);
  --focus-ring: 0 0 0 4px color-mix(in srgb, var(--brand-primary) 22%, transparent);
  --green-900: var(--brand-strong);
  --green-700: var(--brand-accent);
  --green-100: var(--brand-soft);
  --gold: var(--brand-secondary);
  --line: color-mix(in srgb, var(--brand-primary) 12%, #d9e0dc);
  --surface: color-mix(in srgb, var(--brand-primary) 2.5%, #f7f8f8);
  --surface-2: color-mix(in srgb, var(--brand-primary) 7%, #f4f7f5);
  font-family: Inter, "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background: var(--surface);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  padding: 10px clamp(14px, 2.4vw, 28px);
  background: rgba(5, 34, 27, 0.92);
  backdrop-filter: blur(16px);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark,
.school-badge,
.tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
}

.brand-mark {
  width: 38px;
  height: 38px;
  background: var(--gold);
  color: var(--green-900);
  box-shadow: 0 10px 22px rgba(255, 182, 18, 0.28);
}

.brand-lockup strong {
  display: block;
  line-height: 1;
}

.brand-lockup small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.demo-nav {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  scrollbar-width: none;
}

.demo-nav::-webkit-scrollbar {
  display: none;
}

.demo-nav a,
.session-pill a {
  padding: 8px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.demo-nav a:hover,
.session-pill a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.session-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  white-space: nowrap;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.session-pill span {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
}

main {
  min-height: calc(100vh - 68px);
}

.workspace {
  width: min(1240px, calc(100vw - 30px));
  margin: 0 auto;
  padding: 26px 0 54px;
}

.workspace.narrow {
  width: min(860px, calc(100vw - 30px));
}

.landing-hero,
.school-hero {
  position: relative;
  overflow: hidden;
  min-height: min(720px, calc(100vh - 68px));
  display: flex;
  align-items: center;
  color: var(--white);
  isolation: isolate;
}

.landing-hero::after,
.school-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(4, 29, 23, 0.88) 0%, rgba(5, 42, 37, 0.68) 46%, rgba(31, 95, 191, 0.12) 100%),
    linear-gradient(180deg, rgba(4, 29, 23, 0.12) 0%, rgba(4, 29, 23, 0.82) 100%);
  z-index: 1;
}

.home-hero::before {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 45%, rgba(255, 182, 18, 0.18) 45% 45.3%, transparent 45.3%),
    linear-gradient(0deg, rgba(7, 59, 42, 0.88), transparent);
  z-index: 2;
  pointer-events: none;
}

.school-hero {
  min-height: 58vh;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.privacy-safe-hero-art {
  background:
    radial-gradient(circle at 76% 25%, rgba(255, 182, 18, .68) 0 7%, transparent 7.4%),
    radial-gradient(circle at 74% 28%, rgba(255, 255, 255, .16) 0 19%, transparent 19.4%),
    linear-gradient(135deg, #0a382d 0%, #0b6b49 48%, #1f5fbf 100%);
}

.privacy-safe-hero-art::after {
  position: absolute;
  inset: 12% 8% 8% 58%;
  content: "";
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 42% 58% 48% 52%;
  transform: rotate(-9deg);
  box-shadow:
    -36px 42px 0 rgba(255, 255, 255, .08),
    24px -18px 0 rgba(255, 182, 18, .12);
}

.privacy-safe-hero-art.feature-art {
  background:
    radial-gradient(circle at 72% 35%, rgba(255, 255, 255, .18) 0 17%, transparent 17.4%),
    linear-gradient(145deg, #103d72 0%, #0b6b49 56%, #073629 100%);
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px max(20px, calc((100vw - 1240px) / 2));
  color: #385348;
  background: #f4f8f6;
  border-top: 1px solid rgba(11, 107, 73, .13);
}

.app-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.app-footer a,
.cookie-banner a,
.privacy-page a {
  color: var(--brand-strong);
}

.cookie-banner {
  position: fixed;
  z-index: 1000;
  inset: auto max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  width: min(1040px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 18px 20px;
  color: #10231c;
  background: #fff;
  border: 1px solid rgba(11, 107, 73, .24);
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(3, 31, 23, .25);
}

.cookie-banner-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.cookie-banner-copy p {
  max-width: 710px;
  margin: 0 0 5px;
  line-height: 1.48;
}

.cookie-banner-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(145px, 1fr));
  gap: 8px;
}

.cookie-banner-actions form,
.cookie-choice-button {
  width: 100%;
}

.cookie-choice-button {
  min-height: 44px;
  padding: 9px 13px;
  color: var(--brand-strong);
  font: inherit;
  font-weight: 750;
  background: #eef6f2;
  border: 1px solid rgba(11, 107, 73, .34);
  border-radius: 10px;
  cursor: pointer;
}

.cookie-choice-button:hover,
.cookie-choice-button:focus-visible {
  background: #dfefe7;
}

.cookie-customise-link {
  grid-column: 1 / -1;
  text-align: center;
  font-weight: 700;
}

.privacy-page {
  padding-bottom: 88px;
}

.privacy-saved {
  margin: 0 0 20px;
  padding: 14px 16px;
  color: #0b563d;
  background: #e9f7ef;
  border: 1px solid #9fd5b8;
  border-radius: 12px;
}

.privacy-choice-form {
  display: grid;
  gap: 12px;
}

.privacy-choice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  color: #10231c;
  background: #fff;
  border: 1px solid rgba(11, 107, 73, .18);
  border-radius: 14px;
  box-shadow: 0 5px 22px rgba(6, 44, 32, .06);
}

.privacy-choice-card strong,
.privacy-choice-card h2 {
  display: block;
  margin: 0 0 4px;
  font-size: 1rem;
}

.privacy-choice-card small {
  display: block;
  max-width: 680px;
  color: #52675f;
  font-size: .93rem;
  line-height: 1.5;
}

.privacy-choice-card input[type="checkbox"] {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  accent-color: var(--brand-primary);
}

.privacy-status {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: #0b563d;
  font-weight: 750;
  background: #e8f5ee;
  border-radius: 999px;
}

.privacy-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.privacy-help {
  margin-top: 22px;
}

.privacy-policy-section {
  margin: 0 0 18px;
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(11, 107, 73, .16);
  border-radius: 14px;
}

.privacy-policy-section h2 {
  margin-top: 0;
}

.privacy-table-wrap {
  overflow-x: auto;
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
}

.privacy-table th,
.privacy-table td {
  padding: 11px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #dfe9e4;
}

@media (max-width: 760px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: calc(100vh - 28px);
    padding: 14px;
    border-radius: 14px;
    overflow-y: auto;
  }

  .cookie-banner-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cookie-customise-link {
    grid-column: 1 / -1;
  }

  .cookie-banner-copy p {
    font-size: .92rem;
    line-height: 1.38;
  }

  .app-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .privacy-choice-card {
    align-items: flex-start;
  }

  .privacy-form-actions {
    display: grid;
  }
}

.hero-copy,
.school-hero-copy {
  position: relative;
  z-index: 3;
  width: min(820px, calc(100vw - 40px));
  margin-left: max(20px, calc((100vw - 1240px) / 2));
  padding: 78px 0 92px;
}

.hero-copy h1,
.school-hero-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(43px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.school-hero-copy h1 {
  font-size: clamp(38px, 6vw, 68px);
}

.hero-copy p,
.school-hero-copy p {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.83);
}

.pull-up {
  margin-top: -58px;
}

.landing-workspace {
  position: relative;
  z-index: 4;
}

.eyebrow,
.mini-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--green-700);
}

.eyebrow.light {
  color: var(--gold);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(34px, 5vw, 54px);
}

h2 {
  font-size: 19px;
}

h3 {
  font-size: 17px;
}

p {
  line-height: 1.55;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--green-700), var(--teal));
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(11, 107, 73, 0.18);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(11, 107, 73, 0.22);
}

button.secondary,
.button.secondary,
.secondary {
  background: var(--surface-2);
  color: var(--green-900);
  border: 1px solid var(--line);
}

.secondary-on-dark {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.button.slim {
  min-height: 34px;
  padding: 7px 11px;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-metric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-metric-strip span {
  min-width: 150px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
}

.hero-metric-strip strong {
  display: block;
  color: var(--white);
  font-size: 24px;
}

.messages {
  width: min(1240px, calc(100vw - 30px));
  margin: 14px auto 0;
}

.message {
  padding: 11px 13px;
  border-radius: 7px;
  background: var(--green-100);
  border-left: 4px solid var(--green-700);
  margin-bottom: 8px;
}

.message.error {
  border-color: var(--red);
  background: #fee2e2;
}

.message.warning {
  border-color: var(--gold);
  background: #fff8d7;
}

.school-band,
.panel,
.stat,
.role-card,
.login-card,
.form-card,
.portal-side,
.portal-post,
.capture-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.school-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin-bottom: 18px;
}

.spotlight-band {
  border-color: rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 250, 247, 0.90)),
    linear-gradient(90deg, rgba(255, 182, 18, 0.14), rgba(31, 95, 191, 0.08));
  backdrop-filter: blur(12px);
}

.school-band strong,
.school-band small {
  display: block;
}

.school-band small,
.muted,
.panel small,
.role-card small,
.form-card small,
.login-card p {
  color: var(--muted);
}

.value-grid,
.feature-showcase,
.role-grid,
.stat-grid,
.login-grid,
.form-grid,
.command-grid,
.analytics-strip,
.two-col,
.portal-layout,
.course-grid,
.resource-grid,
.teacher-grid,
.learner-action-grid,
.badge-grid,
.wizard-layout {
  display: grid;
  gap: 14px;
}

.landing-dashboard {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  gap: 18px;
  align-items: stretch;
  margin: 18px 0 26px;
}

.operations-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.dashboard-summary {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(10px, 2vw, 18px) 0;
}

.dashboard-summary h2 {
  max-width: 620px;
  color: var(--green-900);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.02;
  text-wrap: balance;
}

.dashboard-summary p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.metric-grid article {
  min-height: 92px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, #f4f8f6);
}

.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-grid strong {
  display: block;
  margin-top: 14px;
  color: var(--green-900);
  font-size: 22px;
}

.operations-board {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 2.4vw, 26px);
  background:
    linear-gradient(145deg, rgba(7, 59, 42, 0.98), rgba(13, 73, 67, 0.96) 48%, rgba(31, 95, 191, 0.90));
  color: var(--white);
  overflow: hidden;
}

.board-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.board-head .mini-label {
  color: var(--gold);
}

.board-head strong {
  display: block;
  margin-top: 3px;
  font-size: 24px;
}

.status-dot {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
}

.board-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.board-stats span {
  min-height: 108px;
  display: grid;
  align-content: end;
  gap: 6px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.74);
}

.board-stats strong {
  display: block;
  color: var(--white);
  font-size: clamp(25px, 3vw, 36px);
}

.signal-list {
  display: grid;
  gap: 10px;
}

.signal-list span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 13px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
}

.signal-list i {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--gold) var(--w), rgba(255, 255, 255, 0.18) 0);
}

.signal-list strong {
  font-size: 14px;
}

.signal-list em {
  color: rgba(255, 255, 255, 0.74);
  font-style: normal;
  font-weight: 900;
}

.feature-showcase {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-bottom: 18px;
}

.feature-showcase article,
.course-card,
.resource-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.value-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-bottom: 28px;
}

.value-grid article {
  padding: 16px 0;
}

.landing-value-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.landing-value-grid article {
  position: relative;
  min-height: 230px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.landing-value-grid article::after {
  position: absolute;
  inset: auto 16px 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--gold), var(--teal), var(--blue));
}

.landing-value-grid p {
  color: var(--muted);
  font-size: 14px;
}

.tile-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--green-100), var(--blue-100));
  color: var(--green-700);
  font-size: 12px;
}

.section-head,
.surface-head,
.dashboard-hero,
.panel-head,
.list-row,
.check-row,
.bar-row,
.accordion-line,
.news-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topbar-inner > *,
.school-band > *,
.section-head > *,
.surface-head > *,
.dashboard-hero > *,
.panel-head > *,
.list-row > *,
.check-row > *,
.bar-row > *,
.accordion-line > *,
.news-row > * {
  min-width: 0;
}

:where(
  .school-band,
  .panel,
  .portal-side,
  .portal-post,
  .capture-panel,
  .course-card,
  .resource-card,
  .list-row,
  .check-row,
  .news-row,
  .notification,
  .thread-card,
  .message-bubble,
  .report-workflow-card,
  .report-parent-card
) :where(span, strong, small, p, a) {
  overflow-wrap: anywhere;
}

.section-head,
.surface-head,
.dashboard-hero {
  margin-bottom: 18px;
}

.role-section-head {
  margin-top: 6px;
  padding-top: 8px;
}

.role-section-head a {
  color: var(--green-900);
  font-weight: 900;
  text-decoration-color: rgba(11, 107, 73, 0.32);
  text-underline-offset: 4px;
}

.dashboard-hero {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, .16), transparent 30%),
    linear-gradient(120deg, #073b2a, #1f5fbf);
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.dashboard-hero .eyebrow {
  color: var(--gold);
}

.role-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: 20px;
}

.role-grid-enhanced {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.role-card,
.form-card,
.login-card {
  min-height: 118px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
}

.role-card-enhanced {
  position: relative;
  min-height: 184px;
  gap: 14px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f6faf8 100%);
  overflow: hidden;
}

.role-card-enhanced::after {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--green-700), var(--blue), var(--gold));
  opacity: .88;
}

.role-card-enhanced:hover {
  border-color: rgba(31, 95, 191, 0.35);
  transform: translateY(-2px);
}

.role-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.role-token {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--green-900);
  color: var(--gold);
  font-size: 15px;
  font-weight: 900;
}

.role-chip-soft {
  min-width: 0;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.role-title {
  color: var(--green-900);
}

.role-card span,
.form-card strong {
  font-size: 18px;
  font-weight: 900;
}

.role-card-enhanced .role-token {
  font-size: 15px;
}

.role-card-enhanced .role-chip-soft {
  font-size: 11px;
}

.login-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.login-card,
.quick-login-button {
  align-items: flex-start;
}

.login-hero {
  max-width: 760px;
  margin-bottom: 20px;
}

.quick-login-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.quick-login-grid form {
  margin: 0;
}

.quick-login-button {
  width: 100%;
  min-height: 154px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.quick-login-button:hover {
  border-color: var(--green-700);
  transform: translateY(-1px);
}

.quick-role {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 11px;
  font-weight: 900;
}

.quick-login-button strong {
  font-size: 20px;
}

.quick-login-button small {
  color: var(--muted);
  line-height: 1.45;
}

.stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 14px;
}

.stat {
  padding: 15px;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.stat strong {
  font-size: 32px;
  color: var(--green-900);
}

.analytics-strip {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-bottom: 14px;
}

.mini-chart {
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-2);
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.visual-card {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.visual-card:first-child,
.visual-card:nth-child(2) {
  grid-template-columns: 122px minmax(0, 1fr);
  align-items: center;
}

.learning-card .mini-kpis {
  margin-top: 4px;
}

.donut-chart {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--white) 0 55%, transparent 56%),
    conic-gradient(var(--green-700) calc(var(--value, 0) * 1%), #d7e7df 0);
}

.donut-chart.blue {
  background:
    radial-gradient(circle at center, var(--white) 0 55%, transparent 56%),
    conic-gradient(var(--blue) calc(var(--value, 0) * 1%), #d7e7df 0);
}

.donut-chart strong,
.donut-chart span {
  grid-area: 1 / 1;
}

.donut-chart strong {
  margin-top: -12px;
  color: var(--green-900);
  font-size: 22px;
}

.donut-chart span {
  margin-top: 34px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.column-chart {
  height: 150px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  padding-top: 10px;
}

.column-chart span {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 6px;
  align-items: end;
  text-align: center;
}

.column-chart i {
  width: 100%;
  min-height: 8px;
  align-self: end;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--blue), var(--green-700));
}

.column-chart small {
  font-weight: 800;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.command-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 14px;
}

.teacher-mobile-actions {
  position: sticky;
  top: 64px;
  z-index: 10;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  margin-bottom: 10px;
  background: var(--surface);
}

.teacher-mobile-actions a {
  flex: 0 0 auto;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--green-900);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.teacher-grid {
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  margin-bottom: 14px;
}

.messaging-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.thread-list-panel,
.message-thread-panel {
  min-height: 560px;
}

.thread-list {
  display: grid;
  gap: 8px;
}

.thread-card {
  display: grid;
  gap: 6px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
}

.thread-card.active {
  border-color: var(--green-700);
  box-shadow: inset 4px 0 0 var(--green-700);
}

.thread-card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.thread-card i {
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.thread-card small,
.thread-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.message-stream {
  max-height: 520px;
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.message-bubble {
  max-width: min(720px, 88%);
  display: grid;
  gap: 6px;
  justify-self: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.message-bubble.mine {
  justify-self: end;
  background: var(--green-100);
  border-color: rgba(11, 107, 73, .28);
}

.message-bubble div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.message-bubble p {
  margin: 0;
}

.inline-field {
  width: min(220px, 100%);
  margin: 0;
}

.wizard-layout {
  grid-template-columns: 310px minmax(0, 1fr);
  align-items: start;
}

.wizard-mobile-nav {
  display: none;
}

.wizard-step,
.workflow-steps span {
  display: grid;
  gap: 4px;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
}

.wizard-step.active {
  border-color: var(--green-700);
  box-shadow: inset 4px 0 0 var(--green-700);
}

.wizard-step.complete {
  background: var(--green-100);
}

.wizard-step span,
.wizard-step small,
.workflow-steps span {
  color: var(--muted);
  font-size: 12px;
}

.workflow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.workflow-steps span {
  display: inline-flex;
  margin: 0;
  font-weight: 900;
}

.learner-action-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin: 12px 0;
}

.learner-action-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.learner-action-card a {
  color: var(--green-900);
  text-decoration: none;
}

.learner-action-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.risk-row,
.mini-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mini-kpis span {
  flex: 1 1 96px;
  padding: 9px;
  border-radius: 7px;
  background: var(--white);
  color: var(--muted);
  font-size: 12px;
}

.mini-kpis strong {
  display: block;
  color: var(--green-900);
  font-size: 18px;
}

.panel {
  padding: 18px;
  margin-bottom: 14px;
}

.landing-two-col {
  gap: 16px;
}

.landing-two-col .panel {
  min-height: 226px;
  background:
    linear-gradient(180deg, #ffffff, #f7faf8);
}

.list-row,
.check-row,
.accordion-line,
.news-row,
.notification,
.child-card,
.learner-mini {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.list-row:last-child,
.check-row:last-child,
.accordion-line:last-child,
.news-row:last-child,
.notification:last-child,
.child-card:last-child,
.learner-mini:last-child {
  border-bottom: 0;
}

.action-list,
.feature-list {
  display: grid;
  gap: 8px;
}

.action-list a,
.feature-list span {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 700;
}

.feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

th {
  color: var(--green-900);
  background: var(--green-100);
}

.pill,
.stage-pill,
.role-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
  background: var(--green-100);
  color: var(--green-700);
}

.pill.high,
.pill.critical,
.fail span {
  background: #fee2e2;
  color: var(--red);
}

.pill.medium,
.pill.info {
  background: #fff4c2;
  color: #7a5800;
}

.pill.low,
.pass span {
  background: var(--green-100);
  color: var(--green-700);
}

.stage-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.check-row span {
  min-width: 46px;
  justify-content: center;
}

.check-row strong {
  flex: 1;
}

.bar-row {
  align-items: center;
  padding: 8px 0;
}

.bar-row.compact {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(80px, 1.2fr) 46px;
  gap: 8px;
  padding: 7px 0;
}

.bar-row span {
  min-width: 120px;
}

.bar-row.compact span {
  min-width: 0;
  font-size: 12px;
}

.bar-track {
  flex: 1;
  height: 9px;
  border-radius: 999px;
  background: #d7e7df;
  overflow: hidden;
}

.bar-track div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-700), var(--blue));
}

.bar-track.risk div {
  background: linear-gradient(90deg, var(--gold), var(--red));
}

.portal-layout {
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  align-items: start;
}

.portal-side,
.portal-post {
  padding: 16px;
}

.school-badge {
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  background: var(--brand-secondary, var(--gold));
  color: var(--brand-primary, var(--green-900));
  font-size: 22px;
}

.portal-feed {
  display: grid;
  gap: 12px;
}

.portal-post.pinned {
  border-color: var(--gold);
}

.course-grid,
.resource-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 18px;
}

.course-card {
  display: grid;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  border-top: 5px solid var(--course-colour, var(--green-700));
}

.course-card:hover {
  transform: translateY(-1px);
}

.course-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  padding: 22px;
  margin-bottom: 14px;
  border-radius: 10px;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, .18), transparent 28%),
    linear-gradient(120deg, #073b2a, #1f5fbf);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  border-bottom: 6px solid var(--course-colour, var(--gold));
}

.course-meta {
  display: grid;
  grid-template-columns: repeat(3, 90px);
  gap: 8px;
}

.course-meta span {
  padding: 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .15);
  font-size: 12px;
}

.course-meta strong {
  display: block;
  font-size: 22px;
}

.assignment-row,
.assignment-card {
  display: grid;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.assignment-row:last-child {
  border-bottom: 0;
}

.assignment-stack {
  display: grid;
  gap: 12px;
}

.assignment-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.assignment-card.due {
  border-color: var(--gold);
}

.task-response {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.task-response > summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-strong);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  list-style: none;
}

.task-response > summary::-webkit-details-marker {
  display: none;
}

.task-response > summary span {
  transition: transform .14s ease;
}

.task-response[open] > summary span {
  transform: rotate(180deg);
}

.task-response form {
  margin-top: 12px;
}

.question-list {
  display: grid;
  gap: 6px;
}

.question-list span {
  padding: 8px;
  border-radius: 7px;
  background: var(--white);
  color: var(--muted);
  font-size: 13px;
}

.resource-card {
  display: grid;
  gap: 10px;
}

.resource-card ul {
  margin: 0;
  padding-left: 20px;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.mini-stats span {
  padding: 10px;
  border-radius: 7px;
  background: var(--surface-2);
  font-size: 11px;
}

.mini-stats strong {
  display: block;
  font-size: 18px;
}

.phone-panel {
  max-width: 460px;
}

.child-card,
.learner-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-section {
  margin-bottom: 22px;
}

.form-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 10px;
}

.page-title {
  max-width: 800px;
  margin-bottom: 18px;
}

.capture-panel {
  padding: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.submission-review-card {
  display: grid;
  gap: 14px;
  padding: 17px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.submission-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.submission-review-head h3,
.submission-review-head p {
  margin: 5px 0 0;
}

.submission-response,
.teacher-feedback {
  padding: 12px;
  border-left: 4px solid var(--brand-primary);
  border-radius: 8px;
  background: var(--white);
}

.submission-response p,
.teacher-feedback p {
  margin: 5px 0 0;
}

.submission-answer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.submission-answer-grid span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 8px;
  background: var(--white);
}

.submission-review-form {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.teacher-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.teacher-action-grid a {
  display: grid;
  gap: 5px;
  min-height: 122px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.teacher-action-grid a:hover {
  border-color: var(--brand-primary);
  transform: translateY(-1px);
}

.teacher-action-grid span,
.teacher-action-grid small {
  color: var(--muted);
}

.teacher-action-grid span {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.teacher-today-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
  gap: 14px;
  margin-bottom: 14px;
  align-items: start;
}

.teacher-register-list {
  display: grid;
  gap: 7px;
  margin: 14px 0;
}

.teacher-register-list > label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 210px);
  gap: 12px;
  align-items: center;
  padding: 9px 11px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.teacher-register-list span,
.teacher-register-list small {
  display: block;
}

.teacher-register-list small {
  margin-top: 2px;
  color: var(--muted);
}

.register-complete-state {
  padding: 15px;
  border: 1px solid rgba(11, 107, 73, .2);
  border-radius: 10px;
  background: var(--brand-soft);
}

.register-complete-state p {
  margin: 5px 0 0;
}

.teacher-review-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.teacher-review-row span,
.teacher-review-row small {
  display: block;
}

.teacher-review-row > span:last-child {
  color: var(--brand-strong);
  font-weight: 850;
}

.gradebook-capture-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.gradebook-capture-list fieldset {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(120px, .7fr) minmax(220px, 1.4fr);
  gap: 10px;
  align-items: end;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.gradebook-capture-list legend {
  grid-column: 1 / -1;
  width: 100%;
  padding: 0;
}

.gradebook-capture-list legend strong,
.gradebook-capture-list legend small {
  display: block;
}

.gradebook-capture-list legend small {
  color: var(--muted);
}

.setup-operational-form {
  padding: 17px;
  margin: 18px 0;
  border: 1px solid rgba(11, 107, 73, .25);
  border-radius: var(--radius-md);
  background: var(--brand-soft);
}

.setup-operational-form h3 {
  margin-top: 0;
}

.setup-term-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.setup-term-grid fieldset {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
}

@media (max-width: 900px) {
  .teacher-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-today-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .teacher-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-action-grid a {
    min-height: 110px;
    padding: 12px;
  }

  .teacher-register-list > label {
    grid-template-columns: 1fr;
  }

  .gradebook-capture-list fieldset {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gradebook-capture-list fieldset > label:last-child {
    grid-column: 1 / -1;
  }

  .setup-term-grid {
    grid-template-columns: 1fr;
  }
}

.checkbox-row {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
}

.checkbox-row input {
  width: auto;
  min-height: auto;
}

.focus-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.student-shell {
  width: min(1280px, calc(100vw - 30px));
  margin: 0 auto;
  padding: 24px 0 54px;
}

.student-hero-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 220px;
  padding: 24px;
  border-radius: 10px;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .16), transparent 30%),
    linear-gradient(120deg, #073b2a, #1f5fbf);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.student-hero-panel h1 {
  font-size: clamp(42px, 7vw, 72px);
}

.student-avatar {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--gold);
  color: var(--green-900);
  font-size: 34px;
  font-weight: 900;
  flex: 0 0 auto;
}

.student-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.student-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.student-stat {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.student-stat span,
.student-stat small {
  display: block;
  color: var(--muted);
}

.student-stat strong {
  display: block;
  margin: 7px 0 4px;
  color: var(--green-900);
  font-size: 30px;
}

.student-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
  align-items: start;
}

.student-quick-nav {
  display: none;
}

.student-more > summary {
  display: none;
}

.student-more {
  scroll-margin-top: 140px;
}

.student-main,
.student-side {
  min-width: 0;
}

.improvement-panel {
  border-color: rgba(255, 182, 18, .7);
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.recommendation-card,
.support-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.recommendation-card h3 {
  margin-top: 10px;
}

.student-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.student-score-row:last-child {
  border-bottom: 0;
}

.student-score-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.score-meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
  align-items: center;
}

.action-steps {
  margin: 12px 0 0;
  padding-left: 20px;
}

.action-steps li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.action-steps li:last-child {
  border-bottom: 0;
}

.profile-list {
  display: grid;
  gap: 8px;
}

.profile-list span {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.profile-list span:last-child {
  border-bottom: 0;
}

.profile-list strong {
  color: var(--ink);
}

.compact-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.badge-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.badge-card {
  display: grid;
  gap: 6px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.badge-card span {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--gold);
  color: var(--green-900);
  font-weight: 900;
}

.badge-card small {
  color: var(--muted);
}

.week-schedule {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.week-schedule article {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.week-schedule h3 {
  margin-bottom: 10px;
}

.schedule-slot {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.schedule-slot span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 900;
}

.schedule-slot strong,
.schedule-slot small {
  display: block;
}

.month-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.calendar-day {
  min-height: 82px;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  overflow: hidden;
}

.calendar-day strong {
  font-size: 15px;
}

.calendar-day span,
.calendar-day small {
  display: block;
  padding: 2px 4px;
  border-radius: 5px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 10px;
  font-weight: 800;
}

.calendar-day small {
  background: #fff4c2;
  color: #7a5800;
}

.calendar-day.muted-day {
  opacity: .36;
}

.calendar-day.today {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 2px rgba(255, 182, 18, .35);
}

.year-calendar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.year-calendar div {
  min-height: 72px;
  display: grid;
  align-content: space-between;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(0deg, rgba(11, 107, 73, .14) var(--intensity, 0%), transparent 0),
    var(--white);
}

.year-calendar .current {
  border-color: var(--gold);
}

.year-calendar strong,
.year-calendar span,
.year-calendar small {
  display: block;
}

.year-calendar span,
.year-calendar small {
  color: var(--muted);
  font-size: 11px;
}

.report-card-list {
  display: grid;
  gap: 10px;
}

.report-card-list.compact {
  gap: 8px;
}

.report-workflow-card,
.report-parent-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.report-workflow-card h3,
.report-parent-card h3 {
  margin: 6px 0 4px;
}

.report-workflow-card p,
.report-parent-card p {
  margin: 0 0 4px;
  color: var(--ink);
}

.workflow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.workflow-actions form {
  margin: 0;
}

.report-sheet {
  display: grid;
  gap: 18px;
}

.report-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: 30px;
  border-radius: 10px;
  color: var(--white);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 88%, #000), color-mix(in srgb, var(--brand-secondary) 44%, #123));
}

.report-header h1 {
  margin: 4px 0;
  color: var(--white);
}

.report-status {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.report-status strong {
  font-size: 38px;
  line-height: 1;
}

.compact-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-panel table td {
  vertical-align: top;
}

.approval-strip {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.approval-strip span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--green-100);
  font-weight: 800;
}

.report-ack {
  display: flex;
  justify-content: flex-end;
}

.report-highlight {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
}

.portal-editor {
  display: grid;
  gap: 18px;
}

.editor-section-list {
  display: grid;
  gap: 12px;
}

.editor-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.editor-section.new {
  border-style: dashed;
  background: #fafafa;
}

.portal-section {
  border-left: 4px solid var(--brand-secondary);
}

@media (max-width: 1040px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .session-pill {
    justify-self: start;
  }

  .landing-dashboard {
    grid-template-columns: 1fr;
  }

  .dashboard-summary {
    padding: 4px 0;
  }

  .role-grid-enhanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-grid,
  .command-grid,
  .week-schedule {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-layout,
  .teacher-grid,
  .messaging-layout,
  .wizard-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .landing-hero,
  .school-hero {
    min-height: auto;
  }

  .hero-copy,
  .school-hero-copy {
    margin-left: 18px;
    padding: 62px 0 86px;
  }

  .hero-copy h1,
  .school-hero-copy h1 {
    font-size: 40px;
  }

  .hero-copy p,
  .school-hero-copy p {
    font-size: 16px;
  }

  .hero-metric-strip span {
    flex: 1 1 138px;
    min-width: 0;
  }

  .pull-up {
    margin-top: -34px;
  }

  .school-band,
  .course-hero,
  .section-head,
  .surface-head,
  .dashboard-hero,
  .panel-head,
  .list-row,
  .check-row,
  .bar-row,
  .accordion-line,
  .news-row {
    align-items: stretch;
    flex-direction: column;
  }

  .two-col,
  .value-grid,
  .metric-grid,
  .board-stats,
  .role-grid-enhanced,
  .command-grid,
  .field-grid,
  .feature-list,
  .student-layout,
  .student-stats,
  .student-two,
  .week-schedule {
    grid-template-columns: 1fr;
  }

  .student-hero-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .student-score-row,
  .score-meter,
  .visual-card:first-child,
  .visual-card:nth-child(2),
  .course-meta,
  .report-workflow-card,
  .report-parent-card,
  .report-header {
    grid-template-columns: 1fr;
  }

  .workflow-actions,
  .report-status {
    justify-content: flex-start;
    justify-items: start;
  }

  .compact-stats {
    grid-template-columns: 1fr;
  }

  .month-calendar {
    gap: 4px;
  }

  .calendar-day {
    min-height: 68px;
    padding: 5px;
  }

  .year-calendar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-nav {
    padding-bottom: 4px;
  }
}

/* 2026 interface refresh: shared shell, school theming and responsive polish. */

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--brand-strong);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform .16s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand-primary) 78%, #ffffff);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}

main:focus {
  outline: none;
}

.topbar {
  min-height: 72px;
  display: block;
  padding: 0 clamp(12px, 2.4vw, 28px);
  color: var(--ink);
  background: color-mix(in srgb, #ffffff 94%, var(--brand-primary));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(10, 35, 28, .05);
  backdrop-filter: blur(18px) saturate(1.2);
}

.topbar-inner {
  width: min(1440px, 100%);
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  margin: 0 auto;
}

.brand-lockup {
  min-width: 0;
  color: var(--ink);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--brand-on-secondary);
  background: linear-gradient(145deg, var(--brand-secondary), color-mix(in srgb, var(--brand-secondary) 72%, #ffffff));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-secondary) 28%, transparent);
}

.brand-lockup strong {
  color: var(--brand-strong);
  font-size: 17px;
  letter-spacing: -.02em;
}

.brand-lockup small {
  max-width: 220px;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  position: relative;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.primary-nav a[aria-current="page"] {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.primary-nav a[aria-current="page"]::after {
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: var(--brand-accent);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav-popover {
  position: relative;
}

.nav-popover > summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink-2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
  user-select: none;
}

.nav-popover > summary::-webkit-details-marker,
.action-menu > summary::-webkit-details-marker {
  display: none;
}

.nav-popover > summary:hover,
.nav-popover[open] > summary {
  border-color: color-mix(in srgb, var(--brand-primary) 30%, var(--line));
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.menu-grid-icon {
  width: 18px;
  height: 18px;
  display: grid;
  grid-template-columns: repeat(2, 5px);
  grid-auto-rows: 5px;
  place-content: center;
  gap: 3px;
}

.menu-grid-icon i {
  display: block;
  border-radius: 2px;
  background: currentColor;
}

.app-menu-panel,
.account-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 24px 70px rgba(8, 32, 25, .16);
  animation: menu-in .14s ease-out;
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-5px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.app-menu-panel {
  width: min(620px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 96px));
  overflow-y: auto;
  padding: 18px;
}

.menu-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 2px 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.menu-panel-head strong,
.menu-panel-head small {
  display: block;
}

.menu-panel-head strong {
  color: var(--brand-strong);
  font-size: 18px;
}

.menu-panel-head small {
  margin-top: 3px;
  color: var(--muted);
}

.school-mini-mark {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 12px;
  background: var(--brand-secondary);
  color: var(--brand-on-secondary);
  font-size: 12px;
  font-weight: 900;
}

.app-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

.nav-section-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 4px;
}

.nav-list a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 9px;
  border-radius: 11px;
  text-decoration: none;
}

.nav-list a:hover {
  background: var(--brand-soft);
}

.nav-list span,
.nav-list small {
  display: block;
}

.nav-list span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.nav-list .nav-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand-strong);
  font-family: var(--font-data, ui-monospace, monospace);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.nav-list small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.account-menu > summary {
  padding-right: 9px;
}

.account-avatar {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--brand-strong);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-avatar.large {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-size: 16px;
}

.account-copy {
  max-width: 150px;
  display: grid;
  gap: 1px;
  text-align: left;
}

.account-copy strong,
.account-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy strong {
  font-size: 12px;
}

.account-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.chevron {
  color: var(--muted);
  font-size: 14px;
  transition: transform .14s ease;
}

.account-menu[open] .chevron {
  transform: rotate(180deg);
}

.account-menu-panel {
  width: 260px;
  padding: 10px;
}

.account-menu-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.account-menu-identity strong,
.account-menu-identity small {
  display: block;
}

.account-menu-identity strong {
  font-size: 13px;
}

.account-menu-identity small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.account-menu-panel > a {
  display: block;
  padding: 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.account-menu-panel > a:hover {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.nav-login {
  min-height: 42px;
  padding-inline: 16px;
}

.mobile-dock {
  display: none;
}

.workspace,
.student-shell {
  width: min(1320px, calc(100vw - 40px));
  padding-top: clamp(24px, 3vw, 38px);
}

.workspace.narrow {
  width: min(880px, calc(100vw - 40px));
}

h1,
h2,
h3 {
  letter-spacing: -.025em;
}

h1 {
  font-size: clamp(34px, 4.5vw, 56px);
}

h2 {
  font-size: clamp(18px, 1.6vw, 22px);
}

h3 {
  font-size: 17px;
}

p {
  line-height: 1.62;
}

.eyebrow,
.mini-label {
  color: var(--brand-accent);
  font-size: 11px;
  letter-spacing: .09em;
}

button,
.button {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-strong), var(--brand-accent));
  color: var(--brand-on-primary);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--brand-primary) 20%, transparent);
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-primary) 24%, transparent);
}

button.secondary,
.button.secondary,
.secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--brand-strong);
  box-shadow: var(--shadow-sm);
}

.secondary-on-dark {
  border-color: rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  box-shadow: none;
}

.button.slim {
  min-height: 36px;
  border-radius: 9px;
}

.school-band,
.panel,
.stat,
.role-card,
.login-card,
.form-card,
.portal-side,
.portal-post,
.capture-panel,
.feature-showcase article,
.course-card,
.resource-card,
.operations-board,
.visual-card,
.student-stat {
  border-color: var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.panel {
  padding: clamp(17px, 2vw, 23px);
}

.stat,
.student-stat {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--white), var(--brand-faint));
}

.stat::before,
.student-stat::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-secondary));
  opacity: .78;
}

.stat strong,
.student-stat strong,
.metric-grid strong,
.mini-kpis strong {
  color: var(--brand-strong);
}

.landing-hero,
.school-hero {
  min-height: min(660px, calc(100vh - 72px));
}

.landing-hero::after,
.school-hero::after {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--brand-strong) 90%, transparent) 0%, color-mix(in srgb, var(--brand-primary) 70%, transparent) 50%, rgba(6, 28, 23, .18) 100%),
    linear-gradient(180deg, rgba(5, 27, 22, .08), rgba(5, 27, 22, .76));
}

.school-hero {
  min-height: min(560px, 62vh);
}

.hero-copy,
.school-hero-copy {
  padding-top: clamp(74px, 10vw, 118px);
  padding-bottom: clamp(88px, 11vw, 126px);
}

.hero-copy h1,
.school-hero-copy h1 {
  max-width: 850px;
  font-size: clamp(44px, 6.6vw, 76px);
  line-height: .98;
  letter-spacing: -.05em;
}

.school-hero-copy h1 {
  font-size: clamp(40px, 5.7vw, 66px);
}

.dashboard-hero,
.student-hero-panel,
.course-hero,
.report-header {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 86% 8%, color-mix(in srgb, var(--brand-secondary) 34%, transparent) 0, transparent 30%),
    linear-gradient(135deg, var(--brand-strong), color-mix(in srgb, var(--brand-primary) 72%, #164e63));
  box-shadow: 0 18px 50px color-mix(in srgb, var(--brand-primary) 20%, transparent);
}

.dashboard-hero {
  min-height: 190px;
  padding: clamp(22px, 3vw, 32px);
  overflow: visible;
}

.dashboard-hero > *,
.student-hero-panel > *,
.course-hero > *,
.report-header > * {
  position: relative;
  z-index: 1;
}

.dashboard-hero p,
.student-hero-panel p,
.course-hero p {
  color: rgba(255, 255, 255, .78);
}

.dashboard-hero .eyebrow,
.student-hero-panel .eyebrow,
.course-hero .eyebrow {
  color: var(--brand-secondary);
}

.dashboard-hero .button:not(.secondary):not(.secondary-on-dark) {
  background: var(--brand-secondary);
  color: var(--brand-on-secondary);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
}

.dashboard-hero .button.secondary,
.dashboard-hero button.secondary {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  box-shadow: none;
}

.dashboard-actions {
  justify-content: flex-end;
}

.action-menu {
  position: relative;
}

.action-menu > summary {
  list-style: none;
}

.action-menu-panel {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 12;
  width: min(310px, calc(100vw - 40px));
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 22px 60px rgba(7, 29, 23, .2);
  animation: menu-in .14s ease-out;
}

.action-menu-panel a,
.action-menu-button {
  width: 100%;
  min-height: 0;
  display: grid;
  justify-content: stretch;
  gap: 2px;
  padding: 10px 11px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  box-shadow: none;
}

.action-menu-panel a:hover,
.action-menu-button:hover {
  background: var(--brand-soft);
  color: var(--brand-strong);
  box-shadow: none;
  transform: none;
}

.action-menu-panel strong,
.action-menu-panel small {
  display: block;
}

.action-menu-panel strong {
  font-size: 13px;
}

.action-menu-panel small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.action-menu-panel form {
  margin: 0;
}

.dashboard-hero h1,
.student-hero-panel h1 {
  color: var(--white);
  letter-spacing: -.045em;
}

.student-hero-panel h1 {
  font-size: clamp(38px, 6vw, 66px);
}

.student-avatar,
.school-badge,
.badge-card span {
  background: var(--brand-secondary);
  color: var(--brand-on-secondary);
}

.school-badge {
  border-radius: 16px;
}

.portal-section {
  border-left-color: var(--brand-secondary);
}

.role-card-enhanced,
.landing-value-grid article {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.role-card-enhanced::after {
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-secondary));
}

.role-token {
  border-radius: 11px;
  background: var(--brand-strong);
  color: var(--brand-secondary);
}

.quick-login-button {
  min-height: 142px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--white), var(--brand-faint));
}

.quick-login-button:hover {
  border-color: color-mix(in srgb, var(--brand-primary) 38%, var(--line));
}

.quick-role,
.pill,
.stage-pill,
.role-chip {
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-accent);
}

.mini-chart,
.focus-card,
.learner-action-card,
.assignment-card,
.recommendation-card,
.support-card,
.badge-card,
.week-schedule article {
  border-color: var(--line);
  border-radius: var(--radius-md);
  background: var(--brand-faint);
}

.action-list a,
.feature-list span,
.thread-card,
.wizard-step,
.editor-section {
  border-radius: 11px;
}

input,
select,
textarea {
  min-height: 44px;
  border-color: color-mix(in srgb, var(--brand-primary) 15%, #cfd8d3);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: color-mix(in srgb, var(--brand-primary) 30%, #cfd8d3);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-accent);
  outline: none;
  box-shadow: var(--focus-ring);
}

table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: separate;
  border-spacing: 0;
  white-space: nowrap;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

th {
  color: var(--brand-strong);
  background: var(--brand-soft);
  font-size: 12px;
  letter-spacing: .02em;
}

th,
td {
  padding: 12px 11px;
}

.message-stream,
.thread-card,
.message-bubble {
  border-radius: var(--radius-md);
}

.mobile-thread-back {
  display: none;
}

.teacher-mobile-actions {
  top: 80px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(14px);
}

.teacher-mobile-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
}

.month-calendar {
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: thin;
}

.calendar-day {
  border-radius: var(--radius-sm);
}

.message {
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.colour-grid {
  align-items: start;
}

.colour-control {
  min-height: 54px;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--brand-faint);
}

.colour-control input[type="color"] {
  width: 60px;
  min-height: 42px;
  padding: 2px;
  border-radius: 9px;
  cursor: pointer;
}

.colour-control strong {
  color: var(--ink-2);
  font-size: 13px;
  letter-spacing: .04em;
}

.colour-grid label > small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.theme-preview {
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.theme-preview-hero {
  position: relative;
  min-height: 184px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--brand-secondary) 42%, transparent), transparent 38%),
    linear-gradient(135deg, var(--brand-strong), var(--brand-accent));
}

.theme-preview-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, color-mix(in srgb, var(--brand-strong) 88%, transparent), rgba(0, 0, 0, .03));
}

.theme-preview-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-preview-hero img[src=""] {
  display: none;
}

.theme-preview-hero > div {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 3px 10px;
}

.theme-preview-hero .school-mini-mark {
  grid-row: 1 / 3;
}

.theme-preview-hero strong,
.theme-preview-hero small {
  display: block;
}

.theme-preview-hero strong {
  font-size: 18px;
}

.theme-preview-hero small {
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
}

.theme-preview-content {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 16px;
}

.theme-preview-content > strong {
  color: var(--brand-strong);
  font-size: 16px;
}

.theme-preview-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 9px;
  background: var(--brand-strong);
  color: var(--brand-on-primary);
  font-size: 11px;
  font-weight: 900;
}

.theme-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.panel-divider {
  height: 1px;
  margin: 22px 0;
  background: var(--line);
}

@media (max-width: 1120px) {
  .topbar-inner {
    gap: 12px;
  }

  .primary-nav {
    display: none;
  }

  .topbar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .app-menu-panel {
    position: fixed;
    top: 82px;
    right: 14px;
    left: 14px;
    width: auto;
  }

  .landing-value-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  body.has-mobile-dock {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  .topbar {
    min-height: 64px;
    padding-inline: 12px;
  }

  .topbar-inner {
    min-height: 64px;
    gap: 8px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .brand-copy small {
    max-width: min(180px, 34vw);
  }

  .account-copy,
  .chevron,
  .menu-label {
    display: none;
  }

  .nav-popover > summary {
    width: 40px;
    min-height: 40px;
    justify-content: center;
    padding: 3px;
  }

  .account-menu > summary {
    border: 0;
    background: transparent;
  }

  .app-menu-panel {
    position: fixed;
    top: 72px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100dvh - 92px - env(safe-area-inset-bottom));
    padding: 16px;
    border-radius: 18px;
  }

  .has-mobile-dock .app-menu-panel {
    bottom: calc(88px + env(safe-area-inset-bottom));
    height: calc(100dvh - 160px - env(safe-area-inset-bottom));
    max-height: none;
  }

  .app-menu-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .account-menu-panel {
    position: fixed;
    top: 72px;
    right: 10px;
    width: min(300px, calc(100vw - 20px));
  }

  .mobile-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    min-height: calc(64px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -12px 36px rgba(8, 32, 25, .10);
    backdrop-filter: blur(18px) saturate(1.2);
  }

  .mobile-dock a {
    min-width: 0;
    min-height: 50px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-dock a span {
    color: inherit;
    font-size: 18px;
    line-height: 1;
  }

  .mobile-dock a[aria-current="page"] {
    color: var(--brand-strong);
    background: var(--brand-soft);
  }

  .workspace,
  .student-shell,
  .workspace.narrow {
    width: min(100% - 24px, 1320px);
    padding-top: 22px;
    padding-bottom: 34px;
  }

  .landing-hero,
  .school-hero {
    min-height: min(620px, calc(100dvh - 64px));
  }

  .hero-copy,
  .school-hero-copy {
    width: calc(100vw - 36px);
    margin-left: 18px;
    padding-top: 72px;
    padding-bottom: 84px;
  }

  .hero-copy h1,
  .school-hero-copy h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .hero-copy p,
  .school-hero-copy p {
    max-width: 94%;
    font-size: 15px;
  }

  .hero-metric-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-showcase article {
    min-width: 0;
  }

  .hero-metric-strip span {
    min-width: 0;
    padding: 9px 10px;
  }

  .hero-metric-strip strong {
    font-size: 21px;
  }

  .dashboard-hero,
  .student-hero-panel {
    min-height: 0;
    padding: 22px;
    border-radius: 18px;
  }

  .dashboard-hero h1,
  .student-hero-panel h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .dashboard-hero .hero-actions,
  .student-hero-panel .hero-actions {
    width: 100%;
  }

  .dashboard-hero .hero-actions > .button,
  .student-hero-panel .hero-actions > .button {
    flex: 1 1 150px;
  }

  .stat-grid,
  .compact-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat {
    min-width: 0;
    padding: 14px;
  }

  .stat strong {
    font-size: 27px;
  }

  .student-stats {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 72vw);
    overflow-x: auto;
    padding: 2px 2px 9px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .student-quick-nav {
    position: sticky;
    top: 72px;
    z-index: 9;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 7px;
    margin: 0 0 12px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
    scrollbar-width: none;
  }

  .student-quick-nav::-webkit-scrollbar {
    display: none;
  }

  .student-quick-nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 9px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
  }

  .student-more {
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
  }

  .student-more > summary {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 14px;
    color: var(--brand-strong);
    cursor: pointer;
    list-style: none;
  }

  .student-more > summary::-webkit-details-marker {
    display: none;
  }

  .student-more > summary span:first-child,
  .student-more > summary strong,
  .student-more > summary small {
    display: block;
  }

  .student-more > summary small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
  }

  .student-more > summary span:last-child {
    font-size: 18px;
    transition: transform .14s ease;
  }

  .student-more[open] > summary {
    border-bottom: 1px solid var(--line);
  }

  .student-more[open] > summary span:last-child {
    transform: rotate(180deg);
  }

  .student-more > .two-col,
  .student-side-panels {
    padding: 12px;
  }

  .student-more > .two-col {
    margin-bottom: 0;
  }

  .student-more .panel:last-child {
    margin-bottom: 0;
  }

  .student-stat {
    scroll-snap-align: start;
  }

  .week-schedule {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 82vw);
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .week-schedule article {
    scroll-snap-align: start;
  }

  .month-calendar {
    min-width: 620px;
  }

  .panel:has(.month-calendar) {
    overflow-x: auto;
  }

  .quick-login-grid {
    gap: 9px;
  }

  .quick-login-button {
    min-height: 108px;
    gap: 6px;
    padding: 14px;
  }

  .quick-login-button strong {
    font-size: 18px;
  }

  .teacher-mobile-actions {
    top: 72px;
  }

  .landing-value-grid,
  .role-grid-enhanced {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 82vw);
    overflow-x: auto;
    padding: 2px 2px 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .landing-value-grid article,
  .role-grid-enhanced .role-card {
    min-height: 190px;
    scroll-snap-align: start;
  }

  .messaging-layout {
    gap: 10px;
  }

  .wizard-desktop-nav {
    display: none;
  }

  .wizard-mobile-nav {
    display: block;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
  }

  .wizard-mobile-nav > summary {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    color: var(--brand-strong);
    cursor: pointer;
    list-style: none;
  }

  .wizard-mobile-nav > summary::-webkit-details-marker {
    display: none;
  }

  .wizard-mobile-nav > summary span:first-child {
    display: grid;
    gap: 2px;
  }

  .wizard-mobile-nav > summary small {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .wizard-mobile-nav > summary span:last-child {
    font-size: 11px;
    font-weight: 850;
  }

  .wizard-mobile-list {
    max-height: 56dvh;
    overflow-y: auto;
    padding: 4px 10px 10px;
    border-top: 1px solid var(--line);
  }

  .messaging-layout:not(.mobile-thread-open) .message-thread-panel,
  .messaging-layout.mobile-thread-open .thread-list-panel {
    display: none;
  }

  .mobile-thread-back {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--brand-strong);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
  }

  .thread-list-panel,
  .message-thread-panel {
    min-height: 0;
  }

  .message-stream {
    max-height: min(54dvh, 520px);
  }
}

@media (max-width: 460px) {
  .brand-copy small {
    max-width: 118px;
  }

  .topbar-actions {
    gap: 3px;
  }

  .hero-actions,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-hero .hero-copy,
  .school-hero .school-hero-copy {
    padding-top: 52px;
    padding-bottom: 60px;
  }

  .landing-hero .hero-copy h1,
  .school-hero .school-hero-copy h1 {
    font-size: 36px;
    line-height: 1.01;
  }

  .landing-hero .hero-actions,
  .school-hero .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .landing-hero .hero-actions > :first-child,
  .school-hero .hero-actions > :first-child {
    grid-column: 1 / -1;
  }

  .landing-hero .hero-actions .button,
  .school-hero .hero-actions .button {
    width: auto;
    padding-inline: 10px;
    font-size: 12px;
  }

  .hero-metric-strip {
    margin-top: 18px;
  }

  .hero-actions .button,
  .hero-actions button,
  .form-actions .button,
  .form-actions button {
    width: 100%;
  }

  .action-menu {
    width: 100%;
  }

  .action-menu-panel {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    max-height: calc(100dvh - 170px);
    overflow-y: auto;
  }

  .dashboard-hero .hero-actions > .button,
  .student-hero-panel .hero-actions > .button {
    flex: 0 0 auto;
  }

  .quick-login-button small {
    display: none;
  }

  .quick-login-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .quick-login-button {
    min-height: 106px;
    padding: 12px;
  }

  .quick-login-button strong {
    font-size: 15px;
    line-height: 1.2;
  }

  .quick-role {
    font-size: 9px;
  }

  .hero-metric-strip,
  .stat-grid,
  .compact-stats,
  .year-calendar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel,
  .capture-panel,
  .portal-side,
  .portal-post {
    padding: 16px;
  }

  .student-avatar {
    width: 74px;
    height: 74px;
    border-radius: 16px;
    font-size: 27px;
  }

  .report-workflow-card,
  .report-parent-card {
    padding: 12px;
  }
}

@media (max-width: 520px) {
  .feature-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .brand-copy small {
    display: none;
  }

  .nav-login {
    min-width: 0;
    padding-inline: 10px;
    font-size: 12px;
  }

  .course-grid,
  .resource-grid,
  .form-grid,
  .recommendation-grid,
  .learner-action-grid,
  .login-grid,
  .visual-grid {
    grid-template-columns: 1fr;
  }
}

/* Interactive reporting */
.reporting-shell,
.reporting-page,
.public-reporting-shell {
  --report-series-1: var(--brand-accent);
  --report-series-2: var(--blue);
  --report-series-3: var(--coral);
  --report-series-4: var(--teal);
  --report-series-5: color-mix(in srgb, var(--brand-secondary) 78%, #7a5800);
  --report-series-6: color-mix(in srgb, var(--brand-primary) 56%, #7c3aed);
}

.reporting-shell {
  display: grid;
  gap: 18px;
  margin: 18px 0 28px;
}

.report-title-row {
  align-items: flex-end;
  margin-bottom: 0;
}

.report-title-row p:not(.eyebrow),
.report-group-head p {
  max-width: 760px;
  margin: 5px 0 0;
  color: var(--muted);
}

.report-filters {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--white), var(--brand-faint));
  box-shadow: var(--shadow-sm);
}

.report-filter-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.report-filter-heading strong,
.report-filter-heading small {
  display: block;
}

.report-filter-heading strong {
  margin-top: 4px;
  color: var(--brand-strong);
  font-size: 20px;
}

.report-filter-heading small,
.report-refreshed,
.report-scope-note {
  color: var(--muted);
  font-size: 11px;
}

.report-refreshed {
  white-space: nowrap;
}

.report-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 11px;
  align-items: end;
}

.report-filter-grid label,
.public-period-filter label {
  display: grid;
  gap: 6px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}

.report-filter-grid select,
.report-filter-grid input,
.public-period-filter select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0;
}

.report-filter-actions,
.public-period-filter {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.report-filter-actions .button,
.report-filter-actions button,
.public-period-filter button {
  min-height: 40px;
  padding-block: 8px;
}

.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.report-kpi {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.report-kpi::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: var(--brand-accent);
}

.report-kpi.report-tone-positive::before,
.report-status.report-tone-positive {
  background: var(--brand-accent);
}

.report-kpi.report-tone-watch::before,
.report-status.report-tone-watch {
  background: var(--brand-secondary);
}

.report-kpi.report-tone-critical::before,
.report-status.report-tone-critical {
  background: var(--red);
}

.report-kpi span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.report-kpi strong {
  overflow-wrap: anywhere;
  color: var(--brand-strong);
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -.035em;
}

.report-kpi small {
  color: var(--muted);
  line-height: 1.45;
}

.report-priority-panel {
  display: grid;
  grid-template-columns: minmax(180px, .34fr) minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--brand-faint);
}

.report-priority-panel h2,
.report-group-head h2 {
  margin: 4px 0 0;
}

.report-priority-list {
  display: grid;
  gap: 8px;
}

.report-priority {
  display: grid;
  grid-template-columns: minmax(180px, .42fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-left: 4px solid var(--brand-accent);
  border-radius: 9px;
  background: var(--white);
}

.report-priority.report-tone-watch {
  border-left-color: var(--brand-secondary);
}

.report-priority.report-tone-critical {
  border-left-color: var(--red);
}

.report-priority span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.report-group-nav {
  position: sticky;
  top: 76px;
  z-index: 8;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--white) 94%, transparent);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  scrollbar-width: thin;
}

.report-group-nav a {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.report-group {
  display: grid;
  gap: 13px;
  scroll-margin-top: 135px;
}

.report-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.report-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.report-chart-card {
  min-width: 0;
  min-height: 390px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.report-chart,
.report-chart-shell {
  min-width: 0;
}

.report-chart-shell {
  position: relative;
  display: grid;
  gap: 10px;
}

.report-chart-heading {
  min-height: 58px;
}

.report-chart-title {
  margin: 0;
  color: var(--brand-strong);
  font-size: 17px;
}

.report-chart-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.report-legend {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.report-legend-button {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-2);
  box-shadow: none;
  font-size: 10px;
}

.report-legend-button:hover {
  background: var(--brand-soft);
  box-shadow: none;
  transform: none;
}

.report-legend-hidden {
  opacity: .5;
  text-decoration: line-through;
}

.report-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--report-series);
}

.report-plot-region {
  position: relative;
  min-height: 270px;
}

.report-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.report-axis-label {
  fill: var(--muted);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
}

.report-grid-line {
  stroke: var(--line);
  stroke-width: 1;
}

.report-zero-line {
  stroke: color-mix(in srgb, var(--brand-primary) 30%, var(--line));
}

.report-series-1 { --report-series: var(--report-series-1); }
.report-series-2 { --report-series: var(--report-series-2); }
.report-series-3 { --report-series: var(--report-series-3); }
.report-series-4 { --report-series: var(--report-series-4); }
.report-series-5 { --report-series: var(--report-series-5); }
.report-series-6 { --report-series: var(--report-series-6); }

.report-line {
  stroke: var(--report-series);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.report-point,
.report-bar {
  fill: var(--report-series);
  stroke: var(--white);
  stroke-width: 2;
  transition: opacity .16s ease, filter .16s ease;
}

.report-datum:hover,
.report-datum:focus {
  filter: brightness(.9) saturate(1.15);
  outline: none;
}

.report-datum:focus-visible {
  stroke: var(--brand-secondary);
  stroke-width: 4;
}

.report-tooltip {
  position: absolute;
  z-index: 5;
  min-width: 120px;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--brand-strong);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(7, 29, 23, .22);
  pointer-events: none;
}

.report-tooltip-series,
.report-tooltip-label {
  font-size: 10px;
  opacity: .78;
}

.report-tooltip-value {
  font-size: 14px;
}

.report-empty {
  min-height: 250px;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.report-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.report-comparison-table {
  display: grid;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.report-comparison-table table {
  min-width: 880px;
}

.report-comparison-table th,
.report-comparison-table td {
  white-space: nowrap;
}

.report-status {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.report-status.report-tone-positive {
  color: var(--brand-on-primary);
}

.report-status.report-tone-watch {
  color: var(--brand-on-secondary);
}

.report-status.report-tone-critical {
  color: var(--white);
}

.parent-reporting-shell {
  margin-top: 20px;
}

.public-reporting-shell {
  display: grid;
  gap: 16px;
  padding-top: 30px;
  padding-bottom: 12px;
}

.public-period-filter {
  flex-wrap: nowrap;
}

.public-period-filter select {
  min-width: 160px;
}

@media (max-width: 1040px) {
  .report-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-chart-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .report-filter-heading,
  .report-title-row,
  .report-group-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-priority-panel,
  .report-priority {
    grid-template-columns: 1fr;
  }

  .report-group-nav {
    top: 70px;
  }

  .report-chart-card {
    min-height: 350px;
    padding: 13px;
  }
}

@media (max-width: 460px) {
  .report-kpi-grid,
  .report-filter-grid {
    grid-template-columns: 1fr;
  }

  .report-filter-actions > *,
  .public-period-filter,
  .public-period-filter > * {
    width: 100%;
  }

  .report-filter-actions .button,
  .report-filter-actions button,
  .public-period-filter button {
    justify-content: center;
  }

  .report-chart-card {
    min-height: 320px;
  }

  .report-plot-region {
    min-height: 235px;
  }
}

@media print {
  .topbar,
  .mobile-dock,
  .report-filters,
  .report-group-nav,
  .dashboard-hero .hero-actions,
  .messages {
    display: none !important;
  }

  body,
  .workspace {
    background: #fff !important;
  }

  .workspace {
    width: 100% !important;
    max-width: none !important;
  }

  .report-chart-card,
  .report-kpi,
  .report-comparison-table {
    break-inside: avoid;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Standalone school website ------------------------------------------------ */
.school-site-body {
  --school-site-max: 1220px;
  min-width: 320px;
  background: #fff;
  color: #15251f;
}

.school-site-body :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand-secondary) 72%, #fff);
  outline-offset: 3px;
}

.school-site-container {
  width: min(var(--school-site-max), calc(100% - 40px));
  margin-inline: auto;
}

.school-site-preview-banner {
  position: relative;
  z-index: 42;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 9px 20px;
  background: #fff2be;
  color: #412f00;
  font-size: 13px;
}

.school-site-preview-banner span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.school-site-preview-banner a {
  color: inherit;
  font-weight: 850;
  text-underline-offset: 3px;
}

.school-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 12%, #e2e8e5);
  background: color-mix(in srgb, #fff 94%, transparent);
  box-shadow: 0 8px 28px rgba(8, 33, 25, .06);
  backdrop-filter: blur(18px);
}

.school-site-header-inner {
  width: min(var(--school-site-max), calc(100% - 40px));
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  margin-inline: auto;
}

.school-site-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-strong);
  text-decoration: none;
}

.school-site-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 16%, #fff);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--brand-primary) 12%, transparent);
}

.school-site-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.school-site-logo.school-site-monogram {
  background: linear-gradient(145deg, var(--brand-primary), var(--brand-strong));
  color: var(--brand-on-primary);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.03em;
}

.school-site-brand-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.school-site-brand-copy strong {
  overflow: hidden;
  color: var(--brand-strong);
  font-size: 16px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.school-site-brand-copy small {
  max-width: 290px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.school-site-navigation {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.8vw, 34px);
}

.school-site-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.school-site-nav-links a {
  padding: 10px 11px;
  border-radius: 10px;
  color: #344a42;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.school-site-nav-links a:hover {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.school-site-menu-toggle {
  display: none;
}

.school-site-login,
.school-site-account-menu > summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 22%, #dbe3df);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-strong);
  box-shadow: 0 5px 16px rgba(8, 33, 25, .06);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.school-site-account-menu {
  position: relative;
}

.school-site-account-menu > summary {
  cursor: pointer;
  list-style: none;
}

.school-site-account-menu > summary::-webkit-details-marker {
  display: none;
}

.school-site-account-menu > summary > span:nth-child(2) {
  display: grid;
  gap: 1px;
}

.school-site-account-menu > summary strong,
.school-site-account-menu > summary small {
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.school-site-account-menu > summary small {
  color: var(--muted);
  font-size: 9px;
}

.school-site-account-avatar,
.school-site-learner-initial {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  font-size: 11px;
  font-weight: 900;
}

.school-site-account-avatar.large {
  width: 52px;
  height: 52px;
  font-size: 19px;
}

.school-site-account-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(7, 31, 23, .16);
}

.school-site-account-panel a,
.school-site-account-panel button {
  width: 100%;
  display: block;
  padding: 10px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #243a32;
  cursor: pointer;
  font-size: 12px;
  font-weight: 780;
  text-align: left;
  text-decoration: none;
}

.school-site-account-panel a:hover,
.school-site-account-panel button:hover {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.school-site-messages {
  position: fixed;
  z-index: 50;
  top: 94px;
  right: 20px;
  width: min(430px, calc(100% - 40px));
  display: grid;
  gap: 8px;
}

.school-site-message {
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 22%, #dbe3df);
  border-left: 4px solid var(--brand-primary);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(7, 31, 23, .15);
  font-size: 13px;
}

.school-site-message.error {
  border-left-color: var(--red);
}

.school-site-message.warning {
  border-left-color: var(--brand-secondary);
}

.school-site-hero {
  position: relative;
  min-height: clamp(590px, 74vh, 760px);
  overflow: hidden;
  display: grid;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, color-mix(in srgb, var(--brand-secondary) 38%, transparent), transparent 34%),
    linear-gradient(140deg, var(--brand-strong), var(--brand-primary));
}

.school-site-hero-image,
.school-site-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.school-site-hero-image {
  object-fit: cover;
}

.school-site-hero-shade {
  background:
    linear-gradient(90deg, rgba(3, 22, 17, .9) 0%, color-mix(in srgb, var(--brand-strong) 70%, transparent) 52%, rgba(3, 22, 17, .34) 100%),
    linear-gradient(180deg, rgba(3, 22, 17, .06), rgba(3, 22, 17, .7));
}

.school-site-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  gap: clamp(40px, 7vw, 100px);
  align-items: end;
  padding-block: clamp(90px, 12vw, 150px);
}

.school-site-hero-copy {
  max-width: 820px;
}

.school-site-hero-meta,
.school-site-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.school-site-hero-meta > span {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .9);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.school-site-hero-meta .school-site-draft-chip {
  border-color: color-mix(in srgb, var(--brand-secondary) 65%, #fff);
  background: var(--brand-secondary);
  color: var(--brand-on-secondary);
}

.school-site-hero h1 {
  max-width: 820px;
  margin: 22px 0 18px;
  color: #fff;
  font-size: clamp(52px, 7.6vw, 92px);
  line-height: .92;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.school-site-hero-copy > p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
  text-wrap: balance;
}

.school-site-hero-actions,
.school-site-inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.school-site-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 1px solid var(--brand-primary);
  border-radius: 12px;
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--brand-primary) 26%, transparent);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.school-site-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--brand-primary) 32%, transparent);
}

.school-site-hero .school-site-button {
  border-color: var(--brand-secondary);
  background: var(--brand-secondary);
  color: var(--brand-on-secondary);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.school-site-button.school-site-button-ghost {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.school-site-button.school-site-button-ghost:hover {
  background: rgba(255, 255, 255, .18);
}

.school-site-button-compact {
  min-height: 42px;
  padding-block: 9px;
}

.school-site-hero-card {
  display: grid;
  gap: 9px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 20px;
  background: rgba(7, 31, 23, .42);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
  backdrop-filter: blur(16px);
}

.school-site-hero-card strong {
  font-size: 20px;
  line-height: 1.2;
}

.school-site-hero-card p {
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: 12px;
}

.school-site-hero-card a {
  justify-self: start;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  text-underline-offset: 4px;
}

.school-site-section {
  padding-block: clamp(64px, 8vw, 104px);
  scroll-margin-top: 94px;
}

.school-site-kicker {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--brand-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.school-site-hero .school-site-kicker,
.school-site-member-panel .school-site-kicker,
.school-site-contact-panel .school-site-kicker {
  color: color-mix(in srgb, var(--brand-secondary) 76%, #fff);
}

.school-site-section-heading {
  max-width: 770px;
}

.school-site-section-heading h2 {
  margin: 0;
  color: var(--brand-strong);
  font-size: clamp(32px, 4.3vw, 54px);
  line-height: 1.02;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.school-site-section-heading > p,
.school-site-section-heading > div > p {
  margin: 17px 0 0;
  color: #586b64;
  font-size: 16px;
  line-height: 1.75;
}

.school-site-section-heading-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}

.school-site-section-heading-row > div {
  max-width: 760px;
}

.school-site-about {
  background: #fff;
}

.school-site-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  gap: clamp(42px, 8vw, 110px);
  align-items: center;
}

.school-site-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
  box-shadow: 0 18px 50px rgba(7, 31, 23, .07);
}

.school-site-facts > div {
  min-height: 130px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  background: #fff;
}

.school-site-facts dt {
  color: var(--brand-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.school-site-facts dd {
  margin: 0;
  color: #263a33;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.45;
}

.school-site-performance {
  background:
    radial-gradient(circle at 94% 4%, color-mix(in srgb, var(--brand-secondary) 14%, transparent), transparent 28%),
    linear-gradient(180deg, var(--brand-faint), #fff);
  border-block: 1px solid var(--line);
}

.school-site-performance-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.school-site-member-badge {
  min-width: 210px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 20%, #fff);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.school-site-member-badge > span {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  font-weight: 900;
}

.school-site-member-badge strong,
.school-site-member-badge small {
  display: block;
}

.school-site-member-badge strong {
  color: var(--brand-strong);
  font-size: 12px;
}

.school-site-member-badge small {
  color: var(--muted);
  font-size: 10px;
}

.school-site-report-filters {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  margin: 34px 0 18px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow-sm);
}

.school-site-report-filters label {
  min-width: 190px;
  display: grid;
  gap: 6px;
  color: #40544d;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .03em;
}

.school-site-report-filters select {
  min-height: 42px;
  padding: 8px 36px 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: #fff;
  color: #1f352d;
  font: inherit;
  font-size: 12px;
}

.school-site-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 13px;
  margin-top: 18px;
}

.school-site-kpi {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(7, 31, 23, .06);
}

.school-site-kpi::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: var(--brand-primary);
}

.school-site-kpi.report-tone-positive::before {
  background: var(--teal);
}

.school-site-kpi.report-tone-watch::before {
  background: var(--brand-secondary);
}

.school-site-kpi.report-tone-critical::before {
  background: var(--red);
}

.school-site-kpi > span {
  color: #60716b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.school-site-kpi > strong {
  overflow-wrap: anywhere;
  color: var(--brand-strong);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -.045em;
}

.school-site-kpi > small {
  color: #64736d;
  font-size: 11px;
  line-height: 1.5;
}

.school-site-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.school-site-chart-card {
  min-width: 0;
  min-height: 390px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(7, 31, 23, .065);
}

.school-site-member-section {
  padding-block: clamp(42px, 6vw, 72px);
  background: #fff;
}

.school-site-member-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  gap: 36px;
  align-items: center;
  padding: clamp(26px, 4vw, 46px);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--brand-secondary) 34%, transparent), transparent 34%),
    linear-gradient(140deg, var(--brand-strong), var(--brand-primary));
  color: #fff;
  box-shadow: 0 22px 58px color-mix(in srgb, var(--brand-primary) 22%, transparent);
}

.school-site-member-panel h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.school-site-member-panel p {
  max-width: 690px;
  margin: 15px 0 0;
  color: rgba(255, 255, 255, .76);
}

.school-site-member-panel .school-site-button {
  border-color: var(--brand-secondary);
  background: var(--brand-secondary);
  color: var(--brand-on-secondary);
}

.school-site-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-accent);
  font-size: 12px;
  font-weight: 850;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.school-site-member-panel .school-site-text-link {
  color: #fff;
}

.school-site-learner-list {
  display: grid;
  gap: 8px;
}

.school-site-learner-list article {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 13px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
}

.school-site-learner-list article > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.school-site-learner-list strong,
.school-site-learner-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.school-site-learner-list small {
  color: rgba(255, 255, 255, .68);
  font-size: 10px;
}

.school-site-member-role {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .1);
  text-align: center;
}

.school-site-member-role small {
  color: rgba(255, 255, 255, .68);
}

.school-site-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.school-site-content-card,
.school-site-news-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(7, 31, 23, .065);
}

.school-site-content-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.school-site-content-card.has-media {
  grid-template-columns: minmax(180px, .68fr) minmax(0, 1.32fr);
}

.school-site-content-card > img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
}

.school-site-content-card-body,
.school-site-news-card {
  padding: clamp(20px, 3vw, 30px);
}

.school-site-content-card.is-hidden-preview {
  border: 2px dashed color-mix(in srgb, var(--brand-secondary) 74%, #8c6a00);
  opacity: .78;
}

.school-site-card-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.school-site-content-card h3,
.school-site-news-card h3 {
  margin: 14px 0 10px;
  color: var(--brand-strong);
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.school-site-content-card p,
.school-site-news-card p {
  margin: 0 0 18px;
  color: #5c6d67;
  line-height: 1.68;
}

.school-site-preview-note {
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 11px;
  background: #fff2be;
  color: #5b4500;
  font-size: 11px;
}

.school-site-news {
  background: var(--brand-faint);
  border-block: 1px solid var(--line);
}

.school-site-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.school-site-news-grid.has-featured .school-site-news-featured {
  grid-column: span 2;
  grid-row: span 2;
  display: grid;
  align-content: end;
  min-height: 370px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--brand-secondary) 36%, transparent), transparent 34%),
    linear-gradient(145deg, var(--brand-strong), var(--brand-primary));
}

.school-site-news-featured .school-site-card-meta span {
  background: rgba(255, 255, 255, .13);
  color: #fff;
}

.school-site-news-featured h3 {
  max-width: 650px;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
}

.school-site-news-featured p,
.school-site-news-featured small {
  color: rgba(255, 255, 255, .76);
}

.school-site-news-card small {
  color: #73817c;
  font-size: 10px;
  font-weight: 750;
}

.school-site-empty-state {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 40px 24px;
  border: 1px dashed color-mix(in srgb, var(--brand-primary) 24%, #cfd9d4);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  color: var(--brand-strong);
  text-align: center;
}

.school-site-empty-state p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
}

.school-site-contact {
  background: #fff;
}

.school-site-contact-panel {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: clamp(36px, 7vw, 90px);
  padding: clamp(30px, 5vw, 64px);
  border-radius: 26px;
  background:
    radial-gradient(circle at 96% 4%, color-mix(in srgb, var(--brand-secondary) 28%, transparent), transparent 30%),
    linear-gradient(140deg, var(--brand-strong), var(--brand-primary));
  color: #fff;
  box-shadow: 0 24px 64px color-mix(in srgb, var(--brand-primary) 20%, transparent);
}

.school-site-contact-panel .school-site-section-heading h2 {
  color: #fff;
}

.school-site-contact-panel .school-site-section-heading p {
  color: rgba(255, 255, 255, .72);
}

.school-site-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.school-site-contact-grid section {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 15px;
  background: rgba(255, 255, 255, .09);
}

.school-site-contact-grid h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 13px;
}

.school-site-contact-grid p,
.school-site-contact-grid a {
  margin: 0;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, .76);
  font-size: 12px;
  line-height: 1.55;
}

.school-site-contact-grid a {
  font-weight: 780;
  text-underline-offset: 3px;
}

.school-site-footer {
  padding: 58px max(20px, calc((100% - var(--school-site-max)) / 2)) 24px;
  background: #071c16;
  color: rgba(255, 255, 255, .68);
}

.school-site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(180px, .7fr));
  gap: clamp(30px, 6vw, 80px);
  padding-bottom: 44px;
}

.school-site-footer-grid section {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
}

.school-site-footer-brand {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}

.school-site-footer-grid h2 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 12px;
  letter-spacing: .02em;
}

.school-site-footer-grid p,
.school-site-footer-grid a {
  margin: 0;
  color: rgba(255, 255, 255, .66);
  font-size: 11px;
  line-height: 1.65;
}

.school-site-footer-grid a {
  text-underline-offset: 3px;
}

.school-site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 10px;
}

/* School website editor --------------------------------------------------- */
.site-editor-shell {
  max-width: 1500px;
}

.site-editor-page-head {
  align-items: end;
}

.site-editor-page-head p {
  max-width: 740px;
}

.site-editor-head-actions,
.site-editor-actions-bar > div {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.site-editor-status-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.site-editor-status-strip > span:nth-child(2),
.site-editor-actions-bar > span,
.site-editor-section-toolbar > span,
.site-editor-version-row > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.site-editor-status-strip small,
.site-editor-actions-bar small,
.site-editor-section-toolbar small,
.site-editor-version-row small {
  color: var(--muted);
  font-size: 10px;
}

.site-editor-status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--brand-secondary);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-secondary) 18%, transparent);
}

.site-editor-status-dot.is-live {
  background: var(--teal);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--teal) 17%, transparent);
}

.site-editor-unsaved-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.site-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, .7fr);
  gap: 18px;
  align-items: start;
}

.site-editor-main,
.site-editor-sidebar {
  min-width: 0;
}

.site-editor-sidebar {
  position: sticky;
  top: 92px;
}

.site-editor-panel {
  padding: clamp(19px, 2.5vw, 28px);
}

.site-editor-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.site-editor-panel-head h2 {
  margin: 0;
  font-size: clamp(20px, 2vw, 25px);
}

.site-editor-panel-head p:last-child {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.site-editor-step {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-accent);
  font-size: 12px;
  font-weight: 900;
}

.site-editor-field-grid,
.super-admin-form-grid,
.control-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.site-editor-field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 820;
}

.site-editor-field-wide {
  grid-column: 1 / -1;
}

.site-editor-field input,
.site-editor-field select,
.site-editor-field textarea {
  width: 100%;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

.site-editor-field small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
}

.site-editor-colour-control {
  margin-top: 0;
}

.site-editor-toggle {
  display: grid;
  grid-template-columns: auto 44px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  margin-bottom: 17px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--brand-faint);
  cursor: pointer;
}

.site-editor-toggle > input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.site-editor-toggle > span:nth-of-type(1) {
  grid-column: 2;
  position: relative;
  width: 44px;
  height: 25px;
  border-radius: 999px;
  background: #bcc9c3;
  transition: background .18s ease;
}

.site-editor-toggle > span:nth-of-type(1)::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
  content: "";
  transition: transform .18s ease;
}

.site-editor-toggle > input:checked + span {
  background: var(--brand-primary);
}

.site-editor-toggle > input:checked + span::after {
  transform: translateX(19px);
}

.site-editor-toggle > input:focus-visible + span {
  box-shadow: var(--focus-ring);
}

.site-editor-toggle > span:last-child {
  grid-column: 3;
  display: grid;
  gap: 2px;
}

.site-editor-toggle small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.site-editor-section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--brand-faint);
}

.site-editor-section-list {
  gap: 13px;
}

.site-editor-section {
  padding: 0;
  overflow: hidden;
  border-radius: 15px;
  background: #fff;
  transition: opacity .18s ease, border-color .18s ease;
}

.site-editor-section.new {
  border-style: dashed;
  background: color-mix(in srgb, var(--brand-faint) 55%, #fff);
}

.site-editor-section.is-marked-delete {
  border-color: color-mix(in srgb, var(--red) 55%, var(--line));
  background: color-mix(in srgb, var(--red) 4%, #fff);
  opacity: .67;
}

.site-editor-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  background: var(--brand-faint);
}

.site-editor-drag-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-editor-drag-copy > span:last-child {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.site-editor-drag-copy strong,
.site-editor-drag-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-editor-drag-copy small {
  color: var(--muted);
  font-size: 9px;
}

.site-editor-position {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  font-size: 10px;
  font-weight: 900;
}

.site-editor-reorder {
  display: flex;
  gap: 5px;
}

.site-editor-icon-button,
.site-editor-restore-button {
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-strong);
  box-shadow: none;
  font-size: 11px;
  font-weight: 850;
}

.site-editor-icon-button {
  width: 34px;
  padding-inline: 0;
  font-size: 15px;
}

.site-editor-icon-button:hover,
.site-editor-restore-button:hover {
  border-color: color-mix(in srgb, var(--brand-primary) 28%, var(--line));
  background: var(--brand-soft);
  box-shadow: none;
  transform: none;
}

.site-editor-icon-button:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.site-editor-section > .site-editor-field-grid {
  padding: 15px;
}

.site-editor-empty-sections,
.site-editor-history-empty {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 28px 18px;
  border: 1px dashed var(--line);
  border-radius: 13px;
  color: var(--brand-strong);
  text-align: center;
}

.site-editor-empty-sections p,
.site-editor-history-empty p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.site-editor-preview-panel,
.site-editor-history {
  padding: 18px;
}

.site-editor-preview-panel h2,
.site-editor-history h2 {
  margin: 0;
}

.site-editor-theme-preview {
  margin-top: 13px;
}

.site-editor-preview-logo {
  position: relative;
  overflow: hidden;
}

.site-editor-preview-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.site-editor-preview-logo img[src=""] {
  display: none;
}

.site-editor-version-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.site-editor-version-row:last-child {
  border-bottom: 0;
}

.site-editor-version-row strong {
  font-size: 12px;
}

.site-editor-actions-bar {
  position: sticky;
  bottom: 12px;
  z-index: 16;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 20%, var(--line));
  border-radius: 15px;
  background: color-mix(in srgb, #fff 92%, transparent);
  box-shadow: 0 16px 44px rgba(7, 31, 23, .16);
  backdrop-filter: blur(16px);
}

/* Reusable platform-control utilities ------------------------------------ */
.super-admin-shell,
.control-shell {
  display: grid;
  gap: 18px;
}

.super-admin-hero,
.control-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--brand-secondary) 34%, transparent), transparent 30%),
    linear-gradient(135deg, #102c42, var(--brand-strong));
  color: #fff;
  box-shadow: 0 20px 54px rgba(7, 31, 23, .18);
}

.super-admin-hero h1,
.control-hero h1 {
  margin: 4px 0 8px;
  color: #fff;
}

.super-admin-hero p,
.control-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
}

.super-admin-stats,
.control-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.super-admin-stat,
.control-stat {
  display: grid;
  gap: 6px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.super-admin-stat span,
.control-stat span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.super-admin-stat strong,
.control-stat strong {
  color: var(--brand-strong);
  font-size: 30px;
  letter-spacing: -.04em;
}

.super-admin-tabs,
.control-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.super-admin-tabs a,
.control-tabs a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  text-decoration: none;
}

.super-admin-tabs a[aria-current="page"],
.super-admin-tabs a.is-active,
.control-tabs a[aria-current="page"],
.control-tabs a.is-active {
  background: var(--brand-primary);
  color: var(--brand-on-primary);
}

.super-admin-toolbar,
.control-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--brand-faint);
}

.super-admin-grid,
.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.super-admin-card,
.control-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.super-admin-table-wrap,
.control-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.super-admin-table,
.control-table {
  min-width: 760px;
  margin: 0;
}

.super-admin-table th,
.control-table th {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.super-admin-status,
.control-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-accent);
  font-size: 10px;
  font-weight: 850;
}

.super-admin-status.is-active,
.control-status.is-active {
  background: color-mix(in srgb, var(--teal) 12%, #fff);
  color: #087269;
}

.super-admin-status.is-warning,
.control-status.is-warning {
  background: color-mix(in srgb, var(--brand-secondary) 20%, #fff);
  color: #735400;
}

.super-admin-status.is-revoked,
.control-status.is-revoked {
  background: color-mix(in srgb, var(--red) 10%, #fff);
  color: #a52b26;
}

.super-admin-actions,
.control-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.super-admin-empty,
.control-empty {
  padding: 30px 20px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.super-admin-danger,
.control-danger {
  border-color: color-mix(in srgb, var(--red) 35%, var(--line)) !important;
  color: #a52b26 !important;
}

/* Current Super User control-centre components */
.platform-admin-shell {
  display: grid;
  gap: 18px;
}

.platform-admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 350px);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  padding: clamp(26px, 4vw, 46px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 6%, color-mix(in srgb, var(--brand-secondary) 36%, transparent), transparent 32%),
    linear-gradient(135deg, #102c42, var(--brand-strong));
  color: #fff;
  box-shadow: 0 20px 54px rgba(7, 31, 23, .18);
}

.platform-admin-hero h1 {
  margin: 4px 0 9px;
  color: #fff;
}

.platform-admin-hero > div:first-child > p:last-child {
  max-width: 770px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
}

.platform-admin-security {
  display: grid;
  gap: 5px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 15px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
}

.platform-admin-security span,
.platform-admin-security small {
  color: rgba(255, 255, 255, .68);
  font-size: 10px;
  line-height: 1.45;
}

.platform-tabs {
  position: sticky;
  top: 76px;
  z-index: 10;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, #fff 93%, transparent);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  scrollbar-width: thin;
}

.platform-tabs a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 830;
  text-decoration: none;
}

.platform-tabs a:hover {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.platform-tabs a[aria-current="page"] {
  background: var(--brand-primary);
  color: var(--brand-on-primary);
}

.platform-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.platform-stat-grid article {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.platform-stat-grid article::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
}

.platform-stat-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.platform-stat-grid strong {
  color: var(--brand-strong);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -.045em;
}

.platform-stat-grid small {
  color: var(--muted);
  font-size: 10px;
}

.platform-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.platform-admin-grid-wide {
  grid-template-columns: minmax(310px, .65fr) minmax(0, 1.35fr);
}

.platform-admin-form-panel {
  position: sticky;
  top: 140px;
}

.platform-action-list,
.platform-admin-list-column,
.platform-record-list,
.platform-audit-list,
.department-access-grid,
.stack-form {
  display: grid;
  gap: 11px;
}

.platform-action-list a {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--brand-faint);
  color: var(--brand-strong);
  text-decoration: none;
}

.platform-action-list a:hover {
  border-color: color-mix(in srgb, var(--brand-primary) 28%, var(--line));
  background: var(--brand-soft);
}

.platform-action-list span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.platform-audit-row > span:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.platform-audit-row small {
  color: var(--muted);
  font-size: 10px;
}

.platform-filter-bar {
  display: grid;
  grid-template-columns: minmax(170px, 1.3fr) repeat(3, minmax(130px, .8fr)) auto;
  gap: 9px;
  align-items: end;
  margin: 0;
  padding: 13px;
}

.platform-filter-bar label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
}

.platform-filter-bar input,
.platform-filter-bar select {
  min-width: 0;
  min-height: 40px;
  font-size: 11px;
}

.platform-filter-bar button {
  min-height: 40px;
  padding-block: 8px;
}

.platform-record-card {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.platform-record-card.is-inactive {
  border-style: dashed;
  background: #f7f8f7;
  opacity: .72;
}

.platform-record-main {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 5px;
}

.platform-record-main h3 {
  margin: 2px 0 0;
  color: var(--brand-strong);
  font-size: 18px;
}

.platform-record-main a,
.platform-record-main > span:not(.role-chip) {
  overflow-wrap: anywhere;
  color: var(--ink-2);
  font-size: 11px;
}

.platform-record-main small {
  color: var(--muted);
  font-size: 10px;
}

.platform-record-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.platform-record-actions form,
.platform-record-card > form {
  margin: 0;
}

.danger-button {
  border-color: color-mix(in srgb, var(--red) 44%, var(--line)) !important;
  background: color-mix(in srgb, var(--red) 7%, #fff) !important;
  color: #a52b26 !important;
  box-shadow: none !important;
}

.danger-button:hover {
  background: color-mix(in srgb, var(--red) 13%, #fff) !important;
  transform: none !important;
}

.department-access-card {
  display: grid;
  grid-template-columns: minmax(170px, .8fr) minmax(220px, 1.2fr) auto;
  gap: 12px;
  align-items: end;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--brand-faint);
}

.department-access-card > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.department-access-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.department-access-card label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.department-access-card select {
  min-height: 38px;
  font-size: 11px;
}

.platform-audit-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.platform-audit-entry:last-child {
  border-bottom: 0;
}

.platform-audit-entry > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.platform-audit-entry span:not(.role-chip),
.platform-audit-entry small {
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 1080px) {
  .school-site-header-inner {
    position: relative;
  }

  .school-site-menu-toggle {
    width: 46px;
    height: 44px;
    display: grid;
    place-items: center;
    gap: 3px;
    margin-left: auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    color: var(--brand-strong);
    box-shadow: none;
  }

  .school-site-menu-toggle:hover {
    background: var(--brand-soft);
    box-shadow: none;
    transform: none;
  }

  .school-site-menu-toggle > span:first-child,
  .school-site-menu-toggle > span:first-child::before,
  .school-site-menu-toggle > span:first-child::after {
    width: 20px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    content: "";
  }

  .school-site-menu-toggle > span:first-child {
    position: relative;
  }

  .school-site-menu-toggle > span:first-child::before {
    position: absolute;
    top: -6px;
  }

  .school-site-menu-toggle > span:first-child::after {
    position: absolute;
    top: 6px;
  }

  .school-site-menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .school-site-navigation {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(390px, calc(100vw - 40px));
    display: none;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 22px 55px rgba(7, 31, 23, .18);
  }

  .school-site-navigation.is-open {
    display: grid;
    gap: 10px;
  }

  .school-site-nav-links {
    display: grid;
    gap: 3px;
  }

  .school-site-nav-links a {
    padding: 11px 12px;
  }

  .school-site-account,
  .school-site-login,
  .school-site-account-menu,
  .school-site-account-menu > summary {
    width: 100%;
  }

  .school-site-account-menu > summary {
    border-radius: 12px;
  }

  .school-site-account-panel {
    position: static;
    margin-top: 6px;
    box-shadow: none;
  }

  .school-site-kpi-grid,
  .super-admin-stats,
  .control-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .school-site-chart-grid {
    grid-template-columns: 1fr;
  }

  .school-site-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-editor-layout {
    grid-template-columns: 1fr;
  }

  .site-editor-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .platform-admin-grid-wide,
  .platform-filter-bar {
    grid-template-columns: 1fr;
  }

  .platform-admin-form-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .school-site-container,
  .school-site-header-inner {
    width: min(100% - 28px, var(--school-site-max));
  }

  .school-site-header-inner {
    min-height: 72px;
  }

  .school-site-logo {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 13px;
  }

  .school-site-brand-copy small {
    max-width: 210px;
  }

  .school-site-hero {
    min-height: 620px;
  }

  .school-site-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
    padding-block: 82px;
  }

  .school-site-hero-card {
    max-width: 420px;
  }

  .school-site-about-grid,
  .school-site-member-panel,
  .school-site-contact-panel {
    grid-template-columns: 1fr;
  }

  .school-site-performance-head,
  .school-site-section-heading-row {
    align-items: start;
    flex-direction: column;
  }

  .school-site-content-grid,
  .school-site-news-grid,
  .school-site-footer-grid {
    grid-template-columns: 1fr;
  }

  .school-site-news-grid.has-featured .school-site-news-featured {
    grid-column: auto;
    grid-row: auto;
    min-height: 330px;
  }

  .school-site-footer-grid {
    gap: 28px;
  }

  .site-editor-page-head,
  .site-editor-actions-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .site-editor-sidebar {
    grid-template-columns: 1fr;
  }

  .super-admin-hero,
  .control-hero,
  .super-admin-grid,
  .control-grid,
  .platform-admin-hero,
  .platform-admin-grid {
    grid-template-columns: 1fr;
  }

  .platform-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .department-access-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .school-site-preview-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding-inline: 14px;
  }

  .school-site-brand-copy strong {
    max-width: 180px;
  }

  .school-site-brand-copy small {
    display: none;
  }

  .school-site-hero {
    min-height: 660px;
  }

  .school-site-hero h1 {
    font-size: clamp(46px, 15vw, 68px);
  }

  .school-site-hero-actions > *,
  .school-site-inline-actions > * {
    width: 100%;
  }

  .school-site-section {
    padding-block: 60px;
  }

  .school-site-facts,
  .school-site-kpi-grid,
  .school-site-contact-grid,
  .site-editor-field-grid,
  .super-admin-form-grid,
  .control-form-grid,
  .super-admin-stats,
  .control-stat-grid,
  .platform-stat-grid {
    grid-template-columns: 1fr;
  }

  .school-site-report-filters,
  .school-site-report-filters label,
  .school-site-report-filters select,
  .school-site-report-filters button {
    width: 100%;
  }

  .school-site-chart-card {
    min-height: 330px;
    padding: 13px;
  }

  .school-site-content-card.has-media {
    grid-template-columns: 1fr;
  }

  .school-site-content-card > img {
    height: 220px;
    min-height: 0;
  }

  .school-site-footer-bottom,
  .site-editor-status-strip,
  .site-editor-section-toolbar,
  .site-editor-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-editor-status-strip {
    display: flex;
  }

  .site-editor-unsaved-note {
    margin-left: 22px;
  }

  .site-editor-field-wide {
    grid-column: auto;
  }

  .site-editor-head-actions > *,
  .site-editor-actions-bar > div,
  .site-editor-actions-bar button {
    width: 100%;
  }

  .site-editor-actions-bar > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .platform-record-card,
  .platform-record-actions,
  .platform-audit-entry {
    align-items: stretch;
    flex-direction: column;
  }

  .platform-record-actions > *,
  .platform-record-actions form,
  .platform-record-actions button,
  .platform-record-actions .button {
    width: 100%;
  }
}

@media print {
  .school-site-header,
  .school-site-preview-banner,
  .school-site-hero-actions,
  .school-site-report-filters,
  .school-site-member-section,
  .school-site-footer,
  .site-editor-actions-bar {
    display: none !important;
  }

  .school-site-hero {
    min-height: auto;
    color: #000;
    background: #fff;
  }

  .school-site-hero-image,
  .school-site-hero-shade,
  .school-site-hero-card {
    display: none;
  }

  .school-site-hero-inner {
    display: block;
    padding-block: 30px;
  }

  .school-site-hero h1,
  .school-site-hero-copy > p {
    color: #000;
  }

  .school-site-section {
    padding-block: 28px;
  }

  .school-site-content-card,
  .school-site-news-card,
  .school-site-chart-card,
  .school-site-kpi {
    break-inside: avoid;
    box-shadow: none;
  }
}

/* Format accents intentionally follow the shared resource-card rules. */
.resource-card.resource-format-card {
  border-top: 4px solid var(--brand-primary);
}

.resource-card.resource-format-card.is-document {
  border-top-color: var(--blue);
}

.resource-card.resource-format-card.is-form {
  border-top-color: var(--brand-secondary);
}

/* Credential authentication ------------------------------------------------ */
.auth-shell {
  display: grid;
  place-items: center;
  gap: 32px;
  min-height: calc(100vh - 170px);
}

.auth-card {
  width: min(100%, 520px);
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(16, 35, 28, .12);
}

.auth-intro {
  margin-bottom: 24px;
}

.auth-intro h1 {
  margin: 4px 0 10px;
}

.auth-intro p:last-child,
.auth-help p {
  color: var(--muted);
}

.auth-form button {
  width: 100%;
}

.auth-help {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.auth-help p {
  margin: 6px 0 0;
}

.demo-switcher {
  width: min(100%, 1100px);
}

.menu-logout-form {
  margin: 0;
}

.menu-logout-form button {
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  background: transparent;
}

.menu-logout-form button:hover {
  color: var(--brand-primary);
  background: var(--surface-soft);
}

/* Learner intake and directory -------------------------------------------- */
.learner-directory-shell,
.learner-intake-shell,
.learner-intake-form {
  display: grid;
  gap: 22px;
}

.learner-import-panel > summary,
.danger-zone > summary {
  cursor: pointer;
  list-style: none;
}

.learner-import-panel > summary span {
  display: grid;
  gap: 4px;
}

.learner-import-panel > summary small {
  color: var(--muted);
  font-weight: 400;
}

.learner-import-content {
  padding-top: 20px;
}

.inline-upload-form {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
}

.inline-upload-form label {
  flex: 1 1 300px;
}

.import-error-list {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #e3a3a3;
  border-radius: 12px;
  color: #762222;
  background: #fff3f3;
}

.import-error-list ul {
  margin: 10px 0 0;
}

.learner-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(140px, 1fr)) auto;
  align-items: end;
  gap: 12px;
}

.learner-record-list {
  display: grid;
  gap: 12px;
}

.learner-record-card {
  display: grid;
  grid-template-columns: auto minmax(220px, 1.4fr) minmax(210px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.learner-record-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--brand-on-primary, #fff);
  font-weight: 800;
  background: var(--brand-primary);
}

.learner-record-identity h2 {
  margin: 6px 0 2px;
  font-size: 1.1rem;
}

.learner-record-identity p,
.learner-record-identity small {
  color: var(--muted);
}

.learner-record-identity p {
  margin: 0 0 3px;
}

.learner-record-signals {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}

.risk-signal {
  padding: 5px 8px;
  border-radius: 999px;
  color: #4b5f57;
  font-size: .76rem;
  font-weight: 700;
  background: #edf2ef;
}

.risk-signal.is-high,
.risk-signal.is-urgent {
  color: #842c1f;
  background: #ffe2dc;
}

.risk-signal.is-medium {
  color: #704d00;
  background: #fff0c7;
}

.risk-signal.has-login {
  color: #0b5c3e;
  background: #dff5e9;
}

.learner-record-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.intake-section {
  display: grid;
  gap: 18px;
}

.account-provision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-provision-grid fieldset {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.account-provision-grid legend {
  padding: 0 8px;
  font-weight: 800;
}

.intake-actions {
  position: sticky;
  z-index: 4;
  bottom: 12px;
  justify-content: flex-end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 35px rgba(16, 35, 28, .13);
}

.danger-zone {
  border-color: #e3a3a3;
}

.danger-zone p {
  color: var(--muted);
}

@media (max-width: 980px) {
  .learner-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learner-record-card {
    grid-template-columns: auto 1fr;
  }

  .learner-record-signals,
  .learner-record-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .learner-filter-bar,
  .account-provision-grid {
    grid-template-columns: 1fr;
  }

  .learner-record-card {
    align-items: start;
    grid-template-columns: auto 1fr;
  }

  .learner-record-signals,
  .learner-record-actions {
    grid-column: 1 / -1;
  }

  .learner-record-actions > * {
    flex: 1 1 140px;
  }
}

/* Privacy, guardian authority and authenticator-app security */
.privacy-shell,
.security-setup-shell,
.security-settings-shell {
  display: grid;
  gap: 20px;
}

.privacy-child-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.privacy-child-card,
.required-processing-card,
.optional-consent-card,
.privacy-summary {
  border-left: 4px solid var(--brand-primary);
}

.optional-consent-card {
  border-left-color: #cc8b00;
}

.decision-summary {
  display: grid;
  gap: 0;
  margin: 12px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.decision-summary li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.decision-summary strong {
  text-align: right;
}

.consent-row {
  align-items: flex-start;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbf9;
}

.consent-row input {
  flex: 0 0 auto;
  margin-top: 4px;
}

.privacy-withdrawals {
  align-items: center;
  gap: 10px 18px;
}

.link-button {
  padding: 0;
  border: 0;
  color: #8a2a1d;
  background: transparent;
  box-shadow: none;
  text-decoration: underline;
}

.privacy-admin-row {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(420px, 1.8fr);
  gap: 20px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.privacy-admin-row p {
  margin: 5px 0;
  color: var(--muted);
}

.compact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 8px;
}

.compact-form textarea,
.compact-form button {
  grid-column: 1 / -1;
}

.status-good {
  color: #0b6846;
  font-weight: 750;
}

.status-warning {
  color: #8a3e00;
  font-weight: 750;
}

.security-auth-shell {
  min-height: min(680px, calc(100vh - 100px));
}

.mfa-setup-grid {
  align-items: start;
}

.mfa-qr {
  display: grid;
  place-items: center;
  width: min(100%, 330px);
  min-height: 260px;
  margin: 20px auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.mfa-qr img {
  display: block;
  width: 100%;
  height: auto;
}

.mfa-secret {
  display: block;
  overflow-wrap: anywhere;
  padding: 12px;
  border-radius: 10px;
  font-size: .95rem;
  letter-spacing: .08em;
  background: #eef3f0;
}

.security-code-input {
  max-width: 260px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .3em;
  text-align: center;
}

.recovery-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}

.recovery-code-grid li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  background: #f7faf8;
}

.recovery-code-grid code {
  font-size: .92rem;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .privacy-admin-row,
  .compact-form,
  .recovery-code-grid {
    grid-template-columns: 1fr;
  }

  .decision-summary li {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .decision-summary strong {
    text-align: left;
  }

  .mfa-qr {
    min-height: 220px;
  }

  .privacy-shell .panel,
  .security-setup-shell .panel,
  .security-settings-shell .panel {
    padding: 18px;
  }
}
.onboarding-form,
.onboarding-admin-shell {
  display: grid;
  gap: 1rem;
}

.onboarding-account-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin: 1rem 0;
}

.onboarding-account-card span {
  display: grid;
  gap: .25rem;
  min-width: 0;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--surface-2);
}

.onboarding-account-card strong {
  overflow-wrap: anywhere;
}

.choice-card {
  display: flex !important;
  align-items: flex-start;
  gap: .75rem;
  margin-top: .85rem;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--surface-2);
  cursor: pointer;
}

.choice-card input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .15rem;
  flex: 0 0 auto;
}

.choice-card span,
.choice-card small {
  display: block;
}

.onboarding-responsibilities {
  display: grid;
  gap: .65rem;
  padding-left: 1.3rem;
}

.policy-summary {
  max-width: 78ch;
}

.governance-task {
  display: grid;
  gap: .65rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 2px solid var(--brand-primary);
  border-radius: 1rem;
}

.onboarding-submit-bar {
  position: sticky;
  bottom: .75rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 .5rem 1.5rem rgb(0 0 0 / 12%);
}

.onboarding-submit-bar span,
.onboarding-submit-bar small {
  display: block;
}

@media (max-width: 760px) {
  .onboarding-account-card {
    grid-template-columns: 1fr 1fr;
  }

  .onboarding-submit-bar {
    align-items: stretch;
    flex-direction: column;
    bottom: .25rem;
  }

  .onboarding-submit-bar button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .onboarding-account-card {
    grid-template-columns: 1fr;
  }
}
