:root {
  --black: #050607;
  --panel: #0b0f14;
  --panel-2: #101720;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --line: rgba(255, 255, 255, 0.13);
  --aqua: #00f5ff;
  --purple: #8b5cff;
  --danger: #ff6b6b;
  --brand-font: Impact, Haettenschweiler, "Arial Black", "Franklin Gothic Heavy", "Roboto Condensed", sans-serif;
  --body-font: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

/* Parent Term 4 booking ticker */
.term4-booking-ticker {
  align-items: stretch;
  background: linear-gradient(100deg, #0a0e14 0%, #101725 50%, #171329 100%);
  border: 1px solid rgba(255, 211, 96, 0.82);
  border-radius: 5px;
  box-shadow: 0 7px 20px rgba(255, 201, 64, 0.16);
  color: #fff;
  display: flex;
  height: 46px;
  margin: -2px 0 14px;
  overflow: hidden;
  position: sticky;
  text-decoration: none;
  top: 0;
  z-index: 45;
}

.term4-booking-ticker:hover,
.term4-booking-ticker:focus-visible {
  border-color: #ffe69b;
  box-shadow: 0 0 0 3px rgba(255, 211, 96, 0.18), 0 8px 22px rgba(255, 201, 64, 0.22);
  outline: none;
}

.term4-vip-seal {
  align-items: center;
  background: linear-gradient(135deg, #fff0aa, #f2bd32);
  color: #161005;
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
  justify-content: center;
  padding: 0 14px;
  position: relative;
  z-index: 2;
}

.term4-vip-seal::after {
  background: #f2bd32;
  bottom: 0;
  content: "";
  opacity: 0.42;
  position: absolute;
  right: -1px;
  top: 0;
  width: 1px;
}

.term4-vip-seal svg { height: 17px; width: 17px; }
.term4-vip-seal strong { font-size: 0.8rem; font-weight: 950; letter-spacing: 0; }

.term4-booking-ticker-scroll {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.term4-booking-ticker-track {
  animation: term4-booking-scroll 15s linear infinite;
  display: flex;
  height: 100%;
  width: max-content;
}

.term4-booking-ticker:hover .term4-booking-ticker-track,
.term4-booking-ticker:focus-visible .term4-booking-ticker-track {
  animation-play-state: paused;
}

.term4-booking-ticker-message {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 780;
  gap: 13px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  padding: 0 28px;
  text-transform: uppercase;
  white-space: nowrap;
}

.term4-booking-ticker-message strong {
  color: #ffe18a;
  font-size: 0.82rem;
  font-weight: 950;
}

.term4-booking-ticker-message svg {
  flex: 0 0 auto;
  height: 17px;
  width: 17px;
}

.term4-ticker-cta {
  align-items: center;
  color: #73edf2;
  display: inline-flex;
  font-weight: 900;
  gap: 4px;
}

.term4-ticker-cta svg { height: 14px; width: 14px; }

.term4-booking-countdown {
  align-content: center;
  background: rgba(255, 211, 96, 0.08);
  border-left: 1px solid rgba(255, 211, 96, 0.36);
  display: grid;
  flex: 0 0 auto;
  justify-items: center;
  min-width: 146px;
  padding: 3px 12px;
  position: relative;
  z-index: 2;
}

.term4-countdown-label {
  color: #ffe18a;
  font-size: 0.55rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.term4-countdown-time {
  align-items: baseline;
  display: flex;
  gap: 2px;
  justify-content: center;
  line-height: 1;
}

.term4-countdown-time strong {
  color: #fff;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  min-width: 1.3em;
  text-align: center;
}

.term4-countdown-time small { color: #b9c5d2; font-size: 0.48rem; font-weight: 800; }
.term4-countdown-time b { color: #ffe18a; font-size: 0.65rem; }
.term4-public-label { color: #fff; font-size: 0.76rem; line-height: 1.1; text-transform: uppercase; }
.term4-booking-ticker.public-open .term4-booking-countdown { background: rgba(74, 235, 183, 0.1); }
.term4-booking-ticker.public-open .term4-countdown-label { color: #62efb4; }

@keyframes term4-booking-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 760px) {
  .term4-booking-ticker {
    height: 44px;
    margin: -4px 0 11px;
  }

  .term4-vip-seal { gap: 3px; padding: 0 8px; }
  .term4-vip-seal svg { height: 14px; width: 14px; }
  .term4-vip-seal strong { font-size: 0.68rem; }

  .term4-booking-ticker-message {
    font-size: 0.64rem;
    gap: 9px;
    padding: 0 18px;
  }

  .term4-booking-ticker-message strong { font-size: 0.69rem; }
  .term4-booking-ticker-message svg { height: 13px; width: 13px; }
  .term4-booking-countdown { min-width: 112px; padding: 3px 6px; }
  .term4-countdown-label { font-size: 0.48rem; }
  .term4-countdown-time strong { font-size: 0.75rem; }
  .term4-countdown-time small { font-size: 0.43rem; }
}

@media (prefers-reduced-motion: reduce) {
  .term4-booking-ticker-track {
    animation: none;
    transform: none;
    width: 100%;
  }

  .term4-booking-ticker-message {
    flex-basis: 100%;
  }

  .term4-booking-ticker-message + .term4-booking-ticker-message {
    display: none;
  }
}

html,
body {
  touch-action: manipulation;
}

button,
a,
summary,
label,
input,
select,
textarea,
[role="button"] {
  touch-action: manipulation;
}

/* Fast, colour-coded roll call and matching parent attendance records. */
.rollcall-feedback {
  align-items: center;
  background: rgba(78, 230, 168, 0.1);
  border: 1px solid rgba(78, 230, 168, 0.45);
  border-radius: 6px;
  color: #b9f7da;
  display: flex;
  font-size: 0.82rem;
  font-weight: 750;
  gap: 9px;
  margin: 12px 0;
  padding: 11px 13px;
}

.rollcall-feedback.error {
  background: rgba(255, 93, 111, 0.11);
  border-color: rgba(255, 93, 111, 0.52);
  color: #ffb3bd;
}

.rollcall-feedback svg {
  flex: 0 0 auto;
  height: 19px;
  width: 19px;
}

.rollcall-summary {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 14px;
}

.rollcall-summary > span {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 6px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 42px;
  padding: 7px 9px;
}

.rollcall-summary svg {
  height: 16px;
  width: 16px;
}

.rollcall-summary b {
  font-size: 0.68rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rollcall-summary strong { font-size: 0.82rem; }
.rollcall-summary .present { border-color: rgba(78, 230, 168, 0.38); color: #62efb4; }
.rollcall-summary .away { border-color: rgba(255, 209, 102, 0.42); color: #ffd873; }
.rollcall-summary .sick { border-color: rgba(255, 122, 134, 0.44); color: #ff929c; }
.rollcall-summary .injured { border-color: rgba(200, 155, 255, 0.46); color: #d0acff; }
.rollcall-summary .unmarked { color: #b5c4ce; }

.rollcall-actions .rollcall-button {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  justify-content: center;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.rollcall-actions .rollcall-button svg {
  flex: 0 0 auto;
  height: 17px;
  width: 17px;
}

.rollcall-actions .rollcall-button:active { transform: scale(0.98); }
.rollcall-actions .rollcall-button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.rollcall-actions .rollcall-button.present:not(.selected) { background: rgba(78, 230, 168, 0.09); border-color: rgba(78, 230, 168, 0.48); color: #7ef4c1; }
.rollcall-actions .rollcall-button.away:not(.selected) { background: rgba(255, 209, 102, 0.09); border-color: rgba(255, 209, 102, 0.5); color: #ffdd85; }
.rollcall-actions .rollcall-button.sick:not(.selected) { background: rgba(255, 122, 134, 0.09); border-color: rgba(255, 122, 134, 0.5); color: #ff9aa4; }
.rollcall-actions .rollcall-button.injured:not(.selected) { background: rgba(200, 155, 255, 0.1); border-color: rgba(200, 155, 255, 0.52); color: #d3b2ff; }
.rollcall-actions .rollcall-button.present.selected { background: #137b5b; border-color: #62efb4; color: #fff; }
.rollcall-actions .rollcall-button.away.selected { background: #806018; border-color: #ffd166; color: #fff; }
.rollcall-actions .rollcall-button.sick.selected { background: #8b3543; border-color: #ff7a86; color: #fff; }
.rollcall-actions .rollcall-button.injured.selected { background: #603ba0; border-color: #c89bff; color: #fff; }
.rollcall-student.saving { opacity: 0.64; }

.rollcall-status.present { background: rgba(78, 230, 168, 0.1); border-color: rgba(78, 230, 168, 0.5); color: #7ef4c1; }
.rollcall-status.away { background: rgba(255, 209, 102, 0.1); border-color: rgba(255, 209, 102, 0.52); color: #ffdd85; }
.rollcall-status.sick { background: rgba(255, 122, 134, 0.1); border-color: rgba(255, 122, 134, 0.52); color: #ff9aa4; }
.rollcall-status.injured { background: rgba(200, 155, 255, 0.11); border-color: rgba(200, 155, 255, 0.54); color: #d3b2ff; }

.family-attendance-record {
  align-items: center;
  background: #14222c;
  border: 1px solid var(--line-strong);
  border-left: 4px solid #9fb1bf;
  border-radius: 6px;
  display: flex;
  gap: 11px;
  margin-top: 12px;
  padding: 11px 13px;
}

.family-attendance-record > svg {
  flex: 0 0 auto;
  height: 22px;
  width: 22px;
}

.family-attendance-record span { display: grid; gap: 2px; }
.family-attendance-record small { color: #b8c6d0; font-size: 0.72rem; }
.family-attendance-record strong { color: #fff; font-size: 0.92rem; }
.family-attendance-record.present { border-left-color: #4ee6a8; color: #62efb4; }
.family-attendance-record.away { border-left-color: #ffd166; color: #ffdd85; }
.family-attendance-record.sick { border-left-color: #ff7a86; color: #ff9aa4; }
.family-attendance-record.injured { border-left-color: #c89bff; color: #d3b2ff; }

@media (max-width: 820px) {
  .rollcall-summary {
    display: flex;
    margin-left: -2px;
    margin-right: -2px;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: none;
  }

  .rollcall-summary::-webkit-scrollbar { display: none; }
  .rollcall-summary > span { flex: 0 0 116px; }
}

/* Term 4 roster setup */
.term4-command-button {
  align-items: center;
  background: linear-gradient(105deg, #0b3440 0%, #14223d 58%, #302151 100%);
  border: 1px solid rgba(157, 112, 255, 0.75);
  border-left: 5px solid var(--aqua);
  color: #fff;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 88px;
  padding: 15px 18px;
  text-align: left;
  width: 100%;
}

.term4-command-button:hover,
.term4-command-button:focus-visible { border-color: #b59aff; box-shadow: 0 0 0 3px rgba(157, 112, 255, 0.17); }
.term4-command-icon { align-items: center; background: rgba(45, 225, 234, 0.14); border: 1px solid rgba(45, 225, 234, 0.55); display: flex; height: 50px; justify-content: center; width: 50px; }
.term4-command-icon svg { color: var(--aqua); height: 25px; width: 25px; }
.term4-command-button > span:nth-child(2) { display: grid; gap: 2px; }
.term4-command-button small { color: #ffe18a; font-size: 0.64rem; font-weight: 850; text-transform: uppercase; }
.term4-command-button strong { font-size: 1.05rem; }
.term4-command-button em { color: #c4d1db; font-size: 0.72rem; font-style: normal; }
.term4-command-open { align-items: center; color: #fff; display: flex; font-size: 0.75rem; font-weight: 850; gap: 5px; }
.term4-command-open svg { height: 18px; width: 18px; }

.term4-command-centre { display: grid; gap: 18px; }
.term4-command-hero {
  background: linear-gradient(120deg, #0d3440 0%, #121f36 55%, #271c47 100%);
  border: 1px solid rgba(91, 222, 229, 0.48);
  border-left: 6px solid var(--aqua);
  color: #fff;
  padding: 18px 20px 20px;
}
.term4-back-button { align-items: center; background: transparent; border: 0; color: #bcecf0; display: inline-flex; font-size: 0.7rem; font-weight: 800; gap: 5px; margin: 0 0 14px; padding: 0; }
.term4-back-button svg { height: 16px; width: 16px; }
.term4-command-hero h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); margin: 4px 0 6px; }
.term4-command-hero > div > p:last-child { color: #c4d0d9; line-height: 1.5; margin: 0; max-width: 720px; }
.term4-command-metrics { display: grid; gap: 1px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; }
.term4-command-metrics span { background: rgba(4, 14, 22, 0.58); border-top: 3px solid #32dce6; display: grid; gap: 2px; min-height: 76px; padding: 12px 14px; }
.term4-command-metrics span:nth-child(2) { border-top-color: #9d70ff; }
.term4-command-metrics span:nth-child(3) { border-top-color: #4ee6a8; }
.term4-command-metrics span:nth-child(3).attention { border-top-color: #ff7a86; }
.term4-command-metrics span:nth-child(4) { border-top-color: #ffd166; }
.term4-command-metrics strong { font-size: 1.45rem; }
.term4-command-metrics small { color: #c1ced7; font-size: 0.65rem; font-weight: 700; }

.term4-class-overview { background: #0b1822; border: 1px solid var(--line); padding: 18px; }
.term4-section-heading { align-items: end; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 14px; }
.term4-section-heading h3 { font-size: 1.2rem; margin: 3px 0; }
.term4-section-heading p:not(.panel-kicker) { color: #b9c6d0; font-size: 0.74rem; margin: 0; }
.term4-section-heading > span { border: 1px solid rgba(45, 225, 234, 0.45); color: var(--aqua); font-size: 0.7rem; font-weight: 800; padding: 7px 10px; }
.term4-class-board { display: grid; gap: 10px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.term4-day-column { border: 1px solid #314552; min-width: 0; }
.term4-day-column > header { align-items: center; background: #152a36; border-bottom: 1px solid #314552; display: flex; justify-content: space-between; min-height: 43px; padding: 8px 10px; }
.term4-day-column > header strong { font-size: 0.72rem; text-transform: uppercase; }
.term4-day-column > header span { align-items: center; background: var(--aqua); border-radius: 50%; color: #06141c; display: flex; font-size: 0.65rem; font-weight: 900; height: 24px; justify-content: center; width: 24px; }
.term4-day-column:nth-child(2) > header { background: #24213c; }
.term4-day-column:nth-child(3) > header { background: #142d3f; }
.term4-day-column:nth-child(4) > header { background: #322039; }
.term4-day-column:nth-child(5) > header { background: #302b1a; }
.term4-day-column > div { display: grid; }
.term4-class-card { align-items: center; background: #0d171e; border: 0; border-left: 4px solid #4ee6a8; color: #fff; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; min-height: 75px; padding: 10px; text-align: left; width: 100%; }
.term4-class-card + .term4-class-card { border-top: 1px solid #263944; }
.term4-class-card:hover,
.term4-class-card.selected { background: #15303a; box-shadow: inset 0 0 0 1px var(--aqua); }
.term4-class-card.nearly-full { border-left-color: #ffd166; }
.term4-class-card.full { border-left-color: #ff7a86; }
.term4-class-card-main { display: grid; gap: 1px; min-width: 0; }
.term4-class-card-main small { color: var(--aqua); font-size: 0.65rem; font-weight: 900; }
.term4-class-card-main strong { font-size: 0.76rem; }
.term4-class-card-main em { color: #aebbc5; font-size: 0.6rem; font-style: normal; }
.term4-capacity { display: grid; gap: 1px; justify-items: end; }
.term4-capacity b { font-size: 0.76rem; }
.term4-capacity small { color: #71e9b5; font-size: 0.52rem; font-weight: 850; white-space: nowrap; }
.term4-class-card.nearly-full .term4-capacity small { color: #ffe18a; }
.term4-class-card.full .term4-capacity small { color: #ff9aa4; text-transform: uppercase; }

.term4-vip-tools { align-items: center; background: #171d34; border: 1px solid rgba(157, 112, 255, 0.55); color: #fff; display: flex; justify-content: space-between; min-height: 68px; padding: 12px 16px; text-align: left; width: 100%; }
.term4-vip-tools > span { align-items: center; display: flex; gap: 11px; }
.term4-vip-tools > span > svg { color: #ffe18a; height: 23px; width: 23px; }
.term4-vip-tools > span > span { display: grid; gap: 2px; }
.term4-vip-tools strong { font-size: 0.82rem; }
.term4-vip-tools small { color: #bfcbd5; font-size: 0.66rem; }
.term4-vip-tools > svg { color: #aa8cff; height: 19px; width: 19px; }

.term4-roster-builder {
  background: #0d1c27;
  border: 1px solid rgba(45, 225, 234, 0.52);
  border-left: 5px solid var(--aqua);
  border-radius: 6px;
  color: var(--text);
  margin-bottom: 18px;
  overflow: hidden;
  padding: 20px;
}

.term4-builder-heading {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.term4-builder-heading h3 {
  font-size: 1.35rem;
  margin: 3px 0 4px;
}

.term4-builder-heading p:not(.panel-kicker) {
  color: #bdcad3;
  line-height: 1.45;
  margin: 0;
}

.term4-builder-total {
  align-items: center;
  background: #1d2440;
  border: 1px solid rgba(157, 112, 255, 0.55);
  border-radius: 5px;
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
  min-height: 52px;
  padding: 8px 13px;
}

.term4-builder-total strong {
  color: #fff;
  font-size: 1.35rem;
}

.term4-builder-total span {
  color: #c9d3da;
  font-size: 0.72rem;
  max-width: 58px;
}

.term4-loader {
  animation: term4-loader-spin 720ms linear infinite;
  border: 3px solid rgba(45, 225, 234, 0.2);
  border-radius: 50%;
  border-top-color: var(--aqua);
  height: 32px;
  width: 32px;
}

@keyframes term4-loader-spin {
  to { transform: rotate(360deg); }
}

.term4-coach-note {
  align-items: center;
  background: #171d34;
  border-left: 4px solid #ffd166;
  display: flex;
  gap: 11px;
  margin: 17px -20px 0;
  padding: 11px 20px;
}

.term4-coach-note > svg {
  color: #ffd166;
  flex: 0 0 auto;
  height: 22px;
  width: 22px;
}

.term4-coach-note span { display: grid; gap: 2px; }
.term4-coach-note strong { color: #fff; font-size: 0.85rem; }
.term4-coach-note small { color: #c4cfda; font-size: 0.7rem; }

.term4-day-counts {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 -20px;
}

.term4-day-counts span {
  align-items: center;
  color: #b9c8d2;
  display: flex;
  font-size: 0.65rem;
  gap: 6px;
  justify-content: center;
  min-height: 42px;
  text-transform: uppercase;
}

.term4-day-counts span + span { border-left: 1px solid var(--line); }
.term4-day-counts strong { color: var(--aqua); font-size: 0.9rem; }

.term4-roster-form {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.term4-flow-step {
  min-width: 0;
  padding: 20px 20px 18px 0;
}

.term4-flow-step + .term4-flow-step {
  border-left: 1px solid var(--line);
  padding-left: 20px;
  padding-right: 0;
}

.term4-flow-step > label {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 8px;
  margin-bottom: 9px;
}

.term4-flow-step > label > span {
  align-items: center;
  background: var(--aqua);
  border-radius: 50%;
  color: #06141c;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.term4-search-wrap {
  align-items: center;
  display: flex;
  position: relative;
}

.term4-search-wrap > svg {
  color: #aebdca;
  height: 19px;
  left: 13px;
  pointer-events: none;
  position: absolute;
  width: 19px;
}

.term4-search-wrap input,
.term4-flow-step select {
  background: #132632;
  border: 1px solid #547181;
  border-radius: 4px;
  color: #fff;
  font: inherit;
  min-height: 48px;
  width: 100%;
}

.term4-search-wrap input { padding: 0 13px 0 42px; }
.term4-flow-step select { padding: 0 38px 0 13px; }
.term4-search-wrap input:focus,
.term4-flow-step select:focus { border-color: var(--aqua); outline: 3px solid rgba(45, 225, 234, 0.18); }

.term4-all-riders-note {
  color: #b9c7d1;
  font-size: 0.64rem;
  margin: 7px 0;
}

.term4-rider-results {
  border: 1px solid var(--line);
  border-top: 0;
  max-height: 236px;
  overflow-y: auto;
}

.term4-rider-result {
  align-items: center;
  background: #0a1720;
  border: 0;
  color: #fff;
  display: grid;
  gap: 2px 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 54px;
  padding: 8px 11px;
  text-align: left;
  width: 100%;
}

.term4-rider-result + .term4-rider-result { border-top: 1px solid var(--line); }
.term4-rider-result:hover,
.term4-rider-result.selected { background: #12313b; }
.term4-rider-result span { font-size: 0.8rem; font-weight: 800; }
.term4-rider-result small { color: #b9c7d1; font-size: 0.65rem; grid-column: 1; }
.term4-rider-result svg { color: var(--aqua); grid-column: 2; grid-row: 1 / 3; height: 18px; width: 18px; }

.term4-search-empty {
  color: #aebdca;
  font-size: 0.72rem;
  margin: 0;
  padding: 13px;
}

.term4-selected-rider {
  align-items: center;
  background: rgba(78, 230, 168, 0.09);
  border: 1px solid rgba(78, 230, 168, 0.45);
  display: grid;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-top: 9px;
  padding: 9px 11px;
}

.term4-selected-rider > svg { color: #62efb4; height: 20px; width: 20px; }
.term4-selected-rider > span { display: grid; gap: 2px; min-width: 0; }
.term4-selected-rider strong { color: #fff; font-size: 0.78rem; }
.term4-selected-rider small { color: #c1cdd5; font-size: 0.64rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term4-selected-rider button { background: transparent; border: 0; color: var(--aqua); font-size: 0.68rem; font-weight: 800; }

.term4-class-preview {
  border-left: 5px solid #9d70ff;
  display: grid;
  gap: 3px 9px;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 10px 0;
  padding: 11px 12px;
}

.term4-class-preview.level-1 { border-left-color: #45d1ee; }
.term4-class-preview.level-2 { border-left-color: #ffd166; }
.term4-class-preview.level-3 { border-left-color: #ff8b45; }
.term4-class-preview.level-4 { border-left-color: #4ee6a8; }
.term4-class-preview.level-5 { border-left-color: #7697ff; }
.term4-class-preview > span { grid-row: 1 / 3; }
.term4-class-preview strong { align-self: end; color: #fff; font-size: 0.82rem; }
.term4-class-preview small { color: #b9c7d0; font-size: 0.68rem; }

.term4-add-button {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: center;
  min-height: 50px;
  width: 100%;
}

.term4-add-button svg { height: 20px; width: 20px; }
.term4-add-button:disabled { cursor: not-allowed; filter: grayscale(0.7); opacity: 0.45; }

.term4-roster-feedback {
  align-items: center;
  border-left: 4px solid #4ee6a8;
  display: flex;
  font-size: 0.75rem;
  gap: 9px;
  margin: 0 -20px;
  padding: 11px 20px;
}

.term4-roster-feedback.success { background: rgba(78, 230, 168, 0.09); color: #85f4c6; }
.term4-roster-feedback.error { background: rgba(255, 122, 134, 0.1); border-left-color: #ff7a86; color: #ff9aa4; }
.term4-roster-feedback svg { flex: 0 0 auto; height: 19px; width: 19px; }

.term4-current-class-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  padding-top: 16px;
}

.term4-current-class-list h4 { font-size: 0.9rem; line-height: 1.35; margin: 3px 0 0; }
.term4-enrollment-list { border: 1px solid var(--line); }
.term4-enrollment-list > div {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(120px, 1fr) minmax(210px, 1.2fr) auto;
  min-height: 42px;
  padding: 6px 9px 6px 12px;
}
.term4-enrollment-list > div + div { border-top: 1px solid var(--line); }
.term4-enrollment-list > div > span { color: #fff; font-size: 0.75rem; font-weight: 700; }
.term4-enrollment-list label { min-width: 0; }
.term4-enrollment-list select { background: #132632; border: 1px solid #496674; color: #fff; font: inherit; font-size: 0.65rem; min-height: 36px; padding: 4px 28px 4px 8px; width: 100%; }
.term4-enrollment-list button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #ff9aa4;
  display: inline-flex;
  font-size: 0.65rem;
  gap: 4px;
  min-height: 34px;
}
.term4-enrollment-list button svg { height: 15px; width: 15px; }

@media (max-width: 820px) {
  .term4-command-button { min-height: 80px; padding: 12px; }
  .term4-command-open { font-size: 0; }
  .term4-command-open svg { height: 22px; width: 22px; }
  .term4-command-hero { padding: 15px 13px; }
  .term4-command-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .term4-command-metrics span { min-height: 66px; padding: 9px 11px; }
  .term4-class-overview { padding: 14px 12px; }
  .term4-class-board { grid-template-columns: 1fr; }
  .term4-day-column > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .term4-day-column > div .term4-class-card:nth-child(2) { border-top: 0; }
  .term4-class-card { min-height: 70px; }
  .term4-roster-builder { margin-bottom: 12px; padding: 15px 13px; }
  .term4-builder-heading { align-items: flex-start; }
  .term4-builder-heading h3 { font-size: 1.08rem; }
  .term4-builder-heading p:not(.panel-kicker) { font-size: 0.7rem; }
  .term4-builder-total { display: grid; gap: 0; justify-items: center; min-height: 48px; padding: 6px 9px; }
  .term4-builder-total span { font-size: 0.55rem; max-width: none; white-space: nowrap; }
  .term4-coach-note { margin: 14px -13px 0; padding: 10px 13px; }
  .term4-day-counts { margin: 0 -13px; }
  .term4-day-counts span { flex-direction: column; gap: 0; min-height: 46px; }
  .term4-roster-form { grid-template-columns: 1fr; }
  .term4-flow-step { padding: 15px 0; }
  .term4-flow-step + .term4-flow-step { border-left: 0; border-top: 1px solid var(--line); padding: 15px 0; }
  .term4-rider-results { max-height: 190px; }
  .term4-selected-rider { grid-template-columns: auto minmax(0, 1fr); }
  .term4-selected-rider button { grid-column: 2; justify-self: start; padding: 0; }
  .term4-roster-feedback { margin: 0 -13px; padding: 10px 13px; }
  .term4-current-class-list { gap: 11px; grid-template-columns: 1fr; padding-top: 14px; }
  .term4-enrollment-list > div { grid-template-columns: minmax(0, 1fr) auto; padding: 9px; }
  .term4-enrollment-list > div > span { grid-column: 1 / -1; }
  .term4-enrollment-list label { grid-column: 1; }
  .term4-enrollment-list button { grid-column: 2; }
  .term4-enrollment-list button span { display: none; }
  .term4-enrollment-list button { justify-content: center; min-width: 40px; }
}

@media (max-width: 430px) {
  .term4-command-icon { height: 44px; width: 44px; }
  .term4-command-button strong { font-size: 0.88rem; }
  .term4-command-button em { font-size: 0.64rem; }
  .term4-section-heading { align-items: flex-start; }
  .term4-section-heading > span { display: none; }
  .term4-day-column > div { grid-template-columns: 1fr; }
  .term4-day-column > div .term4-class-card:nth-child(2) { border-top: 1px solid #263944; }
}

@media (prefers-reduced-motion: reduce) {
  .term4-loader { animation: none; }
}

@media (max-width: 430px) {
  .rollcall-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rollcall-actions .rollcall-button.present { grid-column: auto; }
  .rollcall-actions .rollcall-button { min-height: 48px; }
  .rollcall-feedback { align-items: flex-start; }
}

/* Term 4 priority release and rider grading */
.term-priority-shortcut {
  border-color: rgba(159, 96, 255, 0.72) !important;
  background: linear-gradient(135deg, rgba(20, 222, 229, 0.16), rgba(139, 82, 255, 0.2)) !important;
}

.term-priority-manager {
  border-color: rgba(35, 220, 224, 0.48);
  background: linear-gradient(115deg, rgba(7, 32, 39, 0.96), rgba(22, 16, 45, 0.96));
}

.term-priority-manager-head,
.family-level-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.term-priority-manager-head h3,
.family-level-heading h3 {
  margin: 3px 0 5px;
}

.term-priority-manager-head p:last-child,
.family-level-heading > span {
  color: var(--muted);
}

.term-priority-manager-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: 18px;
  margin-top: 20px;
}

.term-priority-form,
.term-priority-preview {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 14, 20, 0.82);
}

.term-priority-form label {
  display: grid;
  gap: 8px;
  font-weight: 750;
}

.term-priority-form input {
  min-height: 50px;
}

.term-priority-recipients {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(32, 220, 225, 0.28);
  background: rgba(18, 198, 205, 0.08);
}

.term-priority-recipients > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--aqua);
}

.term-priority-recipients svg {
  width: 24px;
  height: 24px;
}

.term-priority-recipients div,
.term-priority-preview > div {
  display: grid;
  gap: 2px;
}

.term-priority-recipients small,
.term-priority-safety,
.term-priority-last-sent,
.term-priority-preview small {
  color: var(--muted);
}

.term-priority-preview {
  align-content: start;
  border-color: rgba(153, 91, 255, 0.38);
  background: linear-gradient(145deg, rgba(11, 23, 31, 0.96), rgba(29, 21, 55, 0.92));
}

.term-priority-preview > span:first-child {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.term-priority-preview h4 {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.term-priority-preview p {
  margin: 0;
  color: #d9e2e8;
  line-height: 1.55;
}

.term-priority-preview > div {
  padding: 12px;
  border-left: 3px solid var(--aqua);
  background: rgba(255, 255, 255, 0.04);
}

.preview-action {
  display: grid;
  min-height: 46px;
  place-items: center;
  color: #041014;
  font-weight: 900;
  background: linear-gradient(100deg, var(--aqua), #8e58ff);
}

.term-priority-manager-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 11px 13px;
  color: #d5fff5;
  border: 1px solid rgba(57, 209, 147, 0.5);
  background: rgba(35, 160, 113, 0.16);
}

.term-priority-manager-status.error {
  color: #ffd8dc;
  border-color: rgba(255, 100, 113, 0.55);
  background: rgba(186, 44, 58, 0.18);
}

.family-level-summary {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(41, 211, 218, 0.34);
  border-radius: 8px;
  background: linear-gradient(120deg, rgba(8, 25, 32, 0.96), rgba(15, 19, 34, 0.96));
}

.family-level-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.family-level-list article {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.family-level-list article > strong {
  font-size: 1.05rem;
}

.family-level-list article > div {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.family-level-list article span {
  background: rgba(5, 14, 22, 0.62);
  border: 1px solid rgba(151, 183, 204, 0.2);
  border-radius: 6px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 8px;
  min-width: 0;
  padding: 9px;
}

.family-level-list article b {
  color: #fff;
  white-space: nowrap;
}

.family-level-list article small {
  grid-column: 2;
  overflow: hidden;
  color: var(--muted);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-grade-panel {
  display: grid;
  grid-template-columns: minmax(190px, 0.45fr) minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(33, 220, 225, 0.42);
  background: linear-gradient(120deg, rgba(13, 45, 51, 0.7), rgba(19, 23, 40, 0.72));
}

.student-grade-panel > div {
  display: grid;
  align-content: start;
  gap: 6px;
}

.student-grade-panel > div > span,
.student-grade-panel > div > small {
  color: var(--muted);
}

.student-grade-panel > div > strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
}

.student-grade-panel label {
  display: grid;
  gap: 7px;
}

.term-priority-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: auto;
  color: #fff;
  border: 1px solid rgba(35, 226, 231, 0.58);
  border-radius: 8px;
  background: #071016;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
}

.term-priority-dialog::backdrop {
  background: rgba(0, 4, 7, 0.84);
  backdrop-filter: blur(7px);
}

.term-priority-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(24px, 5vw, 42px);
  background: radial-gradient(circle at 100% 0%, rgba(132, 79, 255, 0.22), transparent 42%), linear-gradient(145deg, #091820, #0d0c19);
}

.term-priority-card h2 {
  max-width: 500px;
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 0.98;
}

.term-priority-card > p:not(.panel-kicker) {
  margin: 0;
  color: #d8e3e8;
  font-size: 1.02rem;
  line-height: 1.55;
}

.term-priority-badge {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: #001012;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  background: var(--aqua);
}

.term-priority-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.36);
}

.term-priority-levels {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(37, 214, 220, 0.32);
  background: rgba(10, 35, 40, 0.74);
}

.term-priority-levels > small {
  color: var(--aqua);
  font-weight: 800;
  text-transform: uppercase;
}

.term-priority-levels > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.term-priority-levels b {
  color: #fff;
}

.term-priority-action {
  justify-content: center;
}

.term-priority-later {
  min-height: 44px;
  color: #d7e0e5;
  border: 1px solid var(--line);
  background: transparent;
}

.term-priority-feedback {
  min-height: 1.2em;
  color: #ff8c95;
  font-size: 0.86rem;
}

.notification-row .mini-action,
.alert-action-link {
  width: max-content;
  margin-top: 8px;
}

@media (max-width: 760px) {
  .term-priority-manager-grid,
  .student-grade-panel {
    grid-template-columns: 1fr;
  }

  .term-priority-manager-head,
  .family-level-heading {
    align-items: flex-start;
  }

  .family-level-heading > span {
    max-width: 120px;
    text-align: right;
  }

  .family-level-list { grid-template-columns: 1fr; }
  .family-level-list article > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family-level-list article span { padding: 8px; }

  .term-priority-card {
    padding: 26px 20px 22px;
  }

  .term-priority-badge {
    max-width: calc(100% - 54px);
  }
}

/* JKCommunity role experience refresh */
:root {
  --body-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --panel: #0b1014;
  --panel-2: #111820;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.14);
}

body {
  font-family: var(--body-font);
  font-size: 16px;
}

button,
input,
select,
textarea,
summary {
  font-family: var(--body-font);
  letter-spacing: 0;
}

button,
summary {
  font-style: normal;
  font-weight: 800;
}

.app-view {
  background: #06080b;
  grid-template-columns: 232px minmax(0, 1fr);
}

.sidebar {
  gap: 20px;
  padding: 22px 18px;
}

.sidebar nav {
  gap: 4px;
}

.sidebar nav button {
  border-radius: 4px;
  font-family: var(--body-font);
  font-size: 0.94rem;
  font-style: normal;
  font-weight: 800;
  min-height: 46px;
  padding: 0 14px;
  text-transform: none;
}

.sidebar nav button.active {
  background: var(--aqua);
  box-shadow: inset 4px 0 0 var(--purple);
  color: #020405;
}

.workspace {
  margin: 0 auto;
  max-width: 1680px;
  padding: 24px clamp(18px, 3vw, 42px) 56px;
  width: 100%;
}

.workspace-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  padding-bottom: 16px;
}

.workspace-header h2 {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 0.95;
  margin-bottom: 0;
}

.wide-card,
.feature-card,
.shop-card,
.welcome-card,
.parent-now-card,
.attention-card,
.coach-next-action,
.page-intro {
  border-radius: 5px;
}

.wide-card,
.feature-card,
.shop-card {
  background: var(--panel);
  border-color: var(--line);
}

.wide-card p,
.feature-card p,
.shop-card p,
.page-intro p,
.settings-section p,
.parent-now-card p,
.coach-next-action p {
  font-family: var(--body-font);
  font-size: 0.98rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.55;
  text-transform: none;
}

.primary-action,
.primary-link,
.mini-action,
.rainout-session-button,
.rollcall-button,
.logout-action,
.outline-action {
  border-radius: 4px;
  font-family: var(--body-font);
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0;
  min-height: 46px;
  text-transform: none;
}

.status-pill {
  border-radius: 3px;
  font-family: var(--body-font);
  font-style: normal;
  font-weight: 800;
  min-height: 38px;
}

.page-intro {
  align-items: flex-end;
  background: linear-gradient(110deg, rgba(0, 245, 255, 0.11), rgba(139, 92, 255, 0.07));
  border: 1px solid rgba(0, 245, 255, 0.24);
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: clamp(18px, 3vw, 30px);
}

.page-intro h3 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
  margin-bottom: 8px;
}

.page-intro p {
  margin-bottom: 0;
  max-width: 720px;
}

.compact-page-intro {
  display: block;
}

.parent-now-card {
  background: linear-gradient(110deg, #082a2e, #111225 76%);
  border: 1px solid rgba(0, 245, 255, 0.42);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 16px;
  padding: clamp(20px, 4vw, 36px);
}

.parent-now-card.rained-out {
  background: #16202a;
  border-color: #77b7d8;
}

.parent-now-card h3 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
  margin-bottom: 8px;
}

.parent-now-status {
  align-self: start;
  background: var(--aqua);
  border-radius: 3px;
  color: #031014;
  font-size: 1rem;
  padding: 10px 14px;
}

.rained-out .parent-now-status {
  background: #b8dff3;
}

.parent-now-facts {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.parent-now-facts span,
.makeup-callout {
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px;
}

.parent-now-facts small,
.makeup-callout small {
  color: var(--muted);
  display: block;
  font-size: 0.8rem;
  margin-bottom: 3px;
}

.parent-now-facts strong,
.makeup-callout strong {
  display: block;
  font-size: 1.05rem;
}

.makeup-callout {
  grid-column: 1 / -1;
}

.makeup-callout p {
  margin: 6px 0 0;
}

.parent-home-actions,
.admin-action-row,
.program-links {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.parent-home-actions button,
.admin-action-row button,
.attention-list button {
  background: var(--panel-2);
  border: 1px solid rgba(0, 245, 255, 0.24);
  color: var(--white);
  min-height: 74px;
  padding: 14px;
  text-align: left;
}

.parent-home-actions span,
.admin-action-row span,
.coach-next-action span,
.parent-latest-update > span {
  color: var(--aqua);
  display: block;
  font-size: 0.76rem;
  font-weight: 850;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.parent-home-actions strong,
.admin-action-row strong {
  font-size: 1rem;
}

.parent-latest-update,
.attention-card,
.coach-next-action {
  background: var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 16px;
  padding: 18px;
}

.parent-latest-update.important {
  border-left: 4px solid var(--aqua);
}

.parent-latest-update strong {
  display: block;
  font-size: 1.15rem;
}

.parent-latest-update p {
  color: var(--muted);
  margin: 6px 0 12px;
}

.compact-notifications .parent-notification-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.attention-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.attention-list button {
  display: grid;
  gap: 5px;
}

.attention-list button > strong {
  color: var(--aqua);
  font-family: var(--brand-font);
  font-size: 2.4rem;
  font-style: italic;
  line-height: 1;
}

.attention-list button > span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.coach-next-action {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.coach-next-action strong {
  display: block;
  font-size: 1.25rem;
}

.coach-next-action p {
  margin: 5px 0 0;
}

.program-structure {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.program-structure span {
  background: var(--panel-2);
  border-left: 3px solid var(--aqua);
  color: var(--muted);
  padding: 13px;
}

.program-structure strong {
  color: var(--white);
  display: block;
  margin-bottom: 3px;
}

.family-schedule-lessons {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.calendar-week {
  border-radius: 4px;
  overflow: hidden;
}

.calendar-week > summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 6px 14px;
  grid-template-columns: auto 1fr auto;
  list-style: none;
  min-height: 64px;
  padding: 14px;
}

.calendar-week > summary::-webkit-details-marker {
  display: none;
}

.calendar-week > summary::after {
  color: var(--aqua);
  content: "+";
  font-size: 1.35rem;
  grid-column: 4;
  grid-row: 1 / 3;
}

.calendar-week[open] > summary::after {
  content: "−";
}

.calendar-week > summary span,
.calendar-week > summary strong {
  font-family: var(--brand-font);
  font-style: italic;
  text-transform: uppercase;
}

.calendar-week > summary small {
  color: var(--muted);
  grid-column: 2;
}

.calendar-week.away {
  background: #15181d;
  border-color: rgba(255, 255, 255, 0.2);
}

.calendar-week.makeup {
  background: rgba(139, 92, 255, 0.1);
  border-color: rgba(139, 92, 255, 0.55);
}

.key-item.makeup {
  background: rgba(139, 92, 255, 0.18);
  border-color: var(--purple);
}

.calendar-special-copy {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 14px 0 0;
}

.calendar-day.makeup-day {
  background: rgba(139, 92, 255, 0.18);
  border-color: var(--purple);
}

.makeup-sessions span {
  border-left-color: var(--purple);
}

.cancellation-list {
  display: grid;
  gap: 8px;
}

.cancellation-row {
  align-items: center;
  background: var(--panel-2);
  border-left: 3px solid var(--danger);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  padding: 14px;
}

.cancellation-row.resolved {
  border-left-color: var(--aqua);
}

.cancellation-row span,
.cancellation-row small {
  color: var(--muted);
  display: block;
  font-size: 0.8rem;
}

.cancellation-row p {
  margin: 4px 0 0;
}

.class-status-bar {
  align-items: flex-start;
}

.rain-workflow {
  border: 1px solid rgba(119, 183, 216, 0.42);
  min-width: min(100%, 440px);
}

.rain-workflow > summary {
  color: #b8dff3;
  cursor: pointer;
  list-style: none;
  min-height: 46px;
  padding: 12px 14px;
}

.rain-workflow form {
  border-top: 1px solid rgba(119, 183, 216, 0.3);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.rain-workflow label,
.session-note-form label,
.settings-inline-form label {
  color: var(--muted);
  display: grid;
  font-size: 0.82rem;
  font-weight: 750;
  gap: 5px;
}

.rain-workflow input,
.rain-workflow textarea,
.session-note-form textarea,
.settings-inline-form input {
  background: #070b0f;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--white);
  min-height: 44px;
  padding: 10px;
}

.coach-rain-actions {
  display: grid;
  gap: 9px;
  max-width: 520px;
  width: 100%;
}

.makeup-availability-disclosure {
  background: rgba(7, 17, 24, 0.72);
  border: 1px solid rgba(25, 215, 229, 0.28);
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
}

.makeup-availability-disclosure > summary {
  align-items: center;
  color: var(--white);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  list-style: none;
  min-height: 54px;
  padding: 9px 12px;
}

.makeup-availability-disclosure > summary::-webkit-details-marker,
.makeup-custom-date > summary::-webkit-details-marker {
  display: none;
}

.makeup-availability-disclosure > summary::after {
  color: var(--aqua);
  content: "+";
  font-size: 1.1rem;
  grid-column: 3;
}

.makeup-availability-disclosure[open] > summary::after {
  content: "−";
}

.makeup-availability-disclosure > summary svg {
  color: var(--aqua);
  height: 21px;
  width: 21px;
}

.makeup-availability-disclosure > summary strong,
.makeup-availability-disclosure > summary small {
  display: block;
}

.makeup-availability-disclosure > summary strong {
  font-size: 0.78rem;
}

.makeup-availability-disclosure > summary small {
  color: var(--muted);
  font-size: 0.64rem;
  margin-top: 2px;
}

.makeup-availability {
  background: rgba(5, 13, 19, 0.8);
  border: 1px solid rgba(25, 215, 229, 0.22);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 11px;
  width: 100%;
}

.makeup-availability-disclosure > .makeup-availability {
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  border-right: 0;
}

.makeup-availability-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.makeup-availability-head span,
.makeup-availability-head strong {
  display: block;
}

.makeup-availability-head > div > span {
  color: var(--aqua);
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
}

.makeup-availability-head > div > strong {
  font-size: 0.8rem;
  margin-top: 2px;
}

.makeup-time-chip {
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.44);
  border-radius: 4px;
  color: #d3c8ff;
  flex: 0 0 auto;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 5px 7px;
}

.makeup-availability > p {
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.45;
  margin: 0;
}

.makeup-date-options {
  display: grid;
  gap: 7px;
  grid-auto-columns: minmax(140px, 1fr);
  grid-auto-flow: column;
  overflow-x: auto;
  padding: 2px 1px 7px;
  scroll-snap-type: x proximity;
}

.makeup-date-option {
  background: #0b141c;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--white);
  display: grid;
  gap: 3px;
  min-height: 76px;
  padding: 10px;
  scroll-snap-align: start;
  text-align: left;
}

button.makeup-date-option {
  cursor: pointer;
}

.makeup-date-option:hover,
.makeup-date-option:focus-visible {
  border-color: rgba(25, 215, 229, 0.72);
}

.makeup-date-option.recommended {
  border-color: rgba(139, 92, 246, 0.62);
}

.makeup-date-option.selected {
  background: rgba(25, 215, 229, 0.13);
  border-color: var(--aqua);
  box-shadow: inset 3px 0 0 var(--aqua);
}

.makeup-date-option strong {
  font-size: 0.78rem;
}

.makeup-date-option span {
  color: var(--muted);
  font-size: 0.62rem;
}

.makeup-date-option small {
  color: #bfaeff;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.makeup-date-option.selected small {
  color: var(--aqua);
}

.makeup-date-empty {
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  padding: 12px;
}

.makeup-selected-date {
  align-items: center;
  background: rgba(25, 215, 229, 0.08);
  border-left: 3px solid var(--aqua);
  color: var(--muted);
  display: flex;
  font-size: 0.7rem;
  gap: 6px;
  justify-content: space-between;
  min-height: 40px;
  padding: 8px 10px;
}

.makeup-selected-date strong {
  color: var(--white);
}

.makeup-custom-date {
  border: 1px solid var(--line);
  border-radius: 4px;
}

.makeup-custom-date > summary {
  color: #b8dff3;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 760;
  list-style: none;
  min-height: 40px;
  padding: 10px;
}

.makeup-custom-date > summary::after {
  content: "+";
  float: right;
}

.makeup-custom-date[open] > summary::after {
  content: "−";
}

.makeup-custom-date > label {
  border-top: 1px solid var(--line);
  padding: 10px;
}

.rain-resolution {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.rain-resolution > div:first-child {
  margin-right: auto;
}

.rain-resolution small,
.rain-resolution span {
  color: var(--muted);
  display: block;
}

.coach-task-item {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.coach-task-item > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  list-style: none;
  min-height: 68px;
  padding: 14px;
}

.coach-task-item > summary::-webkit-details-marker {
  display: none;
}

.coach-task-item > summary span {
  color: var(--aqua);
  font-size: 0.78rem;
}

.coach-task-item > summary h4 {
  font-size: 1.25rem;
  margin: 3px 0 0;
}

.coach-task-item > summary > strong {
  color: var(--muted);
  white-space: nowrap;
}

.training-plan-body {
  border-top: 1px solid var(--line);
  padding: 14px;
}

.training-brief {
  background: rgba(0, 245, 255, 0.06);
  border-left: 3px solid var(--aqua);
  margin: 0 0 12px;
  padding: 12px;
}

.training-checklist {
  display: grid;
  gap: 7px;
}

.training-checklist label {
  align-items: center;
  background: #090d11;
  border: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
}

.training-checklist input {
  accent-color: var(--aqua);
  height: 22px;
  width: 22px;
}

.training-checklist input:checked + span {
  color: var(--muted);
  text-decoration: line-through;
}

.session-note-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 12px;
}

.session-note-form textarea {
  resize: vertical;
}

.program-links > div,
.settings-section,
.profile-summary,
.settings-disclosure,
.program-secondary {
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 16px;
}

.program-links span,
.settings-section span,
.profile-summary span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.program-links strong {
  display: block;
  margin-bottom: 12px;
}

.program-secondary,
.settings-disclosure {
  margin-top: 12px;
}

.program-secondary > summary,
.settings-disclosure > summary {
  cursor: pointer;
  min-height: 44px;
  padding: 4px 0;
}

.profile-summary {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
}

.profile-summary > div {
  background: #0b1014;
  min-width: 0;
  padding: 16px;
}

.profile-summary strong {
  display: block;
  overflow-wrap: anywhere;
}

.settings-stack {
  display: grid;
  gap: 12px;
}

.settings-section {
  align-items: end;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
}

.settings-section h4 {
  font-size: 1.35rem;
  margin-bottom: 5px;
}

.settings-section p {
  margin: 0;
}

.settings-inline-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.profile-logout {
  width: min(100%, 260px);
}

.merch-intro {
  grid-column: 1 / -1;
}

.shop-product-grid {
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1120px) {
  .workspace {
    padding-top: 20px;
  }

  .attention-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .app-view {
    display: block;
    min-height: 100svh;
  }

  .sidebar {
    background: rgba(3, 5, 7, 0.98);
    border: 0;
    border-top: 1px solid rgba(0, 245, 255, 0.24);
    bottom: 0;
    display: block;
    left: 0;
    min-height: 0;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    top: auto;
    width: 100%;
    z-index: 100;
  }

  .sidebar .brand,
  .sidebar > .outline-action,
  .sidebar > .logout-action {
    display: none;
  }

  .sidebar nav {
    display: flex;
    gap: 4px;
    max-width: 100%;
    overflow-x: auto;
    padding: 0;
    width: 100%;
  }

  .sidebar nav button {
    flex: 1 0 68px;
    font-size: 0.72rem;
    line-height: 1.1;
    min-height: 54px;
    padding: 5px 7px;
    text-align: center;
    white-space: normal;
  }

  .sidebar nav button.active {
    box-shadow: inset 0 3px 0 var(--purple);
  }

  .workspace {
    overflow: visible;
    padding: 16px 12px calc(90px + env(safe-area-inset-bottom));
  }

  .workspace-header {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .workspace-header .eyebrow {
    display: none;
  }

  .workspace-header h2,
  body[data-role="admin"] .workspace-header h2,
  body[data-role="coach"] .workspace-header h2,
  body[data-role="assistantCoach"] .workspace-header h2 {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .status-pill {
    font-size: 0.7rem;
    min-height: 34px;
    padding: 7px 9px;
  }

  .page-intro {
    align-items: stretch;
    display: block;
    padding: 18px;
  }

  .page-intro .primary-link {
    margin-top: 14px;
    width: 100%;
  }

  .parent-now-card {
    display: grid;
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .parent-now-status,
  .parent-now-facts,
  .makeup-callout {
    grid-column: 1;
  }

  .parent-now-status {
    justify-self: start;
  }

  .parent-now-facts,
  .parent-home-actions,
  .admin-action-row,
  .program-links,
  .program-structure,
  .family-schedule-lessons,
  .compact-notifications .parent-notification-list,
  .attention-list,
  .profile-summary,
  .settings-section,
  .settings-inline-form,
  .session-note-form,
  .shop-product-grid {
    grid-template-columns: 1fr;
  }

  .coach-next-action {
    align-items: stretch;
    flex-direction: column;
  }

  .coach-next-action .primary-action {
    width: 100%;
  }

  .calendar-shell {
    padding: 12px;
  }

  .term-calendar {
    gap: 9px;
  }

  .calendar-week > summary {
    grid-template-columns: auto 1fr auto;
    min-height: 70px;
    padding: 12px;
  }

  .calendar-week > summary::after {
    grid-column: 3;
  }

  .calendar-week > summary small {
    grid-column: 1 / 3;
  }

  .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(118px, 1fr));
    overflow-x: auto;
    padding: 0 10px 10px;
    scroll-snap-type: x proximity;
  }

  .calendar-day {
    min-height: 128px;
    scroll-snap-align: start;
  }

  .weekly-timetable-grid {
    grid-template-columns: 1fr;
  }

  .cancellation-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .class-status-bar,
  .rain-resolution {
    align-items: stretch;
    flex-direction: column;
  }

  .rain-resolution > div:first-child {
    margin-right: 0;
  }

  .rain-workflow,
  .rainout-session-button,
  .rain-resolution .rainout-session-button {
    min-width: 0;
    width: 100%;
  }

  .coach-rain-actions,
  .makeup-availability-disclosure,
  .rain-resolution .makeup-availability-disclosure {
    max-width: none;
    width: 100%;
  }

  .makeup-date-options {
    grid-auto-columns: minmax(136px, 72%);
  }

  .makeup-selected-date {
    align-items: flex-start;
    flex-direction: column;
  }

  .coach-task-panel,
  .wide-card {
    padding: 14px;
  }

  .coach-task-item > summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .task-actions {
    grid-template-columns: 1fr;
  }

  .settings-section {
    align-items: stretch;
  }

  .notification-setting .mini-action,
  .profile-install-action,
  .settings-inline-form .primary-action,
  .profile-logout {
    width: 100%;
  }
}

* {
  box-sizing: border-box;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--body-font);
  line-height: 1.4;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

body.loading {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  font-family: var(--brand-font);
  font-style: italic;
  letter-spacing: 0;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

button:not(:disabled):hover {
  filter: brightness(1.12);
}

button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.splash-screen {
  align-items: center;
  background: #050607;
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  gap: 10px;
  opacity: 1;
  pointer-events: none;
  position: fixed;
  transition: opacity 320ms ease, visibility 320ms ease;
  visibility: visible;
  z-index: 9999;
}

.splash-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-mark {
  align-items: center;
  display: grid;
  height: 152px;
  justify-items: center;
  position: relative;
  width: 152px;
}

.splash-ring {
  border: 3px solid transparent;
  border-radius: 50%;
  grid-area: 1 / 1;
  position: absolute;
}

.splash-ring-a {
  animation: splashSpin 1.05s linear infinite;
  border-left-color: var(--aqua);
  border-right-color: rgba(0, 245, 255, 0.28);
  height: 142px;
  width: 142px;
}

.splash-ring-b {
  animation: splashSpinReverse 1.4s linear infinite;
  border-bottom-color: var(--purple);
  border-top-color: rgba(139, 92, 255, 0.32);
  height: 122px;
  width: 122px;
}

.splash-logo {
  animation: splashPulse 1.3s ease-in-out infinite;
  grid-area: 1 / 1;
  height: 86px;
  object-fit: contain;
  width: 86px;
}

.splash-screen p {
  color: var(--aqua);
  font-family: var(--brand-font);
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.splash-screen small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

@keyframes splashPulse {
  0%, 100% { transform: scale(0.97); opacity: 0.86; }
  50% { transform: scale(1); opacity: 1; }
}

@keyframes splashSpin { to { transform: rotate(360deg); } }
@keyframes splashSpinReverse { to { transform: rotate(-360deg); } }

.auth-view {
  background: var(--black);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(380px, 520px);
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  position: relative;
}

.auth-view::before {
  background: linear-gradient(90deg, transparent 58%, rgba(5, 6, 7, 0.68) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.landing-slideshow,
.landing-slide {
  inset: 0;
  position: absolute;
}

.landing-slideshow {
  background: #080a0c;
  overflow: hidden;
  z-index: 0;
}

.landing-slideshow::after {
  background:
    linear-gradient(0deg, rgba(3, 4, 5, 0.92) 0%, rgba(3, 4, 5, 0.2) 48%, rgba(3, 4, 5, 0.38) 100%),
    linear-gradient(90deg, rgba(3, 4, 5, 0.34), transparent 76%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.landing-slide {
  margin: 0;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 900ms ease, transform 6800ms ease;
}

.landing-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.landing-slide img {
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  width: 100%;
}

.slide-class-group img {
  object-position: center 46%;
}

.slide-coaching-group img,
.slide-progression img {
  object-position: center 50%;
}

.slide-xgames-team img {
  object-position: center 42%;
}

.slide-xgames-result img {
  object-position: center 38%;
}

.hero-panel {
  background: transparent;
  border-right: 1px solid rgba(0, 245, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: clamp(44px, 7vh, 100px);
  justify-content: flex-start;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(22px, 5vw, 64px);
  position: relative;
  z-index: 2;
}

.hero-panel::after {
  border: 1px solid rgba(0, 245, 255, 0.22);
  content: "";
  inset: clamp(16px, 3vw, 40px);
  pointer-events: none;
  position: absolute;
}

.topbar,
.hero-copy,
.auth-card,
.sidebar,
.workspace {
  position: relative;
  z-index: 1;
}

.topbar,
.hero-copy {
  z-index: 4;
}

.topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.logo {
  height: clamp(62px, 7vw, 100px);
  object-fit: contain;
  width: clamp(62px, 7vw, 100px);
}

.book-link,
.outline-action,
.logout-action {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--white);
  display: inline-flex;
  font-family: var(--brand-font);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
  min-height: 40px;
  justify-content: center;
  padding: 0 14px;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-copy {
  margin-top: auto;
  max-width: 720px;
  padding-bottom: clamp(80px, 12vh, 124px);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.72);
}

.hero-logo {
  height: clamp(88px, 10vw, 136px);
  margin-bottom: 24px;
  object-fit: contain;
  width: clamp(88px, 10vw, 136px);
}

.eyebrow {
  color: var(--aqua);
  font-size: 0.76rem;
  font-family: var(--brand-font);
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
.brand strong,
.feature-card strong,
.module-card strong {
  font-family: var(--brand-font);
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(4.2rem, 8.2vw, 7rem);
  line-height: 0.86;
  margin-bottom: 18px;
  max-width: 11ch;
}

.slogan {
  color: var(--aqua);
  font-family: var(--brand-font);
  font-size: clamp(1.35rem, 2.7vw, 2.3rem);
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 16px;
  max-width: 720px;
  text-transform: uppercase;
}

.lead {
  color: var(--white);
  font-family: var(--brand-font);
  font-size: clamp(1.15rem, 2.25vw, 1.8rem);
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.08;
  margin-bottom: 20px;
  max-width: 650px;
  text-transform: uppercase;
}

.intro,
.auth-card p,
.feature-card p,
.wide-card p {
  color: var(--muted);
  font-weight: 760;
  line-height: 1.5;
}

.intro {
  font-size: 1.02rem;
  max-width: 620px;
}

.hero-points {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 26px 0 0;
  max-width: 720px;
}

.hero-points span {
  border-top: 1px solid rgba(0, 245, 255, 0.34);
  color: var(--white);
  font-family: var(--brand-font);
  font-size: 0.92rem;
  font-style: italic;
  font-weight: 950;
  padding-top: 12px;
  text-transform: uppercase;
}

.credential-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  max-width: 760px;
}

.credential-strip span {
  align-items: center;
  background: rgba(4, 6, 8, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  display: flex;
  gap: 10px;
  font-family: var(--brand-font);
  font-size: 0.7rem;
  font-style: italic;
  font-weight: 950;
  padding: 8px 10px;
  text-transform: uppercase;
}

.credential-strip img {
  height: 28px;
  object-fit: contain;
  width: 72px;
}

.credential-strip strong {
  font: inherit;
}

.olympic-rings {
  display: block;
  height: 27px;
  position: relative;
  width: 60px;
}

.olympic-rings b {
  border: 2px solid;
  border-radius: 50%;
  height: 17px;
  position: absolute;
  top: 1px;
  width: 17px;
}

.olympic-rings b:nth-child(1) { border-color: #2784c8; left: 0; }
.olympic-rings b:nth-child(2) { border-color: #f0c323; left: 11px; top: 10px; }
.olympic-rings b:nth-child(3) { border-color: #161616; left: 22px; }
.olympic-rings b:nth-child(4) { border-color: #30a755; left: 33px; top: 10px; }
.olympic-rings b:nth-child(5) { border-color: #e74a48; left: 44px; }

.slideshow-controls {
  align-items: center;
  bottom: clamp(22px, 4vw, 58px);
  display: flex;
  gap: 12px;
  left: clamp(22px, 5vw, 64px);
  position: absolute;
  z-index: 3;
}

.slide-arrow {
  align-items: center;
  background: rgba(3, 5, 7, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: var(--white);
  display: inline-flex;
  font-family: var(--body-font);
  font-size: 1.12rem;
  font-style: normal;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 40px;
}

.slide-arrow:hover,
.slide-arrow:focus-visible {
  border-color: var(--aqua);
  color: var(--aqua);
  outline: none;
}

.slide-dots {
  align-items: center;
  display: flex;
  gap: 7px;
}

.slide-dot {
  background: rgba(255, 255, 255, 0.38);
  border: 0;
  height: 3px;
  padding: 0;
  transition: background 180ms ease, width 180ms ease;
  width: 18px;
}

.slide-dot.is-active {
  background: var(--aqua);
  width: 38px;
}

.slide-dot:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.slide-counter {
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 900;
  min-width: 42px;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.proof-chip,
.status-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 245, 255, 0.34);
  color: var(--white);
  font-family: var(--brand-font);
  font-size: 0.76rem;
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0;
  padding: 10px 12px;
  text-transform: uppercase;
}

.proof-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proof-badge {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 245, 255, 0.34);
  display: inline-flex;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
  min-height: 78px;
  min-width: 210px;
  padding: 8px 14px 10px;
}

.proof-logo-wrap {
  align-items: center;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 100%;
}

.proof-badge svg,
.proof-badge img {
  display: block;
  max-height: 40px;
  max-width: 170px;
  object-fit: contain;
}

.proof-badge.xgames img {
  max-width: 188px;
}

.proof-caption {
  color: var(--aqua);
  font-family: var(--brand-font);
  font-size: 0.68rem;
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.proof-badge.olympic {
  border-color: rgba(255, 255, 255, 0.2);
}

.proof-badge.xgames {
  border-color: rgba(139, 92, 255, 0.42);
}

.status-pill.cancelled {
  border-color: rgba(255, 107, 107, 0.58);
  color: var(--danger);
}

.auth-card {
  align-self: center;
  backdrop-filter: blur(18px);
  background: rgba(7, 10, 14, 0.86);
  border: 1px solid rgba(0, 245, 255, 0.3);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
  margin: clamp(18px, 3vw, 42px);
  max-height: calc(100svh - 48px);
  max-width: 520px;
  overflow-y: auto;
  padding: clamp(24px, 3vw, 38px);
  width: calc(100% - clamp(36px, 6vw, 84px));
  z-index: 2;
}

.auth-landing,
.auth-pane {
  display: grid;
  gap: 13px;
}

.auth-landing {
  margin: 22px 0 6px;
}

.pane-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.pane-head h3 {
  font-size: 1.15rem;
  margin-bottom: 0;
}

.secondary-action,
.ghost-action,
.back-action {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  display: inline-flex;
  font-family: var(--brand-font);
  font-style: italic;
  font-weight: 950;
  justify-content: center;
  letter-spacing: 0;
  min-height: 48px;
  padding: 0 16px;
  text-transform: uppercase;
}

.secondary-action {
  background: linear-gradient(90deg, rgba(0, 245, 255, 0.14), rgba(139, 92, 255, 0.16));
}

.ghost-action {
  color: var(--muted);
}

.back-action {
  min-height: 38px;
  padding: 0 12px;
}

.auth-pane {
  margin-top: 8px;
}

.optional-field {
  opacity: 0.86;
}

.auth-card h2,
.workspace-header h2 {
  font-size: clamp(2.7rem, 5.4vw, 4.4rem);
  line-height: 0.95;
  margin-bottom: 0;
}

.mode-switch {
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 22px 0;
}

.mode-switch button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--brand-font);
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0;
  min-height: 44px;
}

.mode-switch button.active {
  background: linear-gradient(90deg, var(--aqua), var(--purple));
  color: #020304;
}

.auth-form {
  display: grid;
  gap: 13px;
}

#loginForm input {
  font-size: 16px;
}

.signup-flow {
  gap: 18px;
}

.signup-pane-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.signup-time {
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 850;
}

.signup-section h4 {
  font-family: var(--body-font);
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}

.signup-section-head p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.signup-program {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.signup-program legend {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 850;
  margin-bottom: 10px;
}

.signup-choice-grid {
  display: grid;
  gap: 8px;
}

.signup-choice {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 20px minmax(0, 1fr);
  min-height: 64px;
  padding: 11px 13px;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.signup-choice:hover {
  border-color: rgba(0, 245, 255, 0.45);
}

.signup-choice.is-selected {
  background: linear-gradient(90deg, rgba(0, 245, 255, 0.13), rgba(139, 92, 255, 0.08));
  border-color: var(--aqua);
}

.signup-choice input {
  accent-color: var(--aqua);
  min-height: 18px;
  width: 18px;
}

.signup-choice span {
  display: grid;
  gap: 3px;
}

.signup-choice strong {
  color: var(--white);
  font-size: 0.9rem;
}

.signup-choice small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
}

.signup-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 13px;
  padding-top: 17px;
}

.signup-section-head {
  align-items: center;
  display: grid;
  gap: 11px;
  grid-template-columns: 34px minmax(0, 1fr);
}

.signup-section-head > span {
  align-items: center;
  background: var(--aqua);
  color: #020304;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.signup-section h4 {
  font-size: 1rem;
  margin: 0 0 2px;
}

.signup-field-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signup-field-grid .signup-wide {
  grid-column: 1 / -1;
}

.signup-match-note {
  align-items: center;
  background: rgba(0, 245, 255, 0.07);
  border-left: 3px solid var(--aqua);
  display: grid;
  gap: 11px;
  grid-template-columns: 24px minmax(0, 1fr);
  padding: 12px 13px;
}

.signup-match-note svg {
  color: var(--aqua);
  height: 22px;
  width: 22px;
}

.signup-match-note span {
  display: grid;
  gap: 2px;
}

.signup-match-note strong {
  color: var(--white);
  font-size: 0.82rem;
}

.signup-match-note small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
}

.signup-submit {
  min-height: 54px;
}

.signup-login-link {
  background: transparent;
  border: 0;
  color: var(--muted);
  min-height: 44px;
  padding: 6px;
  text-align: center;
}

.signup-login-link strong {
  color: var(--aqua);
}

.signup-login-link:hover strong,
.signup-login-link:focus-visible strong {
  text-decoration: underline;
}

.term4-family-confirmation {
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.14), rgba(139, 92, 255, 0.16));
  border: 1px solid rgba(0, 245, 255, 0.38);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(1, 9, 14, 0.22);
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 20px;
}

.term4-family-confirmation-mark {
  align-items: center;
  background: var(--aqua);
  border-radius: 50%;
  color: #041015;
  display: flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.term4-family-confirmation-mark svg { height: 24px; width: 24px; }
.term4-family-confirmation-copy h3 { font-size: 1.2rem; margin: 2px 0 6px; }
.term4-family-confirmation-copy > p:last-of-type { color: var(--muted); margin: 0; }
.term4-family-riders { display: grid; gap: 8px; margin-top: 14px; }
.term4-family-riders article { align-items: center; background: rgba(4, 10, 15, 0.54); border-radius: 14px; display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
.term4-family-riders article > strong { margin-right: auto; }
.term4-family-riders article > span { align-items: center; display: inline-flex; gap: 6px; }
.term4-family-riders article b { font-size: 0.78rem; }
.term4-family-riders article small { color: var(--muted); font-size: 0.7rem; }
.term4-family-install { align-self: center; white-space: nowrap; }
.term4-next-step { align-items: center; display: flex; gap: 14px; }
.term4-next-step h3 { margin: 2px 0 5px; }
.term4-next-step p { margin: 0; }
.term4-new-family-home .family-essential-actions { margin-top: 0; }

.other-student-card { align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; display: grid; gap: 13px; grid-template-columns: auto minmax(0, 1fr) auto; padding: 15px 17px; }
.other-student-avatar { align-items: center; background: rgba(52, 217, 232, 0.12); border-radius: 50%; color: var(--cyan); display: flex; font-weight: 800; height: 42px; justify-content: center; width: 42px; }
.other-student-card div { min-width: 0; }
.other-student-card div > strong { font-size: 1rem; }
.other-student-card p { color: var(--muted); margin: 3px 0 0; }
.other-student-card small { color: var(--muted); display: block; margin-top: 4px; }
.other-student-status { background: rgba(255, 190, 89, 0.12); border: 1px solid rgba(255, 190, 89, 0.2); border-radius: 999px; color: #ffca72; font-size: 0.75rem; font-weight: 800; padding: 7px 10px; white-space: nowrap; }
@media (max-width: 620px) {
  .other-student-card { grid-template-columns: auto minmax(0, 1fr); }
  .other-student-status { grid-column: 2; justify-self: start; }
}

@media (max-width: 760px) {
  .term4-family-confirmation { grid-template-columns: auto minmax(0, 1fr); }
  .term4-family-install { grid-column: 1 / -1; width: 100%; }
  .term4-family-riders article { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
  body.auth-focus .auth-view {
    display: block;
    min-height: 100svh;
    overflow: visible;
    padding: max(12px, env(safe-area-inset-top)) 0 max(18px, env(safe-area-inset-bottom));
  }

  body.auth-focus .auth-view::before,
  body.auth-focus .hero-panel {
    display: none;
  }

  body.auth-focus .auth-card {
    margin: 0 auto;
    max-width: 620px;
    width: calc(100% - 24px);
  }
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 7px;
}

input,
select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 245, 255, 0.28);
  color: var(--white);
  min-height: 48px;
  padding: 11px 12px;
  width: 100%;
}

select option {
  background: var(--panel);
  color: var(--white);
}

.primary-action {
  background: linear-gradient(90deg, var(--aqua), var(--purple));
  border: 0;
  color: #020304;
  font-family: var(--brand-font);
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0;
  min-height: 48px;
  text-transform: uppercase;
}

.primary-action:disabled,
.secondary-action:disabled,
.ghost-action:disabled,
.back-action:disabled {
  opacity: 0.7;
}

.auth-message {
  color: var(--aqua);
  font-weight: 850;
  min-height: 22px;
}

.auth-message.error {
  color: var(--danger);
}

.coach-hint {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.82rem;
  font-weight: 800;
  margin: 6px 0 0;
}

.coach-shortcut {
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.32);
  color: var(--white);
  font-family: var(--brand-font);
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0;
  min-height: 40px;
  padding: 0 14px;
  text-transform: uppercase;
  width: 100%;
}

.small-note {
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  margin: 18px 0 0;
  padding-top: 14px;
}

.app-view {
  background:
    radial-gradient(circle at 92% 12%, rgba(139, 92, 255, 0.16), transparent 0 26%, transparent 27%),
    radial-gradient(circle at 18% 88%, rgba(0, 245, 255, 0.11), transparent 0 24%, transparent 25%),
    #06070a;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: #030406;
  border-right: 1px solid rgba(0, 245, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 100vh;
  padding: 24px;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

.brand img {
  height: 48px;
  object-fit: contain;
  width: 48px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  margin-top: 3px;
}

.brand #profileName {
  color: var(--white);
  font-weight: 800;
}

.brand #profileLabel {
  color: var(--aqua);
  font-size: 0.72rem;
  text-transform: uppercase;
}

nav {
  display: grid;
  gap: 8px;
}

nav button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-family: var(--brand-font);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
  min-height: 44px;
  padding: 0 12px;
  text-align: left;
}

nav button.active {
  background: linear-gradient(90deg, var(--aqua), var(--purple));
  color: #020304;
}

.admin-tools-nav {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 8px;
}

.admin-tools-nav summary {
  color: var(--muted);
  cursor: pointer;
  font-family: var(--brand-font);
  font-style: italic;
  font-weight: 900;
  list-style: none;
  min-height: 42px;
  padding: 11px 12px;
  text-transform: uppercase;
}

.admin-tools-nav summary::-webkit-details-marker {
  display: none;
}

.admin-tools-nav summary::after {
  content: "+";
  float: right;
}

.admin-tools-nav[open] summary::after {
  content: "−";
}

.admin-tools-nav > div {
  display: grid;
  gap: 4px;
  padding-top: 4px;
}

.admin-tools-nav button {
  font-size: 0.88rem;
  min-height: 38px;
  padding-left: 20px;
  width: 100%;
}

.staff-only,
.admin-only {
  display: none;
}

body[data-role="admin"] .staff-only,
body[data-role="admin"] .admin-only,
body[data-role="coach"] .staff-only,
body[data-role="assistantCoach"] .staff-only {
  display: block;
}

.logout-action {
  border-color: rgba(0, 245, 255, 0.42);
  color: var(--aqua);
  margin-top: auto;
}

.logout-action:hover,
.logout-action:focus-visible {
  background: rgba(0, 245, 255, 0.12);
  border-color: var(--aqua);
  color: var(--white);
}

  .workspace {
    min-width: 0;
    padding: 30px clamp(18px, 4vw, 48px) 56px;
  }

.workspace-header {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 26px;
}

body[data-role="admin"] .workspace,
body[data-role="coach"] .workspace,
body[data-role="assistantCoach"] .workspace {
  padding-top: 22px;
}

body[data-role="admin"] .workspace-header,
body[data-role="coach"] .workspace-header,
body[data-role="assistantCoach"] .workspace-header {
  margin-bottom: 16px;
}

body[data-role="admin"] .workspace-header h2,
body[data-role="coach"] .workspace-header h2,
body[data-role="assistantCoach"] .workspace-header h2 {
  font-size: clamp(2.3rem, 4vw, 3.25rem);
}

body[data-role="admin"] .workspace:has(#classesTab.active) > .workspace-header,
body[data-role="coach"] .workspace:has(#classesTab.active) > .workspace-header,
body[data-role="assistantCoach"] .workspace:has(#classesTab.active) > .workspace-header {
  display: none;
}

.tab {
  display: none;
}

.tab.active {
  display: block;
}

.card-grid,
.shop-grid,
.coach-grid,
.management-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.wide-card,
.shop-card,
.module-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.2);
  padding: 20px;
}

.feature-card span {
  color: var(--aqua);
  display: block;
  font-family: var(--brand-font);
  font-size: 0.8rem;
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.feature-card strong {
  display: block;
  font-size: 3rem;
  line-height: 0.95;
  margin-bottom: 14px;
}

.wide-card {
  margin-top: 18px;
}

.welcome-card {
  background:
    linear-gradient(120deg, rgba(0, 245, 255, 0.1), transparent 42%),
    linear-gradient(300deg, rgba(139, 92, 255, 0.12), transparent 42%),
    var(--panel);
  border: 1px solid rgba(0, 245, 255, 0.22);
  margin-bottom: 16px;
  padding: 28px 32px;
}

.command-hero {
  align-items: flex-end;
  background:
    linear-gradient(120deg, rgba(0, 245, 255, 0.11), transparent 42%),
    linear-gradient(300deg, rgba(139, 92, 255, 0.14), transparent 48%),
    var(--panel);
  border: 1px solid rgba(0, 245, 255, 0.24);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 34px 38px;
}

.command-hero h3 {
  font-size: 3.7rem;
  line-height: 0.88;
  margin-bottom: 12px;
  max-width: 900px;
}

.command-hero p {
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 0;
  max-width: 880px;
}

.admin-focus-bar {
  align-items: center;
  background: linear-gradient(110deg, rgba(0, 245, 255, 0.1), rgba(139, 92, 255, 0.08)), var(--panel);
  border: 1px solid rgba(0, 245, 255, 0.25);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 18px 20px;
}

.admin-focus-bar h3 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 0.92;
  margin-bottom: 7px;
}

.admin-focus-bar p {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
}

.admin-primary-action {
  flex: 0 0 auto;
  min-width: 180px;
  padding: 0 20px;
}

.admin-summary-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.admin-summary-card {
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 108px;
  padding: 14px 16px;
}

.admin-summary-card > span,
.admin-action-row span,
.admin-task-disclosure summary > span {
  color: var(--aqua);
  display: block;
  font-family: var(--brand-font);
  font-size: 0.7rem;
  font-style: italic;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-summary-card > strong {
  display: block;
  font-family: var(--brand-font);
  font-size: 1.8rem;
  font-style: italic;
  line-height: 1;
  margin-top: 12px;
  text-transform: uppercase;
}

.admin-summary-card p {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  margin: 8px 0 0;
}

.admin-weather-card {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 44px minmax(0, 1fr);
}

.admin-weather-card strong {
  font-family: var(--brand-font);
  font-size: 1.8rem;
  font-style: italic;
  margin-top: 5px;
  text-transform: uppercase;
}

.admin-action-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.admin-action-row button {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  color: var(--white);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 52px;
  padding: 10px 14px;
  text-align: left;
}

.admin-action-row strong {
  font-size: 1rem;
  text-transform: uppercase;
}

.admin-task-disclosure,
.roster-tools,
.notification-queue {
  border: 1px solid var(--line);
  margin-top: 10px;
}

.admin-task-disclosure > summary,
.roster-tools > summary,
.notification-queue > summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 4px 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  list-style: none;
  padding: 12px 14px;
}

.admin-task-disclosure > summary::-webkit-details-marker,
.roster-tools > summary::-webkit-details-marker,
.notification-queue > summary::-webkit-details-marker {
  display: none;
}

.admin-task-disclosure summary > strong,
.roster-tools summary > strong,
.notification-queue summary > strong {
  font-family: var(--brand-font);
  font-size: 1.15rem;
  font-style: italic;
  grid-column: 2;
  grid-row: 1 / 3;
  text-transform: uppercase;
}

.admin-task-disclosure summary > small,
.roster-tools summary > small,
.notification-queue summary > small {
  color: var(--muted);
  font-weight: 750;
}

.admin-task-disclosure > .wide-card {
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
  margin: 0;
}

.coach-command-head {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.coach-command-head h3 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.9;
  margin-bottom: 10px;
}

.coach-command-head p {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
}

.coach-home-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.35fr 1fr 1.15fr 0.7fr;
}

.coach-primary-card,
.coach-park-card,
.coach-weather-card,
.coach-task-count {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--white);
  display: grid;
  min-height: 150px;
  padding: 20px;
  text-align: left;
}

.coach-primary-card {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.18), rgba(139, 92, 255, 0.16)), var(--panel);
  border-color: rgba(0, 245, 255, 0.46);
}

.coach-primary-card:hover {
  border-color: var(--aqua);
  transform: translateY(-1px);
}

.coach-primary-card span,
.coach-park-card span,
.coach-weather-card span,
.coach-task-count span,
.class-status-bar span,
.coach-task-item span,
.task-total {
  color: var(--aqua);
  font-family: var(--brand-font);
  font-size: 0.74rem;
  font-style: italic;
  font-weight: 950;
  text-transform: uppercase;
}

.coach-primary-card strong,
.coach-park-card strong,
.coach-weather-card strong,
.coach-task-count strong {
  align-self: end;
  display: block;
  font-family: var(--brand-font);
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-style: italic;
  line-height: 0.9;
  margin-top: 20px;
  text-transform: uppercase;
}

.coach-primary-card p,
.coach-park-card p,
.coach-weather-card p,
.coach-task-count p {
  color: var(--muted);
  font-family: var(--body-font);
  font-style: normal;
  font-weight: 800;
  margin: 10px 0 0;
}

.coach-weather-card {
  align-items: center;
  grid-template-columns: 52px minmax(0, 1fr);
}

.coach-weather-card strong {
  margin-top: 8px;
}

.weather-mark {
  display: block;
  height: 44px;
  position: relative;
  width: 44px;
}

.weather-mark::before {
  background: var(--aqua);
  border-radius: 50%;
  content: "";
  height: 24px;
  left: 10px;
  position: absolute;
  top: 8px;
  width: 24px;
}

.weather-mark.cloud::before,
.weather-mark.cloud-sun::before,
.weather-mark.rain::before,
.weather-mark.storm::before {
  background: var(--white);
  border-radius: 18px;
  height: 16px;
  left: 4px;
  top: 17px;
  width: 36px;
}

.weather-mark.cloud::after,
.weather-mark.cloud-sun::after,
.weather-mark.rain::after,
.weather-mark.storm::after {
  background: var(--white);
  border-radius: 50%;
  content: "";
  height: 22px;
  left: 12px;
  position: absolute;
  top: 8px;
  width: 22px;
}

.weather-mark.rain i,
.weather-mark.storm i {
  border-left: 3px solid var(--aqua);
  border-right: 3px solid var(--aqua);
  bottom: 0;
  height: 9px;
  left: 13px;
  position: absolute;
  transform: skew(-14deg);
  width: 18px;
}

.coach-task-panel {
  display: grid;
  gap: 18px;
}

.task-total {
  border: 1px solid rgba(0, 245, 255, 0.3);
  padding: 8px 10px;
}

.task-create-form {
  align-items: end;
  border: 1px solid rgba(0, 245, 255, 0.22);
  display: grid;
  gap: 12px;
  grid-template-columns: 0.8fr 1.4fr 0.8fr 1.5fr;
  padding: 16px;
}

.task-create-form label {
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 6px;
  text-transform: uppercase;
}

.task-plan-field {
  grid-column: 1 / 4;
}

.task-create-form textarea {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  color: var(--white);
  font: inherit;
  min-height: 88px;
  padding: 12px;
  resize: vertical;
}

.coach-task-list {
  display: grid;
  gap: 10px;
}

.coach-task-item {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 16px;
}

.coach-task-item.completed {
  opacity: 0.58;
}

.coach-task-item.completed h4 {
  text-decoration: line-through;
}

.coach-task-item h4 {
  font-size: 1.75rem;
  line-height: 1;
  margin: 6px 0;
}

.coach-task-item p {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
  max-width: 820px;
  white-space: pre-wrap;
}

.task-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.management-grid {
  margin-top: 16px;
}

.quick-action-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.quick-action {
  align-items: start;
  background:
    linear-gradient(135deg, rgba(0, 245, 255, 0.12), rgba(139, 92, 255, 0.08)),
    var(--panel);
  border: 1px solid rgba(0, 245, 255, 0.24);
  color: var(--white);
  display: grid;
  gap: 12px;
  min-height: 112px;
  padding: 18px;
  text-align: left;
}

.quick-action span,
.classes-progress span,
.quick-student-form span,
.rollcall-class-card header span,
.rollcall-status,
.notification-row small {
  color: var(--aqua);
  font-family: var(--brand-font);
  font-size: 0.72rem;
  font-style: italic;
  font-weight: 950;
  text-transform: uppercase;
}

.quick-action strong {
  font-family: var(--brand-font);
  font-size: 1.9rem;
  font-style: italic;
  font-weight: 950;
  line-height: 0.95;
  text-transform: uppercase;
}

.module-card {
  display: grid;
  gap: 12px;
}

.module-card span {
  color: var(--aqua);
  font-family: var(--brand-font);
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.module-card strong {
  font-size: 2rem;
  line-height: 1;
}

.module-card p,
.backend-card p {
  color: var(--muted);
  font-weight: 780;
}

.section-head,
.coach-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.my-classes-shell {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.my-classes-shell.compact {
  margin-top: 18px;
}

.classes-header {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.classes-header h3 {
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  line-height: 0.92;
  margin-bottom: 6px;
}

.classes-header p {
  color: var(--muted);
  font-weight: 850;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.secure-roster-status {
  color: var(--aqua);
  display: block;
  font-family: var(--body-font);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 750;
  margin-top: 10px;
}

.classes-progress {
  border: 1px solid rgba(0, 245, 255, 0.28);
  min-width: 116px;
  padding: 10px;
  text-align: center;
}

.classes-progress strong {
  display: block;
  font-family: var(--brand-font);
  font-size: 2rem;
  font-style: italic;
  line-height: 0.9;
}

.day-tab-row {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.day-tab-row button {
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--white);
  display: grid;
  gap: 4px;
  min-height: 52px;
  padding: 8px 10px;
  text-align: left;
}

.day-tab-row button:hover {
  border-color: rgba(0, 245, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(0, 245, 255, 0.12);
}

.day-tab-row button.active {
  background: linear-gradient(90deg, var(--aqua), var(--purple));
  border-color: transparent;
  color: #020304;
}

.day-tab-row span {
  font-family: var(--brand-font);
  font-size: 0.92rem;
  font-style: italic;
  font-weight: 950;
  text-transform: uppercase;
}

.day-tab-row strong {
  font-size: 0.92rem;
}

.quick-student-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(130px, 1fr)) minmax(220px, 1.5fr) auto;
  padding: 0 14px 14px;
}

.quick-existing-rider-field,
.quick-new-rider-fields {
  grid-column: 1 / -1;
}

.quick-new-rider-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-new-rider-fields[hidden] {
  display: none;
}

.quick-student-form strong {
  display: block;
  font-family: var(--brand-font);
  font-size: 1.4rem;
  font-style: italic;
  line-height: 0.95;
  text-transform: uppercase;
}

.class-rollcall-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.rollcall-class-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.rollcall-class-card.rained-out {
  background: linear-gradient(145deg, rgba(44, 85, 112, 0.28), rgba(9, 14, 20, 0.96));
  border-color: rgba(116, 189, 235, 0.5);
}

.rollcall-class-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  list-style: none;
  min-height: 88px;
  padding: 14px 16px;
  user-select: none;
}

.rollcall-class-summary::-webkit-details-marker {
  display: none;
}

.rollcall-class-summary:hover {
  background: rgba(0, 245, 255, 0.06);
}

.rollcall-class-card[open] > .rollcall-class-summary {
  background: rgba(0, 245, 255, 0.075);
  border-bottom: 1px solid rgba(0, 245, 255, 0.3);
}

.rollcall-class-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.rollcall-class-title > span {
  color: var(--aqua);
  font-family: var(--brand-font);
  font-size: 0.74rem;
  font-style: italic;
  font-weight: 950;
  text-transform: uppercase;
}

.rollcall-class-title {
  min-width: 0;
}

.rollcall-class-summary-meta {
  align-items: center;
  display: grid;
  gap: 4px 12px;
  grid-template-columns: auto 38px;
  min-width: 116px;
  text-align: right;
}

.rollcall-class-summary-meta > strong {
  color: var(--white);
  font-family: var(--brand-font);
  font-size: 1.85rem;
  font-style: italic;
  grid-row: 1 / span 2;
  line-height: 0.95;
}

.rollcall-class-summary-meta small {
  color: var(--aqua);
  font-family: var(--brand-font);
  font-size: 0.7rem;
  font-style: italic;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.class-disclosure {
  align-items: center;
  background: rgba(0, 245, 255, 0.12);
  border: 1px solid rgba(0, 245, 255, 0.5);
  display: flex;
  grid-column: 2;
  grid-row: 1 / span 2;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.class-disclosure::after {
  color: var(--aqua);
  content: "+";
  font-family: var(--body-font);
  font-size: 1.4rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
}

.rollcall-class-card[open] .class-disclosure::after {
  content: "-";
}

.class-status-bar {
  align-items: center;
  border: 1px solid rgba(0, 245, 255, 0.18);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
}

.class-status-bar.cancelled {
  background: rgba(60, 105, 134, 0.2);
  border-color: rgba(116, 189, 235, 0.48);
}

.class-status-bar strong {
  display: block;
  font-family: var(--brand-font);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1;
  text-transform: uppercase;
}

.rainout-session-button {
  background: rgba(93, 160, 204, 0.24);
  border: 1px solid rgba(147, 214, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  color: #d7f2ff;
  font-weight: 950;
  min-height: 44px;
  padding: 0 14px;
  text-transform: uppercase;
}

.rainout-session-button:hover {
  background: rgba(93, 160, 204, 0.28);
}

.rainout-session-button.restore {
  background: transparent;
  color: var(--white);
}

.raincall-note {
  color: #9fd8f7;
  font-weight: 850;
}

.rollcall-class-card h4 {
  font-size: 1.85rem;
  line-height: 0.9;
  margin-bottom: 6px;
}

.rollcall-class-card p {
  color: var(--muted);
  font-weight: 850;
  margin-bottom: 0;
}

.rollcall-list,
.parent-notification-list {
  display: grid;
  gap: 6px;
}

.rollcall-student {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.11);
  display: grid;
  align-items: center;
  gap: 10px;
  grid-template-columns: minmax(170px, 0.8fr) minmax(96px, 0.3fr) minmax(340px, 1.4fr);
  padding: 9px 10px;
}

.student-summary strong {
  display: block;
  font-family: var(--brand-font);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1;
  text-transform: uppercase;
}

.student-summary span,
.notification-row span {
  color: var(--muted);
  display: block;
  font-weight: 850;
  margin-top: 4px;
}

.rollcall-status {
  align-self: start;
  border: 1px solid rgba(0, 245, 255, 0.25);
  color: var(--white);
  justify-self: start;
  padding: 5px 8px;
}

.rollcall-status.unmarked {
  color: var(--muted);
}

.rollcall-status.absent {
  border-color: rgba(255, 107, 107, 0.34);
  color: var(--danger);
}

.rollcall-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rollcall-button {
  background: rgba(255, 255, 255, 0.085);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  color: var(--white);
  min-height: 42px;
  padding: 0 10px;
  text-transform: uppercase;
}

.rollcall-button:hover {
  border-color: rgba(0, 245, 255, 0.72);
  background: rgba(0, 245, 255, 0.11);
}

.rollcall-button.present.selected {
  background: #00f5ff;
  border-color: transparent;
  color: #020304;
}

.rollcall-button.away.selected,
.rollcall-button.sick.selected,
.rollcall-button.injured.selected {
  background: var(--danger);
  border-color: transparent;
  color: #020304;
}

.owner-row {
  grid-column: 1 / -1;
  width: 100%;
}

.owner-row > summary {
  align-items: center;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 850;
  gap: 6px;
  list-style: none;
  text-transform: uppercase;
}

.owner-row > summary svg {
  height: 15px;
  width: 15px;
}

.owner-row > summary::-webkit-details-marker {
  display: none;
}

.owner-row > summary::before {
  content: "+ ";
  color: var(--aqua);
}

.owner-row[open] > summary::before {
  content: "− ";
}

.owner-controls {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 8px;
  padding-top: 8px;
}

.notification-queue {
  margin-top: 0;
}

.notification-queue-body {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding: 12px 14px 14px;
}

.my-classes-shell .empty-row {
  min-height: 0;
  padding: 14px;
}

.family-lessons-shell,
.private-booking-shell {
  display: grid;
  gap: 14px;
}

.family-lessons-head {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.family-lessons-head h3,
.private-booking-shell > div > h3 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 0.92;
  margin-bottom: 8px;
}

.family-lessons-head p,
.private-booking-shell > div > p {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
}

.family-lesson-list {
  display: grid;
  gap: 10px;
}

.family-lesson-card,
.family-lesson-empty {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px;
}

.family-lesson-card.rained-out {
  background: linear-gradient(145deg, rgba(44, 85, 112, 0.28), rgba(9, 14, 20, 0.96));
  border-color: rgba(116, 189, 235, 0.5);
}

.family-lesson-card > header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.family-lesson-card header span,
.family-lesson-facts span {
  color: var(--aqua);
  display: block;
  font-family: var(--brand-font);
  font-size: 0.7rem;
  font-style: italic;
  font-weight: 950;
  text-transform: uppercase;
}

.family-lesson-card h4 {
  font-size: 2rem;
  line-height: 0.95;
  margin: 5px 0 0;
}

.family-lesson-status {
  border: 1px solid rgba(0, 245, 255, 0.3);
  color: var(--white);
  font-family: var(--brand-font);
  font-size: 0.9rem;
  font-style: italic;
  padding: 8px 10px;
  text-transform: uppercase;
}

.family-lesson-status.cancelled {
  border-color: rgba(116, 189, 235, 0.65);
  color: #bce8ff;
}

.family-lesson-facts {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.family-lesson-facts > div {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 96px;
  padding: 12px;
}

.family-lesson-facts strong {
  display: block;
  font-family: var(--brand-font);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1;
  margin-top: 12px;
  text-transform: uppercase;
}

.family-lesson-facts small {
  color: var(--muted);
  display: block;
  font-weight: 800;
  margin-top: 7px;
  overflow-wrap: anywhere;
}

.family-rain-note,
.family-lesson-empty p {
  color: var(--muted);
  font-weight: 800;
  margin: 12px 0 0;
}

.family-lesson-empty strong {
  font-family: var(--brand-font);
  font-size: 1.5rem;
  font-style: italic;
  text-transform: uppercase;
}

.private-booking-shell {
  max-width: 980px;
}

.private-booking-shell .private-lesson-card {
  margin-top: 4px;
}

.notification-row {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(0, 245, 255, 0.16);
  display: grid;
  gap: 4px;
  padding: 12px;
}

.notification-row strong {
  font-family: var(--brand-font);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1;
  text-transform: uppercase;
}

.text-link {
  color: var(--aqua);
  font-family: var(--brand-font);
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.alert-list,
.slot-grid,
.people-grid,
.week-list,
.coach-board,
.term-calendar {
  display: grid;
  gap: 12px;
}

.alert-row,
.slot-card,
.person-row,
.coach-column,
.student-chip,
.account-row,
.history-row {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  padding: 14px;
}

.alert-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 168px minmax(0, 1fr);
}

.alert-row.text-only {
  grid-template-columns: 1fr;
}

.alert-row.important {
  border-color: rgba(0, 245, 255, 0.44);
  box-shadow: inset 4px 0 0 var(--aqua);
}

.alert-image {
  aspect-ratio: 4 / 3;
  background: #020304;
  border: 1px solid rgba(0, 245, 255, 0.18);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.alert-copy {
  min-width: 0;
}

.alert-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.alert-meta span,
.alert-meta em {
  border: 1px solid rgba(0, 245, 255, 0.28);
  color: var(--aqua);
  font-family: var(--brand-font);
  font-style: italic;
  font-weight: 950;
  padding: 5px 8px;
  text-transform: uppercase;
}

.alert-meta em {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}

.alert-row p {
  margin-bottom: 0;
}

.alert-row small {
  color: var(--muted);
  display: block;
  font-weight: 800;
  margin-top: 8px;
}

.slot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.slot-card {
  display: grid;
  gap: 8px;
}

.slot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slot-card em {
  color: var(--aqua);
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.slot-card.blocked {
  opacity: 0.58;
}

.calendar-shell {
  overflow: hidden;
}

.calendar-head {
  align-items: stretch;
}

.calendar-head > div {
  max-width: 760px;
}

.calendar-head-actions {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.calendar-coach-filter {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(0, 245, 255, 0.34);
  display: grid;
  gap: 4px 9px;
  grid-template-columns: 20px minmax(112px, auto);
  margin: 0;
  padding: 7px 10px;
}

.calendar-coach-filter > svg {
  color: var(--aqua);
  grid-row: 1 / span 2;
  height: 19px;
  width: 19px;
}

.calendar-coach-filter > span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.calendar-coach-filter select {
  appearance: auto;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 900;
  min-height: 22px;
  padding: 0 22px 0 0;
}

.calendar-head p {
  margin-bottom: 0;
}

.weekly-timetable {
  background: rgba(4, 7, 10, 0.62);
  border: 1px solid rgba(0, 245, 255, 0.22);
  margin-top: 18px;
  padding: 16px;
}

.calendar-private-cta {
  margin-top: 12px;
}

.weekly-timetable-head {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.weekly-timetable-head h4 {
  font-size: 1.8rem;
  line-height: 1;
  margin: 0;
}

.weekly-timetable-head .eyebrow {
  margin-bottom: 6px;
}

.weekly-timetable-head > span {
  border: 1px solid rgba(0, 245, 255, 0.34);
  color: var(--aqua);
  font-weight: 900;
  padding: 7px 10px;
}

.weekly-timetable-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.timetable-day {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 0;
}

.timetable-day > header {
  align-items: center;
  background: linear-gradient(90deg, rgba(0, 245, 255, 0.14), rgba(139, 92, 255, 0.1));
  display: flex;
  justify-content: space-between;
  padding: 9px 10px;
}

.timetable-day > header strong {
  font-family: var(--brand-font);
  font-size: 1.05rem;
  font-style: italic;
  text-transform: uppercase;
}

.timetable-day > header span {
  align-items: center;
  background: var(--aqua);
  border-radius: 999px;
  color: #020304;
  display: inline-flex;
  font-weight: 950;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.timetable-sessions {
  display: grid;
}

.timetable-session {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(52px, auto) minmax(0, 1fr) auto;
  min-height: 42px;
  padding: 7px 9px;
}

.timetable-session:first-child {
  border-top: 0;
}

.timetable-session time {
  color: var(--aqua);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}

.timetable-session strong {
  font-size: 0.78rem;
  line-height: 1.15;
}

.timetable-session small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.private-lesson-card {
  align-items: center;
  background:
    linear-gradient(120deg, rgba(0, 245, 255, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(0, 245, 255, 0.25);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-width: min(420px, 100%);
  padding: 16px;
}

.private-lesson-card span,
.key-item {
  color: var(--aqua);
  display: block;
  font-family: var(--brand-font);
  font-style: italic;
  font-weight: 950;
  text-transform: uppercase;
}

.private-lesson-card strong {
  display: block;
  font-family: var(--brand-font);
  font-size: 1.8rem;
  font-style: italic;
  line-height: 0.95;
  text-transform: uppercase;
}

.private-lesson-card p {
  margin: 6px 0 0;
}

.primary-link {
  background: linear-gradient(90deg, var(--aqua), var(--purple));
  color: #020304;
  flex: 0 0 auto;
  font-family: var(--brand-font);
  font-style: italic;
  font-weight: 950;
  padding: 13px 16px;
  text-decoration: none;
  text-transform: uppercase;
}

.calendar-key {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  padding-top: 18px;
}

.key-item {
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 9px 12px;
}

.key-item.pizzey {
  background: rgba(0, 245, 255, 0.13);
  border-color: rgba(0, 245, 255, 0.46);
}

.key-item.nerang {
  background: rgba(139, 92, 255, 0.17);
  border-color: rgba(139, 92, 255, 0.5);
}

.key-item.rain {
  background: rgba(108, 128, 148, 0.2);
  border-color: rgba(154, 188, 220, 0.46);
  color: #c7e7ff;
}

.today-note {
  color: var(--muted);
  font-weight: 800;
  margin-left: auto;
}

.today-date-badge {
  align-items: center;
  border: 1px solid rgba(0, 245, 255, 0.34);
  display: inline-flex;
  gap: 9px;
  padding: 6px 10px 6px 6px;
}

.today-date-badge strong {
  align-items: center;
  background: linear-gradient(90deg, var(--aqua), var(--purple));
  border-radius: 999px;
  color: #020304;
  display: inline-flex;
  font-family: var(--brand-font);
  font-size: 1.2rem;
  font-style: italic;
  justify-content: center;
  min-height: 34px;
  min-width: 34px;
}

.today-date-badge span {
  color: var(--white);
  font-weight: 900;
}

.term-calendar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calendar-week {
  border: 1px solid var(--line);
  padding: 14px;
}

.calendar-week.pizzey {
  background: linear-gradient(145deg, rgba(0, 245, 255, 0.12), rgba(255, 255, 255, 0.025));
  border-color: rgba(0, 245, 255, 0.32);
}

.calendar-week.nerang {
  background: linear-gradient(145deg, rgba(139, 92, 255, 0.16), rgba(255, 255, 255, 0.025));
  border-color: rgba(139, 92, 255, 0.34);
}

.calendar-week.start-week {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.calendar-week header {
  align-items: start;
  display: grid;
  gap: 5px;
  grid-template-columns: 1fr auto;
  margin-bottom: 12px;
}

.calendar-week header span,
.calendar-week header strong {
  font-family: var(--brand-font);
  font-style: italic;
  font-weight: 950;
  text-transform: uppercase;
}

.calendar-week header span {
  color: var(--aqua);
}

.calendar-week header small {
  color: var(--muted);
  font-weight: 800;
  grid-column: 1 / -1;
}

.calendar-days {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-day {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 126px;
  padding: 10px;
  position: relative;
}

.calendar-day.lesson-day {
  border-color: rgba(255, 255, 255, 0.22);
}

.day-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.day-top span,
.calendar-day small {
  color: var(--muted);
  font-weight: 850;
}

.day-top strong {
  align-items: center;
  display: inline-flex;
  font-family: var(--brand-font);
  font-size: 1.6rem;
  font-style: italic;
  justify-content: center;
  min-height: 34px;
  min-width: 34px;
}

.calendar-day.today .day-top strong {
  background: linear-gradient(90deg, var(--aqua), var(--purple));
  border-radius: 999px;
  color: #020304;
}

.calendar-day p {
  color: var(--white);
  font-weight: 850;
  margin: 10px 0 0;
}

.calendar-day p.muted {
  color: rgba(255, 255, 255, 0.34);
}

.calendar-day-sessions {
  display: grid;
  gap: 4px;
  margin-top: 9px;
}

.calendar-day-sessions > span {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border-left: 2px solid var(--aqua);
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 5px 6px;
}

.calendar-day-sessions time {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  white-space: nowrap;
}

.calendar-day-sessions strong {
  color: var(--white);
  font-size: 0.68rem;
  line-height: 1;
  white-space: nowrap;
}

.start-label,
.rain-label {
  display: inline-grid;
  font-family: var(--brand-font);
  font-style: italic;
  font-weight: 950;
  margin-top: 9px;
  text-transform: uppercase;
}

.start-label {
  color: var(--aqua);
}

.calendar-day.rained-out {
  background:
    linear-gradient(145deg, rgba(78, 108, 138, 0.48), rgba(25, 34, 48, 0.82)),
    repeating-linear-gradient(110deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 9px);
  border-color: rgba(176, 211, 240, 0.62);
}

.calendar-day.rained-out p {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: line-through;
}

.calendar-day.rained-out .calendar-day-sessions {
  opacity: 0.64;
  text-decoration: line-through;
}

.rain-label span {
  color: #c7e7ff;
}

.rain-label strong {
  color: var(--white);
  font-size: 0.95rem;
}

.news-image-preview {
  align-items: center;
  border: 1px dashed rgba(0, 245, 255, 0.28);
  color: var(--muted);
  display: flex;
  font-weight: 800;
  gap: 12px;
  grid-column: 1 / -1;
  min-height: 58px;
  padding: 10px;
}

.news-image-preview img {
  aspect-ratio: 16 / 9;
  max-width: 180px;
  object-fit: cover;
  width: 100%;
}

.check-label {
  align-items: center;
  display: flex;
  gap: 10px;
}

.check-label input {
  min-height: auto;
  width: auto;
}

.admin-form,
.filter-bar {
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
  padding: 14px;
}

.admin-form.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-form .span-2 {
  grid-column: span 2;
}

.admin-form .primary-action {
  align-self: end;
}

.week-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.week-list span {
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.2);
  color: var(--white);
  font-weight: 850;
  padding: 10px;
}

.coach-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.coach-column {
  min-height: 170px;
}

.coach-column.drag-over {
  border-color: var(--aqua);
  box-shadow: inset 0 0 0 2px rgba(0, 245, 255, 0.25);
}

.coach-column h4 {
  margin: 0 0 12px;
}

.coach-column small {
  color: var(--muted);
  display: block;
  font-weight: 800;
  margin-bottom: 12px;
}

.student-chip {
  cursor: grab;
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.student-chip span,
.person-row span,
.slot-card span {
  color: var(--muted);
  font-weight: 760;
}

.people-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.person-row {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.editor-row textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 245, 255, 0.28);
  color: var(--white);
  font: inherit;
  min-height: 76px;
  padding: 11px 12px;
  resize: vertical;
  width: 100%;
}

.split-inputs {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-table {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
}

.account-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1.3fr 1fr 1fr auto;
  margin-bottom: 8px;
}

.people-manager {
  max-width: 1240px;
}

.people-page-head p:last-child {
  color: var(--muted);
  font-weight: 780;
  margin: 7px 0 0;
}

.people-metrics {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0;
}

.people-metrics > span {
  align-items: baseline;
  color: var(--muted);
  display: flex;
  font-size: 0.78rem;
  font-weight: 850;
  gap: 8px;
  padding: 12px 14px;
  text-transform: uppercase;
}

.people-metrics > span + span {
  border-left: 1px solid var(--line);
}

.people-metrics strong {
  color: var(--aqua);
  font-family: var(--brand-font);
  font-size: 1.35rem;
  font-style: italic;
}

.people-add-disclosure,
.people-section {
  border: 1px solid rgba(0, 245, 255, 0.24);
  margin-bottom: 10px;
  overflow: hidden;
}

.people-add-disclosure {
  border-color: rgba(0, 245, 255, 0.52);
  margin-bottom: 18px;
}

.people-add-disclosure > summary,
.people-section > summary {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto 34px;
  list-style: none;
  min-height: 66px;
  padding: 12px 14px;
}

.people-add-disclosure > summary::-webkit-details-marker,
.people-section > summary::-webkit-details-marker,
.person-editor > summary::-webkit-details-marker {
  display: none;
}

.people-add-disclosure > summary::after,
.people-section > summary::after,
.person-editor > summary::after {
  align-items: center;
  border: 1px solid rgba(0, 245, 255, 0.5);
  color: var(--aqua);
  content: "+";
  display: flex;
  font-family: var(--brand-font);
  font-size: 1.25rem;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.people-add-disclosure[open] > summary::after,
.people-section[open] > summary::after,
.person-editor[open] > summary::after {
  content: "-";
}

.people-add-disclosure[open] > summary,
.people-section[open] > summary {
  background: rgba(0, 245, 255, 0.075);
  border-bottom: 1px solid rgba(0, 245, 255, 0.28);
}

.people-add-disclosure summary strong,
.people-section-title strong {
  display: block;
  font-family: var(--brand-font);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1;
  text-transform: uppercase;
}

.people-add-disclosure summary small,
.people-section-title small {
  color: var(--muted);
  display: block;
  font-weight: 800;
  margin-top: 4px;
}

.summary-action,
.people-section-count {
  border: 1px solid rgba(0, 245, 255, 0.42);
  color: var(--aqua);
  font-family: var(--brand-font);
  font-style: italic;
  font-weight: 950;
  min-width: 42px;
  padding: 7px 9px;
  text-align: center;
  text-transform: uppercase;
}

.people-add-form {
  border-top: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 14px;
}

.people-add-form .primary-action {
  align-self: end;
  min-height: 46px;
}

.people-accordion {
  display: grid;
  gap: 10px;
}

.people-section-body {
  padding: 12px;
}

.people-search {
  display: block;
  margin-bottom: 10px;
}

.people-search > span {
  color: var(--aqua);
  display: block;
  font-size: 0.7rem;
  font-weight: 950;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.people-search input {
  min-height: 44px;
  width: 100%;
}

.people-list {
  display: grid;
  gap: 6px;
}

.person-editor {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.person-editor > summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 10px 16px;
  grid-template-columns: minmax(190px, 1.3fr) minmax(180px, 1fr) auto 32px;
  list-style: none;
  min-height: 64px;
  padding: 10px 12px;
}

.person-editor > summary:hover,
.person-editor[open] > summary {
  background: rgba(0, 245, 255, 0.055);
}

.person-editor[open] > summary {
  border-bottom: 1px solid rgba(0, 245, 255, 0.24);
}

.parent-person-editor.needs-linking {
  background: linear-gradient(100deg, rgba(118, 23, 34, 0.46), rgba(35, 12, 19, 0.74));
  border-color: rgba(255, 99, 112, 0.9);
  box-shadow: inset 4px 0 0 #ff6370;
}

.parent-person-editor.needs-linking > summary:hover,
.parent-person-editor.needs-linking[open] > summary {
  background: rgba(255, 99, 112, 0.12);
}

.parent-person-editor.needs-linking[open] > summary {
  border-bottom-color: rgba(255, 99, 112, 0.56);
}

.parent-link-warning {
  align-items: center;
  color: #ff8b94;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 950;
  gap: 6px;
  text-transform: uppercase;
}

.parent-link-warning svg { height: 16px; width: 16px; }
.parent-person-editor.needs-linking .person-primary small,
.parent-person-editor.needs-linking .person-secondary small { color: #ffd2d6; }
.parent-person-editor.needs-linking > summary::after { border-color: #ff6370; color: #ff8b94; }

.person-primary,
.person-secondary {
  min-width: 0;
}

.person-primary strong {
  display: block;
  font-family: var(--brand-font);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.person-primary small,
.person-secondary small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-secondary {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 850;
}

.person-toggle {
  border: 1px solid rgba(0, 245, 255, 0.34);
  color: var(--aqua);
  font-family: var(--brand-font);
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 950;
  padding: 6px 9px;
  text-transform: uppercase;
}

.person-editor-form {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px;
}

.person-editor-form > label,
.coach-days-field legend {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.person-editor-form input,
.person-editor-form select,
.person-editor-form textarea {
  margin-top: 5px;
  width: 100%;
}

.person-editor-form textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 245, 255, 0.28);
  color: var(--white);
  font: inherit;
  min-height: 84px;
  padding: 11px 12px;
  resize: vertical;
}

.field-wide {
  grid-column: 1 / -1;
}

.coach-days-field {
  border: 1px solid rgba(0, 245, 255, 0.2);
  margin: 0;
  padding: 10px;
}

.coach-days-field > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

.coach-days-field label {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  display: flex;
  font-size: 0.76rem;
  font-weight: 850;
  gap: 7px;
  padding: 8px 10px;
}

.coach-days-field input {
  accent-color: var(--aqua);
  margin: 0;
  width: 16px;
}

.parent-link-summary {
  align-items: center;
  border: 1px solid rgba(0, 245, 255, 0.22);
  display: grid;
  gap: 5px 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 12px;
}

.parent-link-summary > span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.parent-link-summary > strong {
  color: var(--aqua);
  font-family: var(--brand-font);
  font-size: 1.35rem;
  font-style: italic;
}

.parent-link-summary > small {
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 800;
  grid-column: 1 / -1;
  line-height: 1.4;
}

.rider-link-picker {
  border: 1px solid rgba(0, 245, 255, 0.3);
}

.rider-link-picker > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 0.78rem;
  font-weight: 900;
  justify-content: space-between;
  list-style: none;
  padding: 11px 12px;
  text-transform: uppercase;
}

.rider-link-picker > summary::-webkit-details-marker {
  display: none;
}

.rider-link-picker > summary strong {
  color: var(--aqua);
  font-family: var(--brand-font);
  font-style: italic;
}

.rider-link-picker-body {
  border-top: 1px solid rgba(0, 245, 255, 0.2);
  padding: 10px;
}

.rider-link-search {
  color: var(--muted);
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rider-link-search input {
  margin: 5px 0 10px;
  width: 100%;
}

.rider-link-options {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: 330px;
  overflow: auto;
}

.rider-link-options > label {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.13);
  cursor: pointer;
  display: flex;
  gap: 9px;
  min-width: 0;
  padding: 9px;
}

.rider-link-options > label:has(input:checked) {
  background: rgba(0, 245, 255, 0.1);
  border-color: rgba(0, 245, 255, 0.56);
}

.rider-link-options input {
  accent-color: var(--aqua);
  flex: 0 0 17px;
  height: 17px;
  margin: 0;
  width: 17px;
}

.rider-link-options span {
  min-width: 0;
}

.rider-link-options strong,
.rider-link-options small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rider-link-options strong {
  color: var(--white);
  font-size: 0.78rem;
}

.rider-link-options small {
  color: var(--muted);
  font-size: 0.67rem;
  margin-top: 2px;
}

.person-editor-actions {
  display: flex;
  justify-content: flex-end;
}

.person-editor-actions .danger {
  background: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 107, 107, 0.5);
  min-width: 170px;
}

.shop-card img {
  aspect-ratio: 1;
  background: #fff;
  display: block;
  object-fit: contain;
  width: 100%;
}

.shop-card h3 {
  margin: 14px 0 4px;
}

.shop-card a {
  color: var(--aqua);
  font-weight: 950;
  text-transform: uppercase;
}

.attendance-list {
  display: grid;
  gap: 8px;
}

.attendance-row,
.empty-row {
  border: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  font-weight: 850;
  gap: 12px;
  grid-template-columns: 1fr 1.1fr 1.2fr 1.4fr;
  padding: 12px;
}

.attendance-row small {
  color: var(--muted);
  display: block;
  margin-top: 6px;
}

.attendance-row input {
  margin-bottom: 6px;
  min-height: 38px;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-actions .selected,
.mini-action.selected {
  background: linear-gradient(90deg, var(--aqua), var(--purple));
  border-color: transparent;
  color: #020304;
}

.filter-bar {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.history-panel {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.history-row {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.history-row span {
  color: var(--muted);
  font-weight: 800;
}

.term3-shell > .section-head p,
.import-panel p,
.invitation-panel p {
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 0;
}

.term3-grid {
  display: grid;
  gap: 14px;
}

.term3-class-card,
.import-panel,
.invitation-panel {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  padding: 16px;
}

.term3-class-card header {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.term3-class-card header span,
.term3-head span,
.student-data-row.table-head span,
.import-panel h4,
.invitation-panel h4 {
  color: var(--aqua);
  font-family: var(--brand-font);
  font-style: italic;
  font-weight: 950;
  text-transform: uppercase;
}

.term3-class-card h4,
.import-panel h4,
.invitation-panel h4 {
  font-size: 1.55rem;
  line-height: 1;
  margin-bottom: 8px;
}

.term3-class-card header p,
.class-staff-line,
.term3-row small,
.student-data-row small,
.invite-row small,
.invite-row span,
.import-panel small {
  color: var(--muted);
  font-weight: 800;
}

.term3-class-card header strong {
  color: var(--white);
  font-family: var(--brand-font);
  font-size: 1.45rem;
  font-style: italic;
  text-transform: uppercase;
}

.class-staff-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.class-staff-line span {
  border: 1px solid rgba(0, 245, 255, 0.2);
  padding: 8px 10px;
}

.rain-action-bar {
  border: 1px solid rgba(255, 107, 107, 0.26);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  margin-bottom: 14px;
  padding: 12px;
}

.term3-roster,
.student-data-table {
  display: grid;
  gap: 8px;
}

.term3-row,
.student-data-row {
  align-items: center;
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1.1fr 0.8fr 1.35fr;
  padding: 12px;
}

.term3-row {
  grid-template-columns: 1fr 1.1fr 0.75fr 1.35fr;
}

.term3-roster.assistant-view .term3-row {
  grid-template-columns: 1fr 1.25fr;
}

.student-data-row {
  grid-template-columns: 0.85fr 1.15fr 1.25fr 0.8fr 0.9fr;
}

.term3-row strong,
.student-data-row strong,
.invite-row strong {
  color: var(--white);
  display: block;
}

.term3-status-actions .mini-action,
.status-actions .mini-action {
  min-width: 76px;
}

.import-panel {
  display: grid;
  gap: 18px;
  grid-template-columns: 0.75fr 1.25fr;
  margin-bottom: 16px;
}

.import-controls {
  display: grid;
  gap: 10px;
}

.import-controls textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 245, 255, 0.28);
  color: var(--white);
  font: inherit;
  min-height: 150px;
  padding: 11px 12px;
  resize: vertical;
  width: 100%;
}

.import-status,
.invite-preview {
  border: 1px solid rgba(0, 245, 255, 0.24);
  color: var(--aqua);
  font-weight: 900;
  margin: 0;
  padding: 10px 12px;
}

.student-data-filters {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.filter-bar .span-2 {
  grid-column: span 2;
}

.invitation-panel {
  margin-top: 18px;
}

.invite-row {
  border: 1px solid var(--line);
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 12px;
}

.profile-grid {
  display: grid;
  gap: 10px;
}

.table-head {
  background: linear-gradient(90deg, rgba(0, 245, 255, 0.18), rgba(139, 92, 255, 0.2));
  color: var(--white);
  font-weight: 950;
  text-transform: uppercase;
}

.empty-row {
  display: block;
  min-height: 82px;
}

.mini-action {
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.32);
  color: var(--white);
  font-family: var(--brand-font);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
  min-height: 34px;
  padding: 0 10px;
  text-transform: uppercase;
}

.mini-action.danger {
  border-color: rgba(255, 107, 107, 0.42);
  color: var(--danger);
}

.mini-action:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

@media (max-width: 1120px) {
  .auth-view {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    max-width: 100vw;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: visible;
    width: 100vw;
  }

  .auth-view::before {
    display: none;
  }

  .app-view {
    grid-template-columns: 1fr;
    max-width: 100vw;
    min-width: 0;
    overflow-x: hidden;
    width: 100vw;
  }

  .hero-panel {
    border-right: 0;
    gap: 18px;
    min-height: 0;
    overflow: visible;
    padding: 24px clamp(24px, 5vw, 54px) 0;
  }

  .topbar {
    order: 1;
  }

  .hero-copy {
    margin-top: 0;
    max-width: 760px;
    order: 2;
    padding-bottom: 0;
    text-shadow: none;
  }

  .landing-slideshow {
    aspect-ratio: 16 / 7;
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 6px;
    inset: auto;
    max-height: 360px;
    min-height: 220px;
    order: 3;
    position: relative;
    width: 100%;
  }

  .landing-slideshow::after {
    background: linear-gradient(0deg, rgba(3, 4, 5, 0.62), transparent 58%);
  }

  .hero-panel::after {
    display: none;
  }

  .auth-card {
    justify-self: center;
    margin: 20px auto 32px;
    max-height: none;
    max-width: 620px;
    width: calc(100% - 48px);
  }

  .sidebar {
    border-bottom: 1px solid rgba(0, 245, 255, 0.16);
    border-right: 0;
    gap: 12px;
    min-height: auto;
    max-width: 100vw;
    min-width: 0;
    padding: 14px;
    position: sticky;
    top: 0;
    width: 100vw;
    z-index: 30;
  }

  .workspace {
    max-width: 100vw;
    min-width: 0;
    overflow-x: hidden;
    width: 100vw;
  }

  .brand img {
    height: 38px;
    width: 38px;
  }

  nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    max-width: calc(100vw - 28px);
    min-width: 0;
    width: calc(100vw - 28px);
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .sidebar .outline-action {
    display: none;
  }

  .logout-action {
    margin-top: 0;
    min-height: 38px;
  }

  .card-grid,
  .shop-grid,
  .coach-grid,
  .management-grid,
  .quick-action-grid,
  .card-grid.two,
  .slot-grid,
  .class-rollcall-grid,
  .term-calendar,
  .admin-form,
  .admin-form.compact,
  .quick-student-form,
  .filter-bar,
  .week-list,
  .coach-board,
  .people-grid,
  .account-row,
  .term3-row,
  .student-data-row,
  .rain-action-bar,
  .import-panel,
  .student-data-filters,
  .coach-home-grid,
  .task-create-form {
    grid-template-columns: 1fr;
  }

  .command-hero,
  .admin-focus-bar,
  .coach-command-head,
  .calendar-head,
  .classes-header,
  .family-lessons-head,
  .private-lesson-card,
  .history-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-focus-bar {
    align-items: stretch;
  }

  .admin-primary-action {
    width: 100%;
  }

  .coach-command-head {
    align-items: stretch;
  }

  .task-plan-field {
    grid-column: auto;
  }

  .coach-task-item {
    align-items: stretch;
    flex-direction: column;
  }

  .today-note {
    margin-left: 0;
  }

  .calendar-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weekly-timetable-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day-tab-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .classes-header h3 {
    font-size: clamp(2.8rem, 8vw, 3.8rem);
  }

  .workspace-header h2 {
    font-size: clamp(2.8rem, 8vw, 3.8rem);
  }

  .rollcall-student {
    grid-template-columns: 1fr;
  }

  .owner-row {
    width: 100%;
  }

  .owner-controls {
    grid-template-columns: 1fr;
  }

  .family-lesson-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alert-row,
  .alert-row.has-image {
    grid-template-columns: 1fr;
  }

  .alert-image,
  .news-image-preview img {
    max-width: 100%;
  }

  .person-editor > summary {
    grid-template-columns: minmax(170px, 1.2fr) minmax(150px, 1fr) auto 32px;
  }

  .admin-form .span-2 {
    grid-column: auto;
  }

  .filter-bar .span-2 {
    grid-column: auto;
  }

  .term3-class-card header {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .auth-view {
    grid-template-rows: auto auto;
  }

  .hero-panel {
    gap: 13px;
    min-height: 0;
    padding: max(14px, env(safe-area-inset-top)) 14px 0;
  }

  .hero-panel::after {
    inset: 10px;
  }

  h1 {
    font-size: clamp(2.75rem, 12.5vw, 3.35rem);
    line-height: 0.9;
    margin-bottom: 8px;
    max-width: 100%;
  }

  .logo {
    height: 46px;
    width: 46px;
  }

  .book-link {
    border-color: rgba(0, 245, 255, 0.38);
    font-size: 0.72rem;
    min-height: 40px;
    padding: 0 12px;
  }

  .slogan {
    font-size: clamp(1rem, 4.9vw, 1.18rem);
    line-height: 1.08;
    margin-bottom: 7px;
  }

  .lead {
    color: var(--muted);
    font-family: var(--body-font);
    font-size: 0.92rem;
    font-style: normal;
    font-weight: 750;
    line-height: 1.35;
    margin-bottom: 8px;
    text-transform: none;
  }

  .credential-strip {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 8px;
  }

  .credential-strip span {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.14);
    font-family: var(--body-font);
    font-size: 0.62rem;
    font-style: normal;
    line-height: 1.2;
    padding: 7px 6px;
    text-align: center;
  }

  .auth-card {
    backdrop-filter: none;
    background: #0a0e13;
    border-radius: 6px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
    margin: 14px 14px 24px;
    padding: 22px 18px calc(24px + env(safe-area-inset-bottom));
    width: calc(100% - 28px);
  }

  .hero-copy {
    padding: 2px;
  }

  .hero-copy .eyebrow {
    font-size: 0.64rem;
    margin-bottom: 6px;
  }

  .landing-slideshow {
    aspect-ratio: 16 / 8.5;
    max-height: none;
    min-height: 0;
  }

  .slideshow-controls {
    bottom: 10px;
    gap: 8px;
    left: 10px;
  }

  .slide-arrow {
    background: rgba(3, 5, 7, 0.84);
    height: 34px;
    width: 34px;
  }

  .slide-dot {
    width: 13px;
  }

  .slide-dot.is-active {
    width: 28px;
  }

  .slide-counter {
    display: none;
  }

  .auth-card h2,
  .workspace-header h2,
  .command-hero h3 {
    font-size: clamp(2.4rem, 11vw, 3.35rem);
  }

  .auth-card h2 {
    font-size: clamp(2.15rem, 10vw, 2.7rem);
    line-height: 0.94;
  }

  .auth-card > p:not(.eyebrow):not(.auth-message) {
    font-size: 0.93rem;
    line-height: 1.42;
    margin-bottom: 0;
  }

  .auth-landing {
    gap: 10px;
    margin-top: 16px;
  }

  .auth-landing button {
    min-height: 50px;
  }

  .classes-header h3 {
    font-size: clamp(2.35rem, 11vw, 3rem);
  }

  .classes-progress {
    text-align: left;
  }

  .day-tab-row {
    gap: 8px;
  }

  .day-tab-row button {
    min-height: 58px;
    padding: 10px;
  }

  .rollcall-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .class-status-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .rollcall-class-summary {
    gap: 10px;
    min-height: 82px;
    padding: 12px;
  }

  .rollcall-class-summary-meta {
    gap: 3px 8px;
    grid-template-columns: auto 36px;
    min-width: 100px;
  }

  .rollcall-class-summary-meta > strong {
    font-size: 1.55rem;
  }

  .class-disclosure {
    height: 36px;
    width: 36px;
  }

  .rollcall-class-body {
    padding: 10px;
  }

  .task-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .rollcall-button {
    min-height: 48px;
  }

  .quick-student-form {
    padding: 12px;
  }

  .admin-summary-grid,
  .admin-action-row {
    grid-template-columns: 1fr;
  }

  .admin-focus-bar,
  .admin-summary-card {
    padding: 14px;
  }

  .admin-task-disclosure > summary,
  .roster-tools > summary,
  .notification-queue > summary {
    grid-template-columns: 1fr;
  }

  .admin-task-disclosure summary > strong,
  .roster-tools summary > strong,
  .notification-queue summary > strong {
    grid-column: 1;
    grid-row: auto;
  }

  .feature-card strong {
    font-size: 2.35rem;
  }

  .calendar-days {
    grid-template-columns: 1fr;
  }

  .weekly-timetable {
    padding: 12px;
  }

  .weekly-timetable-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .calendar-head-actions,
  .calendar-coach-filter,
  .calendar-head-actions .primary-link {
    width: 100%;
  }

  .calendar-coach-filter {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .weekly-timetable-grid {
    grid-template-columns: 1fr;
  }

  .family-lessons-head {
    align-items: stretch;
  }

  .family-lesson-card > header {
    align-items: flex-start;
  }

  .family-lesson-facts {
    grid-template-columns: 1fr;
  }

  .people-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .people-metrics > span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .people-metrics > span:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .people-add-disclosure > summary,
  .people-section > summary {
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto 32px;
    padding: 11px;
  }

  .people-add-disclosure summary small {
    line-height: 1.35;
  }

  .people-section-body {
    padding: 9px;
  }

  .person-editor > summary {
    gap: 7px 10px;
    grid-template-columns: minmax(0, 1fr) 30px;
    padding: 11px;
  }

  .person-secondary {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .person-toggle {
    display: none;
  }

  .person-editor > summary::after {
    grid-column: 2;
    grid-row: 1;
    height: 30px;
    width: 30px;
  }

  .person-editor-form {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .field-wide {
    grid-column: auto;
  }

  .coach-days-field > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rider-link-options {
    grid-template-columns: 1fr;
  }

  .person-editor-actions,
  .person-editor-actions .danger {
    width: 100%;
  }

  .calendar-day {
    min-height: 108px;
  }

  .topbar {
    align-items: center;
    gap: 14px;
  }
}

/* JKC level system and new operational surfaces. */
:root {
  --level-one: #ffffff;
  --level-two: #ffd43d;
  --level-three: #ff8b3d;
  --level-four: #3bd47f;
  --level-five: #173b82;
}

.level-badge {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  font-family: var(--body-font);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 850;
  justify-content: center;
  line-height: 1;
  min-height: 22px;
  padding: 4px 7px;
  text-transform: uppercase;
  white-space: nowrap;
}
.level-badge.level-1 { background: var(--level-one); border-color: #78828c; color: #10151a; }
.level-badge.level-2 { background: var(--level-two); border-color: #ffe477; color: #141414; }
.level-badge.level-3 { background: var(--level-three); border-color: #ffae72; color: #1d1008; }
.level-badge.level-4 { background: var(--level-four); border-color: #83e6aa; color: #07140b; }
.level-badge.level-5 { background: var(--level-five); border-color: #587dc7; color: #ffffff; }
.schedule-class-card.level-1 { --level-accent: var(--level-one); --level-wash: rgba(255,255,255,0.08); }
.schedule-class-card.level-2 { --level-accent: var(--level-two); --level-wash: rgba(255,212,61,0.1); }
.schedule-class-card.level-3 { --level-accent: var(--level-three); --level-wash: rgba(255,139,61,0.1); }
.schedule-class-card.level-4 { --level-accent: var(--level-four); --level-wash: rgba(59,212,127,0.1); }
.schedule-class-card.level-5 { --level-accent: var(--level-five); --level-wash: rgba(23,59,130,0.32); }
.calendar-key .level-key.level-1, .calendar-day-sessions > span.level-1 { --level-key-color: var(--level-one); --level-accent: var(--level-one); }
.calendar-key .level-key.level-2, .calendar-day-sessions > span.level-2 { --level-key-color: var(--level-two); --level-accent: var(--level-two); }
.calendar-key .level-key.level-3, .calendar-day-sessions > span.level-3 { --level-key-color: var(--level-three); --level-accent: var(--level-three); }
.calendar-key .level-key.level-4, .calendar-day-sessions > span.level-4 { --level-key-color: var(--level-four); --level-accent: var(--level-four); }
.calendar-key .level-key.level-5, .calendar-day-sessions > span.level-5 { --level-key-color: var(--level-five); --level-accent: var(--level-five); }
.rollcall-class-card.level-5 .rollcall-class-title h4, .schedule-class-card.level-5 strong, .calendar-day-sessions > span.level-5 strong { color: #ffffff; }
.class-selector-list strong .level-badge { margin-right: 5px; vertical-align: 1px; }
.student-summary strong .level-badge { margin-left: 5px; vertical-align: 1px; }
.field-help { color: var(--muted); display: block; font-size: 0.76rem; font-weight: 500; line-height: 1.35; margin-top: 5px; }
.recent-change { background: rgba(255, 212, 61, 0.14); border: 1px solid rgba(255, 212, 61, 0.42); border-radius: 999px; color: #ffe681; font-size: 0.66rem; font-weight: 800; padding: 3px 6px; text-decoration: none; }

.private-lessons-panel { grid-column: 1 / -1; }

.service-booking-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: min(860px, calc(100vh - 24px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: #111820;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .45);
}
.service-booking-dialog::backdrop { background: rgba(3, 8, 13, .76); backdrop-filter: blur(6px); }
.service-booking-card { position: relative; padding: 30px; overflow: auto; max-height: min(860px, calc(100vh - 24px)); }
.service-booking-card h2 { margin: 4px 42px 8px 0; font-size: clamp(1.55rem, 4vw, 2.2rem); }
.service-booking-intro, .service-booking-note { color: #5b6670; line-height: 1.55; }
.service-booking-rider { display: grid; gap: 7px; margin: 22px 0 16px; font-weight: 800; }
.service-booking-rider input, .service-review-form input, .service-review-form select { width: 100%; border: 1px solid #ccd4da; border-radius: 11px; padding: 11px 12px; background: #fff; color: #111820; }
.service-booking-filters { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 14px; }
.service-booking-filters button { white-space: nowrap; border: 1px solid #ccd4da; border-radius: 999px; padding: 9px 13px; background: #fff; font-weight: 800; }
.service-booking-filters button.active { color: #071116; background: #00ffff; border-color: #00dfe5; }
.service-session-list { display: grid; gap: 9px; }
.service-session-choice { display: grid; grid-template-columns: 155px 1fr auto; gap: 14px; align-items: center; width: 100%; padding: 15px; text-align: left; border: 1px solid #dce2e6; border-radius: 15px; background: #f8fafb; }
.service-session-choice:hover { border-color: #00bfc7; background: #effeff; }
.service-session-choice time, .service-session-choice strong { font-weight: 900; }
.service-session-choice span { display: grid; gap: 4px; }
.service-session-choice small { color: #66717a; }
.service-session-choice.loading { opacity: .55; }
.service-booking-loading { display: grid; place-items: center; gap: 12px; min-height: 180px; color: #56626c; }
.service-booking-loading svg { animation: spin 1s linear infinite; }
.service-booking-reviews { display: grid; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.service-review-heading { display: grid; gap: 4px; }
.service-review-heading span { color: var(--muted, #9aa7b0); font-size: .9rem; }
.service-review-form { display: grid; grid-template-columns: minmax(170px,1.3fr) repeat(3,minmax(135px,1fr)) auto; gap: 10px; align-items: end; padding: 13px; border-radius: 14px; background: rgba(255,255,255,.06); }
.service-review-form > div, .service-review-form label { display: grid; gap: 5px; }
.service-review-form small { color: var(--muted, #9aa7b0); }
.calendar-lesson-filter { min-width: 168px; }
@media (max-width: 760px) {
  .service-booking-card { padding: 22px 16px; }
  .service-session-choice { grid-template-columns: 1fr auto; }
  .service-session-choice time { grid-column: 1 / -1; }
  .service-review-form { grid-template-columns: 1fr; }
}
.panel-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.private-lesson-list { display: grid; gap: 7px; }
.private-lesson-row { align-items: center; background: rgba(255,255,255,0.035); border: 1px solid var(--line); border-left: 4px solid var(--purple); border-radius: 6px; display: grid; gap: 12px; grid-template-columns: 130px minmax(0, 1fr) auto; padding: 11px 12px; }
.private-lesson-row.tour, .private-calendar-row.tour { border-left-color: #ffca55; }
.private-lesson-row.team, .private-calendar-row.team { border-left-color: #62e6a7; }
.private-lesson-row strong, .private-lesson-row small { display: block; }
.private-lesson-row small { color: var(--muted); margin-top: 3px; }
.service-rider-list { color: #d6e2ea !important; overflow-wrap: anywhere; }
.service-capacity { align-items: center; background: rgba(98, 230, 167, 0.09); border: 1px solid rgba(98, 230, 167, 0.38); display: grid !important; gap: 1px; justify-items: center; min-width: 78px; padding: 8px 10px; text-align: center; }
.service-capacity strong { color: #79edb6 !important; font-size: 1rem !important; }
.service-capacity small { color: #b9d9c9 !important; font-size: 0.62rem !important; margin: 0 !important; white-space: nowrap; }
.service-capacity.full { background: rgba(255, 202, 85, 0.09); border-color: rgba(255, 202, 85, 0.38); }
.service-capacity.full strong, .service-capacity.full small { color: #ffe08e !important; }
.private-calendar-panel { margin-top: 16px; }
.private-calendar-list { display: grid; gap: 8px; }
.private-calendar-row { align-items: center; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); border-left: 3px solid var(--purple); border-radius: 6px; display: grid; gap: 12px; grid-template-columns: minmax(150px, 1.1fr) minmax(150px, 1fr) minmax(120px, 0.8fr) auto; padding: 12px 13px; }
.private-calendar-row strong,
.private-calendar-row span { display: block; }
.private-calendar-row span { color: var(--muted); font-size: 0.7rem; margin-top: 3px; }
.private-calendar-date strong { color: var(--aqua); }
.private-calendar-rider strong { color: var(--white); }
.private-calendar-coach > span { font-size: 0.62rem; margin-top: 0; text-transform: uppercase; }
.private-calendar-coach strong { font-size: 0.78rem; }
.private-lesson-date { color: var(--aqua); font-weight: 800; }
.community-showreel, .community-moderation-panel { grid-column: 1 / -1; }
.community-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 3px; scroll-snap-type: x proximity; }
.community-item { background: rgba(255,255,255,0.035); border: 1px solid var(--line); border-radius: 6px; color: var(--text); flex: 0 0 176px; overflow: hidden; scroll-snap-align: start; text-decoration: none; }
.community-thumb { align-items: center; background: linear-gradient(135deg, rgba(0,245,255,0.12), rgba(139,92,255,0.16)); display: grid; height: 112px; justify-items: center; overflow: hidden; }
.community-thumb img { height: 100%; object-fit: cover; width: 100%; }
.community-thumb svg { color: var(--aqua); height: 34px; width: 34px; }
.community-item > span { display: block; font-size: 0.76rem; line-height: 1.35; padding: 9px; }
.community-submit-form { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 14px; }
.community-submit-form label { color: var(--muted); display: grid; font-size: 0.76rem; gap: 5px; }
.community-submit-form label span { font-size: 0.7rem; }
.community-submit-form input { min-height: 42px; }
.community-submit-form button { align-self: end; min-height: 42px; }
.community-moderation-list { display: grid; gap: 7px; }
.community-review-row { align-items: center; background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 6px; display: flex; gap: 14px; justify-content: space-between; padding: 10px 12px; }
.community-review-row strong, .community-review-row small { display: block; }
.community-review-row small { color: var(--muted); margin-top: 3px; max-width: 580px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-review-row > div { display: flex; flex-wrap: wrap; gap: 6px; }
.parent-secondary-disclosure { background: rgba(5, 12, 18, 0.52); border: 1px solid var(--line); border-radius: 8px; grid-column: 1 / -1; overflow: hidden; }
.parent-secondary-disclosure > summary { align-items: center; cursor: pointer; display: flex; justify-content: space-between; list-style: none; min-height: 62px; padding: 12px 15px; }
.parent-secondary-disclosure > summary::-webkit-details-marker { display: none; }
.parent-secondary-disclosure > summary strong, .parent-secondary-disclosure > summary small { display: block; }
.parent-secondary-disclosure > summary small { color: var(--muted); font-family: var(--body-font); font-size: 0.76rem; font-weight: 600; margin-top: 3px; }
.parent-secondary-disclosure > summary svg { color: var(--aqua); transition: transform 160ms ease; }
.parent-secondary-disclosure[open] > summary svg { transform: rotate(180deg); }
.parent-secondary-grid { border-top: 1px solid var(--line); display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
.parent-secondary-grid > .community-showreel { grid-column: 1 / -1; }

@media (max-width: 760px) {
  .private-lesson-row { align-items: start; grid-template-columns: 1fr auto; }
  .private-lesson-row > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .community-submit-form { grid-template-columns: 1fr; }
  .community-review-row { align-items: start; display: grid; }
  .community-review-row > div { justify-content: start; }
  .parent-secondary-grid { grid-template-columns: 1fr; }
}

/* Compact admin navigation keeps every primary action visible on phones. */
.mobile-more-button,
.mobile-more-menu {
  display: none;
}

.push-permission-dialog {
  background: #0b131c;
  border: 1px solid rgba(25, 215, 229, 0.52);
  border-radius: 8px;
  color: var(--text);
  max-width: 430px;
  padding: 0;
  width: calc(100% - 32px);
}
.push-permission-dialog::backdrop { background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(5px); }
.push-permission-dialog form { display: grid; gap: 13px; padding: 28px; position: relative; }
.push-permission-dialog h2, .push-permission-dialog p { margin: 0; }
.push-permission-dialog p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.push-dialog-icon { align-items: center; background: rgba(25, 215, 229, 0.12); border: 1px solid rgba(25, 215, 229, 0.42); color: var(--aqua); display: flex; height: 52px; justify-content: center; width: 52px; }
.push-dialog-icon svg { height: 27px; width: 27px; }
.push-permission-dialog .dialog-close { background: transparent; border: 0; color: var(--muted); font-size: 1.8rem; line-height: 1; padding: 4px; position: absolute; right: 12px; top: 8px; }

@media (max-width: 760px) {
  body[data-role="admin"] .sidebar nav [data-tab="news"],
  body[data-role="admin"] .sidebar nav [data-tab="term3"],
  body[data-role="admin"] .sidebar nav [data-tab="shop"],
  body[data-role="admin"] .sidebar nav [data-tab="profile"] {
    display: none !important;
  }

  body[data-role="admin"] .mobile-more-button:not([hidden]) {
    display: flex;
  }

  body[data-role="admin"] .sidebar nav button {
    flex: 1 1 20%;
    min-width: 0;
  }

  .mobile-more-menu:not([hidden]) {
    background: #0b1117;
    border: 1px solid rgba(25, 215, 229, 0.42);
    bottom: calc(78px + env(safe-area-inset-bottom));
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.72);
    display: grid;
    gap: 5px;
    left: 12px;
    padding: 8px;
    position: fixed;
    right: 12px;
    z-index: 110;
  }

  .mobile-more-menu button {
    align-items: center;
    background: #101923;
    border: 1px solid rgba(157, 171, 188, 0.2);
    color: var(--text);
    display: grid;
    font-size: 0.92rem;
    gap: 12px;
    grid-template-columns: 24px 1fr;
    justify-items: start;
    min-height: 50px;
    padding: 0 14px;
    width: 100%;
  }

  .mobile-more-menu button svg {
    color: var(--aqua);
    height: 21px;
    width: 21px;
  }

  .auth-pane .pane-head h3 {
    display: none;
  }

  .auth-pane .pane-head {
    justify-content: flex-start;
  }
}

/* Reference UI: premium coaching workspace shared by admin, coaches and families. */
:root {
  --app-bg: #050a0f;
  --app-bg-soft: #08121b;
  --panel: rgba(12, 24, 34, 0.88);
  --panel-2: rgba(17, 31, 43, 0.92);
  --panel-3: #111d27;
  --line: rgba(159, 185, 204, 0.2);
  --line-strong: rgba(159, 185, 204, 0.34);
  --white: #f7fbff;
  --muted: #9ca9b7;
  --aqua: #19d7e5;
  --aqua-strong: #00edf2;
  --purple: #8b5cf6;
  --danger: #ff5e5e;
  --success: #51db91;
  --warning: #f1c84b;
  --day-monday: #21d7e5;
  --day-tuesday: #9b7bff;
  --day-wednesday: #4f9cff;
  --day-thursday: #eb70d6;
  --day-saturday: #f1c84b;
  --level-1: #ffffff;
  --level-2: #ffd43d;
  --level-3: #ff8b3d;
  --level-4: #3bd47f;
  --level-5: #173b82;
  --body-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body[data-role]:not([data-role=""]) {
  background:
    radial-gradient(circle at 88% 8%, rgba(16, 113, 155, 0.12), transparent 30%),
    linear-gradient(135deg, #04080c 0%, #06101a 58%, #04090e 100%);
  color: var(--white);
  font-family: var(--body-font);
}

body[data-role]:not([data-role=""]) h1,
body[data-role]:not([data-role=""]) h2,
body[data-role]:not([data-role=""]) h3,
body[data-role]:not([data-role=""]) h4,
body[data-role]:not([data-role=""]) button,
body[data-role]:not([data-role=""]) a,
body[data-role]:not([data-role=""]) input,
body[data-role]:not([data-role=""]) select,
body[data-role]:not([data-role=""]) textarea {
  font-family: var(--body-font);
  font-style: normal;
  letter-spacing: 0;
}

.app-view {
  background: transparent;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100dvh;
}

.sidebar {
  background: rgba(4, 10, 15, 0.9);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-left: 0;
  border-top: 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  padding: 24px 16px 18px;
  position: sticky;
  top: 0;
  width: auto;
}

.sidebar .brand {
  align-items: center;
  display: flex;
  gap: 13px;
  margin: 0 7px 30px;
  min-height: 72px;
}

.sidebar .brand img {
  aspect-ratio: 1;
  border: 2px solid rgba(25, 215, 229, 0.75);
  border-radius: 50%;
  height: 66px;
  object-fit: cover;
  width: 66px;
}

.sidebar .brand > span {
  min-width: 0;
}

.sidebar .brand strong {
  color: var(--white);
  display: block;
  font-size: 1rem;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar .brand small {
  color: var(--aqua);
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  margin-top: 5px;
  text-transform: uppercase;
}

.sidebar nav {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  padding: 0;
}

.sidebar nav button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #aab5c1;
  display: flex;
  flex: none;
  font-size: 0.94rem;
  font-weight: 620;
  gap: 13px;
  justify-content: flex-start;
  min-height: 50px;
  padding: 0 15px;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  width: 100%;
}

.sidebar nav button svg {
  flex: 0 0 22px;
  height: 22px;
  width: 22px;
}

.sidebar nav button:hover {
  background: rgba(25, 215, 229, 0.08);
  color: var(--white);
}

.sidebar nav button.active {
  background: linear-gradient(110deg, rgba(14, 126, 148, 0.68), rgba(9, 74, 91, 0.78));
  border-color: rgba(25, 215, 229, 0.22);
  box-shadow: none;
  color: var(--white);
}

.sidebar nav button.active svg {
  color: var(--aqua-strong);
}

.sidebar > .outline-action {
  border-color: var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  margin: 16px 0 8px;
  min-height: 42px;
}

.sidebar-profile {
  align-items: center;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--white);
  display: grid;
  gap: 10px;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  margin-top: auto;
  padding: 18px 7px 0;
  text-align: left;
}

.sidebar-profile > span:nth-child(2) {
  min-width: 0;
}

.sidebar-profile strong,
.sidebar-profile small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile strong {
  font-size: 0.84rem;
}

.sidebar-profile small {
  color: var(--muted);
  font-size: 0.66rem;
  margin-top: 3px;
}

.account-avatar {
  align-items: center;
  background: linear-gradient(135deg, rgba(25, 215, 229, 0.2), rgba(139, 92, 246, 0.24));
  border: 1px solid rgba(25, 215, 229, 0.5);
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.workspace,
body[data-role="admin"] .workspace,
body[data-role="coach"] .workspace,
body[data-role="assistantCoach"] .workspace {
  background: transparent;
  min-width: 0;
  overflow: visible;
  padding: 24px clamp(22px, 3vw, 44px) 48px;
}

.workspace-header,
body[data-role="admin"] .workspace-header,
body[data-role="coach"] .workspace-header,
body[data-role="assistantCoach"] .workspace-header {
  align-items: center;
  border: 0;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto 24px;
  max-width: 1420px;
  min-height: 72px;
  padding: 0;
}

.workspace-title-block {
  min-width: 0;
}

.workspace-header h2,
body[data-role="admin"] .workspace-header h2,
body[data-role="coach"] .workspace-header h2,
body[data-role="assistantCoach"] .workspace-header h2 {
  color: var(--white);
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  font-weight: 790;
  line-height: 1.05;
  margin: 0;
  text-transform: none;
}

.workspace-header .eyebrow {
  color: var(--muted);
  display: block;
  font-family: var(--body-font);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 550;
  margin: 7px 0 0;
  order: 2;
  text-transform: none;
}

.workspace-title-block {
  display: flex;
  flex-direction: column-reverse;
}

.workspace-tools {
  align-items: center;
  display: flex;
  flex: 0 1 auto;
  gap: 11px;
}

.global-search {
  align-items: center;
  background: rgba(8, 18, 26, 0.8);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  min-width: min(320px, 26vw);
  padding: 0 14px;
}

.global-search svg {
  color: var(--muted);
  height: 19px;
  width: 19px;
}

.global-search input {
  background: transparent;
  border: 0;
  color: var(--white);
  min-height: 46px;
  outline: 0;
  padding: 0;
  width: 100%;
}

.icon-action,
.header-profile {
  background: transparent;
  border: 1px solid transparent;
  color: var(--white);
}

.icon-action {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 44px;
}

.icon-action:hover,
.header-profile:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

.notification-badge {
  align-items: center;
  background: var(--danger);
  border: 2px solid var(--app-bg);
  border-radius: 999px;
  color: white;
  display: flex;
  font-size: 0.62rem;
  font-weight: 850;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  padding: 0 4px;
  position: absolute;
  right: 0;
  top: 0;
}

.header-profile {
  align-items: center;
  border-radius: 8px;
  display: flex;
  gap: 9px;
  min-height: 48px;
  padding: 5px 7px;
  text-align: left;
}

.header-profile > span:nth-child(2) strong,
.header-profile > span:nth-child(2) small {
  display: block;
}

.header-profile > span:nth-child(2) strong {
  font-size: 0.82rem;
}

.header-profile > span:nth-child(2) small {
  color: var(--aqua);
  font-size: 0.62rem;
  margin-top: 2px;
}

.status-pill {
  background: rgba(81, 219, 145, 0.08);
  border: 1px solid rgba(81, 219, 145, 0.38);
  border-radius: 5px;
  color: var(--success);
  font-size: 0.68rem;
  font-weight: 760;
  min-height: 34px;
  padding: 8px 10px;
  text-transform: none;
  white-space: nowrap;
}

.status-pill.cancelled {
  background: rgba(255, 94, 94, 0.1);
  border-color: rgba(255, 94, 94, 0.48);
  color: #ff8686;
}

.tab {
  margin: 0 auto;
  max-width: 1420px;
}

.wide-card,
.dashboard-panel,
.updates-reference-page,
.family-session-card,
.active-week-board,
.admin-settings-disclosure {
  background: linear-gradient(145deg, rgba(12, 23, 33, 0.94), rgba(8, 17, 25, 0.96));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

.wide-card {
  padding: 22px;
}

.wide-card p,
.dashboard-panel p,
.family-session-card p {
  color: var(--muted);
}

.reference-page-head {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.reference-page-head h3 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 780;
  line-height: 1.05;
  margin: 0 0 6px;
}

.reference-page-head p {
  color: var(--muted);
  margin: 0;
}

.panel-kicker {
  color: var(--aqua) !important;
  font-size: 0.7rem;
  font-weight: 820;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.panel-heading {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.panel-heading h3,
.panel-heading h4 {
  margin: 0;
}

.text-action {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--aqua);
  display: inline-flex;
  font-size: 0.78rem;
  gap: 7px;
  padding: 6px;
}

.text-action svg {
  height: 15px;
  width: 15px;
}

.primary-action,
.primary-link {
  align-items: center;
  background: linear-gradient(105deg, #12d8e7, #32bdea 52%, #8357f4);
  border: 0;
  border-radius: 6px;
  color: #021015;
  display: inline-flex;
  font-weight: 780;
  gap: 9px;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  text-decoration: none;
}

.primary-action:hover,
.primary-link:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.primary-action svg,
.primary-link svg {
  height: 18px;
  width: 18px;
}

.mini-action {
  align-items: center;
  background: rgba(25, 215, 229, 0.06);
  border: 1px solid rgba(25, 215, 229, 0.38);
  border-radius: 5px;
  color: var(--white);
  display: inline-flex;
  gap: 7px;
  justify-content: center;
  min-height: 40px;
  padding: 0 13px;
}

.staff-home-simple {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 1480px;
}

.coach-home-focused {
  gap: 12px;
  max-width: 1120px;
}

.coach-home-organised {
  max-width: 1320px;
}

.staff-notification-centre {
  background: #101c27;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-top: 4px solid var(--aqua);
  padding: 18px;
}

.staff-notification-centre > header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 13px;
}

.staff-notification-centre > header h3 {
  font-family: var(--body-font);
  font-size: 1.28rem;
  font-style: normal;
  letter-spacing: 0;
  margin: 2px 0 0;
  text-transform: none;
}

.staff-notification-centre > header > span {
  align-items: center;
  background: var(--aqua);
  border-radius: 50%;
  color: #031016;
  display: inline-flex;
  flex: 0 0 36px;
  font-size: 0.86rem;
  font-weight: 900;
  height: 36px;
  justify-content: center;
}

.staff-notification-list {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.staff-notification-layout {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
}

.staff-notification-list > button,
.staff-notification-list > a {
  align-items: center;
  background: #09141d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr) 17px;
  min-height: 70px;
  padding: 10px 12px;
  text-align: left;
  text-decoration: none;
}

.staff-notification-list > button:hover,
.staff-notification-list > button:focus-visible,
.staff-notification-list > a:hover,
.staff-notification-list > a:focus-visible {
  border-color: var(--aqua);
  background: #0d202b;
}

.staff-notification-list > button > span:nth-child(2),
.staff-notification-list > a > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.staff-notification-list strong { font-size: 0.78rem; }
.staff-notification-list small { color: var(--muted); font-size: 0.66rem; line-height: 1.3; }
.staff-notification-list > button > svg,
.staff-notification-list > a > svg { color: var(--muted); height: 17px; width: 17px; }

.staff-notice-icon {
  align-items: center;
  background: rgba(25, 215, 229, 0.12);
  color: var(--aqua);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.staff-notice-icon svg { height: 19px; width: 19px; }
.staff-notice-icon.parent { background: rgba(255, 107, 107, 0.14); color: #ff8b8b; }
.staff-notice-icon.roll { background: rgba(52, 211, 153, 0.14); color: #55e3ad; }
.staff-notice-icon.task { background: rgba(168, 129, 255, 0.16); color: #b99cff; }
.staff-notice-icon.makeup { background: rgba(61, 169, 255, 0.16); color: #6ec1ff; }
.staff-notice-icon.booking { background: rgba(255, 201, 71, 0.15); color: #ffd66b; }
.staff-notice-icon.square { background: rgba(61, 169, 255, 0.16); color: #78c8ff; }
.staff-notice-icon.update { background: rgba(255, 126, 188, 0.15); color: #ff9ace; }

.staff-notification-clear {
  align-items: center;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.32);
  color: #55e3ad;
  display: grid;
  gap: 11px;
  grid-column: 1 / -1;
  grid-template-columns: 30px minmax(0, 1fr);
  min-height: 66px;
  padding: 11px 14px;
}
.staff-notification-clear svg { height: 24px; width: 24px; }
.staff-notification-clear span { display: grid; gap: 2px; }
.staff-notification-clear small { color: var(--muted); }

.staff-live-activity {
  background: #09141d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  min-width: 0;
  padding: 12px;
}

.staff-live-activity > header {
  align-items: center;
  display: flex;
  gap: 9px;
  justify-content: space-between;
  margin-bottom: 6px;
}

.staff-live-activity > header > span {
  align-items: center;
  color: #55e3ad;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 900;
  gap: 6px;
  text-transform: uppercase;
}

.staff-live-activity > header i {
  background: #55e3ad;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(85, 227, 173, 0.12);
  height: 7px;
  width: 7px;
}

.staff-live-activity > header strong { font-size: 0.76rem; }
.staff-live-activity > div { display: grid; }

.staff-live-activity a {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: grid;
  gap: 9px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  min-height: 56px;
  padding: 8px 2px;
  text-decoration: none;
}

.staff-live-activity a:hover,
.staff-live-activity a:focus-visible { background: rgba(25, 215, 229, 0.06); outline: 1px solid var(--aqua); }
.staff-live-activity a > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.staff-live-activity a strong { font-size: 0.72rem; }
.staff-live-activity a small { color: var(--muted); font-size: 0.62rem; line-height: 1.3; overflow-wrap: anywhere; }
.staff-live-activity time { color: var(--muted); font-size: 0.58rem; white-space: nowrap; }
.staff-activity-icon { align-items: center; background: rgba(25, 215, 229, 0.11); color: var(--aqua); display: inline-flex; height: 30px; justify-content: center; width: 30px; }
.staff-activity-icon svg { height: 16px; width: 16px; }
.staff-live-activity a.success .staff-activity-icon { background: rgba(52, 211, 153, 0.12); color: #55e3ad; }
.staff-live-activity a.warning .staff-activity-icon { background: rgba(255, 201, 71, 0.13); color: #ffd66b; }
.staff-activity-empty { border-top: 1px solid rgba(255, 255, 255, 0.1); display: grid; gap: 3px; padding: 12px 2px 4px; }
.staff-activity-empty strong { font-size: 0.72rem; }
.staff-activity-empty small { color: var(--muted); font-size: 0.64rem; }

.coach-workstream {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 12px;
  padding-top: 20px;
}

.coach-workstream-heading {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  padding: 4px 2px;
}

.coach-workstream-heading h3 {
  font-family: var(--body-font);
  font-size: 1.38rem;
  font-style: normal;
  letter-spacing: 0;
  margin: 2px 0 3px;
  text-transform: none;
}
.coach-workstream-heading p:last-child { color: var(--muted); font-size: 0.75rem; margin: 0; }
.coach-workstream-mark { align-items: center; display: inline-flex; height: 48px; justify-content: center; width: 48px; }
.coach-workstream-mark svg { height: 25px; width: 25px; }
.coach-workstream-heading.term3 .coach-workstream-mark { background: #0b5360; color: #5ff6ff; }
.coach-workstream-heading.term4 .coach-workstream-mark { background: #35265c; color: #c4a8ff; }
.coach-workstream-heading.services .coach-workstream-mark { background: #5b4618; color: #ffe080; }

.workstream-summary {
  align-items: stretch;
  background: #101b25;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, minmax(105px, 0.5fr)) minmax(220px, 1fr);
  padding: 16px;
}
.term4-summary { border-left: 5px solid #a881ff; }
.services-summary { border-left: 5px solid #ffd25f; }
.services-summary { grid-template-columns: repeat(3, minmax(105px, 0.5fr)) minmax(250px, 1.2fr) auto; }
.services-summary .square-automation-status { background: transparent; grid-column: 1 / 5; min-height: 0; padding: 2px; }
.services-summary .primary-action { grid-column: 5; grid-row: 1 / 3; }
.square-automation-status { align-items: center; color: #79e6b1; display: inline-flex; font-size: .68rem; font-weight: 800; gap: 7px; }
.square-automation-status svg { height: 16px; width: 16px; }
.workstream-summary > span { background: rgba(255, 255, 255, 0.035); display: grid; gap: 3px; min-height: 64px; padding: 10px 12px; }
.workstream-summary > span strong { font-size: 1.2rem; }
.workstream-summary > span small { color: var(--muted); font-size: 0.66rem; }
.workstream-summary .services-next strong { color: #ffe080; font-size: 0.8rem; }
.workstream-summary .primary-action { align-self: stretch; min-height: 64px; }
.workstream-note { align-self: center; color: var(--muted); font-size: 0.7rem; line-height: 1.45; padding: 8px 12px; }
.workstream-loading,
.workstream-empty { align-items: center; background: #101b25; border: 1px solid rgba(168, 129, 255, 0.34); color: var(--muted); display: flex; gap: 10px; min-height: 78px; padding: 15px; }
.workstream-loading svg { animation: spin 1s linear infinite; color: #b99cff; height: 20px; width: 20px; }
.workstream-empty { align-items: flex-start; flex-direction: column; }
.workstream-empty strong { color: var(--white); }

.workstream-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.workstream-actions.single-action { grid-template-columns: 1fr; }
.workstream-actions button {
  align-items: center;
  background: rgba(25, 215, 229, 0.06);
  border: 1px solid rgba(25, 215, 229, 0.3);
  color: var(--white);
  display: flex;
  font-weight: 760;
  gap: 9px;
  justify-content: center;
  min-height: 46px;
  padding: 8px 12px;
}
.workstream-actions button:hover,
.workstream-actions button:focus-visible { background: rgba(25, 215, 229, 0.12); border-color: var(--aqua); }
.workstream-actions svg { color: var(--aqua); height: 18px; width: 18px; }

.coach-home-focused .coach-session-focused {
  grid-template-columns: minmax(240px, 1fr) auto minmax(210px, auto);
}

.coach-home-focused .coach-session-focused .coach-session-actions {
  grid-template-columns: 1fr;
}

.coach-focus-weather {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 8px;
  margin-top: 11px;
}

.coach-focus-weather .weather-mark {
  flex: 0 0 auto;
  transform: scale(0.42);
  transform-origin: left center;
  width: 28px;
}

.coach-focus-weather > div:last-child {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.coach-focus-weather span,
.coach-focus-weather p { color: var(--muted); font-size: 0.65rem; margin: 0; }
.coach-focus-weather strong { color: var(--white); font-size: 0.82rem; }

.coach-class-queue {
  padding: 18px;
}

.coach-queue-hint {
  background: rgba(25, 215, 229, 0.08);
  border: 1px solid rgba(25, 215, 229, 0.28);
  color: var(--aqua);
  font-size: 0.68rem;
  font-weight: 780;
  padding: 8px 10px;
}

.staff-context-band {
  align-items: center;
  background:
    linear-gradient(110deg, rgba(10, 50, 61, 0.96), rgba(10, 20, 31, 0.98) 58%, rgba(37, 24, 66, 0.88)),
    url("./assets/instagram-slide-3.jpg") right center / 48% auto no-repeat;
  border: 1px solid rgba(25, 215, 229, 0.4);
  border-left: 5px solid var(--aqua);
  border-radius: 8px;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  min-height: 164px;
  overflow: hidden;
  padding: 24px 26px;
  position: relative;
}

.staff-context-band.away {
  border-color: rgba(241, 200, 75, 0.42);
  border-left-color: var(--warning);
}

.staff-context-band.makeup {
  border-color: rgba(139, 92, 246, 0.52);
  border-left-color: var(--purple);
}

.staff-context-copy {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.staff-context-copy h3,
.staff-panel-title h3,
.staff-priority-panel h3 {
  font-family: var(--body-font);
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}

.pending-parent-command-tab {
  width: 100%;
  min-height: 88px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 179, 71, 0.62);
  border-left: 5px solid #ffb347;
  background: linear-gradient(90deg, rgba(255, 179, 71, 0.14), rgba(13, 227, 239, 0.07));
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.command-centre-park {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(13, 227, 239, 0.55);
  border-left: 5px solid var(--aqua);
  background: linear-gradient(90deg, rgba(13, 227, 239, 0.16), rgba(126, 87, 255, 0.1));
}

.command-centre-park-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--aqua);
  border: 1px solid rgba(13, 227, 239, 0.48);
  background: rgba(13, 227, 239, 0.1);
}

.command-centre-park-icon svg { width: 25px; height: 25px; }
.command-centre-park-copy { min-width: 0; display: grid; gap: 3px; }
.command-centre-park-copy small { color: var(--aqua); font-weight: 800; text-transform: uppercase; }
.command-centre-park-copy strong { color: var(--text); font-size: 1.2rem; }
.command-centre-park-copy span { color: var(--muted); }
.command-centre-park > button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(13, 227, 239, 0.42); background: rgba(5, 17, 25, 0.75); color: var(--text); font-weight: 800; cursor: pointer; }
.command-centre-park > button:hover,
.command-centre-park > button:focus-visible { border-color: var(--aqua); color: var(--aqua); }
.command-centre-park > button svg { width: 17px; height: 17px; }

.pending-parent-command-tab:hover,
.pending-parent-command-tab:focus-visible {
  border-color: #ffcf85;
  background: linear-gradient(90deg, rgba(255, 179, 71, 0.22), rgba(13, 227, 239, 0.11));
}

.pending-parent-command-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #ffcf85;
  border: 1px solid rgba(255, 179, 71, 0.55);
  background: rgba(255, 179, 71, 0.12);
}

.pending-parent-command-icon svg { width: 24px; height: 24px; }
.pending-parent-command-copy { min-width: 0; display: grid; gap: 3px; }
.pending-parent-command-copy small { color: #ffcf85; font-weight: 800; text-transform: uppercase; }
.pending-parent-command-copy strong { font-size: 1.08rem; }
.pending-parent-command-copy span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pending-parent-command-action { display: inline-flex; align-items: center; gap: 8px; color: var(--aqua); font-weight: 800; }
.pending-parent-command-action svg { width: 18px; height: 18px; }

@media (max-width: 640px) {
  .command-centre-park { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px; }
  .command-centre-park > button { grid-column: 2; justify-self: start; }
  .pending-parent-command-tab { grid-template-columns: auto minmax(0, 1fr); min-height: 80px; gap: 12px; padding: 14px; }
  .pending-parent-command-action { grid-column: 2; justify-self: start; }
  .pending-parent-command-copy span { white-space: normal; }
}

.staff-context-copy h3 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.05;
  margin: 3px 0 8px;
}

.staff-context-copy > p:last-of-type {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.staff-context-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.staff-context-tags span {
  align-items: center;
  background: rgba(3, 12, 18, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  color: var(--white);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 750;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
}

.staff-context-tags svg {
  color: var(--aqua);
  height: 16px;
  width: 16px;
}

.staff-context-weather {
  align-items: center;
  background: rgba(4, 12, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  display: flex;
  flex: 0 0 250px;
  gap: 13px;
  min-height: 94px;
  padding: 15px;
  position: relative;
  z-index: 1;
}

.staff-context-weather .weather-mark {
  flex: 0 0 auto;
  transform: scale(0.76);
}

.staff-context-weather > div:last-child {
  display: grid;
  gap: 3px;
}

.staff-context-weather span,
.staff-context-weather p {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.3;
  margin: 0;
}

.staff-context-weather strong {
  font-size: 1.35rem;
  line-height: 1;
}

.coach-session-focus {
  align-items: center;
  background: linear-gradient(118deg, rgba(7, 42, 53, 0.98), rgba(9, 20, 31, 0.98) 56%, rgba(47, 28, 80, 0.94));
  border: 1px solid rgba(25, 215, 229, 0.52);
  border-radius: 8px;
  box-shadow: inset 4px 0 0 var(--aqua);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(240px, 1fr) auto minmax(210px, auto);
  min-height: 154px;
  padding: 22px 24px;
}

.coach-session-focus.makeup {
  border-color: rgba(139, 92, 246, 0.66);
  box-shadow: inset 4px 0 0 var(--purple);
}

.coach-session-focus.empty {
  grid-template-columns: minmax(0, 1fr) auto;
}

.coach-session-focus-copy h3 {
  font-family: var(--body-font);
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 4px 0 7px;
  text-transform: none;
}

.coach-session-focus-copy > p:last-of-type,
.coach-session-focus.empty p:last-child {
  color: var(--muted);
  font-size: 0.76rem;
  margin: 0;
}

.coach-session-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.coach-session-levels span {
  align-items: center;
  background: rgba(3, 12, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: var(--white);
  display: inline-flex;
  font-size: 0.69rem;
  font-weight: 780;
  gap: 6px;
  min-height: 30px;
  padding: 4px 8px;
}

.coach-session-metrics {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, minmax(74px, 1fr));
}

.coach-session-metrics > span {
  align-items: center;
  background: rgba(3, 12, 18, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  display: grid;
  gap: 2px 8px;
  grid-template-columns: 20px auto;
  min-height: 62px;
  padding: 9px 10px;
}

.coach-session-metrics svg {
  color: var(--aqua);
  grid-row: 1 / 3;
  height: 18px;
  width: 18px;
}

.coach-session-metrics strong { font-size: 0.92rem; }
.coach-session-metrics small { color: var(--muted); font-size: 0.61rem; }

.coach-session-actions {
  display: grid;
  gap: 8px;
}

.coach-session-actions .primary-action,
.coach-session-actions .secondary-action {
  min-height: 48px;
  min-width: 210px;
}

.coach-session-actions .secondary-action {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 780;
}

.admin-coach-preview {
  display: grid;
  gap: 10px;
}

.admin-coach-preview > header {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 0 2px;
}

.admin-coach-preview > header h3 {
  font-family: var(--body-font);
  font-size: 1.08rem;
  font-style: normal;
  letter-spacing: 0;
  margin: 3px 0 0;
  text-transform: none;
}

.admin-coach-preview > header label {
  align-items: center;
  display: flex;
  gap: 9px;
}

.admin-coach-preview > header label span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 760;
}

.admin-coach-preview select {
  background: var(--panel-raised);
  border: 1px solid rgba(25, 215, 229, 0.42);
  border-radius: 5px;
  color: var(--white);
  min-height: 42px;
  min-width: 190px;
  padding: 0 34px 0 11px;
}

.staff-home-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}

.staff-home-rail {
  display: grid;
  gap: 16px;
}

.staff-day-panel,
.staff-priority-panel,
.staff-action-panel {
  padding: 20px;
}

.staff-panel-title {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 15px;
}

.staff-panel-title h3 {
  font-size: 1.28rem;
  margin: 2px 0 3px;
}

.staff-panel-title p:last-child {
  color: var(--muted);
  font-size: 0.75rem;
  margin: 0;
}

.staff-count-badge {
  align-items: center;
  background: rgba(25, 215, 229, 0.11);
  border: 1px solid rgba(25, 215, 229, 0.38);
  border-radius: 50%;
  color: var(--aqua);
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 0.8rem;
  font-weight: 850;
  height: 34px;
  justify-content: center;
}

.staff-class-rows {
  display: grid;
  gap: 8px;
}

.staff-class-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-left: 3px solid var(--aqua);
  border-radius: 6px;
  color: var(--white);
  display: grid;
  gap: 14px;
  grid-template-columns: 74px minmax(170px, 1fr) minmax(105px, auto) 78px 18px;
  min-height: 78px;
  padding: 10px 13px;
  text-align: left;
}

.staff-class-row:hover,
.staff-class-row:focus-visible {
  background: rgba(25, 215, 229, 0.075);
  border-color: rgba(25, 215, 229, 0.55);
}

.staff-class-row.roll-complete {
  border-left-color: var(--success);
}

.staff-class-time,
.staff-class-main,
.staff-class-plan,
.staff-class-roll {
  display: grid;
  gap: 2px;
}

.staff-class-time strong {
  color: var(--aqua);
  font-size: 0.92rem;
}

.staff-class-time small,
.staff-class-main small,
.staff-class-plan small,
.staff-class-roll small {
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.25;
}

.staff-class-main strong {
  align-items: center;
  display: flex;
  font-size: 0.9rem;
  gap: 6px;
}

.staff-class-plan {
  align-items: center;
  grid-template-columns: 18px auto;
}

.staff-class-plan svg {
  color: var(--muted);
  height: 17px;
  width: 17px;
}

.staff-class-plan.has-plan svg {
  color: var(--purple);
}

.staff-class-roll {
  text-align: right;
}

.staff-class-roll strong {
  font-size: 0.9rem;
}

.staff-class-roll.complete strong,
.staff-class-roll.complete small {
  color: var(--success);
}

.staff-class-row > svg:last-child {
  color: var(--muted);
  height: 18px;
  width: 18px;
}

.staff-day-empty {
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  display: grid;
  gap: 14px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  min-height: 104px;
  padding: 16px;
}

.staff-day-empty > svg {
  color: var(--warning);
  height: 30px;
  width: 30px;
}

.staff-day-empty div {
  display: grid;
  gap: 4px;
}

.staff-day-empty strong {
  font-size: 0.9rem;
}

.staff-day-empty span {
  color: var(--muted);
  font-size: 0.72rem;
}

.staff-priority-list {
  display: grid;
  gap: 8px;
}

.staff-priority-list > button {
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--white);
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  min-height: 62px;
  padding: 9px 10px;
  text-align: left;
}

.staff-priority-list > button:hover {
  border-color: rgba(25, 215, 229, 0.45);
}

.staff-priority-list > button > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.staff-priority-list strong {
  font-size: 0.8rem;
}

.staff-priority-list small {
  color: var(--muted);
  font-size: 0.66rem;
}

.staff-priority-icon {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.staff-priority-icon svg { height: 18px; width: 18px; }
.staff-priority-icon.coral { background: rgba(255, 107, 107, 0.13); color: var(--danger); }
.staff-priority-icon.purple { background: rgba(139, 92, 246, 0.15); color: #b99cff; }
.staff-priority-icon.blue { background: rgba(25, 215, 229, 0.12); color: var(--aqua); }
.staff-priority-icon.amber { background: rgba(241, 200, 75, 0.12); color: var(--warning); }

.staff-all-clear {
  align-items: center;
  background: rgba(52, 211, 153, 0.07);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 6px;
  color: var(--success);
  display: grid;
  gap: 10px;
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 64px;
  padding: 10px 12px;
}

.staff-all-clear svg { height: 22px; width: 22px; }
.staff-all-clear span { display: grid; gap: 2px; }
.staff-all-clear strong { font-size: 0.8rem; }
.staff-all-clear small { color: var(--muted); font-size: 0.66rem; }

.staff-action-panel .panel-kicker {
  margin-bottom: 11px;
}

.staff-action-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.staff-home-layout > .staff-action-panel-horizontal {
  grid-column: 1 / -1;
}

.staff-action-panel-horizontal .staff-action-list {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.staff-action-list button {
  align-items: center;
  background: rgba(25, 215, 229, 0.055);
  border: 1px solid rgba(25, 215, 229, 0.24);
  border-radius: 6px;
  color: var(--white);
  display: flex;
  gap: 8px;
  min-height: 48px;
  padding: 9px 10px;
  text-align: left;
}

.staff-action-list button:hover {
  background: rgba(25, 215, 229, 0.11);
  border-color: rgba(25, 215, 229, 0.55);
}

.staff-action-list svg {
  color: var(--aqua);
  flex: 0 0 18px;
  height: 18px;
  width: 18px;
}

.staff-action-list span {
  font-size: 0.72rem;
  font-weight: 750;
}

.staff-week-disclosure {
  padding: 0;
}

.staff-week-disclosure > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  min-height: 64px;
  padding: 13px 18px;
}

.staff-week-disclosure > summary::-webkit-details-marker { display: none; }
.staff-week-disclosure > summary > span { align-items: center; display: flex; gap: 10px; }
.staff-week-disclosure > summary > span > svg { color: var(--aqua); height: 20px; width: 20px; }
.staff-week-disclosure > summary span span { display: grid; gap: 2px; }
.staff-week-disclosure > summary strong { font-size: 0.8rem; }
.staff-week-disclosure > summary small { color: var(--muted); font-size: 0.66rem; }
.staff-week-disclosure > summary > span:last-child { color: var(--muted); font-size: 0.72rem; font-weight: 750; }
.staff-week-disclosure[open] > summary > span:last-child svg { transform: rotate(180deg); }
.staff-week-disclosure .dashboard-week-strip { border-top: 1px solid var(--line); padding: 16px 18px 0; }
.staff-week-disclosure .wide-row-action { margin: 12px 18px 18px; width: calc(100% - 36px); }

@media (max-width: 1040px) {
  .staff-notification-layout { grid-template-columns: 1fr; }
  .workstream-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workstream-summary .primary-action,
  .workstream-summary .workstream-note { grid-column: 1 / -1; }
  .services-summary .square-automation-status { grid-column: 1 / -1; }
  .services-summary .primary-action { grid-column: 1 / -1; grid-row: auto; }
  .coach-session-focus { grid-template-columns: minmax(0, 1fr) auto; }
  .coach-session-actions { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coach-session-actions .primary-action,
  .coach-session-actions .secondary-action { min-width: 0; width: 100%; }
  .staff-home-layout { grid-template-columns: 1fr; }
  .staff-home-rail { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr); }
  .staff-action-panel-horizontal .staff-action-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .coach-home-focused .coach-session-focused { grid-template-columns: minmax(0, 1fr) auto; }
  .coach-home-focused .coach-session-focused .coach-session-actions { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .staff-notification-centre { padding: 14px; }
  .staff-notification-list { grid-template-columns: 1fr; }
  .staff-live-activity { padding: 10px; }
  .coach-workstream { gap: 10px; padding-top: 16px; }
  .coach-workstream-heading { align-items: start; grid-template-columns: 42px minmax(0, 1fr); }
  .coach-workstream-heading > .mini-action { grid-column: 1 / -1; width: 100%; }
  .coach-workstream-mark { height: 42px; width: 42px; }
  .workstream-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .workstream-summary > span:nth-child(3),
  .workstream-summary .services-next { grid-column: 1 / -1; }
  .workstream-summary .primary-action,
  .workstream-summary .workstream-note { grid-column: 1 / -1; }
  .services-summary .square-automation-status { grid-column: 1 / -1; }
  .workstream-actions { grid-template-columns: 1fr; }
  .staff-home-simple { gap: 12px; }
  .staff-context-band { align-items: stretch; background-position: center; background-size: cover; flex-direction: column; min-height: 0; padding: 18px; }
  .staff-context-band::after { background: rgba(4, 12, 18, 0.45); content: ""; inset: 0; position: absolute; }
  .staff-context-copy { z-index: 1; }
  .staff-context-weather { flex: 0 0 auto; min-height: 76px; width: 100%; z-index: 1; }
  .staff-context-copy h3 { font-size: 1.7rem; }
  .coach-session-focus,
  .coach-session-focus.empty { gap: 14px; grid-template-columns: 1fr; min-height: 0; padding: 18px; }
  .coach-session-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .coach-session-metrics > span { grid-template-columns: 1fr; justify-items: center; min-width: 0; padding: 9px 4px; text-align: center; }
  .coach-session-metrics svg { grid-row: auto; }
  .coach-session-actions { grid-column: auto; grid-template-columns: 1fr; }
  .admin-coach-preview > header { align-items: stretch; flex-direction: column; }
  .admin-coach-preview > header label { align-items: stretch; display: grid; }
  .admin-coach-preview select { min-width: 0; width: 100%; }
  .staff-home-rail { grid-template-columns: 1fr; }
  .staff-day-panel,
  .staff-priority-panel,
  .staff-action-panel { padding: 15px; }
  .staff-panel-title { align-items: flex-start; flex-wrap: wrap; }
  .staff-panel-title .mini-action { margin-left: auto; }
  .staff-class-row { gap: 9px; grid-template-columns: 62px minmax(0, 1fr) 68px 16px; min-height: 74px; padding: 9px 10px; }
  .staff-class-plan { display: none; }
  .staff-day-empty { grid-template-columns: 34px minmax(0, 1fr); }
  .staff-day-empty .mini-action { grid-column: 1 / -1; width: 100%; }
  .staff-action-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-action-panel-horizontal .staff-action-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coach-home-focused .coach-session-focused { grid-template-columns: 1fr; }
  .coach-home-focused .coach-session-focused .coach-session-actions { grid-column: auto; }
  .coach-class-queue { padding: 14px; }
  .coach-queue-hint { width: 100%; }
  .coach-focus-weather p { display: none; }
  .staff-week-disclosure > summary { padding: 12px 14px; }
  .staff-week-disclosure > summary small { display: none; }
  .staff-week-disclosure .dashboard-week-strip { padding-left: 14px; padding-right: 14px; }
}

.reference-home-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.8fr);
}

.session-hero {
  background:
    linear-gradient(90deg, rgba(6, 18, 27, 0.97) 0%, rgba(7, 20, 29, 0.86) 52%, rgba(7, 15, 22, 0.35) 100%),
    url("./assets/instagram-slide-3.jpg") center 42% / cover no-repeat;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 340px;
  overflow: hidden;
  position: relative;
}

.session-hero-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  max-width: 740px;
  min-height: 340px;
  padding: clamp(26px, 4vw, 42px);
  position: relative;
  z-index: 1;
}

.session-hero h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 790;
  line-height: 1.05;
  margin: 0 0 30px;
}

.session-stats {
  align-items: stretch;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  margin-bottom: 30px;
  width: max-content;
}

.session-stats > span {
  align-items: center;
  border-right: 1px solid var(--line-strong);
  display: grid;
  gap: 1px 10px;
  grid-template-columns: 24px auto;
  min-width: 115px;
  padding: 0 18px;
}

.session-stats > span:first-child {
  padding-left: 0;
}

.session-stats > span:last-child {
  border-right: 0;
}

.session-stats > span > svg {
  color: var(--muted);
  grid-row: 1 / 3;
  height: 22px;
  width: 22px;
}

.session-stats > span > strong {
  font-size: 1.2rem;
  line-height: 1;
}

.session-stats > span > small {
  color: var(--muted);
  font-size: 0.67rem;
}

.session-weather .weather-mark {
  grid-row: 1 / 3;
  transform: scale(0.65);
}

.session-weather > div > span {
  display: none;
}

.session-weather > div > strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1;
}

.session-weather > div > p {
  font-size: 0;
  margin: 4px 0 0;
}

.session-weather > div > p::after {
  color: var(--muted);
  content: "Live weather";
  font-size: 0.67rem;
}

.session-primary {
  align-self: flex-start;
  min-width: 250px;
}

.session-primary svg:last-child {
  margin-left: auto;
}

.quick-actions-panel,
.attention-panel,
.week-overview-panel {
  padding: 24px;
}

.quick-action-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-action-grid > button,
.quick-action-grid > a {
  align-items: center;
  background: linear-gradient(145deg, rgba(22, 39, 52, 0.92), rgba(12, 24, 34, 0.94));
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  min-height: 124px;
  padding: 18px;
  text-align: center;
  text-decoration: none;
}

.quick-action-grid > button:hover,
.quick-action-grid > a:hover {
  background: rgba(25, 215, 229, 0.09);
  border-color: rgba(25, 215, 229, 0.5);
}

.quick-action-grid svg {
  color: var(--aqua);
  height: 34px;
  width: 34px;
}

.quick-action-grid > :nth-child(3) svg,
.quick-action-grid > :nth-child(4) svg {
  color: var(--purple);
}

.quick-action-grid span {
  font-size: 0.9rem;
  font-weight: 650;
}

.attention-panel,
.week-overview-panel {
  min-height: 300px;
}

.reference-attention-list {
  display: grid;
  gap: 10px;
}

.reference-attention-list button {
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--white);
  display: grid;
  gap: 12px;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  min-height: 72px;
  padding: 11px 14px;
  text-align: left;
}

.reference-attention-list button:hover {
  border-color: rgba(25, 215, 229, 0.4);
}

.reference-attention-list button > span:nth-child(2) strong,
.reference-attention-list button > span:nth-child(2) small {
  display: block;
}

.reference-attention-list button > span:nth-child(2) strong {
  font-size: 0.86rem;
}

.reference-attention-list button > span:nth-child(2) small {
  color: var(--muted);
  font-size: 0.7rem;
  margin-top: 4px;
}

.attention-icon {
  align-items: center;
  background: rgba(25, 215, 229, 0.14);
  border-radius: 50%;
  color: var(--aqua);
  display: flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.attention-icon.danger { background: rgba(255, 94, 94, 0.18); color: #ff7474; }
.attention-icon.purple { background: rgba(139, 92, 246, 0.2); color: #a47bff; }
.attention-icon.success { background: rgba(81, 219, 145, 0.16); color: var(--success); }
.attention-icon svg { height: 20px; width: 20px; }

.dashboard-week-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 18px 0;
}

.week-strip-day {
  align-items: center;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 118px;
  padding: 12px 8px;
}

.week-strip-day:last-child { border-right: 0; }
.week-strip-day.active { background: rgba(25, 215, 229, 0.08); box-shadow: inset 0 0 0 1px var(--aqua); border-radius: 7px; }
.week-strip-day > span { color: var(--muted); font-size: 0.72rem; font-weight: 750; text-transform: uppercase; }
.week-strip-day > svg { color: var(--muted); height: 26px; width: 26px; }
.week-strip-day.active > span,
.week-strip-day.active > svg { color: var(--aqua); }
.week-strip-day > strong { font-size: 1.3rem; }
.week-strip-day > small { color: var(--muted); font-size: 0.68rem; }

.wide-row-action {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--white);
  display: grid;
  gap: 12px;
  grid-template-columns: 20px 1fr 18px;
  min-height: 48px;
  padding: 0 14px;
  text-align: left;
  width: 100%;
}

.week-number {
  color: var(--muted);
  font-size: 0.78rem;
}

/* Classes and roll-call */
.my-classes-shell {
  display: block !important;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.my-classes-shell > .classes-header,
.my-classes-shell > .day-tab-row,
.my-classes-shell > .class-management-layout,
.my-classes-shell > .notification-queue {
  margin-left: 22px;
  margin-right: 22px;
}

.my-classes-shell > .classes-header {
  padding-top: 22px;
}

.classes-progress {
  align-items: baseline;
  background: rgba(25, 215, 229, 0.07);
  border: 1px solid rgba(25, 215, 229, 0.28);
  border-radius: 6px;
  display: flex;
  gap: 7px;
  padding: 10px 13px;
}

.classes-progress strong { color: var(--aqua); font-size: 1rem; }
.classes-progress span { color: var(--muted); font-size: 0.7rem; }

.day-tab-row {
  background: rgba(5, 12, 18, 0.65);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 18px;
  overflow: hidden;
}

.day-tab-row button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 8px;
  justify-content: center;
  min-height: 56px;
}

.day-tab-row button:last-child { border-right: 0; }
.day-tab-row button.active { background: rgba(25, 215, 229, 0.09); box-shadow: inset 0 -2px 0 var(--aqua); color: var(--aqua); }
.day-tab-row button strong { align-items: center; background: rgba(139, 92, 246, 0.66); border-radius: 999px; color: white; display: inline-flex; font-size: 0.7rem; height: 24px; justify-content: center; min-width: 24px; padding: 0 6px; }
.day-tab-row button.active strong { background: rgba(25, 215, 229, 0.14); border: 1px solid var(--aqua); color: var(--aqua); }

.class-management-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  margin-bottom: 18px;
  min-width: 0;
  width: 100%;
}

.class-selector-panel,
.selected-rollcall-panel {
  background: rgba(5, 12, 18, 0.52);
  border: 1px solid var(--line);
  border-radius: 7px;
  min-width: 0;
}

.class-selector-panel {
  align-self: start;
  padding: 16px;
}

.class-selector-panel .panel-heading { margin-bottom: 12px; }
.class-selector-panel .panel-heading h4 { font-size: 1.05rem; }
.class-selector-panel .panel-heading > span { color: var(--muted); font-size: 0.7rem; }

.class-selector-list {
  display: grid;
  gap: 8px;
}

.class-selector-list button {
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--white);
  display: grid;
  gap: 3px 10px;
  grid-template-columns: 58px minmax(0, 1fr) auto 16px;
  min-height: 72px;
  padding: 10px 12px;
  text-align: left;
}

.class-selector-list button.active {
  background: linear-gradient(100deg, rgba(25, 215, 229, 0.13), rgba(25, 215, 229, 0.04));
  border-color: var(--aqua);
  box-shadow: inset 3px 0 0 var(--aqua);
}

.class-selector-list button > span { color: var(--muted); font-size: 0.74rem; grid-row: 1 / 3; }
.class-selector-list button > strong { font-size: 0.9rem; }
.class-selector-list button > small { color: var(--muted); font-size: 0.68rem; grid-column: 2; }
.class-selector-list button > em { background: rgba(25, 215, 229, 0.06); border: 1px solid rgba(25, 215, 229, 0.28); border-radius: 4px; color: var(--aqua); font-size: 0.68rem; font-style: normal; grid-column: 3; grid-row: 1 / 3; padding: 5px 7px; }
.class-selector-list button > svg { grid-column: 4; grid-row: 1 / 3; height: 16px; width: 16px; }

.roster-tools {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 14px;
}

.roster-tools > summary { min-height: 52px; padding: 10px 12px; }
.roster-tools > summary small { display: none; }
.quick-student-form { grid-template-columns: 1fr; padding: 12px; }

.selected-rollcall-panel { padding: 0; }
.rollcall-class-card.selected-class-card { background: transparent; border: 0; border-radius: 0; }
.selected-class-card > .rollcall-class-summary { cursor: default; min-height: 92px; padding: 18px 22px; pointer-events: none; }
.selected-class-card .rollcall-class-title > span { color: var(--aqua); font-size: 0.68rem; font-weight: 780; text-transform: uppercase; }
.selected-class-card .rollcall-class-title h4 { font-size: 1.55rem; font-weight: 750; margin: 5px 0; }
.selected-class-card .rollcall-class-title p { color: var(--muted); font-size: 0.78rem; margin: 0; }
.selected-class-card .rollcall-class-summary-meta strong { color: var(--aqua); font-size: 1rem; }
.selected-class-card .class-disclosure { display: none; }
.selected-class-card .rollcall-class-body { border-top: 1px solid var(--line); padding: 16px 22px 22px; }
.class-status-bar { align-items: center; background: rgba(25, 215, 229, 0.04); border: 1px solid rgba(25, 215, 229, 0.2); border-radius: 6px; margin-bottom: 14px; padding: 11px 13px; }
.class-status-bar > div > span { color: var(--muted); font-size: 0.65rem; }
.class-status-bar > div > strong { color: var(--success); font-size: 0.82rem; }
.class-status-bar.cancelled > div > strong { color: var(--danger); }

.rollcall-list { display: grid; gap: 7px; }
.rollcall-student {
  align-items: center;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(150px, 1fr) 100px minmax(300px, 1.25fr);
  min-height: 64px;
  padding: 9px 12px;
}
.student-summary strong { font-size: 0.88rem; }
.student-summary span { color: var(--muted); font-size: 0.67rem; }
.rollcall-status { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 0.65rem; padding: 6px 8px; text-align: center; }
.rollcall-status.present { border-color: rgba(25, 215, 229, 0.4); color: var(--aqua); }
.rollcall-status.absent { border-color: rgba(255, 94, 94, 0.45); color: #ff7d7d; }
.rollcall-actions { display: grid; gap: 6px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rollcall-button { background: transparent; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--muted); font-size: 0.68rem; min-height: 36px; padding: 0 7px; text-transform: capitalize; }
.rollcall-button:hover { border-color: var(--aqua); color: var(--white); }
.rollcall-button.present.selected { background: rgba(25, 215, 229, 0.12); border-color: var(--aqua); color: var(--aqua); }
.rollcall-button.away.selected,
.rollcall-button.sick.selected,
.rollcall-button.injured.selected { background: rgba(255, 94, 94, 0.12); border-color: var(--danger); color: #ff8888; }
.owner-row { grid-column: 1 / -1; }

.notification-queue { border-radius: 6px; margin-bottom: 22px; }

/* Weekly schedule */
.calendar-reference-head { margin-bottom: 18px; }
.schedule-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) 260px; }
.active-week-board { border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.active-week-board.pizzey { border-top: 3px solid var(--aqua); }
.active-week-board.nerang { border-top: 3px solid var(--purple); }
.active-week-board.away { border-top: 3px solid var(--warning); }
.active-week-board.makeup { border-top: 3px solid var(--success); }
.active-week-board > header { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 18px; justify-content: space-between; padding: 18px 20px; }
.active-week-board.pizzey > header { background: linear-gradient(90deg, rgba(25, 215, 229, 0.12), transparent 58%); }
.active-week-board.nerang > header { background: linear-gradient(90deg, rgba(139, 92, 246, 0.14), transparent 58%); }
.active-week-board.away > header { background: linear-gradient(90deg, rgba(241, 200, 75, 0.12), transparent 58%); }
.active-week-board.makeup > header { background: linear-gradient(90deg, rgba(81, 219, 145, 0.12), transparent 58%); }
.active-week-board > header > div:first-child { min-width: 0; }
.active-week-board > header h4 { align-items: center; display: flex; flex-wrap: wrap; font-size: clamp(1.35rem, 2.2vw, 1.75rem); gap: 9px; margin: 0 0 7px; }
.active-week-board > header > div:first-child > span { color: var(--muted); font-size: 0.76rem; }
.active-week-number { align-items: center; display: flex; gap: 8px; margin: 0 0 9px; }
.active-week-number > span { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; color: var(--white); font-family: var(--body-font); font-size: 0.64rem; font-style: normal; letter-spacing: 0.03em; padding: 4px 8px; text-transform: none; }
.active-week-board.pizzey .active-week-number { color: var(--aqua); }
.active-week-board.nerang .active-week-number { color: #bba8ff; }
.active-week-board.away .active-week-number { color: var(--warning); }
.active-week-board.makeup .active-week-number { color: var(--success); }
.week-location-badge { border: 1px solid currentColor; border-radius: 4px; display: inline-flex; font-family: var(--body-font); font-size: 0.58rem; font-style: normal; letter-spacing: 0.08em; line-height: 1; padding: 6px 7px; text-transform: uppercase; }
.week-location-badge.pizzey { background: rgba(25, 215, 229, 0.14); color: var(--aqua); }
.week-location-badge.nerang { background: rgba(139, 92, 246, 0.18); color: #bba8ff; }
.week-location-badge.away { background: rgba(241, 200, 75, 0.14); color: var(--warning); }
.week-location-badge.makeup { background: rgba(81, 219, 145, 0.14); color: var(--success); }
.week-board-controls { align-items: center; display: flex; gap: 8px; }
.week-board-controls button { align-items: center; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); border-radius: 5px; color: var(--white); display: inline-flex; height: 38px; justify-content: center; padding: 0 12px; }
.week-board-controls button:disabled { color: #45515d; cursor: default; }
.week-board-controls button svg { height: 17px; width: 17px; }
.schedule-day-columns { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); overflow-x: auto; }
.schedule-day-column { --day-accent: var(--aqua); --day-wash: rgba(25, 215, 229, 0.08); border-right: 1px solid var(--line); min-height: 470px; min-width: 0; }
.schedule-day-column.day-monday { --day-accent: var(--day-monday); --day-wash: rgba(33, 215, 229, 0.1); }
.schedule-day-column.day-tuesday { --day-accent: var(--day-tuesday); --day-wash: rgba(155, 123, 255, 0.11); }
.schedule-day-column.day-wednesday { --day-accent: var(--day-wednesday); --day-wash: rgba(79, 156, 255, 0.11); }
.schedule-day-column.day-thursday { --day-accent: var(--day-thursday); --day-wash: rgba(235, 112, 214, 0.1); }
.schedule-day-column.day-saturday { --day-accent: var(--day-saturday); --day-wash: rgba(241, 200, 75, 0.09); }
.schedule-day-column:last-child { border-right: 0; }
.schedule-day-column > header { background: linear-gradient(180deg, var(--day-wash), rgba(255, 255, 255, 0.008)); border-bottom: 1px solid var(--line); border-top: 3px solid var(--day-accent); padding: 12px 14px 14px; text-align: center; }
.schedule-day-column > header strong,
.schedule-day-column > header span { display: block; }
.schedule-day-column > header strong { color: var(--day-accent); font-size: 0.75rem; text-transform: uppercase; }
.schedule-day-column > header span { color: var(--muted); font-size: 0.66rem; margin-top: 4px; }
.schedule-day-column.today { box-shadow: inset 0 0 0 1px var(--day-accent); }
.schedule-day-column.today > header { background: linear-gradient(180deg, var(--day-wash), rgba(255, 255, 255, 0.035)); }
.schedule-day-column > div { display: grid; gap: 9px; padding: 12px; }
.schedule-class-card { --level-accent: var(--aqua); --level-wash: rgba(25, 215, 229, 0.08); background: linear-gradient(115deg, var(--level-wash), rgba(255, 255, 255, 0.018) 72%); border: 1px solid rgba(255, 255, 255, 0.15); border-left: 4px solid var(--level-accent); border-radius: 6px; display: grid; gap: 5px; min-height: 105px; padding: 10px; position: relative; }
.schedule-class-card.level-1 { --level-accent: var(--level-1); --level-wash: rgba(255, 255, 255, 0.08); }
.schedule-class-card.level-2 { --level-accent: var(--level-2); --level-wash: rgba(255, 212, 61, 0.1); }
.schedule-class-card.level-3 { --level-accent: var(--level-3); --level-wash: rgba(255, 139, 61, 0.1); }
.schedule-class-card.level-4 { --level-accent: var(--level-4); --level-wash: rgba(59, 212, 127, 0.1); }
.schedule-class-card.level-5 { --level-accent: var(--level-5); --level-wash: rgba(23, 59, 130, 0.32); }
.schedule-class-card.pizzey { border-color: rgba(25, 215, 229, 0.42); border-left-color: var(--level-accent); }
.schedule-class-card.nerang { border-color: rgba(139, 92, 246, 0.48); border-left-color: var(--level-accent); }
.schedule-class-card time { color: var(--muted); font-size: 0.67rem; }
.schedule-class-card em { background: var(--purple); border-radius: 3px; color: white; font-size: 0.54rem; font-style: normal; font-weight: 820; padding: 3px 5px; position: absolute; right: 8px; text-transform: uppercase; top: 8px; }
.schedule-class-card.pizzey em { background: var(--aqua); color: #031116; }
.schedule-class-card strong { color: var(--level-accent); font-size: 0.92rem; margin-top: 6px; }
.schedule-class-card span { color: var(--muted); font-size: 0.7rem; }
.schedule-class-card.rained-out { background: repeating-linear-gradient(135deg, rgba(255, 94, 94, 0.13), rgba(255, 94, 94, 0.13) 8px, rgba(29, 43, 55, 0.3) 8px, rgba(29, 43, 55, 0.3) 16px); border-color: rgba(255, 94, 94, 0.8); border-left-color: var(--danger); }
.schedule-class-card.rained-out > strong,
.schedule-class-card.rained-out > span { opacity: 0.6; text-decoration: line-through; }
.schedule-class-card.rained-out small { align-items: center; color: #ff9292; display: flex; font-size: 0.65rem; font-weight: 850; gap: 5px; }
.calendar-session-entry { display: grid; gap: 0; }
.calendar-session-entry.rained-out { gap: 0; }
.calendar-session-trigger { cursor: pointer; min-height: 118px; text-align: left; width: 100%; }
.calendar-session-trigger:hover,
.calendar-session-trigger:focus-visible { border-color: var(--aqua); outline: none; }
.calendar-session-trigger[aria-expanded="true"] { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.calendar-session-trigger > svg:last-child { bottom: 9px; color: var(--aqua); height: 15px; position: absolute; right: 9px; transition: transform 160ms ease; width: 15px; }
.calendar-session-trigger[aria-expanded="true"] > svg:last-child { transform: rotate(180deg); }
.calendar-session-trigger small { align-items: center; color: var(--muted); display: flex; font-size: 0.62rem; font-weight: 800; gap: 4px; padding-right: 17px; }
.calendar-session-trigger small svg { height: 13px; width: 13px; }
.calendar-session-entry.rained-out .calendar-session-trigger { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.calendar-rain-summary {
  align-items: center;
  background: repeating-linear-gradient(135deg, rgba(255, 94, 94, 0.2), rgba(255, 94, 94, 0.2) 8px, rgba(21, 31, 43, 0.82) 8px, rgba(21, 31, 43, 0.82) 16px);
  border: 1px solid rgba(255, 94, 94, 0.8);
  border-top: 0;
  display: grid;
  gap: 2px 8px;
  grid-template-columns: 1fr auto;
  padding: 9px 10px;
}
.calendar-rain-summary span { align-items: center; color: #ff9292; display: flex; font-size: 0.64rem; font-weight: 900; gap: 5px; text-transform: uppercase; }
.calendar-rain-summary span svg { height: 14px; width: 14px; }
.calendar-rain-summary strong { color: var(--white); font-size: 0.65rem; grid-column: 1; text-transform: uppercase; }
.calendar-rain-summary em { color: #ffd1d1; font-size: 0.72rem; font-style: normal; font-weight: 900; grid-column: 2; grid-row: 1 / 3; text-align: right; }
.calendar-session-roster { background: rgba(3, 9, 14, 0.92); border: 1px solid rgba(25, 215, 229, 0.38); border-top: 0; border-radius: 0 0 6px 6px; padding: 10px; }
.calendar-session-roster-head { align-items: center; display: flex; justify-content: space-between; margin-bottom: 7px; }
.calendar-session-roster-head strong { color: var(--white); font-size: 0.72rem; }
.calendar-session-roster-head span,
.calendar-session-roster > p,
.calendar-session-roster li { color: var(--muted); font-size: 0.68rem; }
.calendar-session-roster ul { display: grid; gap: 5px; list-style: none; margin: 0; padding: 0; }
.calendar-session-roster li { align-items: center; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; justify-content: space-between; gap: 8px; padding-top: 5px; }
.calendar-session-roster li span { color: var(--white); }
.calendar-session-roster li em { color: var(--purple); font-size: 0.58rem; font-style: normal; font-weight: 850; text-transform: uppercase; }
.calendar-makeup-action { align-items: center; background: linear-gradient(100deg, rgba(25, 215, 229, 0.18), rgba(139, 92, 255, 0.18)); border: 1px solid var(--aqua); border-radius: 4px; color: var(--white); display: inline-flex; font-size: 0.67rem; font-weight: 850; gap: 6px; justify-content: center; margin-top: 10px; min-height: 38px; padding: 7px 9px; width: 100%; }
.calendar-makeup-action:hover,
.calendar-makeup-action:focus-visible { background: linear-gradient(100deg, rgba(25, 215, 229, 0.32), rgba(139, 92, 255, 0.32)); outline: none; }
.calendar-makeup-action.compact { margin: 9px 0 0; width: auto; }
.calendar-makeup-action svg { height: 15px; width: 15px; }
.calendar-makeup-confirmed { color: var(--success) !important; font-weight: 850; margin: 9px 0 0; }
.empty-schedule-day { color: #596673; font-size: 0.72rem; margin: 10px 0; text-align: center; }
.schedule-summary-stack { display: grid; gap: 14px; }
.term-overview-card,
.makeup-summary-card { padding: 18px; }
.term-overview-card > div { display: grid; gap: 10px; }
.term-overview-card > div > span { --term-accent: var(--aqua); align-items: center; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); border-left: 3px solid var(--term-accent); border-radius: 4px; display: grid; gap: 3px 10px; grid-template-columns: 34px 1fr; padding: 10px; }
.term-overview-card > div > span.term-break { --term-accent: var(--warning); }
.term-overview-card > div > span.term-makeup { --term-accent: var(--success); }
.term-overview-card > div > span:last-child { border-bottom: 0; }
.term-overview-card svg { color: var(--term-accent); grid-row: 1 / 3; height: 23px; width: 23px; }
.term-overview-card strong { font-size: 0.82rem; }
.term-overview-card small { color: var(--muted); font-size: 0.68rem; }
.makeup-summary-card > strong { color: var(--danger); display: block; font-size: 2.5rem; }
.makeup-summary-card > span { color: var(--muted); display: block; font-size: 0.78rem; margin: 5px 0 16px; }
.calendar-key { background: rgba(5, 12, 18, 0.5); border: 1px solid var(--line); border-radius: 6px; margin: 16px 0; padding: 10px 12px; }
.calendar-key .key-divider { align-self: stretch; border-left: 1px solid var(--line); margin: 0 2px; }
.calendar-key .key-label { color: var(--muted); font-size: 0.68rem; font-weight: 850; text-transform: uppercase; }
.calendar-key .level-key { align-items: center; background: rgba(255, 255, 255, 0.04); border-color: var(--level-key-color); color: var(--level-key-color); display: inline-flex; font-family: var(--body-font); font-style: normal; justify-content: center; min-height: 34px; min-width: 34px; padding: 5px; }
.calendar-key .level-key.level-1 { --level-key-color: var(--level-1); }
.calendar-key .level-key.level-2 { --level-key-color: var(--level-2); }
.calendar-key .level-key.level-3 { --level-key-color: var(--level-3); }
.calendar-key .level-key.level-4 { --level-key-color: var(--level-4); }
.calendar-key .level-key.level-5 { --level-key-color: var(--level-5); }

.calendar-day { --day-accent: rgba(255, 255, 255, 0.28); }
.calendar-day.day-monday { --day-accent: var(--day-monday); }
.calendar-day.day-tuesday { --day-accent: var(--day-tuesday); }
.calendar-day.day-wednesday { --day-accent: var(--day-wednesday); }
.calendar-day.day-thursday { --day-accent: var(--day-thursday); }
.calendar-day.day-saturday { --day-accent: var(--day-saturday); }
.calendar-day.lesson-day { border-top: 3px solid var(--day-accent); }
.calendar-day.lesson-day .day-top span { color: var(--day-accent); }
.calendar-day-sessions > span { --level-accent: var(--aqua); border-left-color: var(--level-accent); }
.calendar-day-sessions > span.level-1 { --level-accent: var(--level-1); }
.calendar-day-sessions > span.level-2 { --level-accent: var(--level-2); }
.calendar-day-sessions > span.level-3 { --level-accent: var(--level-3); }
.calendar-day-sessions > span.level-4 { --level-accent: var(--level-4); }
.calendar-day-sessions > span.level-5 { --level-accent: var(--level-5); }
.calendar-day-sessions > span strong { color: var(--level-accent); }
.calendar-day.makeup-day { background: rgba(81, 219, 145, 0.12); border-color: var(--success); }
.calendar-day.makeup-day .makeup-sessions > span { --level-accent: var(--success); }
.calendar-day.rained-out { border-color: var(--danger); background: repeating-linear-gradient(135deg, rgba(255, 94, 94, 0.12), rgba(255, 94, 94, 0.12) 8px, rgba(21, 31, 43, 0.8) 8px, rgba(21, 31, 43, 0.8) 16px); }
.calendar-day.rained-out .day-top span,
.calendar-day.rained-out .rain-label span,
.calendar-day.rained-out .rain-label strong { color: #ff9292; }
.calendar-day.rained-out .rain-label { display: grid; gap: 2px; }
.calendar-day.rained-out .rain-label em { color: #ffd1d1; font-size: 0.62rem; font-style: normal; font-weight: 850; }
.full-term-disclosure,
.admin-settings-disclosure { margin-top: 14px; }
.full-term-disclosure > summary,
.admin-settings-disclosure > summary { align-items: center; cursor: pointer; display: flex; justify-content: space-between; list-style: none; min-height: 56px; padding: 0 16px; }
.full-term-disclosure > summary span,
.admin-settings-disclosure > summary span { align-items: center; display: flex; gap: 9px; }
.full-term-disclosure > summary strong,
.admin-settings-disclosure > summary strong { color: var(--muted); font-size: 0.74rem; }
.full-term-disclosure > .term-calendar,
.admin-settings-disclosure > .wide-card { border: 0; border-radius: 0; border-top: 1px solid var(--line); margin: 0; }

/* Updates */
.updates-reference-page { padding: 22px; }
.update-type-grid { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.update-type-grid button { align-items: center; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); border-radius: 7px; color: var(--white); display: flex; gap: 13px; min-height: 92px; padding: 14px; text-align: left; }
.update-type-grid button:hover,
.update-type-grid button.active { background: rgba(25, 215, 229, 0.06); border-color: var(--aqua); }
.update-type-grid button:nth-child(2).active { border-color: var(--danger); }
.update-type-grid button > svg { color: var(--aqua); flex: 0 0 32px; height: 32px; width: 32px; }
.update-type-grid button:nth-child(2) > svg { color: var(--danger); }
.update-type-grid button > span strong,
.update-type-grid button > span small { display: block; }
.update-type-grid button > span strong { font-size: 0.82rem; }
.update-type-grid button > span small { color: var(--muted); font-size: 0.66rem; line-height: 1.35; margin-top: 4px; }
.updates-editor-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr); }
.update-compose-panel,
.update-preview-panel,
.recent-updates-panel { background: rgba(5, 12, 18, 0.52); border: 1px solid var(--line); border-radius: 7px; padding: 20px; }
.update-compose-panel { display: grid; gap: 14px; }
.update-publish-status { align-items: flex-start; background: rgba(11, 93, 102, 0.22); border: 1px solid rgba(46, 230, 199, 0.42); border-left: 3px solid var(--aqua); color: #dffefa; display: flex; font-size: 0.82rem; gap: 9px; line-height: 1.45; padding: 11px 13px; }
.update-publish-status svg { color: var(--aqua); flex: 0 0 auto; height: 17px; width: 17px; }
.update-compose-panel > div:first-child h4 { font-size: 1.15rem; margin: 0 0 4px; }
.update-compose-panel > div:first-child p { color: var(--muted); font-size: 0.74rem; margin: 0; }
.update-compose-panel label { color: var(--muted); display: grid; font-size: 0.7rem; font-weight: 650; gap: 6px; }
.update-compose-panel input,
.update-compose-panel select,
.update-compose-panel textarea { background: rgba(15, 26, 36, 0.86); border: 1px solid var(--line-strong); border-radius: 5px; color: var(--white); min-height: 44px; padding: 10px 12px; resize: vertical; }
.update-image-field span { color: #667482; font-weight: 500; }
.news-image-preview { align-items: center; background: rgba(255, 255, 255, 0.02); border: 1px dashed var(--line-strong); border-radius: 6px; color: var(--muted); display: flex; gap: 10px; justify-content: center; min-height: 78px; padding: 12px; }
.news-image-preview svg { color: var(--muted); }
.news-image-preview.has-image { justify-content: flex-start; }
.news-image-preview img { border-radius: 5px; height: 64px; object-fit: cover; width: 90px; }
.toggle-line { align-items: center; display: flex !important; gap: 10px !important; }
.toggle-line input { accent-color: var(--aqua); min-height: auto; width: 20px; }
.toggle-line span strong,
.toggle-line span small { display: block; }
.toggle-line span strong { color: var(--white); font-size: 0.76rem; }
.toggle-line span small { font-weight: 500; margin-top: 3px; }
.updates-preview-stack { display: grid; gap: 14px; grid-template-rows: auto 1fr; }
.phone-notification-preview { background: linear-gradient(145deg, #080e14, #111a22); border: 1px solid var(--line-strong); border-radius: 28px 28px 8px 8px; margin-top: 15px; min-height: 230px; padding: 26px 24px; }
.phone-notification-preview > span { display: flex; justify-content: space-between; }
.phone-notification-preview > span small { color: var(--muted); }
.phone-notification-preview > div { align-items: center; background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 14px; grid-template-columns: 44px 1fr; margin-top: 18px; min-height: 100px; padding: 14px; }
.phone-notification-preview > div > svg { color: var(--aqua); height: 38px; width: 38px; }
.phone-notification-preview > div strong { font-size: 0.88rem; }
.phone-notification-preview > div p { color: var(--muted); font-size: 0.75rem; margin: 5px 0 0; }
.recent-updates-panel > div:last-child { display: grid; gap: 8px; margin-top: 12px; }
.recent-updates-panel article { align-items: center; border: 1px solid var(--line); border-radius: 5px; display: grid; gap: 10px; grid-template-columns: 30px 1fr auto; min-height: 58px; padding: 9px 12px; }
.recent-update-icon { color: var(--aqua); }
.recent-updates-panel article strong,
.recent-updates-panel article small { display: block; }
.recent-updates-panel article strong { font-size: 0.76rem; }
.recent-updates-panel article small { color: var(--muted); font-size: 0.64rem; margin-top: 3px; }
.recent-updates-panel article em { border: 1px solid rgba(81, 219, 145, 0.35); border-radius: 999px; color: var(--success); font-size: 0.62rem; font-style: normal; padding: 4px 8px; }
.published-updates-disclosure { margin-top: 14px; }
.published-updates-disclosure > summary { cursor: pointer; display: flex; justify-content: space-between; padding: 13px 4px; }
.published-updates-disclosure > summary strong { color: var(--muted); font-size: 0.72rem; }

/* Programs and people */
.programs-page-head .primary-action { min-width: 180px; }
.program-view-tabs { border-bottom: 1px solid var(--line); display: flex; gap: 28px; margin: -4px 0 16px; }
.program-view-tabs span { color: var(--muted); font-size: 0.78rem; padding: 12px 4px; }
.program-view-tabs span.active { border-bottom: 2px solid var(--aqua); color: var(--aqua); }
.coach-task-panel { display: grid; gap: 16px; grid-template-columns: minmax(270px, 0.75fr) minmax(0, 1.25fr); }
.coach-task-panel > .section-head { grid-column: 1 / -1; }
.task-create-form { align-content: start; background: rgba(5, 12, 18, 0.55); border: 1px solid var(--line); border-radius: 6px; display: grid; grid-template-columns: 1fr; padding: 16px; }
.coach-task-list { align-content: start; display: grid; gap: 8px; }
.coach-task-item { border-radius: 6px; }
.coach-task-item > summary h4 { font-family: var(--body-font); font-size: 0.95rem; font-style: normal; }
.coach-task-item > summary span { font-family: var(--body-font); font-style: normal; }
.training-brief { border-radius: 4px; }

.people-manager { padding: 22px; }
.people-page-head h3 { font-size: 2rem; }
.people-metrics { background: rgba(5, 12, 18, 0.52); border: 1px solid var(--line); border-radius: 6px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; }
.people-metrics span { border-right: 1px solid var(--line); color: var(--muted); font-size: 0.76rem; padding: 14px; text-align: center; }
.people-metrics span:last-child { border-right: 0; }
.people-metrics strong { color: var(--aqua); margin-right: 4px; }
.people-add-disclosure,
.people-section,
.person-editor { background: rgba(5, 12, 18, 0.42); border-color: var(--line); border-radius: 6px; }
.people-add-disclosure > summary,
.people-section > summary { min-height: 62px; }
.people-section > summary { padding: 0 16px; }
.people-section-title strong { font-family: var(--body-font); font-size: 0.95rem; font-style: normal; }
.people-section-count { align-items: center; background: rgba(25, 215, 229, 0.1); border-radius: 999px; color: var(--aqua); display: flex; height: 28px; justify-content: center; min-width: 28px; }
.person-editor > summary { grid-template-columns: minmax(180px, 1fr) minmax(180px, 0.8fr) auto; min-height: 66px; }
.person-primary strong,
.person-secondary { font-family: var(--body-font); font-style: normal; }

/* Family app */
.family-home-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr); }
.family-rider-switcher {
  align-items: center;
  background: linear-gradient(145deg, rgba(12, 23, 33, 0.94), rgba(8, 17, 25, 0.96));
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 14px 16px;
}
.family-rider-switcher .panel-kicker { margin-bottom: 4px; }
.family-rider-switcher > div:first-child > strong { display: block; font-size: 0.8rem; line-height: 1.35; }
.family-rider-options { display: flex; gap: 7px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.family-rider-options::-webkit-scrollbar { display: none; }
.family-rider-options button {
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--muted);
  display: inline-flex;
  flex: 0 0 auto;
  gap: 9px;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 11px;
  white-space: nowrap;
}
.family-rider-options button:hover { border-color: rgba(25, 215, 229, 0.58); color: var(--white); }
.family-rider-options button.active {
  background: rgba(25, 215, 229, 0.13);
  border-color: var(--aqua);
  color: var(--white);
}
.family-rider-options button > span { font-size: 0.72rem; font-weight: 760; }
.family-rider-options button > small {
  align-items: center;
  background: rgba(139, 92, 246, 0.22);
  border-radius: 3px;
  color: #c8b8ff;
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 820;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding: 0 5px;
}
.family-rider-options button.active > small { background: var(--aqua); color: #031015; }
.family-session-card { background: linear-gradient(90deg, rgba(6, 18, 27, 0.96), rgba(6, 18, 27, 0.68)), url("./assets/instagram-slide-1.jpg") center / cover no-repeat; grid-row: span 2; min-height: 460px; padding: clamp(26px, 5vw, 46px); }
.family-session-card h3 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 790; line-height: 1.08; margin: 0 0 10px; }
.family-session-copy > p:last-child { font-size: 0.92rem; }
.family-session-facts { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 32px 0; max-width: 620px; }
.family-session-facts > span { align-items: center; background: rgba(5, 12, 18, 0.72); border: 1px solid var(--line); border-radius: 6px; display: grid; gap: 2px 10px; grid-template-columns: 30px 1fr; min-height: 74px; padding: 11px 13px; }
.family-session-facts > span > svg { color: var(--aqua); grid-row: 1 / 3; }
.family-session-facts > span > small { color: var(--muted); font-size: 0.63rem; }
.family-session-facts > span > strong { font-size: 0.83rem; }
.family-weather .weather-mark { grid-row: 1 / 3; transform: scale(0.65); }
.family-weather > div > span { color: var(--muted); font-size: 0.63rem; }
.family-weather > div > strong { font-size: 0.83rem; }
.family-weather > div > p { display: none; }
.family-schedule-button { margin-top: auto; min-width: 230px; }
.private-family-session { display: flex; flex-direction: column; justify-content: center; }
.family-session-actions { margin-top: 28px; }
.family-quick-panel,
.family-update-panel,
.family-notification-panel { padding: 22px; }
.family-actions > button,
.family-actions > a { min-height: 105px; }
.family-update-panel.important { border-color: rgba(63, 227, 238, 0.62); }
.family-update-panel h3 { font-size: 1.2rem; margin: 16px 0 7px; }
.family-update-panel > p { font-size: 0.78rem; line-height: 1.5; }
.family-weekly-panel { grid-column: 1 / -1; padding: 22px; }
.family-weekly-panel .panel-heading > span { color: var(--muted); font-size: 0.72rem; }
.family-week-session-list { display: grid; gap: 0 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.family-week-session {
  align-items: center;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--white);
  display: grid;
  gap: 3px 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 72px;
  padding: 12px 4px;
  text-align: left;
}
.family-week-session:hover { background: rgba(25, 215, 229, 0.035); }
.family-week-session > svg { color: var(--muted); grid-column: 2; grid-row: 1 / 4; height: 18px; width: 18px; }
.family-week-rider { color: var(--aqua); font-size: 0.64rem; font-weight: 820; text-transform: uppercase; }
.family-week-session > strong { font-size: 0.82rem; }
.family-week-session > small { color: var(--muted); font-size: 0.68rem; }
.family-notification-panel { grid-column: 1 / -1; }
.parent-notification-list { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.notification-row { background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
.notification-row strong { font-size: 0.78rem; }
.notification-row span,
.notification-row small { color: var(--muted); display: block; font-size: 0.66rem; margin-top: 4px; }

.family-home-spotlight {
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}
.family-week-pulse,
.youtube-feature {
  background: linear-gradient(135deg, rgba(9, 27, 37, 0.98), rgba(12, 16, 31, 0.98));
  border: 1px solid rgba(25, 215, 229, 0.36);
  border-radius: 8px;
  min-height: 214px;
  overflow: hidden;
  position: relative;
}
.family-week-pulse {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
}
.family-week-pulse::after {
  background: linear-gradient(135deg, transparent 42%, rgba(25, 215, 229, 0.12) 42%, rgba(25, 215, 229, 0.12) 44%, transparent 44%, transparent 58%, rgba(139, 92, 246, 0.12) 58%, rgba(139, 92, 246, 0.12) 60%, transparent 60%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.family-week-pulse.current { border-color: rgba(25, 215, 229, 0.75); }
.family-week-pulse.next { border-color: rgba(139, 92, 246, 0.74); }
.family-week-pulse.completed { border-color: rgba(81, 219, 145, 0.72); }
.family-week-pulse.away { border-color: rgba(241, 200, 75, 0.72); }
.family-week-pulse-copy,
.family-spotlight-action { position: relative; z-index: 1; }
.family-week-pulse-title { align-items: baseline; display: flex; flex-wrap: wrap; gap: 9px; margin: 6px 0 9px; }
.family-week-pulse-title strong { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.55rem); letter-spacing: 0; line-height: 0.98; }
.family-week-pulse-title span { color: var(--aqua); font-size: 0.7rem; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.family-week-pulse.next .family-week-pulse-title span { color: #c9baff; }
.family-week-pulse.completed .family-week-pulse-title span { color: var(--success); }
.family-week-pulse.away .family-week-pulse-title span { color: var(--warning); }
.family-week-pulse h3 { font-size: clamp(1.05rem, 2vw, 1.35rem); margin: 0; }
.family-week-pulse-copy > p:last-child { color: var(--muted); font-size: 0.75rem; line-height: 1.45; margin: 8px 0 0; max-width: 310px; }
.family-week-pulse-lines { display: flex; gap: 5px; margin-top: 18px; }
.family-week-pulse-lines span { background: var(--aqua); display: block; height: 3px; width: 34px; }
.family-week-pulse-lines span:nth-child(2) { background: #8b5cff; width: 22px; }
.family-week-pulse-lines span:nth-child(3) { background: var(--white); opacity: 0.62; width: 12px; }
.family-spotlight-action {
  align-items: center;
  align-self: flex-start;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(25, 215, 229, 0.5);
  border-radius: 5px;
  color: var(--white);
  display: inline-flex;
  gap: 9px;
  min-height: 42px;
  padding: 0 12px;
}
.family-spotlight-action > svg:first-child { color: var(--aqua); }
.family-spotlight-action > svg:last-child { color: var(--muted); height: 15px; margin-left: 4px; width: 15px; }
.family-spotlight-action:hover { background: rgba(25, 215, 229, 0.14); border-color: var(--aqua); }
.youtube-feature { color: var(--white); display: grid; grid-template-columns: minmax(150px, 0.9fr) minmax(0, 1.1fr); text-decoration: none; transition: border-color 160ms ease, transform 160ms ease; }
.youtube-feature:hover { border-color: #8b5cff; transform: translateY(-2px); }
.youtube-feature-media { background: #090b10; min-height: 214px; overflow: hidden; position: relative; }
.youtube-feature-media::after { background: linear-gradient(180deg, transparent 42%, rgba(4, 8, 12, 0.86)); content: ""; inset: 0; pointer-events: none; position: absolute; }
.youtube-feature-media img { height: 100%; object-fit: cover; width: 100%; }
.youtube-live-label { background: rgba(4, 8, 12, 0.78); border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 3px; bottom: 12px; color: var(--white); font-size: 0.58rem; font-weight: 850; left: 12px; letter-spacing: 0.06em; padding: 5px 7px; position: absolute; text-transform: uppercase; z-index: 1; }
.youtube-play { align-items: center; background: linear-gradient(135deg, var(--aqua), #8b5cff); border-radius: 50%; color: #02080c; display: flex; height: 48px; justify-content: center; left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); width: 48px; z-index: 1; }
.youtube-play svg { fill: currentColor; height: 19px; margin-left: 3px; width: 19px; }
.youtube-feature-copy { display: flex; flex-direction: column; justify-content: center; padding: 20px 22px; }
.youtube-feature-copy h3 { display: -webkit-box; font-size: clamp(1rem, 2vw, 1.34rem); line-height: 1.12; margin: 5px 0 8px; max-width: 360px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.youtube-feature-copy > p:not(.panel-kicker) { color: var(--muted); font-size: 0.75rem; line-height: 1.45; margin: 0; max-width: 390px; }
.youtube-feature-link { align-items: center; color: var(--aqua); display: inline-flex; font-size: 0.73rem; font-weight: 820; gap: 6px; margin-top: 15px; }
.youtube-feature-link svg { height: 15px; width: 15px; }
.youtube-feature-copy small { color: var(--muted); font-size: 0.63rem; margin-top: 9px; }

.parent-schedule-columns {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  overflow: visible;
}

.parent-schedule-columns .schedule-day-column {
  min-height: 0;
}

.parent-schedule-empty {
  align-items: center;
  display: grid;
  gap: 15px;
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 150px;
  padding: 24px;
}

.parent-schedule-empty > svg {
  color: var(--aqua);
  height: 34px;
  width: 34px;
}

.parent-schedule-empty strong,
.parent-schedule-empty span {
  display: block;
}

.parent-schedule-empty strong {
  font-size: 0.95rem;
}

.parent-schedule-empty span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
  margin-top: 5px;
}

.parent-week-status-banner {
  align-items: center;
  background: rgba(5, 12, 18, 0.72);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 20px;
}

.parent-week-status-banner strong {
  color: var(--aqua);
  font-size: 1.12rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.parent-week-status-banner span { color: var(--muted); font-size: 0.74rem; font-weight: 760; text-align: right; }
.parent-week-status-banner.current { background: rgba(25, 215, 229, 0.13); border-color: var(--aqua); }
.parent-week-status-banner.completed { background: rgba(81, 219, 145, 0.12); }
.parent-week-status-banner.completed strong { color: var(--success); }
.parent-week-status-banner.next { background: rgba(139, 92, 246, 0.12); }
.parent-week-status-banner.next strong { color: #c8b8ff; }
.parent-week-status-banner.away { background: rgba(241, 200, 75, 0.12); }
.parent-week-status-banner.away strong { color: var(--warning); }
.parent-week-status-banner.makeup { background: rgba(81, 219, 145, 0.12); }
.parent-week-status-banner.makeup strong { color: var(--success); }

.parent-term-progress {
  margin-top: 16px;
  padding: 18px;
}

.parent-term-progress-head {
  align-items: end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.parent-term-progress-head h4 { font-size: 1.28rem; margin: 0; }
.parent-term-progress-head > span { color: var(--aqua); font-size: 0.72rem; font-weight: 850; }
.parent-week-progress-list { display: grid; gap: 8px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.parent-week-progress {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--white);
  display: grid;
  gap: 3px;
  min-height: 82px;
  padding: 10px;
  text-align: left;
}
.parent-week-progress:hover,
.parent-week-progress:focus-visible { border-color: var(--aqua); outline: none; }
.parent-week-progress.active { box-shadow: inset 0 0 0 2px var(--aqua); }
.parent-week-progress-number { color: var(--muted); font-size: 0.66rem; font-weight: 850; text-transform: uppercase; }
.parent-week-progress strong { color: var(--white); font-size: 0.82rem; }
.parent-week-progress small { color: var(--muted); font-size: 0.64rem; line-height: 1.35; }
.parent-week-progress.completed { background: rgba(81, 219, 145, 0.14); border-color: rgba(81, 219, 145, 0.72); }
.parent-week-progress.completed .parent-week-progress-number,
.parent-week-progress.completed strong { color: var(--success); }
.parent-week-progress.current { background: rgba(25, 215, 229, 0.13); border-color: var(--aqua); }
.parent-week-progress.current strong { color: var(--aqua); }
.parent-week-progress.next { background: rgba(139, 92, 246, 0.14); border-color: rgba(139, 92, 246, 0.72); }
.parent-week-progress.next strong { color: #c8b8ff; }
.parent-week-progress.away { background: rgba(241, 200, 75, 0.1); border-color: rgba(241, 200, 75, 0.65); }
.parent-week-progress.away strong { color: var(--warning); }
.parent-week-progress.makeup { background: rgba(81, 219, 145, 0.08); border-color: rgba(81, 219, 145, 0.5); }
.parent-week-progress.makeup strong { color: var(--success); }
.parent-term-progress-note { color: var(--muted); font-size: 0.68rem; margin: 12px 0 0; }

.sr-only {
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

@media (max-width: 1180px) {
  .app-view { grid-template-columns: 210px minmax(0, 1fr); }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .sidebar .brand { margin-left: 4px; margin-right: 4px; }
  .sidebar .brand img { height: 54px; width: 54px; }
  .global-search { min-width: 220px; }
  .header-profile > span:nth-child(2) { display: none; }
  .reference-home-grid,
  .family-home-grid { grid-template-columns: 1fr; }
  .session-hero,
  .family-session-card { grid-row: auto; }
  .quick-actions-panel { min-height: 0; }
  .quick-action-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick-action-grid > button,
  .quick-action-grid > a { min-height: 110px; }
  .family-notification-panel { grid-column: auto; }
  .schedule-layout { grid-template-columns: 1fr; }
  .schedule-summary-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-day-column { min-height: 390px; }
  .rollcall-student { grid-template-columns: minmax(140px, 1fr) 90px minmax(280px, 1.2fr); }
}

@media (max-width: 820px) {
  .app-view { display: block; min-height: 100dvh; }
  .sidebar {
    background: rgba(4, 10, 15, 0.97);
    border: 0;
    border-top: 1px solid var(--line-strong);
    bottom: 0;
    height: auto;
    left: 0;
    overflow: visible;
    padding: 5px max(5px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left));
    position: fixed;
    right: 0;
    top: auto;
    width: auto;
    z-index: 50;
  }
  .sidebar .brand,
  .sidebar > .outline-action,
  .sidebar-profile { display: none; }
  .sidebar nav { display: flex; flex-direction: row; gap: 3px; max-width: 100%; overflow-x: auto; width: 100%; }
  .sidebar nav button { border-radius: 6px; flex: 1 0 72px; flex-direction: column; font-size: 0.6rem; gap: 3px; justify-content: center; min-height: 54px; padding: 5px 6px; text-align: center; }
  .sidebar nav button svg { height: 20px; width: 20px; }
  .sidebar nav button.active { box-shadow: none; }
  .workspace,
  body[data-role="admin"] .workspace,
  body[data-role="coach"] .workspace,
  body[data-role="assistantCoach"] .workspace { padding: 14px 13px calc(78px + env(safe-area-inset-bottom)); }
  .workspace-header,
  body[data-role="admin"] .workspace-header,
  body[data-role="coach"] .workspace-header,
  body[data-role="assistantCoach"] .workspace-header { align-items: center; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 16px; min-height: 60px; }
  .workspace-header h2,
  body[data-role="admin"] .workspace-header h2,
  body[data-role="coach"] .workspace-header h2,
  body[data-role="assistantCoach"] .workspace-header h2 { font-size: clamp(1.55rem, 7vw, 2rem); }
  .workspace-header .eyebrow { font-size: 0.68rem; margin-top: 5px; }
  .workspace-tools { gap: 4px; }
  .global-search,
  .header-profile > span:nth-child(2),
  .header-profile > svg,
  .status-pill { display: none; }
  .header-profile { padding: 3px; }
  .icon-action { height: 40px; width: 40px; }
  .wide-card,
  .updates-reference-page { padding: 15px; }
  .reference-page-head { align-items: flex-start; flex-direction: column; margin-bottom: 15px; }
  .reference-page-head h3 { font-size: 1.65rem; }
  .reference-page-head .primary-action,
  .reference-page-head .primary-link { width: 100%; }
  .reference-home-grid,
  .family-home-grid { gap: 12px; }
  .family-home-spotlight { gap: 12px; grid-template-columns: 1fr; }
  .family-week-pulse { min-height: 190px; padding: 18px; }
  .family-week-pulse-title strong { font-size: 2.15rem; }
  .youtube-feature { grid-template-columns: 0.9fr 1.1fr; min-height: 185px; }
  .youtube-feature-media { min-height: 185px; }
  .youtube-feature-copy { padding: 16px; }
  .youtube-feature-copy h3 { font-size: 0.98rem; }
  .youtube-feature-copy > p:not(.panel-kicker) { font-size: 0.7rem; }
  .youtube-feature-link { font-size: 0.68rem; margin-top: 10px; }
  .session-hero { min-height: 370px; }
  .session-hero-content { justify-content: flex-end; min-height: 370px; padding: 22px 18px; }
  .session-hero h3 { font-size: 2rem; margin-bottom: 20px; }
  .session-stats { gap: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 20px; width: 100%; }
  .session-stats > span { border-bottom: 1px solid var(--line); border-right: 0; min-width: 0; padding: 10px 8px; }
  .session-stats > span:first-child { padding-left: 8px; }
  .session-primary { min-width: 0; width: 100%; }
  .quick-actions-panel,
  .attention-panel,
  .week-overview-panel,
  .family-quick-panel,
  .family-update-panel,
  .family-notification-panel { min-height: 0; padding: 16px; }
  .quick-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-action-grid > button,
  .quick-action-grid > a { min-height: 96px; padding: 12px 8px; }
  .quick-action-grid svg { height: 28px; width: 28px; }
  .reference-attention-list button { grid-template-columns: 40px minmax(0, 1fr) 16px; padding: 9px 10px; }
  .attention-icon { height: 36px; width: 36px; }
  .dashboard-week-strip { overflow-x: auto; }
  .week-strip-day { min-width: 82px; }
  .my-classes-shell > .classes-header,
  .my-classes-shell > .day-tab-row,
  .my-classes-shell > .class-management-layout,
  .my-classes-shell > .notification-queue { margin-left: 0; margin-right: 0; }
  .my-classes-shell > .classes-header { padding: 15px 15px 0; }
  .my-classes-shell > .day-tab-row { margin-left: 15px; margin-right: 15px; }
  .day-tab-row { display: flex; overflow-x: auto; }
  .day-tab-row button { flex: 0 0 105px; }
  .class-management-layout { display: block; }
  .class-selector-panel { border-left: 0; border-radius: 0; border-right: 0; padding: 13px 15px; }
  .class-selector-list { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .class-selector-list button { flex: 0 0 220px; }
  .selected-rollcall-panel { border: 0; border-radius: 0; }
  .selected-class-card > .rollcall-class-summary { padding: 16px; }
  .selected-class-card .rollcall-class-title h4 { font-size: 1.3rem; }
  .selected-class-card .rollcall-class-body { padding: 13px 15px 18px; }
  .class-status-bar { align-items: stretch; display: grid; gap: 10px; }
  .rain-workflow { min-width: 0; width: 100%; }
  .rollcall-student { align-items: stretch; grid-template-columns: minmax(0, 1fr) auto; padding: 11px; }
  .rollcall-actions { grid-column: 1 / -1; }
  .rollcall-button { min-height: 42px; }
  .owner-row { grid-column: 1 / -1; }
  .schedule-layout { display: block; }
  .active-week-board > header { align-items: flex-start; display: grid; padding: 15px; }
  .week-board-controls { width: 100%; }
  .week-board-controls button:nth-child(2) { flex: 1; }
  .schedule-day-columns { scroll-snap-type: x proximity; }
  .schedule-day-columns { grid-template-columns: repeat(5, minmax(280px, 1fr)); }
  .schedule-day-column { min-height: 380px; min-width: 280px; scroll-snap-align: start; }
  .schedule-summary-stack { display: grid; grid-template-columns: 1fr; margin-top: 12px; }
  .calendar-key { overflow-x: auto; white-space: nowrap; }
  .update-type-grid { display: flex; overflow-x: auto; }
  .update-type-grid button { flex: 0 0 220px; }
  .updates-editor-layout { grid-template-columns: 1fr; }
  .phone-notification-preview { min-height: 190px; }
  .coach-task-panel { display: block; }
  .task-create-form { margin-bottom: 14px; }
  .people-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people-metrics span:nth-child(2) { border-right: 0; }
  .people-metrics span:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .person-editor > summary { grid-template-columns: 1fr auto; }
  .person-secondary { display: none; }
  .parent-person-editor .person-secondary {
    display: block;
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .parent-person-editor .person-secondary small,
  .parent-linked-riders > span {
    line-height: 1.35;
    white-space: normal;
  }
  .family-session-card { min-height: 350px; padding: 22px 18px; }
  .family-session-card.link-pending { min-height: 310px; }
  .family-session-card h3 { font-size: 1.75rem; }
  .family-rider-switcher { align-items: flex-start; flex-direction: column; gap: 12px; padding: 14px; }
  .family-rider-options { width: 100%; }
  .family-rider-options button { min-height: 44px; }
  .family-schedule-button { min-height: 52px; min-width: 0; padding: 0 15px; width: min(100%, 320px); }
  .family-schedule-button > span { min-width: 0; }
  .family-session-facts { grid-template-columns: 1fr; margin: 24px 0; }
  .family-weekly-panel { padding: 16px; }
  .family-week-session-list { grid-template-columns: 1fr; }
  .family-notification-panel .panel-heading { align-items: flex-start; flex-direction: column; }
  .parent-notification-list { grid-template-columns: 1fr; }
  .parent-schedule-columns { display: block; }
  .parent-schedule-columns .schedule-day-column { min-height: 0; min-width: 0; }
  .parent-schedule-empty { min-height: 135px; padding: 20px 16px; }
  .parent-week-status-banner { align-items: flex-start; display: grid; gap: 4px; padding: 13px 15px; }
  .parent-week-status-banner strong { font-size: 1.05rem; }
  .parent-week-status-banner span { text-align: left; }
  .parent-term-progress { padding: 15px; }
  .parent-week-progress-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parent-week-progress { min-height: 88px; padding: 9px; }
  .calendar-rain-summary { padding: 9px; }
  body[data-role="parent"] .calendar-reference-head .primary-link { min-height: 52px; padding: 0 15px; }
}

@media (min-width: 821px) {
  .app-install-setting {
    display: none;
  }

  body[data-role]:not([data-role=""]) #mobileMoreButton {
    display: none !important;
  }

  body[data-role]:not([data-role=""]) .sidebar nav button {
    align-items: center;
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr);
    justify-items: start;
    width: 100%;
  }

  body[data-role]:not([data-role=""]) .sidebar nav button .nav-label {
    display: block !important;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.install-help-dialog {
  background: transparent;
  border: 0;
  color: var(--white);
  max-width: min(92vw, 520px);
  padding: 0;
  width: 100%;
}

.install-help-dialog::backdrop {
  background: rgba(1, 5, 9, 0.84);
  backdrop-filter: blur(8px);
}

.install-help-card {
  background: #0d1b25;
  border: 1px solid rgba(36, 236, 245, 0.45);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.62);
  padding: 24px;
  position: relative;
}

.install-help-card > .icon-action { position: absolute; right: 14px; top: 14px; }
.install-help-card h2 { font-size: 2rem; margin: 4px 0 18px; }
.install-help-intro { color: #fff; font-size: 0.9rem; line-height: 1.5; margin: -8px 42px 16px 0; }
.install-help-card ol { display: grid; gap: 10px; list-style: none; margin: 0 0 16px; padding: 0; }
.install-help-card li { align-items: center; background: #142734; border: 1px solid var(--line); border-radius: 6px; display: grid; gap: 12px; grid-template-columns: 42px minmax(0, 1fr); min-height: 72px; padding: 12px; }
.install-help-card li > span { align-items: center; background: rgba(36, 236, 245, 0.11); border-radius: 5px; color: var(--aqua); display: inline-flex; height: 42px; justify-content: center; width: 42px; }
.install-help-card li svg { height: 22px; width: 22px; }
.install-help-card li strong, .install-help-card li small { display: block; }
.install-help-card li strong { color: #fff; font-size: 0.94rem; }
.install-help-card li small { color: var(--muted); font-size: 0.78rem; line-height: 1.45; margin-top: 3px; }
.install-help-note { color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.install-help-card > .primary-action { margin-top: 16px; width: 100%; }

@media (max-width: 640px) {
  .install-help-card { padding: 22px 16px 16px; }
}

body[data-role]:not([data-role=""]) .sidebar nav button .nav-icon {
  align-items: center;
  display: inline-grid !important;
  flex: 0 0 24px;
  height: 24px;
  justify-items: center;
  width: 24px;
}

body[data-role]:not([data-role=""]) .sidebar nav button .nav-icon svg {
  display: block;
  height: 22px;
  width: 22px;
}

body[data-role]:not([data-role=""]) .sidebar nav button .nav-label {
  line-height: 1.15;
}

body[data-role]:not([data-role=""]) .sidebar nav button[hidden] {
  display: none !important;
}

.field-hint {
  color: var(--text-dim);
  float: right;
  font-family: var(--body-font);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: none;
}

@media (max-width: 820px) {
  body[data-role]:not([data-role=""]) .sidebar nav button .nav-icon {
    flex-basis: 20px;
    height: 20px;
    width: 20px;
  }

  body[data-role]:not([data-role=""]) .sidebar nav button .nav-icon svg {
    height: 20px;
    width: 20px;
  }
}

body[data-role]:not([data-role=""]) .people-add-disclosure > summary,
body[data-role]:not([data-role=""]) .people-add-disclosure summary strong,
body[data-role]:not([data-role=""]) .people-add-disclosure summary small,
body[data-role]:not([data-role=""]) .people-metrics,
body[data-role]:not([data-role=""]) .people-metrics strong {
  font-family: var(--body-font) !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

@media (max-width: 430px) {
  .workspace,
  body[data-role="admin"] .workspace,
  body[data-role="coach"] .workspace,
  body[data-role="assistantCoach"] .workspace { padding-left: 10px; padding-right: 10px; }
  .workspace-header { padding: 0 3px; }
  .session-hero { min-height: 350px; }
  .session-hero-content { min-height: 350px; }
  .session-stats > span > strong,
  .session-weather > div > strong { font-size: 1rem; }
  .quick-action-grid span { font-size: 0.78rem; }
  .reference-attention-list button > span:nth-child(2) strong { font-size: 0.78rem; }
  .dashboard-week-strip { margin-left: -8px; margin-right: -8px; }
  .rollcall-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rollcall-button.present { grid-column: auto; }
  .calendar-reference-head .primary-link { font-size: 0.8rem; }
  .update-compose-panel,
  .update-preview-panel,
  .recent-updates-panel { padding: 15px; }
}

/* Retire legacy display-type and active-state rules inside the signed-in product. */
body[data-role]:not([data-role=""]) .workspace h2,
body[data-role]:not([data-role=""]) .workspace h3,
body[data-role]:not([data-role=""]) .workspace h4,
body[data-role]:not([data-role=""]) .workspace .day-tab-row span,
body[data-role]:not([data-role=""]) .workspace .day-tab-row strong,
body[data-role]:not([data-role=""]) .workspace .rollcall-class-title,
body[data-role]:not([data-role=""]) .workspace .rollcall-student,
body[data-role]:not([data-role=""]) .workspace .schedule-class-card,
body[data-role]:not([data-role=""]) .workspace .people-section-title strong,
body[data-role]:not([data-role=""]) .workspace .person-primary strong,
body[data-role]:not([data-role=""]) .workspace .person-secondary {
  font-family: var(--body-font) !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body[data-role]:not([data-role=""]) .sidebar nav button.active {
  background: linear-gradient(110deg, rgba(10, 103, 122, 0.78), rgba(8, 62, 76, 0.88)) !important;
  border-color: rgba(25, 215, 229, 0.36) !important;
  box-shadow: none !important;
  color: var(--white) !important;
}

body[data-role]:not([data-role=""]) .sidebar nav button svg {
  display: block;
  min-width: 22px;
}

body[data-role]:not([data-role=""]) .workspace:has(.tab.active:not(#homeTab)) .workspace-title-block {
  display: none;
}

body[data-role]:not([data-role=""]) .workspace:has(.tab.active:not(#homeTab)) .workspace-header {
  justify-content: flex-end;
  min-height: 54px;
}

.coach-cover-manager {
  grid-column: 1 / -1;
  padding: 24px;
}

.coach-task-manager,
.coach-home-task-panel {
  grid-column: 1 / -1;
  padding: 24px;
}

.coach-task-manager .panel-heading p:last-child,
.coach-home-task-panel .panel-heading p:last-child {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 5px 0 0;
}

.simple-task-form {
  background: rgba(5, 12, 18, 0.6);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  margin-top: 18px;
  padding: 18px;
}

.simple-task-form label {
  color: var(--muted);
  display: grid;
  font-size: 0.72rem;
  font-weight: 750;
  gap: 6px;
}

.simple-task-form label > span {
  font-weight: 500;
}

.simple-task-form input,
.simple-task-form select,
.simple-task-form textarea {
  background: var(--panel-raised);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--white);
  min-height: 48px;
  padding: 11px 12px;
  resize: vertical;
  width: 100%;
}

.simple-task-form .task-focus-field,
.simple-task-form .task-form-submit {
  grid-column: 1 / -1;
}

.task-form-submit {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.task-form-submit p {
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0;
}

.task-form-submit .primary-action {
  min-width: 230px;
}

.scheduled-task-list {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 16px;
}

.scheduled-task-list > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 15px;
}

.scheduled-task-list > summary strong,
.task-total {
  background: rgba(25, 215, 229, 0.1);
  border: 1px solid rgba(25, 215, 229, 0.32);
  border-radius: 999px;
  color: var(--aqua);
  font-size: 0.7rem;
  padding: 5px 9px;
}

.scheduled-task-list > div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.coach-home-task-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.inline-task-card {
  background: linear-gradient(145deg, rgba(15, 29, 40, 0.92), rgba(8, 17, 24, 0.94));
  border: 1px solid var(--line);
  border-left: 3px solid var(--aqua);
  border-radius: 7px;
  padding: 14px;
}

.inline-task-card.completed {
  border-left-color: var(--success);
}

.inline-task-card > summary {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
}

.inline-task-card > summary::-webkit-details-marker { display: none; }
.inline-task-card > summary > div { margin-right: auto; min-width: 0; }

.inline-task-card > summary small,
.inline-task-card > summary h4 {
  display: block;
}

.inline-task-card > summary small {
  color: var(--aqua);
  font-size: 0.67rem;
  font-weight: 750;
}

.inline-task-card > summary h4 {
  font-family: var(--body-font);
  font-size: 0.98rem;
  font-style: normal;
  margin: 4px 0 0;
}

.inline-task-summary-status {
  background: rgba(139, 92, 255, 0.13);
  border: 1px solid rgba(139, 92, 255, 0.42);
  border-radius: 999px;
  color: #c8baff;
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 5px 9px;
}

.inline-task-chevron {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  flex: 0 0 auto;
  padding-top: 3px;
}

.inline-task-chevron svg {
  height: 18px;
  transition: transform 160ms ease;
  width: 18px;
}

.inline-task-card[open] .inline-task-chevron svg { transform: rotate(180deg); }

.inline-task-content > p {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
  margin: 10px 0;
}

.inline-task-checklist {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.inline-task-checklist label {
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-height: 46px;
  padding: 9px 11px;
}

.inline-task-checklist input {
  accent-color: var(--aqua);
  flex: 0 0 auto;
  height: 22px;
  width: 22px;
}

.inline-task-checklist input:checked + span {
  color: var(--muted);
  text-decoration: line-through;
}

.inline-task-checklist span {
  font-size: 0.78rem;
  line-height: 1.35;
}

.inline-task-content > footer {
  align-items: center;
  display: flex;
  gap: 9px;
  margin-top: 11px;
}

.inline-task-content > footer > span {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.68rem;
  gap: 6px;
  margin-right: auto;
}

.inline-task-content > footer svg {
  color: var(--purple);
  height: 16px;
  width: 16px;
}

.inline-task-content > footer small {
  color: var(--muted);
  font-size: 0.68rem;
}

.class-plan-complete {
  align-items: center;
  background: linear-gradient(135deg, var(--aqua), #34b7ef 58%, var(--purple));
  border: 0;
  border-radius: 5px;
  color: #031015;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 850;
  gap: 7px;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
}

.class-plan-complete svg {
  color: currentColor !important;
  height: 15px !important;
  width: 15px !important;
}

.class-plan-complete.is-complete {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: var(--success);
}

.admin-class-plan-panel {
  grid-column: 1 / -1;
  padding: 22px;
}

.admin-class-plan-panel .panel-heading p:last-child {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 5px 0 0;
}

.admin-plan-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 15px;
}

.admin-plan-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-left: 3px solid var(--purple);
  border-radius: 6px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 64px;
  padding: 10px 12px;
}

.admin-plan-row.complete { border-left-color: var(--success); }
.admin-plan-row > span { display: grid; gap: 2px; }
.admin-plan-row strong { font-size: 0.78rem; }
.admin-plan-row small { color: var(--muted); font-size: 0.65rem; }
.admin-plan-time { color: var(--aqua); font-size: 0.72rem; font-weight: 800; }
.admin-plan-progress { text-align: right; }
.admin-plan-row.complete .admin-plan-progress strong,
.admin-plan-row.complete .admin-plan-progress small { color: var(--success); }

.inline-task-card.compact {
  padding: 12px;
}

.rollcall-task-block {
  background: rgba(139, 92, 255, 0.055);
  border: 1px solid rgba(139, 92, 255, 0.32);
  border-radius: 7px;
  margin-bottom: 14px;
  padding: 13px;
}

.rollcall-task-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.rollcall-task-heading span,
.rollcall-task-heading strong {
  display: block;
}

.rollcall-task-heading span {
  color: #bba8ff;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.rollcall-task-heading strong {
  font-size: 0.86rem;
  margin-top: 3px;
}

.rollcall-task-heading svg {
  color: var(--purple);
  height: 26px;
  width: 26px;
}

.rollcall-task-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.rollcall-task-empty {
  color: var(--muted);
  font-size: 0.72rem;
  margin: 10px 0 0;
}

.coach-cover-manager .panel-heading p:last-child {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 5px 0 0;
}

.coach-cover-form {
  display: grid;
  gap: 12px;
  grid-template-columns: 0.55fr 1.25fr 0.8fr;
  margin-top: 18px;
}

.coach-cover-form label {
  color: var(--muted);
  display: grid;
  font-size: 0.72rem;
  font-weight: 750;
  gap: 6px;
}

.coach-cover-form select,
.coach-cover-form input {
  background: var(--panel-raised);
  border: 1px solid var(--line);
  color: var(--white);
  min-height: 46px;
  padding: 0 12px;
  width: 100%;
}

.coach-cover-form .cover-note-field {
  grid-column: 1 / 3;
}

.coach-cover-form .primary-action {
  align-self: end;
  min-height: 46px;
}

.cover-assignment-list {
  border: 1px solid var(--line);
  margin-top: 16px;
}

.cover-assignment-list > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 14px;
}

.cover-assignment-list > summary strong {
  align-items: center;
  background: rgba(25, 215, 229, 0.13);
  border: 1px solid rgba(25, 215, 229, 0.35);
  border-radius: 50%;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.cover-assignment-list > div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding: 10px;
}

.cover-assignment-list article {
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 11px 12px;
}

.cover-assignment-list article small,
.cover-assignment-list article strong,
.cover-assignment-list article span {
  display: block;
}

.cover-assignment-list article small { color: var(--aqua); font-size: 0.66rem; }
.cover-assignment-list article strong { font-size: 0.82rem; margin: 3px 0; }
.cover-assignment-list article span { color: var(--muted); font-size: 0.7rem; }

.coach-cover-callout,
.family-cover-note {
  background: rgba(139, 92, 255, 0.11);
  border: 1px solid rgba(139, 92, 255, 0.45);
}

.coach-cover-callout {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr);
  margin-bottom: 18px;
  padding: 12px 14px;
}

.coach-cover-callout > svg { color: var(--purple); height: 30px; width: 30px; }
.coach-cover-callout small,
.coach-cover-callout strong { display: block; }
.coach-cover-callout small { color: #bca7ff; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; }
.coach-cover-callout strong { font-size: 0.9rem; margin-top: 2px; }
.coach-cover-callout p { color: var(--muted); font-size: 0.72rem; margin: 4px 0 0; }

.family-cover-note {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.family-cover-note strong { font-size: 0.82rem; }
.family-cover-note span { color: var(--muted); font-size: 0.72rem; }
.family-week-session.has-cover { border-left: 3px solid var(--purple); }
.schedule-class-card.has-cover { box-shadow: inset 0 0 0 1px rgba(139, 92, 255, 0.55); }

.family-makeup-panel {
  align-items: center;
  border-color: rgba(25, 215, 229, 0.38);
  display: grid;
  gap: 16px;
  grid-column: 1 / -1;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  padding: 18px;
}

.family-makeup-icon {
  align-items: center;
  background: rgba(25, 215, 229, 0.12);
  border-radius: 50%;
  color: var(--aqua);
  display: flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.family-makeup-icon svg { height: 24px; width: 24px; }
.family-makeup-panel h3 { font-size: 1.05rem; margin: 4px 0 6px; }
.family-makeup-panel p { color: var(--muted); font-size: 0.76rem; margin: 4px 0; }
.family-makeup-panel p strong { color: var(--white); }

@media (max-width: 820px) {
  .coach-cover-manager,
  .coach-task-manager,
  .coach-home-task-panel { padding: 16px; }
  .coach-cover-form { grid-template-columns: 1fr; }
  .coach-cover-form .cover-note-field { grid-column: auto; }
  .simple-task-form { grid-template-columns: 1fr; padding: 14px; }
  .simple-task-form .task-focus-field,
  .simple-task-form .task-form-submit { grid-column: auto; }
  .task-form-submit { align-items: stretch; display: grid; }
  .task-form-submit .primary-action { min-width: 0; width: 100%; }
  .coach-home-task-list { grid-template-columns: 1fr; }
  .cover-assignment-list article { align-items: flex-start; }
  .family-makeup-panel { align-items: start; grid-template-columns: 38px minmax(0, 1fr); padding: 15px; }
  .family-makeup-icon { height: 38px; width: 38px; }
  .family-makeup-panel > .mini-action { grid-column: 1 / -1; min-height: 44px; width: 100%; }
}

@media (max-width: 620px) {
  .credential-strip span { align-items: center; justify-content: center; }
  .credential-strip img { height: 22px; width: 58px; }
  .olympic-rings { transform: scale(0.82); transform-origin: center; }
  .inline-task-card > summary { align-items: center; }
  .inline-task-card > summary h4 { font-size: 0.9rem; }
  .inline-task-content > footer { align-items: stretch; flex-wrap: wrap; }
  .inline-task-content > footer > span { flex: 1 0 100%; }
  .inline-task-content > footer .mini-action,
  .inline-task-content > footer .class-plan-complete { flex: 1; }
  .admin-class-plan-panel { padding: 16px; }
  .admin-plan-list { grid-template-columns: 1fr; }
  .coach-cover-callout { margin-bottom: 14px; }
  .cover-assignment-list article { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
  .splash-ring,
  .splash-logo { animation-duration: 3s; }
}

body[data-role]:not([data-role=""]) .workspace-title-block h2 {
  white-space: nowrap;
}

.session-hero {
  background:
    linear-gradient(90deg, rgba(6, 18, 27, 0.98) 0%, rgba(7, 20, 29, 0.9) 55%, rgba(7, 15, 22, 0.58) 100%),
    url("./assets/instagram-slide-3.jpg") center 42% / cover no-repeat;
}

@media (max-width: 820px) {
  body[data-role]:not([data-role=""]) .workspace-title-block h2 { font-size: 1.72rem; white-space: nowrap; }
  body[data-role]:not([data-role=""]) .workspace:has(.tab.active:not(#homeTab)) .workspace-header { display: flex; justify-content: flex-end; min-height: 44px; }
  .class-management-layout,
  .selected-rollcall-panel,
  .selected-class-card,
  .selected-class-card .rollcall-class-body,
  .selected-class-card .class-status-bar,
  .selected-class-card .rollcall-list,
  .selected-class-card .rollcall-student,
  .selected-class-card .rollcall-actions { max-width: 100%; min-width: 0; width: 100%; }
}

/* Keep the role refresh above the legacy compatibility styles. */
body {
  font-family: var(--body-font);
  font-size: 16px;
}

button,
input,
select,
textarea,
summary {
  font-family: var(--body-font);
  letter-spacing: 0;
}

button,
summary {
  font-style: normal;
  font-weight: 800;
}

.app-view {
  background: #06080b;
  grid-template-columns: 232px minmax(0, 1fr);
}

.sidebar {
  gap: 20px;
  padding: 22px 18px;
}

.sidebar nav {
  gap: 4px;
}

.sidebar nav button {
  border-radius: 4px;
  font-family: var(--body-font);
  font-size: 0.94rem;
  font-style: normal;
  font-weight: 800;
  min-height: 46px;
  padding: 0 14px;
  text-transform: none;
}

.sidebar nav button.active {
  background: var(--aqua);
  box-shadow: inset 4px 0 0 var(--purple);
  color: #020405;
}

.workspace,
body[data-role="admin"] .workspace,
body[data-role="coach"] .workspace,
body[data-role="assistantCoach"] .workspace {
  margin: 0 auto;
  max-width: 1680px;
  padding: 24px clamp(18px, 3vw, 42px) 56px;
  width: 100%;
}

.workspace-header,
body[data-role="admin"] .workspace-header,
body[data-role="coach"] .workspace-header,
body[data-role="assistantCoach"] .workspace-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  padding-bottom: 16px;
}

.wide-card p,
.feature-card p,
.shop-card p,
.page-intro p,
.settings-section p,
.parent-now-card p,
.coach-next-action p {
  font-family: var(--body-font);
  font-size: 0.98rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.55;
  text-transform: none;
}

.primary-action,
.primary-link,
.mini-action,
.rainout-session-button,
.rollcall-button,
.logout-action,
.outline-action {
  border-radius: 4px;
  font-family: var(--body-font);
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0;
  min-height: 46px;
  text-transform: none;
}

.calendar-week > header {
  display: none;
}

.coach-task-item {
  align-items: stretch;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: block;
  padding: 0;
}

.coach-task-item h4 {
  font-size: 1.25rem;
  margin: 3px 0 0;
}

.coach-task-item p {
  font-family: var(--body-font);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.5;
}

.class-status-bar {
  align-items: flex-start;
}

.shop-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (max-width: 1120px) {
  .app-view {
    grid-template-columns: 1fr;
  }

  .workspace,
  body[data-role="admin"] .workspace,
  body[data-role="coach"] .workspace,
  body[data-role="assistantCoach"] .workspace {
    max-width: 100vw;
    padding: 20px clamp(14px, 3vw, 28px) 48px;
  }
}

@media (max-width: 760px) {
  .app-view {
    display: block;
    min-height: 100svh;
  }

  .sidebar {
    background: rgba(3, 5, 7, 0.98);
    border: 0;
    border-top: 1px solid rgba(0, 245, 255, 0.24);
    bottom: 0;
    display: block;
    left: 0;
    min-height: 0;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    top: auto;
    width: 100%;
    z-index: 100;
  }

  .sidebar .brand,
  .sidebar > .outline-action,
  .sidebar > .logout-action {
    display: none;
  }

  .sidebar nav {
    display: flex;
    gap: 4px;
    max-width: 100%;
    overflow-x: auto;
    padding: 0;
    width: 100%;
  }

  .sidebar nav button {
    flex: 1 0 68px;
    font-size: 0.72rem;
    line-height: 1.1;
    min-height: 54px;
    padding: 5px 7px;
    text-align: center;
    white-space: normal;
  }

  .sidebar nav button.active {
    box-shadow: inset 0 3px 0 var(--purple);
  }

  .workspace,
  body[data-role="admin"] .workspace,
  body[data-role="coach"] .workspace,
  body[data-role="assistantCoach"] .workspace {
    overflow: visible;
    padding: 16px 12px calc(90px + env(safe-area-inset-bottom));
  }

  .workspace-header,
  body[data-role="admin"] .workspace-header,
  body[data-role="coach"] .workspace-header,
  body[data-role="assistantCoach"] .workspace-header {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .workspace-header .eyebrow {
    display: none;
  }

  .workspace-header h2,
  body[data-role="admin"] .workspace-header h2,
  body[data-role="coach"] .workspace-header h2,
  body[data-role="assistantCoach"] .workspace-header h2 {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .status-pill {
    font-size: 0.7rem;
    min-height: 34px;
    padding: 7px 9px;
  }

  .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(118px, 1fr));
    overflow-x: auto;
    padding: 0 10px 10px;
    scroll-snap-type: x proximity;
  }

  .calendar-day {
    min-height: 128px;
    scroll-snap-align: start;
  }

  .task-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Release audit polish: denser coaching tools and simpler family journeys. */
.auth-landing {
  grid-template-columns: 1fr;
}

.auth-landing .primary-action,
.auth-landing .ghost-action {
  width: 100%;
}

.landing-install-action {
  align-items: center;
  background: rgba(36, 236, 245, 0.08);
  border: 1px solid rgba(36, 236, 245, 0.48);
  border-radius: 4px;
  color: #fff;
  display: inline-flex;
  font-family: var(--brand-font);
  font-style: italic;
  font-weight: 950;
  gap: 10px;
  justify-content: center;
  min-height: 52px;
  padding: 0 16px;
  text-transform: uppercase;
  width: 100%;
}

.landing-install-action:hover,
.landing-install-action:focus-visible {
  background: rgba(36, 236, 245, 0.16);
  border-color: var(--aqua);
}

.landing-install-action svg { height: 20px; width: 20px; }

.classes-header {
  gap: 18px;
  margin-bottom: 16px;
}

.classes-header h3 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 0.95;
  margin-bottom: 8px;
}

.day-tab-row {
  gap: 7px;
  margin-bottom: 14px;
}

.day-tab-row button {
  background: #10161d;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  min-height: 54px;
}

.day-tab-row button:hover,
.day-tab-row button.active {
  border-color: var(--aqua);
}

.rollcall-class-card {
  background: #0c1117;
  border-color: rgba(255, 255, 255, 0.18);
}

.rollcall-class-summary {
  min-height: 84px;
  padding: 15px 17px;
}

.rollcall-class-body {
  padding: 14px 16px 17px;
}

.rollcall-button {
  border-color: rgba(255, 255, 255, 0.24);
  min-height: 46px;
}

.private-parent-card {
  background: linear-gradient(110deg, rgba(0, 245, 255, 0.13), rgba(139, 92, 255, 0.12));
}

.private-parent-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1 / -1;
  margin-top: 4px;
}

.private-schedule-intro {
  margin-bottom: 14px;
}

.private-term-explorer {
  margin-top: 16px;
  padding: 0;
}

.private-term-explorer > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  min-height: 58px;
  padding: 14px 16px;
}

.private-term-explorer > div {
  border-top: 1px solid var(--line);
  padding: 16px;
}

.calendar-day-sessions > span small {
  color: var(--muted);
  display: block;
  font-family: var(--body-font);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 4px;
  text-transform: none;
}

.person-editor-form select,
.person-editor-form input,
.person-editor-form textarea {
  min-height: 46px;
}

@media (max-width: 620px) {
  .hero-panel {
    padding: max(14px, env(safe-area-inset-top)) 14px 0;
  }

  .landing-slideshow {
    aspect-ratio: 16 / 7;
    border-color: rgba(0, 245, 255, 0.24);
  }

  .hero-copy h1 {
    font-size: clamp(2.65rem, 12vw, 3.2rem);
  }

  .credential-strip {
    margin-top: 6px;
  }

  .auth-card {
    margin-top: 12px;
    padding: 20px 17px calc(22px + env(safe-area-inset-bottom));
  }

  .auth-card h2 {
    font-size: clamp(2rem, 9vw, 2.45rem);
  }

  .signup-field-grid {
    grid-template-columns: 1fr;
  }

  .signup-field-grid .signup-wide {
    grid-column: auto;
  }

  .private-parent-actions,
  .private-parent-actions .primary-link,
  .private-parent-actions .mini-action {
    width: 100%;
  }

  .day-tab-row {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .day-tab-row::-webkit-scrollbar {
    display: none;
  }

  .day-tab-row button {
    flex: 0 0 118px;
  }

  .rollcall-class-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 78px;
    padding: 13px 14px;
  }

  .rollcall-class-body {
    padding: 12px;
  }

  .rollcall-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .rollcall-button.present {
    grid-column: 1 / -1;
  }

  .person-editor-form {
    grid-template-columns: 1fr;
  }
}

/* Calendar mobile view: show every lesson day in one vertical scan. */
@media (max-width: 820px) {
  .schedule-day-columns {
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
  }

  .schedule-day-column {
    min-height: 0;
    min-width: 0;
  }

  .schedule-day-column > header {
    align-items: baseline;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    padding: 11px 13px;
    text-align: left;
  }

  .schedule-day-column > div {
    padding: 10px;
  }

  .calendar-session-trigger {
    min-height: 106px;
  }

  .calendar-session-roster {
    padding: 11px;
  }

  .private-calendar-row {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .private-calendar-rider,
  .private-calendar-coach {
    grid-column: 1 / -1;
  }

  .calendar-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding: 0 10px 10px;
  }
}

/* Keep the signed-in schedule surfaces on the JKC level colour system. */
body[data-role]:not([data-role=""]) .schedule-class-card.level-1 {
  --level-accent: #ffffff;
  --level-wash: rgba(255, 255, 255, 0.08);
  border-top-color: #78828c;
  border-bottom-color: #78828c;
}

body[data-role]:not([data-role=""]) .schedule-class-card.level-2 {
  --level-accent: #ffd43d;
  --level-wash: rgba(255, 212, 61, 0.1);
}

body[data-role]:not([data-role=""]) .schedule-class-card.level-3 {
  --level-accent: #ff8b3d;
  --level-wash: rgba(255, 139, 61, 0.1);
}

body[data-role]:not([data-role=""]) .schedule-class-card.level-4 {
  --level-accent: #3bd47f;
  --level-wash: rgba(59, 212, 127, 0.1);
}

body[data-role]:not([data-role=""]) .schedule-class-card.level-5 {
  --level-accent: #173b82;
  --level-wash: rgba(23, 59, 130, 0.32);
  background: linear-gradient(115deg, rgba(23, 59, 130, 0.5), rgba(255, 255, 255, 0.018) 72%);
  border-top-color: #587dc7;
  border-bottom-color: #587dc7;
}

body[data-role]:not([data-role=""]) .schedule-class-card.level-1 > strong,
body[data-role]:not([data-role=""]) .schedule-class-card.level-5 > strong {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

body[data-role]:not([data-role=""]) .calendar-day-sessions > span.level-1,
body[data-role]:not([data-role=""]) .calendar-key .level-key.level-1 {
  --level-accent: #ffffff;
  --level-key-color: #ffffff;
  border-color: #78828c;
}

body[data-role]:not([data-role=""]) .calendar-day-sessions > span.level-2,
body[data-role]:not([data-role=""]) .calendar-key .level-key.level-2 {
  --level-accent: #ffd43d;
  --level-key-color: #ffd43d;
}

body[data-role]:not([data-role=""]) .calendar-day-sessions > span.level-3,
body[data-role]:not([data-role=""]) .calendar-key .level-key.level-3 {
  --level-accent: #ff8b3d;
  --level-key-color: #ff8b3d;
}

body[data-role]:not([data-role=""]) .calendar-day-sessions > span.level-4,
body[data-role]:not([data-role=""]) .calendar-key .level-key.level-4 {
  --level-accent: #3bd47f;
  --level-key-color: #3bd47f;
}

body[data-role]:not([data-role=""]) .calendar-day-sessions > span.level-5,
body[data-role]:not([data-role=""]) .calendar-key .level-key.level-5 {
  --level-accent: #173b82;
  --level-key-color: #ffffff;
  background: rgba(23, 59, 130, 0.32);
  border-color: #587dc7;
  color: #ffffff;
}

body[data-role]:not([data-role=""]) .calendar-day-sessions > span.level-5 strong {
  color: #ffffff;
}

/* Relative week and parent sync states stay readable at a glance. */
.calendar-week-status {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-family: var(--body-font);
  font-size: 0.58rem;
  font-style: normal;
  letter-spacing: 0.04em;
  margin-left: 7px;
  padding: 3px 7px;
  text-transform: uppercase;
  vertical-align: middle;
}
.calendar-week.current > summary .calendar-week-status { background: rgba(25, 215, 229, 0.18); border-color: var(--aqua); color: var(--aqua); }
.calendar-week.next > summary .calendar-week-status { background: rgba(139, 92, 246, 0.18); border-color: var(--purple); color: #c8b8ff; }
.calendar-week.completed > summary .calendar-week-status { background: rgba(81, 219, 145, 0.14); border-color: var(--success); color: var(--success); }
.calendar-week.away > summary .calendar-week-status { color: var(--warning); }
.calendar-week.makeup > summary .calendar-week-status { color: #c8b8ff; }
.news-header-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.news-sync-note { font-size: 0.7rem; margin: 5px 0 0; }
.news-sync-note.connected { color: var(--success); }
.news-sync-note.offline { color: var(--warning); }

@media (max-width: 650px) {
  .news-header-actions { align-items: stretch; justify-content: flex-start; }
  .news-header-actions .mini-action { min-height: 42px; }
  .calendar-week-status { display: block; margin: 5px 0 0; width: max-content; }
}

/* Month-first scheduling and makeup availability */
.month-calendar-shell {
  --calendar-border: rgba(154, 178, 202, 0.2);
  --calendar-surface: #0b141d;
  --calendar-elevated: #101d28;
  display: grid;
  gap: 18px;
}
.calendar-legend { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0 2px; }
.calendar-legend span { align-items: center; color: #b8c5d1; display: inline-flex; font-size: .75rem; font-weight: 750; gap: 7px; }
.calendar-legend span::before { background: var(--legend-color); border-radius: 3px; content: ""; height: 9px; width: 9px; }
.calendar-legend .regular { --legend-color: var(--aqua); }
.calendar-legend .available { --legend-color: var(--success); }
.calendar-legend .unavailable { --legend-color: #ffba4a; }
.calendar-legend .makeup { --legend-color: var(--purple); }
.calendar-legend .rain { --legend-color: var(--danger); }
.calendar-legend .booking { --legend-color: #ffba4a; }
.month-calendar-layout { align-items: start; display: grid; gap: 16px; grid-template-columns: minmax(0, 1.7fr) minmax(320px, .8fr); }
.month-calendar, .calendar-day-panel { background: var(--calendar-surface); border: 1px solid var(--calendar-border); border-radius: 8px; min-width: 0; }
.month-calendar-toolbar { align-items: center; border-bottom: 1px solid var(--calendar-border); display: flex; justify-content: space-between; min-height: 76px; padding: 14px 16px; }
.month-calendar-toolbar span, .month-calendar-toolbar h4 { display: block; margin: 0; }
.month-calendar-toolbar span { color: var(--aqua); font-size: .68rem; font-weight: 850; text-transform: uppercase; }
.month-calendar-toolbar h4 { color: #fff; font-family: var(--body-font); font-size: 1.24rem; font-style: normal; font-weight: 850; }
.month-calendar-toolbar > div:last-child { display: flex; gap: 6px; }
.month-calendar-toolbar button { align-items: center; background: #152330; border: 1px solid rgba(158, 182, 207, .28); border-radius: 6px; color: #fff; display: inline-flex; font: inherit; font-size: .76rem; font-weight: 800; height: 40px; justify-content: center; min-width: 40px; padding: 0 12px; }
.month-calendar-toolbar button:hover:not(:disabled), .month-calendar-toolbar button:focus-visible { border-color: var(--aqua); color: var(--aqua); }
.month-calendar-toolbar button:disabled { opacity: .42; }
.month-weekdays, .month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.month-weekdays { border-bottom: 1px solid var(--calendar-border); }
.month-weekdays span { color: #7f91a2; font-size: .66rem; font-weight: 850; padding: 9px 8px; text-align: center; text-transform: uppercase; }
.month-day { align-content: start; background: transparent; border: 0; border-bottom: 1px solid var(--calendar-border); border-right: 1px solid var(--calendar-border); color: #fff; cursor: pointer; display: grid; gap: 10px; min-height: 118px; min-width: 0; padding: 9px; text-align: left; }
.month-day:nth-child(7n) { border-right: 0; }
.month-day.outside-month { background: #071018; opacity: .42; }
.month-day:hover { background: #122330; }
.month-day.selected { background: rgba(13, 217, 232, .1); box-shadow: inset 0 0 0 2px var(--aqua); }
.month-day.has-makeup { background-image: linear-gradient(145deg, rgba(145, 83, 255, .13), transparent 62%); }
.month-day.has-rain { background-image: linear-gradient(145deg, rgba(255, 91, 91, .13), transparent 62%); }
.month-day:focus-visible, .availability-actions button:focus-visible, .calendar-makeup-form button:focus-visible, .calendar-makeup-form input:focus-visible { outline: 3px solid rgba(13, 217, 232, .42); outline-offset: 2px; }
.month-day-number { align-items: center; display: flex; font-size: .88rem; font-weight: 900; justify-content: space-between; }
.month-day-number em { background: var(--aqua); border-radius: 999px; color: #001016; font-size: .54rem; font-style: normal; padding: 3px 6px; text-transform: uppercase; }
.month-day.today .month-day-number { color: var(--aqua); }
.month-day-indicators { align-content: start; display: grid; gap: 4px; }
.month-day-indicators i { --indicator-color: var(--aqua); align-items: center; background: color-mix(in srgb, var(--indicator-color) 12%, transparent); border-left: 3px solid var(--indicator-color); border-radius: 2px; color: #dce5ec; display: flex; font-size: .58rem; font-style: normal; font-weight: 720; gap: 4px; line-height: 1.2; min-height: 21px; overflow: hidden; padding: 3px 4px; white-space: nowrap; }
.month-day-indicators i svg { height: 11px; width: 11px; }
.month-day-indicators .available { --indicator-color: var(--success); color: #aaf4c9; }
.month-day-indicators .unavailable { --indicator-color: #ffba4a; color: #ffe0a1; }
.month-day-indicators .makeup { --indicator-color: var(--purple); color: #d8c0ff; }
.month-day-indicators .makeup.completed { --indicator-color: var(--success); color: #aaf4c9; }
.month-day-indicators .rain { --indicator-color: var(--danger); color: #ffb0b0; }
.month-day-indicators .booking { --indicator-color: #ffba4a; color: #ffe0a1; }
.calendar-day-panel { max-height: min(720px, calc(100vh - 190px)); overflow: auto; position: sticky; top: 16px; }
.calendar-day-panel > header { align-items: flex-start; background: #101d28; border-bottom: 1px solid var(--calendar-border); display: flex; justify-content: space-between; padding: 17px; }
.calendar-day-panel > header span, .calendar-day-panel > header h4, .calendar-day-panel > header p { display: block; margin: 0; }
.calendar-day-panel > header > div > span { color: var(--aqua); font-size: .66rem; font-weight: 850; text-transform: uppercase; }
.calendar-day-panel > header h4 { color: #fff; font-family: var(--body-font); font-size: 1.18rem; font-style: normal; font-weight: 900; }
.calendar-day-panel > header p { color: #8ea0af; font-size: .72rem; margin-top: 4px; }
.calendar-day-panel .day-panel-count { background: rgba(13, 217, 232, .1); border: 1px solid rgba(13, 217, 232, .28); border-radius: 999px; color: var(--aqua); font-size: .62rem; font-weight: 850; padding: 5px 8px; }
.calendar-feedback { align-items: flex-start; background: rgba(81, 219, 145, .1); border-bottom: 1px solid rgba(81, 219, 145, .28); color: #b8f3cf; display: flex; font-size: .74rem; font-weight: 750; gap: 8px; padding: 11px 16px; }
.calendar-feedback.error { background: rgba(255, 91, 91, .1); border-color: rgba(255, 91, 91, .32); color: #ffb7b7; }
.calendar-feedback svg { flex: 0 0 auto; height: 17px; width: 17px; }
.day-detail-section { border-bottom: 1px solid var(--calendar-border); padding: 16px; }
.day-detail-section:last-child { border-bottom: 0; }
.day-detail-section-head { align-items: center; display: flex; justify-content: space-between; margin-bottom: 11px; }
.day-detail-section-head span { color: #8294a4; display: block; font-size: .6rem; font-weight: 850; text-transform: uppercase; }
.day-detail-section-head h5 { color: #fff; font-family: var(--body-font); font-size: .96rem; font-style: normal; font-weight: 880; margin: 2px 0 0; }
.day-detail-section-head > svg { color: var(--aqua); height: 20px; width: 20px; }
.day-session-list, .day-makeup-list, .family-availability-list { display: grid; gap: 8px; }
.day-session, .day-makeup-card, .family-availability-list > article { background: var(--calendar-elevated); border: 1px solid var(--calendar-border); border-left: 3px solid var(--aqua); border-radius: 6px; padding: 11px; }
.day-session { align-items: center; display: flex; gap: 10px; justify-content: space-between; }
.day-session.rained-out { border-left-color: var(--danger); }
.day-session.square-booking-session { border-left-color: #ffba4a; }
.day-session.square-booking-session > div > span,
.booking-day-section .day-detail-section-head > svg { color: #ffba4a; }
.day-session .booking-customer-note { color: #c9d4dc; font-style: italic; margin-top: 6px; }
.day-session > div > span, .day-makeup-card header span { color: var(--aqua); display: block; font-size: .58rem; font-weight: 850; text-transform: uppercase; }
.day-session.rained-out > div > span { color: #ff9393; }
.day-session strong, .day-session small { display: block; }
.day-session strong { color: #fff; font-size: .78rem; }
.day-session small { color: #8fa0ae; font-size: .66rem; margin-top: 3px; }
.day-session > svg { color: var(--danger); }
.day-makeup-card { border-left-color: var(--purple); display: grid; gap: 10px; }
.day-makeup-card.needs-date { border-left-color: #ffba4a; }
.day-makeup-card.completed { background: rgba(81, 219, 145, .09); border-left-color: var(--success); }
.day-makeup-card header { align-items: flex-start; display: flex; justify-content: space-between; }
.day-makeup-card header strong, .day-makeup-card header small { display: block; }
.day-makeup-card header strong { color: #fff; font-size: .82rem; margin-top: 2px; }
.day-makeup-card header small { color: #8fa0ae; font-size: .64rem; margin-top: 3px; }
.day-makeup-card header em { background: rgba(145, 83, 255, .13); border-radius: 999px; color: #d7c1ff; font-size: .56rem; font-style: normal; font-weight: 850; padding: 4px 7px; }
.day-makeup-card.needs-date header em { background: rgba(255, 186, 74, .12); color: #ffd58c; }
.day-makeup-card.completed header em { align-items: center; background: rgba(81, 219, 145, .13); color: #aaf4c9; display: inline-flex; gap: 4px; }
.day-makeup-card.completed header em svg { height: 12px; width: 12px; }
.day-makeup-card > p { color: #b2bfca; font-size: .7rem; margin: 0; }
.automatic-makeup-roster { align-items: center; background: rgba(81, 219, 145, .09); border: 1px solid rgba(81, 219, 145, .38); color: var(--success); display: flex; gap: 9px; padding: 10px; }
.automatic-makeup-roster > svg { flex: 0 0 auto; height: 18px; width: 18px; }
.automatic-makeup-roster > span { display: grid; gap: 2px; }
.automatic-makeup-roster strong { color: #eafff2; font-size: .72rem; }
.automatic-makeup-roster small { color: #abc5b6; font-size: .62rem; }
.automatic-makeup-roster.staff { background: rgba(13, 217, 232, .08); border-color: rgba(13, 217, 232, .34); color: var(--aqua); }
.automatic-makeup-roster.staff small { color: #a9c1ce; }
.staff-availability-summary { display: grid; gap: 5px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.staff-availability-summary > span { background: #081119; border-radius: 4px; color: #a7b6c3; display: grid; font-size: .56rem; padding: 7px; }
.staff-availability-summary > span strong { color: #fff; font-size: .88rem; }
.staff-availability-summary .available strong { color: var(--success); }
.staff-availability-summary .unavailable strong { color: #ffba4a; }
.staff-availability-summary > small { color: #ffdda1; font-size: .62rem; grid-column: 1 / -1; }
.availability-section > p { color: #9cabb8; font-size: .7rem; margin: -3px 0 11px; }
.family-availability-list > article { border-left-color: var(--success); display: grid; gap: 10px; }
.family-availability-list > article > div:first-child strong, .family-availability-list > article > div:first-child span { display: block; }
.family-availability-list > article > div:first-child strong { color: #fff; font-size: .78rem; }
.family-availability-list > article > div:first-child span { color: #8fa0ae; font-size: .64rem; }
.availability-actions { display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.availability-actions button { align-items: center; background: #0a141d; border: 1px solid rgba(151, 177, 200, .28); border-radius: 5px; color: #c1ccd6; display: inline-flex; font: inherit; font-size: .66rem; font-weight: 820; gap: 5px; justify-content: center; min-height: 38px; padding: 7px; }
.availability-actions button svg { height: 15px; width: 15px; }
.availability-actions .available.selected { background: rgba(81, 219, 145, .14); border-color: var(--success); color: #aaf4c9; }
.availability-actions .unavailable.selected { background: rgba(255, 186, 74, .12); border-color: #ffba4a; color: #ffe0a1; }
.availability-actions .clear { grid-column: 1 / -1; min-height: 31px; }
.calendar-makeup-form { border-top: 1px solid var(--calendar-border); display: grid; gap: 9px; padding-top: 10px; }
.calendar-makeup-editor { border-top: 1px solid var(--calendar-border); }
.calendar-makeup-editor > summary { align-items: center; color: #c8d4dc; cursor: pointer; display: flex; font-size: .68rem; font-weight: 850; gap: 7px; justify-content: flex-end; list-style: none; min-height: 38px; }
.calendar-makeup-editor > summary::-webkit-details-marker { display: none; }
.calendar-makeup-editor > summary svg { color: var(--aqua); height: 15px; width: 15px; }
.calendar-makeup-editor > summary svg:last-child { transition: transform 180ms ease; }
.calendar-makeup-editor[open] > summary svg:last-child { transform: rotate(180deg); }
.calendar-makeup-editor .calendar-makeup-form { border-top: 0; padding-top: 3px; }
.calendar-makeup-form > div:first-child { display: grid; gap: 8px; grid-template-columns: minmax(120px, .65fr) minmax(0, 1.35fr); }
.calendar-makeup-form label { color: #aebbc6; display: grid; font-size: .62rem; font-weight: 780; gap: 4px; }
.calendar-makeup-form input { background: #07111a; border: 1px solid rgba(151, 177, 200, .28); border-radius: 5px; color: #fff; font: inherit; font-size: .72rem; min-height: 40px; padding: 8px; width: 100%; }
.calendar-makeup-form-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.calendar-makeup-form .primary-action, .calendar-makeup-form .danger-action { align-items: center; border-radius: 5px; display: inline-flex; font-size: .65rem; font-weight: 850; gap: 6px; justify-content: center; min-height: 40px; padding: 8px 11px; }
.calendar-makeup-form .primary-action { flex: 1 1 180px; }
.calendar-makeup-form .primary-action[hidden] { display: none; }
.calendar-makeup-form .danger-action { background: rgba(255, 91, 91, .08); border: 1px solid rgba(255, 91, 91, .42); color: #ffaaaa; flex: 0 1 auto; }
.calendar-makeup-form button svg { height: 15px; width: 15px; }
.empty-day-state { align-items: center; color: #8fa0ae; display: grid; gap: 5px; justify-items: center; min-height: 180px; padding: 30px 20px; text-align: center; }
.empty-day-state svg { color: #64798b; height: 30px; width: 30px; }
.empty-day-state strong { color: #d9e2e9; font-size: .86rem; }
.empty-day-state span { font-size: .7rem; max-width: 270px; }
.weekly-schedule-disclosure { border: 1px solid var(--calendar-border); border-radius: 7px; overflow: hidden; }
.weekly-schedule-disclosure > summary { align-items: center; background: #0e1923; cursor: pointer; display: flex; justify-content: space-between; list-style: none; min-height: 58px; padding: 11px 15px; }
.weekly-schedule-disclosure > summary::-webkit-details-marker { display: none; }
.weekly-schedule-disclosure > summary > span { align-items: center; display: grid; gap: 2px; grid-template-columns: auto 1fr; }
.weekly-schedule-disclosure > summary > span svg { color: var(--aqua); grid-row: 1 / 3; margin-right: 8px; }
.weekly-schedule-disclosure > summary strong { color: #fff; font-size: .78rem; }
.weekly-schedule-disclosure > summary small { color: #8496a6; font-size: .62rem; }
.weekly-schedule-disclosure > summary > svg { transition: transform 180ms ease; }
.weekly-schedule-disclosure[open] > summary > svg { transform: rotate(180deg); }
.weekly-schedule-disclosure > div { border-top: 1px solid var(--calendar-border); display: grid; gap: 12px; padding: 14px; }
.weekly-schedule-navigator { align-items: stretch; background: #102431; border: 1px solid var(--calendar-border); border-radius: 6px; display: grid; gap: 10px; grid-template-columns: minmax(96px, auto) minmax(180px, 1fr) minmax(96px, auto); max-width: none; overflow: visible; padding: 9px; width: 100%; }
.weekly-schedule-navigator > button { align-items: center; background: #183444; border: 1px solid rgba(36, 236, 245, .38); border-radius: 5px; color: #eefaff; display: flex; font: inherit; font-size: .72rem; font-weight: 900; gap: 6px; justify-content: center; min-height: 48px; padding: 8px 12px; }
.weekly-schedule-navigator > button:last-child { border-color: rgba(167, 123, 255, .48); }
.weekly-schedule-navigator > button:disabled { cursor: not-allowed; opacity: .38; }
.weekly-schedule-navigator > button svg { height: 18px; width: 18px; }
.weekly-schedule-period { align-items: center; display: flex; flex-wrap: wrap; gap: 3px 9px; justify-content: center; min-width: 0; text-align: center; }
.weekly-schedule-period > span { color: var(--aqua); font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.weekly-schedule-period > strong { color: #fff; font-size: .86rem; width: 100%; }
.weekly-schedule-period > small { color: #b8c8d5; font-size: .66rem; }
.weekly-schedule-period > em,
.weekly-schedule-period > button { background: rgba(36, 236, 245, .1); border: 1px solid rgba(36, 236, 245, .28); border-radius: 4px; color: var(--aqua); font: inherit; font-size: .6rem; font-style: normal; font-weight: 900; min-height: 26px; padding: 4px 7px; }
.weekly-schedule-disclosure .schedule-day-column { min-height: 180px; }
.calendar-session-entry.makeup-session { border-color: rgba(167, 123, 255, .7); box-shadow: inset 3px 0 0 var(--purple); }
.calendar-session-entry.makeup-session .schedule-class-card > em { background: rgba(167, 123, 255, .18); color: #d8c8ff; }
.calendar-session-entry.makeup-session.completed { border-color: rgba(81, 219, 145, .7); box-shadow: inset 3px 0 0 var(--success); }
.calendar-session-entry.makeup-session.completed .schedule-class-card { --level-accent: var(--success); --level-wash: rgba(81, 219, 145, .1); }
.calendar-session-entry.makeup-session.completed .schedule-class-card > em { background: rgba(81, 219, 145, .18); color: #aaf4c9; }
.makeup-sessions span.completed { border-left-color: var(--success); }
.makeup-sessions span.completed time { color: #aaf4c9; }

@media (max-width: 1120px) {
  .month-calendar-layout { grid-template-columns: 1fr; }
  .calendar-day-panel { max-height: none; position: static; }
}
@media (max-width: 640px) {
  .month-calendar-shell { gap: 12px; padding: 12px; }
  .calendar-reference-head { align-items: stretch; gap: 10px; }
  .calendar-reference-head .primary-link { justify-content: center; width: 100%; }
  .calendar-legend { gap: 7px 12px; }
  .calendar-legend span { font-size: .64rem; }
  .month-calendar-toolbar { min-height: 64px; padding: 10px; }
  .month-calendar-toolbar h4 { font-size: 1.02rem; }
  .month-calendar-toolbar button { height: 44px; min-width: 44px; padding: 0 9px; }
  .month-weekdays span { font-size: .54rem; padding: 7px 1px; }
  .month-day { gap: 5px; min-height: 72px; padding: 6px 4px; }
  .month-day-number { font-size: .76rem; }
  .month-day-number em { display: none; }
  .month-day-indicators { gap: 3px; }
  .month-day-indicators i { border-left-width: 0; border-radius: 999px; font-size: 0; height: 5px; min-height: 5px; padding: 0; }
  .month-day-indicators i b, .month-day-indicators i svg { display: none; }
  .calendar-day-panel > header { padding: 14px; }
  .day-detail-section { padding: 13px; }
  .availability-actions button { min-height: 44px; }
  .availability-actions .clear { min-height: 44px; }
  .calendar-makeup-form > div:first-child { grid-template-columns: 1fr; }
  .calendar-makeup-form .danger-action { flex: 1 1 100%; }
  .weekly-schedule-disclosure > div { padding: 9px; }
  .weekly-schedule-navigator { gap: 6px; grid-template-columns: 78px minmax(0, 1fr) 68px; padding: 7px; }
  .weekly-schedule-navigator > button { font-size: .62rem; gap: 3px; min-height: 52px; padding: 6px; }
  .weekly-schedule-navigator > button svg { height: 16px; width: 16px; }
  .weekly-schedule-period > strong { font-size: .75rem; }
  .weekly-schedule-period > small { display: none; }
  .weekly-schedule-period > em,
  .weekly-schedule-period > button { font-size: .54rem; min-height: 24px; }
}

/* High-contrast readability pass for families and staff. */
:root {
  --black: #071018;
  --panel: #10202c;
  --panel-2: #172a38;
  --white: #f9fcff;
  --muted: #c5d2dc;
  --line: rgba(190, 219, 238, 0.28);
  --aqua: #24ecf5;
  --purple: #a77bff;
}

body {
  background: #071018;
  color: var(--white);
}

body[data-role]:not([data-role=""]) .app-view {
  background: #09151f;
}

body[data-role]:not([data-role=""]) .sidebar {
  background: #07111a;
  border-color: rgba(36, 236, 245, 0.24);
}

body[data-role]:not([data-role=""]) .sidebar nav button:not(.active) {
  color: #d4dee7;
}

body[data-role]:not([data-role=""]) .sidebar nav button:not(.active):hover,
body[data-role]:not([data-role=""]) .sidebar nav button:not(.active):focus-visible {
  background: #142734;
  color: #ffffff;
}

body[data-role]:not([data-role=""]) .workspace-header {
  border-color: rgba(190, 219, 238, 0.3);
}

.wide-card,
.feature-card,
.shop-card,
.welcome-card,
.attention-card,
.coach-next-action,
.settings-section,
.people-manager,
.program-panel,
.notification-row,
.weekly-schedule-disclosure {
  background-color: var(--panel);
  border-color: var(--line);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
}

.page-intro {
  background: linear-gradient(110deg, #11313c, #20203b 78%);
  border-color: rgba(36, 236, 245, 0.48);
}

input,
select,
textarea {
  background-color: #112633;
  border-color: rgba(190, 219, 238, 0.38);
  color: #ffffff;
}

input::placeholder,
textarea::placeholder {
  color: #9fb1bf;
  opacity: 1;
}

.outline-action,
.mini-action,
.logout-action,
.rainout-session-button,
.rollcall-button:not(.selected) {
  background-color: #17303f;
  border-color: rgba(190, 219, 238, 0.42);
  color: #f7fbff;
}

.outline-action:hover,
.mini-action:hover,
.logout-action:hover,
.rollcall-button:not(.selected):hover {
  background-color: #204257;
  border-color: var(--aqua);
}

/* Parent screens use larger labels and clearer card separation. */
body[data-role="parent"] {
  font-size: 17px;
}

body[data-role="parent"] .family-rider-switcher,
body[data-role="parent"] .family-quick-panel,
body[data-role="parent"] .family-update-panel,
body[data-role="parent"] .family-notification-panel,
body[data-role="parent"] .family-weekly-panel,
body[data-role="parent"] .parent-term-progress,
body[data-role="parent"] .family-week-pulse,
body[data-role="parent"] .youtube-feature,
body[data-role="parent"] .parent-schedule-empty {
  background-color: #102330;
  border-color: rgba(164, 203, 226, 0.34);
}

body[data-role="parent"] .family-rider-switcher {
  background: linear-gradient(145deg, #132b39, #181f35);
}

body[data-role="parent"] .family-rider-options button {
  background: #162c39;
  border-color: rgba(190, 219, 238, 0.38);
  color: #dce6ed;
}

body[data-role="parent"] .family-rider-options button.active {
  background: rgba(36, 236, 245, 0.2);
  border-color: var(--aqua);
  color: #ffffff;
}

body[data-role="parent"] .family-session-card {
  background:
    linear-gradient(90deg, rgba(7, 25, 36, 0.9), rgba(10, 28, 39, 0.58)),
    url("./assets/instagram-slide-1.jpg") center / cover no-repeat;
  border-color: rgba(36, 236, 245, 0.48);
}

body[data-role="parent"] .family-session-facts > span {
  background: rgba(15, 39, 52, 0.94);
  border-color: rgba(190, 219, 238, 0.38);
}

body[data-role="parent"] .family-session-facts > span > small,
body[data-role="parent"] .family-weather > div > span,
body[data-role="parent"] .family-week-rider,
body[data-role="parent"] .family-week-session > small,
body[data-role="parent"] .family-weekly-panel .panel-heading > span,
body[data-role="parent"] .notification-row span,
body[data-role="parent"] .notification-row small,
body[data-role="parent"] .family-week-pulse-copy > p:last-child,
body[data-role="parent"] .youtube-feature-copy > p:not(.panel-kicker),
body[data-role="parent"] .youtube-feature-copy small,
body[data-role="parent"] .parent-week-status-banner span,
body[data-role="parent"] .parent-week-progress small,
body[data-role="parent"] .parent-term-progress-note {
  color: #c8d5df;
  font-size: 0.78rem;
  line-height: 1.5;
}

body[data-role="parent"] .family-session-facts > span > strong,
body[data-role="parent"] .family-weather > div > strong,
body[data-role="parent"] .family-week-session > strong,
body[data-role="parent"] .notification-row strong,
body[data-role="parent"] .parent-week-progress strong {
  font-size: 0.94rem;
}

body[data-role="parent"] .family-update-panel > p,
body[data-role="parent"] .family-makeup-panel p,
body[data-role="parent"] .family-cover-note span,
body[data-role="parent"] .parent-schedule-empty span {
  color: #d0dbe4;
  font-size: 0.9rem;
  line-height: 1.55;
}

body[data-role="parent"] .family-week-session {
  border-color: rgba(190, 219, 238, 0.3);
  min-height: 78px;
}

body[data-role="parent"] .notification-row {
  background: #152b39;
  border-color: rgba(190, 219, 238, 0.32);
}

body[data-role="parent"] .parent-week-progress {
  background: #142936;
  border-color: rgba(190, 219, 238, 0.34);
}

/* Parent home keeps the next lesson primary and moves everything else into a short, scannable order. */
.parent-home-simple {
  display: grid;
  gap: 16px;
}

.family-credit-summary {
  background: linear-gradient(105deg, rgba(13, 217, 232, 0.13), rgba(145, 83, 255, 0.12));
  border: 1px solid rgba(13, 217, 232, 0.52);
  border-radius: 7px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px;
}

.family-balance-stat {
  align-items: center;
  background: rgba(4, 12, 19, 0.58);
  border: 1px solid rgba(148, 177, 199, 0.28);
  display: grid;
  gap: 2px;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 76px;
  padding: 11px 13px;
}

.family-balance-stat > span { color: var(--aqua); grid-row: 1 / 3; }
.family-balance-stat > span svg { height: 24px; width: 24px; }
.family-balance-stat > small { color: #c8d5df; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.family-balance-stat > strong { color: var(--white); font-size: 1.45rem; line-height: 1.05; }
.family-balance-stat.sessions-remaining > span { color: #a77cff; }

.parent-session-focus.term-break {
  min-height: 0;
  padding: 22px 24px;
}

.parent-session-focus.term-break h3 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
.parent-session-focus.term-break .family-schedule-button { margin-top: 18px; max-width: 430px; }

.parent-home-primary {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.parent-home-primary.has-sidebar {
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.75fr);
}

.parent-session-focus {
  display: flex;
  flex-direction: column;
  grid-row: auto;
  min-height: 365px;
}

.parent-session-focus .family-session-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 24px 0 20px;
  max-width: none;
}

.parent-session-focus .family-schedule-button {
  margin-top: auto;
}

.parent-home-sidebar {
  align-content: start;
  display: grid;
  gap: 16px;
}

.family-home-alert {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 20px;
}

.family-home-alert.important {
  background: linear-gradient(145deg, rgba(12, 64, 77, 0.98), rgba(39, 31, 78, 0.96));
  border-color: rgba(73, 232, 238, 0.78);
  box-shadow: 0 14px 34px rgba(0, 218, 226, 0.12), inset 4px 0 0 rgba(132, 93, 255, 0.9);
}

.family-alert-icon {
  align-items: center;
  background: rgba(36, 236, 245, 0.12);
  border: 1px solid rgba(36, 236, 245, 0.36);
  border-radius: 6px;
  color: var(--aqua);
  display: flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.family-home-alert.important .family-alert-icon {
  background: linear-gradient(145deg, rgba(28, 229, 238, 0.28), rgba(139, 96, 255, 0.3));
  border-color: rgba(117, 242, 246, 0.72);
  color: #bafcff;
}

.family-home-alert.important .panel-kicker {
  color: #8ff8f5;
}

.family-home-alert.important .text-action {
  background: linear-gradient(90deg, #27dce8, #8d67ff);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #061117;
  font-weight: 850;
  min-height: 40px;
  padding: 9px 13px;
}

.family-alert-icon svg {
  height: 22px;
  width: 22px;
}

.family-home-alert .panel-kicker {
  margin-bottom: 5px;
}

.family-home-alert h3 {
  font-size: 1.12rem;
  margin: 0 0 7px;
}

.family-home-alert p:not(.panel-kicker) {
  color: #d7e1e8;
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
}

.family-home-alert .text-action {
  grid-column: 2;
  justify-self: start;
  margin-top: 2px;
}

.parent-home-sidebar .family-makeup-panel {
  align-items: start;
  grid-column: auto;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 20px;
}

.parent-home-sidebar .family-makeup-icon {
  height: 42px;
  width: 42px;
}

.parent-home-sidebar .family-makeup-panel > .mini-action {
  grid-column: 2;
  justify-self: start;
}

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

.family-essential-actions > button,
.family-essential-actions > a {
  align-items: center;
  background: #122a38;
  border: 1px solid rgba(190, 219, 238, 0.34);
  border-radius: 7px;
  color: var(--white);
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  min-height: 76px;
  padding: 13px 15px;
  text-align: left;
  text-decoration: none;
}

.family-essential-actions > button:hover,
.family-essential-actions > button:focus-visible,
.family-essential-actions > a:hover,
.family-essential-actions > a:focus-visible {
  background: #193849;
  border-color: var(--aqua);
  outline: none;
}

.family-essential-actions > * > svg:first-child {
  color: var(--aqua);
  height: 28px;
  width: 28px;
}

.family-essential-actions > *:nth-child(2) > svg:first-child {
  color: #b896ff;
}

.family-essential-actions > * > svg:last-child {
  color: #9fb2c0;
  height: 17px;
  width: 17px;
}

.family-essential-actions span,
.family-essential-actions strong,
.family-essential-actions small {
  display: block;
}

.family-essential-actions strong {
  font-size: 0.9rem;
}

.family-essential-actions small {
  color: #bed0dc;
  font-size: 0.72rem;
  line-height: 1.35;
  margin-top: 3px;
}

.family-notification-nudge {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  padding: 16px 18px;
}

.family-notification-nudge strong,
.family-notification-nudge span {
  display: block;
}

.family-notification-nudge strong {
  font-size: 0.9rem;
}

.family-notification-nudge span {
  color: #bed0dc;
  font-size: 0.76rem;
  line-height: 1.4;
  margin-top: 3px;
}

.family-notification-nudge .mini-action {
  min-height: 44px;
}

/* Class recovery plan keeps cancelled sessions legible without exposing unrelated groups. */
.term-recovery-panel {
  background: #0f202c;
  border: 1px solid rgba(178, 211, 232, 0.3);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 16px;
  padding: 20px;
}

.term-recovery-head {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.term-recovery-head h3 {
  font-size: 1.35rem;
  margin: 3px 0 5px;
}

.term-recovery-head p:not(.panel-kicker) {
  color: #bed0dc;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
}

.term-recovery-total {
  align-items: center;
  background: #17303f;
  border: 1px solid rgba(36, 236, 245, 0.46);
  border-radius: 7px;
  display: grid;
  flex: 0 0 auto;
  min-width: 86px;
  padding: 10px 14px;
  text-align: center;
}

.term-recovery-total strong {
  color: var(--aqua);
  font-size: 1.35rem;
  line-height: 1;
}

.term-recovery-total small {
  color: #d7e5ee;
  font-size: 0.68rem;
  font-weight: 800;
  margin-top: 4px;
  text-transform: uppercase;
}

.term-recovery-total em {
  border-top: 1px solid rgba(117, 234, 176, 0.34);
  color: #75eab0;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 850;
  margin-top: 7px;
  padding-top: 6px;
  white-space: nowrap;
}

.term-recovery-total.all-complete {
  background: #163128;
  border-color: rgba(89, 223, 155, 0.65);
}

.term-recovery-total.all-complete strong { color: #75eab0; }

.term-recovery-days,
.term-recovery-class-list,
.term-recovery-events {
  display: grid;
  gap: 10px;
}

.term-recovery-day {
  background: #122633;
  border: 1px solid rgba(178, 211, 232, 0.24);
  border-radius: 7px;
  overflow: hidden;
}

.term-recovery-day > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  min-height: 52px;
  padding: 11px 14px;
}

.term-recovery-day > summary:hover,
.term-recovery-day > summary:focus-visible {
  background: #193849;
  outline: none;
}

.term-recovery-day > summary > span {
  align-items: center;
  display: flex;
  gap: 9px;
}

.term-recovery-day > summary strong {
  color: #f8fbfd;
  font-size: 0.94rem;
}

.term-recovery-day > summary small,
.term-recovery-day > summary > span:last-child {
  color: #b8cbd7;
  font-size: 0.72rem;
  font-weight: 750;
}

.term-recovery-day > summary svg {
  color: var(--aqua);
  height: 18px;
  transition: transform 160ms ease;
  width: 18px;
}

.term-recovery-day[open] > summary svg {
  transform: rotate(180deg);
}

.term-recovery-class-list {
  border-top: 1px solid rgba(178, 211, 232, 0.2);
  padding: 10px;
}

.term-recovery-class-row {
  align-items: center;
  background: #0c1b26;
  border: 1px solid rgba(178, 211, 232, 0.22);
  border-radius: 6px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.3fr);
  padding: 12px;
}

.term-recovery-class-title span,
.term-recovery-class-title strong,
.term-recovery-class-title small {
  display: block;
}

.term-recovery-class-title span {
  color: var(--aqua);
  font-size: 0.73rem;
  font-weight: 850;
}

.term-recovery-class-title strong {
  color: #f7fbfd;
  font-size: 0.92rem;
  margin-top: 3px;
}

.term-recovery-class-title small {
  color: #bed0dc;
  font-size: 0.73rem;
  margin-top: 4px;
}

.term-recovery-events {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.term-recovery-event {
  background: #152b39;
  border: 1px solid rgba(178, 211, 232, 0.25);
  border-left: 4px solid var(--aqua);
  border-radius: 5px;
  display: grid;
  gap: 3px;
  min-height: 72px;
  padding: 9px 11px;
}

.term-recovery-event span {
  align-items: center;
  color: #bed0dc;
  display: flex;
  font-size: 0.67rem;
  font-weight: 800;
  gap: 6px;
  text-transform: uppercase;
}

.term-recovery-event span svg {
  height: 14px;
  width: 14px;
}

.term-recovery-event span b {
  background: rgba(3, 10, 15, 0.42);
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.58rem;
  margin-left: auto;
  padding: 2px 6px;
}

.term-recovery-event strong {
  color: #f8fbfd;
  font-size: 0.82rem;
}

.term-recovery-event em {
  color: #c9d8e2;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 750;
}

.term-recovery-event.rain { background: #102d3b; border-left-color: #35dff3; }
.term-recovery-event.rain span { color: #67eafb; }
.term-recovery-event.coach-sick { background: #33222b; border-left-color: #ff7a7a; }
.term-recovery-event.coach-sick span { color: #ff9a9a; }
.term-recovery-event.coach-away { background: #28213d; border-left-color: #a582ff; }
.term-recovery-event.coach-away span { color: #bda7ff; }
.term-recovery-event.coach-injured { background: #342c1d; border-left-color: #ffc857; }
.term-recovery-event.coach-injured span { color: #ffd77d; }
.term-recovery-event.is-complete {
  background: #163128;
  border-color: rgba(89, 223, 155, 0.42);
  border-left-color: #59df9b;
}
.term-recovery-event.is-complete span,
.term-recovery-event.is-complete strong,
.term-recovery-event.is-complete em { color: #a9f2cc; }
.term-recovery-event.finished { background: #163128; border-left-color: #59df9b; }
.term-recovery-event.finished > svg,
.term-recovery-event.finished strong { color: #75eab0; }
.term-recovery-event.finished > svg { height: 18px; width: 18px; }

.term-recovery-panel .wide-row-action {
  margin-top: 0;
}

/* Calendar details remain compact, but no longer rely on dim grey text. */
.month-calendar-shell {
  --calendar-border: rgba(178, 211, 232, 0.3);
  --calendar-surface: #0f202c;
  --calendar-elevated: #172d3c;
}

.month-calendar,
.calendar-day-panel {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.month-calendar-toolbar,
.calendar-day-panel > header {
  background: #17303f;
}

.month-weekdays span,
.calendar-legend span,
.calendar-day-panel > header p,
.day-detail-section-head span,
.day-session small,
.day-makeup-card header small,
.day-makeup-card > p,
.availability-section > p,
.family-availability-list > article > div:first-child span,
.weekly-schedule-disclosure > summary small {
  color: #b8c8d5;
}

.month-weekdays span { font-size: 0.72rem; }
.calendar-legend span { font-size: 0.8rem; }
.month-day-number { font-size: 0.96rem; }
.day-session strong,
.day-makeup-card header strong,
.family-availability-list > article > div:first-child strong { font-size: 0.88rem; }
.day-session small,
.day-makeup-card header small,
.day-makeup-card > p,
.availability-section > p,
.family-availability-list > article > div:first-child span { font-size: 0.74rem; }

.month-day:hover {
  background: #193444;
}

.month-day.outside-month {
  background: #0a1822;
  opacity: 0.62;
}

.availability-actions button,
.calendar-makeup-form input,
.weekly-schedule-disclosure > summary {
  background-color: #17303f;
  border-color: rgba(190, 219, 238, 0.36);
  color: #edf4f8;
}

@media (max-width: 760px) {
  body[data-role="parent"] { font-size: 16.5px; }
  body[data-role]:not([data-role=""]) .workspace { background: #09151f; }
  body[data-role="parent"] .workspace-header { grid-template-columns: minmax(0, 1fr) auto; }
  body[data-role="parent"] .workspace-title-block { min-width: 0; }
  body[data-role="parent"]:not([data-role=""]) .workspace-title-block h2 {
    font-size: clamp(1.35rem, 6.4vw, 1.55rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .family-credit-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; }
  .family-balance-stat { grid-template-columns: 28px minmax(0, 1fr); min-height: 70px; padding: 10px; }
  .family-balance-stat > span svg { height: 21px; width: 21px; }
  .family-balance-stat > small { font-size: 0.61rem; }
  .family-balance-stat > strong { font-size: 1.2rem; }
  .parent-home-simple { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .parent-home-simple > *,
  .parent-home-primary,
  .parent-home-primary > *,
  .parent-home-sidebar,
  .parent-home-sidebar > *,
  .family-rider-switcher,
  .family-rider-options,
  .family-term-recovery { max-width: 100%; min-width: 0; width: 100%; }
  body[data-role="parent"] .family-session-card { min-height: 0; }
  body[data-role="parent"] .family-actions > button,
  body[data-role="parent"] .family-actions > a { min-height: 96px; }
  .parent-home-primary.has-sidebar { grid-template-columns: 1fr; }
  .parent-session-focus { min-height: 0; padding: 24px 18px; }
  .parent-session-focus.term-break { padding: 18px; }
  .parent-session-focus.term-break h3 { font-size: 1.55rem; margin-bottom: 6px; }
  .parent-session-focus.term-break .family-session-copy > p:last-child { font-size: 0.82rem; line-height: 1.45; }
  .parent-session-focus.term-break .family-schedule-button { min-height: 54px; width: 100%; }
  .parent-session-focus .family-session-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 20px 0; }
  .parent-home-sidebar { gap: 12px; }
  .family-home-alert,
  .parent-home-sidebar .family-makeup-panel { padding: 16px; }
  .family-essential-actions { grid-template-columns: 1fr; }
  .family-essential-actions > button,
  .family-essential-actions > a { min-height: 68px; }
  .family-notification-nudge { align-items: start; grid-template-columns: 38px minmax(0, 1fr); padding: 15px; }
  .family-notification-nudge .family-alert-icon { height: 38px; width: 38px; }
  .family-notification-nudge .mini-action { grid-column: 1 / -1; width: 100%; }
  .term-recovery-panel { gap: 14px; padding: 16px; }
  .term-recovery-head { align-items: flex-start; }
  .term-recovery-head h3 { font-size: 1.2rem; }
  .term-recovery-total { min-width: 72px; padding: 9px 10px; }
  .term-recovery-day > summary { min-height: 56px; padding: 12px; }
  .term-recovery-class-row { align-items: start; grid-template-columns: 1fr; }
  .term-recovery-events { grid-template-columns: 1fr; }
  .term-recovery-event { min-height: 66px; }
  .month-weekdays span { font-size: 0.62rem; }
}

/* Focused people manager: one queue at a time. */
.people-page-head {
  align-items: center;
}

.people-login-total {
  background: #142938;
  border: 1px solid rgba(168, 205, 229, 0.34);
  color: #d6e4ed;
  font-size: 0.75rem;
  font-weight: 850;
  padding: 9px 11px;
  white-space: nowrap;
}

.people-add-disclosure > summary {
  grid-template-columns: minmax(0, 1fr) auto;
}

.people-add-disclosure > summary::after {
  display: none;
}

.people-workspace {
  display: grid;
  gap: 12px;
}

.people-view-tabs {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.people-view-tab {
  --people-tab-accent: #34d9e8;
  align-items: center;
  background: linear-gradient(145deg, #10212d, #111c29);
  border: 1px solid rgba(167, 201, 222, 0.28);
  border-left: 4px solid var(--people-tab-accent);
  color: #d4e0e8;
  cursor: pointer;
  display: grid;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 11px 13px;
  text-align: left;
}

.people-view-tab.attention { --people-tab-accent: #ff6370; }
.people-view-tab.students { --people-tab-accent: #36dce8; }
.people-view-tab.other-students { --people-tab-accent: #ffbe59; }
.people-view-tab.parents { --people-tab-accent: #9b7aff; }
.people-view-tab.coaches { --people-tab-accent: #8bd66f; }

.people-view-tab-label {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.people-view-tab-label > svg {
  color: var(--people-tab-accent);
  flex: 0 0 auto;
  height: 19px;
  width: 19px;
}

.people-view-tab-label > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.people-view-tab strong {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  font-size: 0.9rem;
  height: 30px;
  justify-content: center;
  min-width: 30px;
  padding: 0 7px;
}

.people-view-tab:hover,
.people-view-tab:focus-visible {
  background: #17303f;
  border-color: rgba(84, 217, 232, 0.72);
  outline: none;
}

.people-view-tab.active {
  background: linear-gradient(145deg, #174150, #152c3d);
  border-color: var(--people-tab-accent);
  box-shadow: inset 0 -3px 0 var(--people-tab-accent), 0 8px 20px rgba(0, 0, 0, 0.2);
  color: #f5fbff;
}

.people-view-tab.parents.active {
  background: linear-gradient(145deg, #30284f, #202644);
  border-color: #9b7aff;
  box-shadow: inset 0 -3px 0 #9b7aff;
}

.people-view-tab.coaches.active {
  background: linear-gradient(145deg, #293d2c, #18303a);
  border-color: #8bd66f;
  box-shadow: inset 0 -3px 0 #8bd66f;
}

.people-view-tab.other-students.active {
  background: linear-gradient(145deg, #3a3020, #24303a);
  border-color: #ffbe59;
  box-shadow: inset 0 -3px 0 #ffbe59;
}

.people-other-students-note {
  align-items: center;
  background: rgba(255, 190, 89, 0.08);
  border: 1px solid rgba(255, 190, 89, 0.3);
  color: #f8e2b8;
  display: flex;
  gap: 12px;
  padding: 12px 14px;
}

.people-other-students-note > svg { color: #ffbe59; flex: 0 0 auto; }
.people-other-students-note span { display: grid; gap: 2px; }
.people-other-students-note small { color: var(--muted); }

.people-view-tab.attention.has-items {
  background: #351a22;
  border-color: rgba(255, 99, 112, 0.8);
  color: #ffd7da;
}

.people-view-tab.attention.has-items strong {
  background: #ff6370;
  border-color: #ff8a94;
  color: #16070a;
}

.people-view-tab.attention.active {
  box-shadow: inset 0 -3px 0 #ff6370;
}

.parent-family-group {
  background: linear-gradient(135deg, rgba(42, 34, 72, 0.82), rgba(13, 31, 42, 0.92));
  border: 1px solid rgba(155, 122, 255, 0.68);
  border-left: 3px solid #9b7aff;
  border-radius: 6px;
  overflow: hidden;
}

.parent-family-group-head {
  align-items: center;
  background: linear-gradient(100deg, rgba(155, 122, 255, 0.16), rgba(54, 220, 232, 0.08));
  display: grid;
  gap: 12px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  padding: 12px 14px;
}

.parent-family-icon {
  align-items: center;
  background: rgba(155, 122, 255, 0.17);
  border: 1px solid rgba(155, 122, 255, 0.56);
  color: #bca8ff;
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.parent-family-icon svg {
  height: 20px;
  width: 20px;
}

.parent-family-title {
  display: grid;
  min-width: 0;
}

.parent-family-title > small {
  color: #bca8ff;
  font-size: 0.63rem;
  font-weight: 950;
  text-transform: uppercase;
}

.parent-family-title > strong {
  color: var(--white);
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parent-family-title > span {
  color: #c8d4df;
  font-size: 0.69rem;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parent-family-total {
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  display: grid;
  justify-items: center;
  min-width: 58px;
  padding-left: 12px;
}

.parent-family-total strong {
  color: var(--aqua);
  font-size: 1.12rem;
  line-height: 1;
}

.parent-family-total small {
  color: var(--muted);
  font-size: 0.59rem;
  font-weight: 900;
  text-transform: uppercase;
}

.parent-family-accounts {
  display: grid;
  gap: 0;
}

.parent-family-accounts .joined-parent-account {
  background: rgba(3, 10, 16, 0.44);
  border: 0;
  border-left: 0;
  box-shadow: none;
}

.parent-family-accounts .joined-parent-account + .joined-parent-account {
  border-top: 1px solid rgba(155, 122, 255, 0.28);
}

.parent-family-accounts .joined-parent-account.is-linked {
  border-left: 0;
}

.parent-linked-riders {
  align-items: center;
  color: #a7f8f5;
  display: flex;
  font-size: 0.8rem;
  gap: 7px;
  min-width: 0;
}

.parent-linked-riders svg {
  color: #51dfe8;
  flex: 0 0 auto;
  height: 17px;
  width: 17px;
}

.parent-linked-riders > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parent-person-editor.is-linked {
  border-left: 3px solid rgba(81, 223, 232, 0.72);
}

.people-attention-note {
  align-items: center;
  background: #351a22;
  border: 1px solid rgba(255, 99, 112, 0.72);
  color: #ff929b;
  display: grid;
  gap: 11px;
  grid-template-columns: 24px minmax(0, 1fr);
  padding: 12px 14px;
}

.people-attention-note > svg {
  height: 22px;
  width: 22px;
}

.people-attention-note strong,
.people-attention-note small {
  display: block;
}

.people-attention-note small {
  color: #ffd2d6;
  margin-top: 3px;
}

.people-active-section {
  margin-bottom: 0;
}

.people-active-section.attention {
  border-color: rgba(255, 99, 112, 0.42);
}

@media (max-width: 760px) {
  .people-page-head {
    align-items: flex-start;
    gap: 10px;
  }

  .people-login-total {
    align-self: flex-start;
  }

  .people-view-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .people-view-tab.other-students:last-child {
    grid-column: 1 / -1;
  }

  .people-view-tab {
    min-height: 54px;
    padding: 9px 10px;
  }

  .people-attention-note {
    align-items: start;
  }

  .parent-family-group-head {
    gap: 9px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding: 10px;
  }

  .parent-family-icon {
    height: 34px;
    width: 34px;
  }

  .parent-family-title > strong {
    font-size: 0.92rem;
  }

  .parent-family-title > span {
    font-size: 0.64rem;
  }

  .parent-family-total {
    min-width: 48px;
    padding-left: 8px;
  }
}

/* Compact, consistent class tabs and roll-call controls. */
.student-name-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.student-name-row > strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.student-name-row .level-badge {
  flex: 0 0 auto;
  margin: 0;
  width: auto;
}

.roster-tools > summary {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.roster-tools-label {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.roster-tools-label > svg {
  color: var(--aqua);
  flex: 0 0 auto;
  height: 20px;
  width: 20px;
}

.roster-tools-label > span {
  display: grid;
  gap: 1px;
}

.roster-tools-label strong {
  color: var(--white);
  font-family: var(--body-font);
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.1;
  text-transform: none;
}

.roster-tools-label small,
.roster-tools > summary .roster-tools-label small {
  color: var(--muted);
  display: block;
  font-size: 0.63rem;
  font-weight: 750;
}

.roster-tools > summary > svg:last-child {
  color: var(--muted);
  flex: 0 0 auto;
  height: 18px;
  transition: transform 160ms ease;
  width: 18px;
}

.roster-tools[open] > summary > svg:last-child {
  transform: rotate(180deg);
}

@media (max-width: 620px) {
  .my-classes-shell > .classes-header {
    padding: 12px 12px 0;
  }

  .my-classes-shell > .day-tab-row {
    margin: 0 12px 12px;
  }

  .day-tab-row,
  .my-classes-shell > .day-tab-row {
    background: transparent;
    border: 0;
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
    padding: 0;
  }

  .day-tab-row button,
  .my-classes-shell > .day-tab-row button {
    border: 1px solid var(--line);
    border-radius: 5px;
    display: grid;
    flex: none;
    gap: 3px;
    justify-items: center;
    min-height: 56px;
    min-width: 0;
    padding: 7px 2px;
    text-align: center;
    width: 100%;
  }

  .day-tab-row button > span {
    font-size: 0;
    line-height: 1;
  }

  .day-tab-row button > span::after {
    content: attr(data-short);
    font-size: 0.7rem;
  }

  .day-tab-row button strong {
    font-size: 0.65rem;
    height: 22px;
    min-width: 22px;
    padding: 0 5px;
  }

  .class-selector-panel {
    padding: 11px 12px 12px;
  }

  .class-selector-panel .panel-heading {
    margin-bottom: 9px;
  }

  .class-selector-list {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding: 0;
  }

  .class-selector-list button {
    flex: none;
    gap: 3px 6px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    min-height: 80px;
    min-width: 0;
    padding: 8px 9px;
    width: 100%;
  }

  .class-selector-list button > span {
    color: var(--aqua);
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .class-selector-list button > strong {
    align-items: center;
    display: flex;
    font-size: 0.74rem;
    gap: 4px;
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
  }

  .class-selector-list button > strong .level-badge {
    flex: 0 0 auto;
    font-size: 0.5rem;
    margin: 0;
    min-height: 18px;
    padding: 3px 5px;
  }

  .class-selector-list button > small {
    grid-column: 1 / -1;
    grid-row: 3;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .class-selector-list button > em {
    grid-column: 2;
    grid-row: 1;
    padding: 3px 5px;
  }

  .class-selector-list button > svg {
    display: none;
  }

  .roster-tools {
    margin-top: 10px;
  }

  .roster-tools > summary {
    min-height: 50px;
    padding: 8px 10px;
  }

  .selected-class-card > .rollcall-class-summary {
    min-height: 82px;
    padding: 12px;
  }

  .selected-class-card .rollcall-class-title h4 {
    font-size: 1.14rem;
    margin: 3px 0;
  }

  .selected-class-card .rollcall-class-title p {
    font-size: 0.7rem;
    line-height: 1.35;
  }

  .selected-class-card .rollcall-class-summary-meta {
    gap: 2px;
    grid-template-columns: 1fr;
    min-width: 58px;
  }

  .selected-class-card .rollcall-class-summary-meta > strong {
    font-size: 1rem;
    grid-row: auto;
  }

  .selected-class-card .rollcall-class-summary-meta small {
    font-size: 0.58rem;
  }

  .selected-class-card .rollcall-class-body {
    padding: 11px 12px 14px;
  }

  .rollcall-summary {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0 0 7px;
    overflow: visible;
    padding: 0;
  }

  .rollcall-summary > span {
    display: grid;
    flex: none;
    gap: 2px;
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 48px;
    min-width: 0;
    padding: 4px 2px;
    text-align: center;
  }

  .rollcall-summary svg {
    height: 15px;
    width: 15px;
  }

  .rollcall-summary b {
    font-size: 0.53rem;
    line-height: 1.1;
    max-width: 100%;
  }

  .rollcall-summary strong {
    font-size: 0.72rem;
  }

  .rollcall-list {
    gap: 5px;
  }

  .rollcall-student {
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 0;
    padding: 7px 8px;
  }

  .student-name-row {
    flex-wrap: nowrap;
  }

  .student-name-row > strong {
    flex: 1 1 auto;
    font-size: 1rem;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
  }

  .student-summary > span {
    display: none;
  }

  .student-name-row .level-badge {
    font-size: 0.51rem;
    min-height: 20px;
    padding: 3px 6px;
  }

  .rollcall-status {
    align-self: start;
    font-size: 0.57rem;
    justify-self: end;
    padding: 5px 6px;
    white-space: nowrap;
  }

  .rollcall-actions {
    display: grid;
    gap: 4px;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .rollcall-actions .rollcall-button,
  .rollcall-actions .rollcall-button.present {
    grid-column: auto;
    font-size: 0.64rem;
    gap: 4px;
    min-height: 40px;
    padding: 0 4px;
    width: 100%;
  }

  .rollcall-actions .rollcall-button svg {
    height: 14px;
    width: 14px;
  }

  .owner-row:not([open]) {
    grid-column: 3;
    grid-row: 1;
    margin: 0;
    width: auto;
  }

  .owner-row:not([open]) > summary {
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--aqua);
    height: 30px;
    justify-content: center;
    padding: 0;
    width: 32px;
  }

  .owner-row:not([open]) > summary span {
    clip: rect(0, 0, 0, 0);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .owner-row > summary::before {
    display: none;
  }

  .owner-row[open] {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 2px;
  }
}

/* Keep the desktop rail usable on iPad and narrow laptop widths. */
@media (min-width: 821px) and (max-width: 1120px) {
  body[data-role]:not([data-role=""]) .app-view { display: grid; grid-template-columns: 210px minmax(0, 1fr); width: auto; }
  body[data-role]:not([data-role=""]) .sidebar { border-bottom: 0; border-right: 1px solid var(--line); height: 100dvh; max-width: none; padding: 24px 12px 18px; position: sticky; top: 0; width: auto; }
  body[data-role]:not([data-role=""]) .workspace { max-width: none; width: auto; }
}
