:root {
  color-scheme: light;

  /* Nexus Masters brand */
  --nm-blue-950: #0d0753;
  --nm-blue-900: #12077d;
  --nm-blue-800: #1800ad;
  --nm-blue-700: #2714c9;
  --nm-blue-600: #4338e0;
  --nm-blue-100: #e9e8ff;
  --nm-blue-50: #f4f3ff;
  --nm-logo-blue: #0c1d97;
  --nm-logo-gold: #e3ad44;
  --nm-cyan-600: #0088a8;
  --nm-cyan-500: #00a8cc;
  --nm-cyan-100: #dff8ff;
  --nm-gold-600: #a66500;
  --nm-gold-500: var(--nm-logo-gold);
  --nm-gold-300: #f4c95d;
  --nm-gold-100: #fff3cf;

  /* Semantic colour roles */
  --ink: #15172b;
  --ink-soft: #30344f;
  --muted: #62677f;
  --surface: #ffffff;
  --surface-subtle: #fafaff;
  --canvas: #f5f6fb;
  --brand: var(--nm-blue-800);
  --brand-hover: var(--nm-blue-900);
  --brand-soft: var(--nm-blue-100);
  --interaction: var(--nm-cyan-600);
  --achievement: var(--nm-gold-500);
  --line: #dfe1ec;
  --border: var(--line);
  --focus-ring: #00a8cc;
  --success: #177245;
  --success-soft: #e2f6eb;
  --warning: #8a5700;
  --warning-soft: #fff3cf;
  --danger: #b4233c;
  --danger-soft: #ffe8ec;

  /* Typography */
  --font-display: 'Avenir Next', Avenir, 'Segoe UI', sans-serif;
  --font-body: Inter, Aptos, 'Segoe UI', sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: clamp(1.75rem, 3vw, 2.25rem);
  --text-display: clamp(2.5rem, 6vw, 4.75rem);

  /* Layout and shape */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-pill: 999px;
  --shadow-sm: 0 0.25rem 1rem rgb(13 7 83 / 6%);
  --shadow-md: 0 1rem 3rem rgb(13 7 83 / 10%);
  --shadow-brand: 0 0.75rem 2rem rgb(24 0 173 / 22%);

  /* Motion */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --duration-fast: 140ms;
  --duration-standard: 220ms;
}

.question-image {
  display: block;
  width: min(100%, 32rem);
  max-height: 20rem;
  object-fit: contain;
  margin: 1rem auto;
  border-radius: 0.75rem;
  background: white;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
}
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
::selection {
  background: var(--nm-cyan-100);
  color: var(--nm-blue-950);
}
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--brand);
  color: white;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0.3rem 0.8rem rgb(24 0 173 / 14%);
  transition:
    background-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
}
button:hover,
.button:hover {
  background: var(--brand-hover);
  box-shadow: var(--shadow-brand);
  transform: translateY(-1px);
}
button:active,
.button:active {
  transform: translateY(0);
}
button:disabled,
.button[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
  transform: none;
}
select,
input,
textarea {
  width: 100%;
  min-height: 2.75rem;
  margin-top: 0.35rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--ink);
  font: inherit;
  transition:
    border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}
select:hover,
input:hover,
textarea:hover {
  border-color: #b9bdd0;
}
select:focus,
input:focus,
textarea:focus {
  border-color: var(--interaction);
  box-shadow: 0 0 0 3px var(--nm-cyan-100);
}
.button.secondary {
  background: var(--brand-soft);
  color: var(--brand);
  box-shadow: none;
}
.button.secondary:hover {
  background: #dcd9ff;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.stack {
  display: grid;
  gap: 0.75rem;
}
.details {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
}
.details div {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.details dt {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}
.details dd {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}
.tag-list li {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  text-transform: capitalize;
}
.assignment-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}
.assignment-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}

.wide-card {
  width: min(100%, 72rem);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  align-items: end;
}

.form-grid label,
.form-grid input,
.form-grid select {
  width: 100%;
}

.secure-output {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow-wrap: anywhere;
}

.data-list {
  display: grid;
  gap: 0.75rem;
}

.data-list article {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.data-list article div {
  display: grid;
  gap: 0.2rem;
}

.data-list span {
  color: var(--muted);
}

.action-row {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.5rem !important;
}

.admin-workspace {
  width: min(100%, 78rem);
}

.admin-section {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.subcard {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}
.dashboard-shell {
  min-height: 100vh;
  padding: clamp(1rem, 4vw, 3rem);
}
.dashboard-workspace {
  width: min(90rem, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 0;
}
.dashboard-header h1,
.dashboard-panel h2,
.dashboard-panel h3 {
  margin: 0.35rem 0;
}
.dashboard-panel {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 0.5rem 2rem rgb(34 55 95 / 5%);
}
.dashboard-stack {
  display: grid;
  gap: 1.25rem;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
}
.metric {
  display: grid;
  gap: 0.45rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--nm-blue-800), var(--nm-blue-600));
  color: white;
}
.metric span {
  opacity: 0.8;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}
.metric strong {
  font-size: 1.8rem;
}
.dashboard-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.25rem;
}
.team-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.team-heading span,
.topic-grid span {
  color: var(--muted);
}
.team-mark {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  overflow: hidden;
}
.team-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compact-list {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.8;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
}
.topic-grid div {
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem;
  border-radius: 0.7rem;
  background: var(--canvas);
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.badge-row > span,
.state {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: capitalize;
}
.state-ready_to_process {
  background: #fff1cf;
  color: #765000;
}
.state-embargoed {
  background: #f5e5ff;
  color: #66258a;
}
.state-revealed {
  background: #ddf7e6;
  color: #176637;
}
@media (max-width: 42rem) {
  .dashboard-header {
    flex-direction: column;
  }
  .data-list article {
    align-items: flex-start;
    flex-direction: column;
  }
}
.ai-artifact {
  align-items: stretch !important;
}
.ai-artifact pre {
  max-width: 100%;
  margin: 0.75rem 0 0;
  padding: 1rem;
  overflow: auto;
  border-radius: 0.6rem;
  background: #111827;
  color: #e5e7eb;
  white-space: pre-wrap;
}
.assignment-list span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  text-transform: capitalize;
}
.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}
.card {
  width: min(46rem, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  box-shadow: var(--shadow-md);
}
.eyebrow {
  color: var(--brand);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
h1 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
}
h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
}
p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}
.status {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

/* Reusable Nexus Masters identity */
.nm-mark {
  display: block;
  flex: 0 0 auto;
  height: auto;
  border-radius: 12%;
}
.nm-lockup {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.nm-lockup__image {
  display: block;
  height: auto;
}
.nm-achievement {
  background: var(--nm-gold-100);
  color: var(--nm-gold-600);
}
.nm-interactive-accent {
  color: var(--interaction);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.teacher-nvl-workspace,
.teacher-nvl-editor {
  display: grid;
  gap: 1.25rem;
}

.teacher-nvl-workspace {
  margin-block: 1.5rem;
}

.teacher-nvl-editor {
  padding: clamp(1rem, 2vw, 1.75rem);
  border: 1px solid #ded8c5;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 12px 32px rgb(31 37 48 / 8%);
}

.teacher-nvl-heading,
.teacher-nvl-controls,
.teacher-nvl-actions {
  display: flex;
  align-items: end;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.teacher-nvl-heading h2,
.teacher-nvl-preview h3,
.teacher-nvl-diagnostics h3 {
  margin: 0;
}

.teacher-nvl-heading p {
  max-width: 48rem;
  margin-bottom: 0;
}

.teacher-nvl-saved {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: #185c36;
  background: #dff4e8;
  font-weight: 700;
}

.teacher-nvl-controls label,
.teacher-nvl-question-picker,
.teacher-nvl-source {
  display: grid;
  gap: 0.45rem;
  color: #273142;
  font-weight: 700;
}

.teacher-nvl-controls select,
.teacher-nvl-question-picker select {
  min-height: 2.8rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #aeb7c5;
  border-radius: 0.65rem;
  background: #fff;
}

.teacher-nvl-source textarea {
  min-height: 26rem;
  resize: vertical;
  padding: 1rem;
  border: 1px solid #8f99aa;
  border-radius: 0.75rem;
  color: #172033;
  background: #f8fafc;
  font:
    0.94rem/1.55 Consolas,
    'Courier New',
    monospace;
  tab-size: 2;
}

.teacher-nvl-result {
  display: grid;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e6ec;
}

.teacher-nvl-diagnostics {
  display: grid;
  gap: 0.55rem;
}

.teacher-nvl-diagnostics button,
.teacher-nvl-diagnostics p,
.teacher-nvl-blocked {
  width: 100%;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e8a5a5;
  border-radius: 0.65rem;
  color: #742525;
  background: #fff1f1;
  text-align: left;
}

.teacher-nvl-diagnostics .is-warning {
  border-color: #e1c66f;
  color: #614d09;
  background: #fff9df;
}

.teacher-nvl-preview {
  padding: 1rem;
  border: 1px solid #ced6e2;
  border-radius: 1rem;
  background: #fbfcff;
}

.teacher-nvl-svg svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 32rem;
}

.teacher-nvl-preview p {
  color: #566173;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .teacher-nvl-controls,
  .teacher-nvl-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .teacher-nvl-source textarea {
    min-height: 20rem;
  }
}

/* Public Nexus Masters competition landing */
.app-nav--public {
  justify-content: center;
  gap: 0;
}
.app-nav--public .app-nav__link {
  padding-inline: clamp(0.38rem, 0.75vw, 0.7rem);
  font-size: clamp(0.7rem, 0.82vw, 0.82rem);
}
.app-header__account:has(.app-header__experience) {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.app-header__public-sign-in {
  padding: 0.65rem 0.35rem;
  color: var(--brand);
  font-size: var(--text-sm);
  font-weight: 850;
  text-decoration: none;
}
.app-header__experience,
.app-menu__experience {
  min-height: 2.7rem;
  padding-inline: 1rem;
  background: linear-gradient(135deg, #f6c84d, var(--nm-logo-gold));
  color: #211700;
  box-shadow: 0 0.4rem 1rem rgb(98 69 0 / 16%);
  font-size: 0.76rem;
  white-space: nowrap;
}
.app-menu__experience {
  width: 100%;
  margin-top: 0.35rem;
}
.public-landing {
  overflow: clip;
  background: white;
}
.public-container {
  width: min(86rem, calc(100% - 2.5rem));
  margin-inline: auto;
}
.public-hero {
  position: relative;
  isolation: isolate;
  height: calc(100dvh - 5.5625rem);
  min-height: 38rem;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 25%, rgb(11 135 218 / 24%), transparent 26rem),
    linear-gradient(120deg, #03133f 0%, #062b75 52%, #0759a8 100%);
  color: white;
}
.public-hero__stadium {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.21;
  background:
    linear-gradient(180deg, transparent 48%, rgb(0 8 37 / 45%) 88%),
    repeating-linear-gradient(102deg, transparent 0 8.5%, rgb(255 255 255 / 8%) 8.7% 9%),
    radial-gradient(
      ellipse at 50% 110%,
      transparent 0 31%,
      rgb(255 255 255 / 13%) 31.3% 31.8%,
      transparent 32%
    ),
    linear-gradient(180deg, #1687cf 0 45%, #102c67 45% 62%, #0a6f54 62%);
  mask-image: linear-gradient(to bottom, black, black 82%, transparent);
}
.public-hero__stadium::before,
.public-hero__stadium::after {
  position: absolute;
  top: -3rem;
  width: 42%;
  height: 16rem;
  border-bottom: 0.35rem solid rgb(255 255 255 / 35%);
  content: '';
}
.public-hero__stadium::before {
  left: -5%;
  border-radius: 0 0 100% 0;
  transform: rotate(4deg);
}
.public-hero__stadium::after {
  right: -5%;
  border-radius: 0 0 0 100%;
  transform: rotate(-4deg);
}
.public-hero__lights {
  position: absolute;
  top: 7%;
  right: 37%;
  z-index: -1;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(74 205 255 / 25%), transparent 68%);
  animation: public-light-drift 8s ease-in-out infinite alternate;
}
.public-hero__grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(32rem, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
  padding-block: clamp(1.35rem, 3.5vh, 2.5rem);
}
.public-hero__copy {
  position: relative;
  z-index: 2;
}
.public-kicker,
.public-section-label {
  margin: 0;
  color: #f5ca55;
  font-size: clamp(0.68rem, 0.85vw, 0.82rem);
  font-weight: 950;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}
.public-hero h1 {
  max-width: 13ch;
  margin: clamp(0.8rem, 2vh, 1.25rem) 0;
  color: white;
  font-size: clamp(2.5rem, 4.7vw, 4.5rem);
  letter-spacing: -0.048em;
  line-height: 0.98;
}
.public-hero__lead {
  max-width: 39rem;
  margin: 0;
  color: #e4edff;
  font-size: clamp(0.95rem, 1.3vw, 1.13rem);
  line-height: 1.55;
}
.public-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: clamp(1.1rem, 2.7vh, 1.8rem);
}
.public-button {
  min-height: 3rem;
  padding-inline: 1.25rem;
  border-radius: 0.7rem;
  font-weight: 900;
}
.public-button--gold {
  border: 1px solid #ffdc79;
  background: linear-gradient(135deg, #ffd666, var(--nm-logo-gold));
  color: #211700;
  box-shadow: 0 0.7rem 1.7rem rgb(0 0 0 / 20%);
}
.public-button--gold:hover {
  background: linear-gradient(135deg, #ffe18d, #f3c44b);
  color: #211700;
  transform: translateY(-2px);
}
.public-button--outline {
  border: 1px solid rgb(255 255 255 / 55%);
  background: rgb(0 18 63 / 28%);
  color: white;
  box-shadow: none;
}
.public-button--outline:hover {
  border-color: white;
  background: rgb(255 255 255 / 12%);
}
.public-button--light {
  border: 1px solid #ced9e8;
  background: white;
  color: var(--brand);
  box-shadow: none;
}
.public-hero__assurance {
  margin: 1rem 0 0;
  color: #afc4e8;
  font-size: 0.74rem;
  font-weight: 700;
}
.public-hero-visual {
  position: relative;
  min-width: 0;
  padding: 0 4.2rem 0 0;
}
.live-match-card {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 1.35rem;
  background: rgb(250 252 255 / 97%);
  box-shadow:
    0 1.5rem 3rem rgb(0 7 34 / 40%),
    0 0 0 0.35rem rgb(255 255 255 / 8%);
  color: #101a37;
}
.live-match-card__header {
  min-height: 3.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: linear-gradient(90deg, #071c55, #0753aa);
  color: white;
}
.live-match-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.live-match-status i {
  width: 0.58rem;
  height: 0.58rem;
  border: 2px solid white;
  border-radius: 50%;
  background: #e34b42;
  box-shadow: 0 0 0 0.3rem rgb(227 75 66 / 22%);
  animation: public-live-pulse 2.4s ease-in-out infinite;
}
.live-match-clock {
  min-width: 5.7rem;
  color: #ffe078;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 950;
  text-align: right;
}
.live-match-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #dde5ef;
  color: #243454;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.live-match-title strong {
  color: #0753aa;
}
.live-match-fixture {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.7rem;
  padding: clamp(0.75rem, 2vh, 1.2rem) 1rem;
  background: linear-gradient(180deg, #fff, #f5f8fc);
  text-align: center;
}
.live-match-fixture > div {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
}
.live-match-fixture > span {
  color: #748096;
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
}
.live-match-fixture strong {
  font-size: 0.76rem;
}
.live-team-badge {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #0d62bf, #07317d);
  color: white;
  box-shadow: 0 0 0 0.2rem #d9eaff;
  font-size: 0.72rem;
  font-weight: 950;
}
.live-team-badge--gold {
  background: linear-gradient(145deg, #ffd965, #ba7d10);
  box-shadow: 0 0 0 0.2rem #fff1bb;
  color: #2b1b00;
}
.live-question-card {
  margin: 0 1rem;
  padding: clamp(0.7rem, 1.8vh, 1rem);
  border: 1px solid #d8e0eb;
  border-radius: 0.9rem;
  background: white;
}
.live-question-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #65738c;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.live-question-card > p {
  margin: clamp(0.55rem, 1.4vh, 0.85rem) 0;
  color: #101a37;
  font-size: clamp(1.2rem, 2.1vw, 1.75rem);
  font-weight: 900;
  text-align: center;
}
.live-answer-state {
  min-height: 2.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.7rem;
  border: 2px solid #0d69c9;
  border-radius: 0.6rem;
  background: #edf6ff;
}
.live-answer-state span {
  font-weight: 900;
}
.live-answer-state strong {
  color: #147145;
  font-size: 0.68rem;
  animation: public-saved-in 5s ease both infinite;
}
.live-question-progress {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.3rem;
  margin: 0;
  padding: clamp(0.7rem, 1.7vh, 1rem);
  list-style: none;
}
.live-question-progress li {
  aspect-ratio: 1.25;
  display: grid;
  place-items: center;
  border-radius: 0.32rem;
  background: #eef1f6;
  color: #69758a;
  font-size: 0.58rem;
  font-weight: 900;
}
.live-question-progress .is-complete {
  background: #ddf4e9;
  color: #147145;
}
.live-question-progress .is-current {
  background: #0753aa;
  color: white;
  box-shadow: 0 0 0 0.17rem #bcdcff;
}
.public-nex-host {
  position: absolute;
  right: -1.1rem;
  bottom: -0.4rem;
  z-index: 3;
  width: clamp(6.5rem, 11vw, 9.5rem);
  margin: 0;
  filter: drop-shadow(0 1rem 1rem rgb(0 12 45 / 30%));
}
.public-nex-host img {
  width: 100%;
  height: auto;
  display: block;
}
.public-nex-host figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  min-width: 8.5rem;
  display: grid;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 0.55rem;
  background: rgb(3 24 72 / 92%);
  color: white;
  text-align: right;
}
.public-nex-host figcaption strong {
  color: #ffd665;
  font-size: 0.74rem;
}
.public-nex-host figcaption span {
  font-size: 0.53rem;
}
.public-feature-strip {
  border-top: 1px solid rgb(255 255 255 / 14%);
  background: rgb(2 13 48 / 82%);
  backdrop-filter: blur(12px);
}
.public-feature-strip .public-container {
  min-height: 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.public-feature-strip .public-container > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.65rem 0.8rem;
  border-right: 1px solid rgb(255 255 255 / 12%);
}
.public-feature-strip .public-container > div:last-child {
  border-right: 0;
}
.public-feature-strip span {
  color: #f3c650;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 950;
}
.public-feature-strip strong {
  color: #f5f7ff;
  font-size: 0.75rem;
}
.public-summary,
.public-competitions,
.public-school-callout {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
}
.public-summary__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 5rem;
}
.public-summary h2,
.public-competitions h2,
.public-school-callout h2 {
  margin: 0.65rem 0 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.06;
}
.public-summary ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.public-summary li,
.public-competitions article {
  display: grid;
  gap: 0.3rem;
  padding: 1.2rem;
  border: 1px solid #dfe4ec;
  border-radius: 1rem;
  background: white;
  box-shadow: var(--shadow-sm);
}
.public-summary li span,
.public-competitions article > strong {
  color: #b98113;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 950;
}
.public-summary li small {
  color: var(--muted);
  line-height: 1.4;
}
.public-competitions {
  background: #f3f7fc;
  text-align: center;
}
.public-competitions > .public-container > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  text-align: left;
}
.public-competitions article h3 {
  margin: 0.7rem 0 0;
}
.public-competitions article p {
  margin: 0;
}
.public-school-callout {
  background: #041644;
  color: white;
}
.public-school-callout .public-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.public-school-callout h2 {
  max-width: 24ch;
  color: white;
}
.public-entry-page {
  min-height: calc(100dvh - 5.5rem);
  padding: clamp(2rem, 5vw, 4rem);
  background: radial-gradient(circle at 80% 10%, rgb(0 168 204 / 18%), transparent 24rem), #f3f7fc;
}
.public-entry-card,
.public-contact-layout {
  width: min(68rem, 100%);
  margin: 0 auto;
}
.public-entry-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid #dce4ef;
  border-radius: 1.5rem;
  background: white;
  box-shadow: var(--shadow-md);
}
.public-entry-card > h1,
.public-contact-intro h1 {
  margin: 0.6rem 0;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1;
}
.public-entry-card > p {
  max-width: 46rem;
}
.experience-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 2rem 0;
}
.experience-options article {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid #dce4ef;
  border-radius: 0.9rem;
  background: #f8fafc;
}
.experience-options article > span {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 0.7rem;
  background: #082e78;
  color: white;
  font-size: 0.68rem;
  font-weight: 950;
}
.experience-options h2 {
  margin: 0;
  font-size: 1rem;
}
.experience-options p {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
}
.experience-options article > strong {
  grid-column: 2;
  color: #8a681a;
  font-size: 0.65rem;
}
.public-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.public-contact-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(2rem, 6vw, 5rem);
}
.public-contact-intro {
  padding-top: 2rem;
}
.public-contact-intro > a {
  color: var(--brand);
  font-weight: 800;
}
.public-contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid #dce4ef;
  border-radius: 1.25rem;
  background: white;
  box-shadow: var(--shadow-md);
}
.public-contact-form label {
  display: grid;
  gap: 0.4rem;
  color: #1b2944;
  font-size: 0.76rem;
  font-weight: 850;
}
.public-contact-form label span {
  color: var(--muted);
  font-weight: 600;
}
.public-contact-form :is(input, select, textarea) {
  width: 100%;
  border: 1px solid #b9c6d8;
  background: white;
}
.public-contact-form .is-wide {
  grid-column: 1 / -1;
}
.public-contact-note,
.public-form-notice {
  margin: 0;
  font-size: 0.72rem;
}
.public-contact-note {
  color: var(--muted);
}
.public-form-notice {
  padding: 0.75rem;
  border-left: 0.25rem solid #b5871b;
  background: #fff8df;
  color: #55400d;
}
@keyframes public-live-pulse {
  50% {
    box-shadow: 0 0 0 0.5rem rgb(227 75 66 / 8%);
  }
}
@keyframes public-saved-in {
  0%,
  10% {
    opacity: 0.35;
  }
  20%,
  100% {
    opacity: 1;
  }
}
@keyframes public-light-drift {
  to {
    transform: translate3d(2rem, 1rem, 0);
  }
}
@media (max-width: 72rem) {
  .app-header__experience {
    display: none;
  }
  .public-hero {
    height: auto;
    min-height: auto;
  }
  .public-hero__grid {
    grid-template-columns: 1fr;
    padding-block: 3rem;
  }
  .public-hero__copy {
    text-align: center;
  }
  .public-hero h1,
  .public-hero__lead {
    margin-inline: auto;
  }
  .public-hero__actions {
    justify-content: center;
  }
  .public-hero-visual {
    width: min(38rem, 100%);
    margin: 0 auto;
  }
  .public-nex-host figcaption {
    display: none;
  }
  .public-summary__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
@media (max-width: 46rem) {
  .public-container {
    width: min(100% - 1.25rem, 86rem);
  }
  .public-hero__grid {
    padding-block: 2.1rem;
  }
  .public-hero h1 {
    font-size: clamp(2.45rem, 11vw, 3.5rem);
  }
  .public-hero__actions,
  .public-hero__actions .button {
    width: 100%;
  }
  .public-hero-visual {
    padding-right: 2.4rem;
  }
  .public-nex-host {
    right: -0.4rem;
    width: 6.7rem;
  }
  .public-nex-host figcaption {
    display: none;
  }
  .public-feature-strip .public-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .public-feature-strip .public-container > div {
    justify-content: flex-start;
    border-bottom: 1px solid rgb(255 255 255 / 10%);
  }
  .public-summary ol,
  .public-competitions > .public-container > div,
  .experience-options,
  .public-contact-layout,
  .public-contact-form {
    grid-template-columns: 1fr;
  }
  .public-contact-form .is-wide {
    grid-column: 1;
  }
  .public-school-callout .public-container {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 28rem) {
  .live-match-fixture {
    padding-inline: 0.55rem;
  }
  .live-match-fixture strong {
    font-size: 0.66rem;
  }
  .live-question-card {
    margin-inline: 0.55rem;
  }
  .live-question-progress {
    gap: 0.18rem;
    padding-inline: 0.55rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .public-hero__lights,
  .live-match-status i,
  .live-answer-state strong {
    animation: none;
  }
  .public-button--gold:hover {
    transform: none;
  }
}

/* Stage 10: simple-by-default experience */
.app-nav__more {
  position: relative;
}

.app-nav__more > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.65rem 0.8rem;
  color: var(--nm-ink-muted);
  font-weight: 700;
}

.app-nav__more > summary::-webkit-details-marker {
  display: none;
}

.app-nav__more > div {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.5rem);
  right: 0;
  display: grid;
  min-width: 13rem;
  padding: 0.5rem;
  border: 1px solid var(--nm-border);
  border-radius: 1rem;
  background: white;
  box-shadow: 0 18px 48px rgba(29, 31, 51, 0.16);
}

.teacher-competition-focus,
.nova-card {
  border-radius: 1.5rem;
  box-shadow: 0 14px 40px rgba(28, 35, 56, 0.08);
}

.teacher-competition-focus {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid #d8e9df;
  background: linear-gradient(145deg, #ffffff, #f5fbf7);
}

.teacher-competition-focus__heading,
.teacher-competition-card,
.nova-card__progress > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.teacher-competition-focus__heading h2,
.teacher-competition-card h3,
.nova-card h2 {
  margin: 0;
}

.teacher-competition-card {
  margin-top: 1rem;
  padding: 1.15rem;
  border: 1px solid #dfe9e3;
  border-radius: 1.1rem;
  background: white;
}

.teacher-competition-card__mark {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  flex: 0 0 3.5rem;
  border-radius: 1rem;
  color: white;
  background: linear-gradient(145deg, #167b55, #0c5138);
  font-weight: 900;
}

.teacher-competition-card > div {
  flex: 1;
}

.teacher-competition-card p,
.teacher-competition-card dl {
  margin: 0.25rem 0 0;
}

.teacher-competition-card dl {
  display: flex;
  gap: 2rem;
}

.teacher-competition-card dt {
  color: var(--nm-ink-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.teacher-competition-card dd {
  margin: 0.2rem 0 0;
  font-weight: 800;
}

.teacher-details,
.admin-advanced-panel,
.ai-advanced-settings,
.ai-workflow-details,
.student-learning-details {
  border: 1px solid var(--nm-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.76);
}

.teacher-details > summary,
.admin-advanced-panel > summary,
.ai-advanced-settings > summary,
.ai-workflow-details > summary,
.student-learning-details > summary,
.student-learning-timeline > summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 800;
}

.teacher-details[open] > summary,
.admin-advanced-panel[open] > summary,
.ai-advanced-settings[open] > summary,
.ai-workflow-details[open] > summary,
.student-learning-details[open] > summary,
.student-learning-timeline[open] > summary {
  border-bottom: 1px solid var(--nm-border);
}

.teacher-details .coach-overview-grid,
.admin-advanced-panel > :not(summary),
.ai-advanced-settings > div {
  margin: 1rem;
}

.nova-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) minmax(0, 1.5fr);
  min-height: 17rem;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 18% 15%, rgba(58, 232, 255, 0.26), transparent 35%),
    linear-gradient(135deg, #160a73 0%, #1800ad 58%, #5427d8 100%);
}

.nova-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.55) 1px, transparent 1.5px);
  background-size: 44px 44px;
  opacity: 0.28;
}

.nova-card__art {
  position: relative;
  z-index: 1;
  align-self: end;
  height: 17rem;
}

.nova-card__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 18px 14px rgba(3, 1, 35, 0.3));
}

.nova-card__content {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem) 1rem;
}

.nova-card__content .eyebrow {
  color: #8ff5ff;
}

.nova-card__content p {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.86);
}

.nova-card__progress {
  max-width: 34rem;
  margin-top: 1.25rem;
}

.nova-card__progress progress {
  width: 100%;
  height: 0.8rem;
  margin-top: 0.45rem;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  accent-color: #ffd44d;
}

.nova-card__reward {
  display: inline-block;
  margin-top: 0.7rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 750;
}

.ai-studio-intro {
  max-width: 42rem;
  text-align: center;
  margin: 0 auto;
}

.ai-simple-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 52rem;
  width: 100%;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid #dde4f2;
  border-radius: 1.4rem;
  background: #f8faff;
}

.ai-simple-form__concept,
.ai-advanced-settings,
.ai-generate-button {
  grid-column: 1 / -1;
}

.ai-simple-form textarea {
  min-height: 7rem;
}

.ai-workflow-details > :not(summary) {
  margin: 1rem;
}

.student-learning-details {
  margin-top: 0.8rem;
}

.ai-generate-button {
  min-height: 3.4rem;
  font-size: 1rem;
}

.admin-primary-actions {
  margin: 1.25rem 0;
}

.admin-next-action {
  border: 1px solid rgba(177, 31, 74, 0.24);
  background: linear-gradient(145deg, #fff, #fff8fa);
}

@media (max-width: 760px) {
  .teacher-competition-focus__heading,
  .teacher-competition-card,
  .teacher-competition-card dl {
    align-items: stretch;
    flex-direction: column;
  }

  .teacher-competition-focus__heading .button {
    text-align: center;
  }

  .nova-card {
    grid-template-columns: 1fr;
  }

  .nova-card__art {
    height: 13rem;
  }

  .nova-card__content {
    padding: 1.25rem;
  }

  .ai-simple-form {
    grid-template-columns: 1fr;
  }

  .ai-simple-form > * {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nova-card__art img {
    animation: none !important;
  }
}

/* Shared application shell */
.app-frame {
  min-height: 100vh;
}
.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: white;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: translateY(0);
}
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 5.5rem;
  border-bottom: 1px solid rgb(12 29 151 / 10%);
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 0.35rem 1.5rem rgb(13 7 83 / 5%);
  backdrop-filter: blur(18px);
}
.app-header__inner {
  width: min(94rem, 100%);
  min-height: 5.5rem;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.app-header .nm-lockup {
  flex: 0 0 auto;
}
.app-header .nm-lockup__image {
  width: 5.5rem;
}
.app-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.app-nav--desktop {
  flex: 1 1 auto;
  min-width: 0;
}
.app-nav__link {
  position: relative;
  padding: 0.65rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: var(--text-sm);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard);
}
.app-nav__link:hover {
  background: var(--nm-blue-50);
  color: var(--brand);
}
.app-nav__link[aria-current='page'] {
  background: var(--brand-soft);
  color: var(--brand);
}
.app-nav__link[aria-current='page']::after {
  position: absolute;
  right: 0.7rem;
  bottom: 0.25rem;
  left: 0.7rem;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--interaction);
  content: '';
}
.app-header__account {
  flex: 0 0 auto;
  margin-left: auto;
}
.app-header__sign-in {
  min-height: 2.5rem;
  padding-inline: var(--space-5);
}
.account-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  text-decoration: none;
}
.account-link:hover {
  background: var(--nm-blue-50);
}
.account-link__context {
  display: grid;
  max-width: 11rem;
  text-align: right;
}
.account-link__context strong,
.account-link__context span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-link__context strong {
  color: var(--ink);
  font-size: var(--text-sm);
}
.account-link__context span {
  color: var(--muted);
  font-size: var(--text-xs);
}
.account-avatar {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--nm-blue-100);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand), var(--nm-blue-600));
  color: white;
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.04em;
}
.app-header__loading {
  width: 2.5rem;
  height: 2.5rem;
  display: block;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--nm-blue-50), var(--nm-blue-100), var(--nm-blue-50));
  background-size: 200% 100%;
  animation: shell-loading 1.4s ease infinite;
}
.app-menu {
  display: none;
  position: relative;
}
.app-menu summary {
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  padding: 0 var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--brand);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 800;
  list-style: none;
}
.app-menu summary::-webkit-details-marker {
  display: none;
}
.app-menu__panel {
  position: absolute;
  top: calc(100% + var(--space-3));
  right: 0;
  width: min(20rem, calc(100vw - 2rem));
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-md);
}
.app-content {
  min-height: calc(100vh - 5.5625rem);
}
.app-content > .shell,
.app-content > .dashboard-shell {
  min-height: calc(100vh - 5.5rem);
}
@keyframes shell-loading {
  to {
    background-position: -200% 0;
  }
}
@media (max-width: 72rem) {
  .app-nav--desktop {
    display: none;
  }
  .app-menu {
    display: block;
  }
  .app-header__account {
    margin-left: auto;
  }
}
@media (max-width: 38rem) {
  .app-header,
  .app-header__inner {
    min-height: 4.75rem;
  }
  .app-header__inner {
    padding: 0 var(--space-4);
    gap: var(--space-3);
  }
  .app-header .nm-lockup__image {
    width: 4.5rem;
  }
  .app-header__account {
    display: none;
  }
  .app-content {
    min-height: calc(100vh - 4.75rem);
  }
  .app-content > .shell,
  .app-content > .dashboard-shell {
    min-height: calc(100vh - 4.75rem);
  }
}

/* Commissioner and administrator control center */
.portal-commissioner {
  --commissioner-burgundy: #8f2450;
  --commissioner-burgundy-dark: #621533;
  --commissioner-burgundy-soft: #f7e8ee;
  --commissioner-charcoal: #242832;
  --commissioner-slate: #596170;
  --commissioner-gold: #b68a36;
  --commissioner-warning: #a66400;
  --commissioner-danger: #b42318;
  --commissioner-healthy: #247447;
  background: #f3f4f6;
}
.portal-commissioner .app-header {
  border-bottom-color: #11141a;
  background: var(--commissioner-charcoal);
  box-shadow: 0 0.2rem 0.8rem rgb(0 0 0 / 18%);
}
.portal-commissioner .app-header .nm-lockup {
  padding: 0.35rem 0.5rem;
  border-radius: 0.45rem;
  background: white;
}
.commissioner-portal-identity {
  display: grid;
  gap: 0.12rem;
  padding-left: 1rem;
  border-left: 1px solid rgb(255 255 255 / 24%);
  color: white;
  white-space: nowrap;
}
.commissioner-portal-identity strong {
  font-size: 0.76rem;
  letter-spacing: 0.035em;
}
.commissioner-portal-identity span {
  color: #c9cdd5;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.portal-commissioner .app-nav__link {
  color: #d9dce2;
}
.portal-commissioner .app-nav__link:hover {
  background: rgb(255 255 255 / 8%);
  color: white;
}
.portal-commissioner .app-nav__link[aria-current='page'] {
  background: var(--commissioner-burgundy);
  color: white;
  box-shadow: inset 0 -2px var(--commissioner-gold);
}
.portal-commissioner .account-link__context strong,
.portal-commissioner .account-link__context span {
  color: white;
}
.portal-commissioner .account-link__context span {
  color: #c9cdd5;
}
.portal-commissioner .account-avatar {
  background: var(--commissioner-burgundy);
  color: white;
  box-shadow: 0 0 0 2px var(--commissioner-gold);
}
.portal-commissioner .app-menu summary {
  border-color: #565d69;
  background: #303640;
  color: white;
}
.portal-commissioner .app-content {
  background: #f3f4f6;
}
.commissioner-dashboard {
  --commissioner-burgundy: #8f2450;
  --commissioner-burgundy-dark: #621533;
  --commissioner-burgundy-soft: #f7e8ee;
  --commissioner-charcoal: #242832;
  --commissioner-gold: #b68a36;
  --commissioner-warning: #a66400;
  --commissioner-danger: #b42318;
  --commissioner-healthy: #247447;
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 1.25rem;
  color: #222738;
}
.commissioner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.75rem 2rem;
  border-radius: 0.75rem;
  border-top: 0.28rem solid var(--commissioner-gold);
  background: linear-gradient(
    115deg,
    var(--commissioner-burgundy-dark),
    var(--commissioner-burgundy) 65%,
    #30343d
  );
  color: white;
  box-shadow: 0 0.65rem 1.8rem rgb(46 16 25 / 18%);
}
.commissioner-header h1 {
  margin: 0.2rem 0 0.35rem;
  color: white;
  font-size: clamp(2rem, 4vw, 3.15rem);
}
.commissioner-header p {
  margin: 0;
  color: #dfe4ff;
}
.commissioner-header .eyebrow {
  color: #e3c57f;
}
.commissioner-header__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}
.commissioner-header__actions a {
  padding: 0.7rem 0.9rem;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 10%);
  color: white;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}
.commissioner-header__actions a.is-primary {
  border-color: #d4ad5a;
  background: var(--commissioner-gold);
  color: #241804;
}
.commissioner-alerts,
.commissioner-panel {
  min-width: 0;
  padding: 1.35rem;
  border: 1px solid #d9deea;
  border-radius: 0.75rem;
  background: white;
  box-shadow: 0 0.25rem 0.8rem rgb(20 27 53 / 5%);
}
.commissioner-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.commissioner-section-heading h2,
.commissioner-panel h2 {
  margin: 0.15rem 0 0;
  color: var(--commissioner-burgundy-dark);
  font-size: 1.25rem;
}
.commissioner-section-heading > span {
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: #f7e9e9;
  color: #8b3434;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}
.commissioner-section-heading > a {
  color: var(--commissioner-burgundy);
  font-size: 0.73rem;
  font-weight: 800;
  text-decoration: none;
}
.commissioner-alert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.commissioner-alert-grid article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.65rem;
  padding: 0.9rem;
  border: 1px solid #dee2eb;
  border-radius: 0.6rem;
  background: #fafbfc;
}
.commissioner-alert-grid article > span {
  grid-row: 1 / 3;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 0.4rem;
  background: #eceef1;
  color: var(--commissioner-charcoal);
  font-size: 0.7rem;
  font-weight: 900;
}
.commissioner-alert-grid article > div {
  display: grid;
  gap: 0.2rem;
}
.commissioner-alert-grid small {
  color: #6b7284;
  line-height: 1.4;
}
.commissioner-alert-grid a {
  grid-column: 2;
  color: var(--commissioner-burgundy);
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
}
.commissioner-alert-grid .commissioner-alert--priority {
  border-left: 0.25rem solid var(--commissioner-danger);
  background: #fffafa;
}
.commissioner-alert-grid article:nth-child(3) {
  border-left: 0.25rem solid var(--commissioner-warning);
  background: #fffcf5;
}
.commissioner-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}
.commissioner-kpi-grid article {
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  border: 1px solid #d9deea;
  border-radius: 0.65rem;
  background: white;
}
.commissioner-kpi-grid article:first-child,
.commissioner-kpi-grid article:nth-child(3) {
  border-top: 0.2rem solid var(--commissioner-burgundy);
  background: linear-gradient(180deg, var(--commissioner-burgundy-soft), white 42%);
}
.commissioner-kpi-grid article > span {
  color: #687085;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}
.commissioner-kpi-grid article > strong {
  color: var(--commissioner-burgundy);
  font-size: 1.75rem;
}
.commissioner-kpi-grid small {
  color: #747b8d;
}
.commissioner-main-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(17rem, 0.7fr);
  gap: 1rem;
  align-items: start;
}
.commissioner-column {
  min-width: 0;
  display: grid;
  gap: 1rem;
}
.commissioner-round-table {
  overflow: hidden;
  border: 1px solid #e0e4ec;
  border-radius: 0.55rem;
}
.commissioner-table-head,
.commissioner-round-table article {
  display: grid;
  grid-template-columns: minmax(11rem, 1.5fr) 0.8fr 0.8fr 0.9fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
}
.commissioner-table-head {
  background: #f1f3f7;
  color: #636b7e;
  font-size: 0.61rem;
  font-weight: 900;
  text-transform: uppercase;
}
.commissioner-round-table article {
  border-top: 1px solid #e4e7ee;
  font-size: 0.76rem;
}
.commissioner-round-table article > span {
  color: #666e81;
}
.commissioner-round-table article > a {
  color: var(--commissioner-burgundy);
  font-weight: 800;
  text-decoration: none;
}
.commissioner-state {
  width: fit-content;
  display: inline-flex;
  padding: 0.27rem 0.45rem;
  border-radius: 0.3rem;
  background: #eceff4;
  color: #596175 !important;
  font-size: 0.59rem;
  font-weight: 900;
  text-transform: uppercase;
}
.commissioner-state--published,
.commissioner-state--revealed {
  background: #e2f1e8;
  color: var(--commissioner-healthy) !important;
}
.commissioner-state--not_ready {
  background: #fff0d6;
  color: var(--commissioner-warning) !important;
}
.commissioner-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.commissioner-admin-grid > a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem;
  border: 1px solid #dfe3ec;
  border-radius: 0.6rem;
  color: #24293b;
  text-decoration: none;
}
.commissioner-admin-grid > a > span {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 0.45rem;
  background: var(--commissioner-burgundy-soft);
  color: var(--commissioner-burgundy);
  font-weight: 900;
}
.commissioner-admin-grid > a > div {
  display: grid;
}
.commissioner-admin-grid small {
  color: #71788a;
}
.commissioner-admin-grid b {
  color: var(--commissioner-burgundy);
  font-size: 0.68rem;
}
.commissioner-league-table {
  overflow: hidden;
  border: 1px solid #e0e4ec;
  border-radius: 0.55rem;
}
.commissioner-league-table article {
  display: grid;
  grid-template-columns: 2rem minmax(9rem, 1fr) minmax(9rem, 1fr) 4rem 4rem;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border-top: 1px solid #e4e7ee;
  font-size: 0.75rem;
}
.commissioner-league-table article:first-child {
  border-top: 0;
  background: #fffaf0;
  box-shadow: inset 0.22rem 0 var(--commissioner-gold);
}
.commissioner-league-table article > span {
  color: #687085;
}
.commissioner-next-round time {
  display: block;
  margin: 0.65rem 0;
  color: #666e81;
  font-size: 0.78rem;
}
.commissioner-checklist {
  display: grid;
  margin: 1rem 0;
  border-top: 1px solid #e2e5ed;
}
.commissioner-checklist span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #e2e5ed;
  color: #555d70;
  font-size: 0.75rem;
}
.commissioner-checklist b {
  width: 1.45rem;
  height: 1.45rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--commissioner-burgundy-soft);
  color: var(--commissioner-burgundy);
}
.commissioner-next-round > a,
.commissioner-audit-summary > a {
  display: inline-flex;
  color: var(--commissioner-burgundy);
  font-size: 0.73rem;
  font-weight: 800;
  text-decoration: none;
}
.commissioner-quick-actions {
  display: grid;
  gap: 0.55rem;
}
.commissioner-quick-actions > a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem;
  border: 1px solid #e0e4ec;
  border-radius: 0.5rem;
  color: #252a3b;
  text-decoration: none;
}
.commissioner-quick-actions > a > span {
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 0.38rem;
  background: var(--commissioner-burgundy-soft);
  color: var(--commissioner-burgundy);
  font-size: 0.67rem;
  font-weight: 900;
}
.commissioner-quick-actions > a > div {
  display: grid;
}
.commissioner-quick-actions small {
  color: #71788a;
}
.commissioner-audit-summary dl {
  display: grid;
  margin: 0.75rem 0 1rem;
}
.commissioner-audit-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #e3e6ed;
}
.commissioner-audit-summary dt {
  color: #697185;
}
.commissioner-audit-summary dd {
  margin: 0;
  font-weight: 800;
}
.commissioner-assignment-panel {
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.8rem rgb(20 27 53 / 5%);
}
@media (max-width: 74rem) {
  .commissioner-alert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .commissioner-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .commissioner-main-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 52rem) {
  .commissioner-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .commissioner-header__actions {
    justify-content: flex-start;
  }
  .commissioner-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .commissioner-round-table,
  .commissioner-league-table {
    overflow-x: auto;
  }
  .commissioner-table-head,
  .commissioner-round-table article {
    min-width: 44rem;
  }
  .commissioner-league-table article {
    min-width: 38rem;
  }
}

/* Teacher and coach operations workspace */
.coach-dashboard {
  display: grid;
  gap: 1.5rem;
  color: #202538;
}
.coach-dashboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid #dfe3ef;
  border-left: 0.4rem solid var(--brand);
  border-radius: 1rem;
  background: white;
  box-shadow: 0 0.5rem 1.5rem rgb(24 31 59 / 7%);
}
.coach-dashboard__header h1 {
  margin: 0.25rem 0 0.45rem;
  color: #181c2b;
  font-size: clamp(2rem, 4vw, 3rem);
}
.coach-dashboard__header p {
  margin: 0;
  color: #687086;
}
.coach-header-status {
  min-width: 12rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid #d8e8dd;
  border-radius: 0.75rem;
  background: #f4faf6;
}
.coach-header-status > span:last-child {
  display: grid;
}
.coach-header-status small {
  color: #627066;
}
.coach-status-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #288c52;
  box-shadow: 0 0 0 0.25rem #d9efe1;
}
.coach-attention,
.coach-panel {
  padding: 1.5rem;
  border: 1px solid #dfe3ed;
  border-radius: 1rem;
  background: white;
  box-shadow: 0 0.35rem 1rem rgb(24 31 59 / 5%);
}
.coach-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.coach-section-heading h2,
.coach-panel h2 {
  margin: 0.2rem 0 0;
  color: #202538;
  font-size: 1.35rem;
}
.coach-section-heading > span {
  color: #697187;
  font-size: 0.78rem;
  font-weight: 700;
}
.coach-priority-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.coach-priority {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.8rem;
  padding: 1rem;
  border: 1px solid #dfe4ef;
  border-radius: 0.8rem;
  background: #fafbfe;
}
.coach-priority--important {
  border-left: 0.25rem solid #c95252;
  background: #fffafa;
}
.coach-priority--gold {
  border-left: 0.25rem solid #c28a1b;
  background: #fffdf7;
}
.coach-priority__icon {
  grid-row: 1 / 3;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.55rem;
  background: #eceefa;
  color: var(--brand);
  font-weight: 900;
}
.coach-priority > div {
  display: grid;
  gap: 0.25rem;
}
.coach-priority > div span {
  color: #6a7184;
  font-size: 0.76rem;
  line-height: 1.45;
}
.coach-priority a {
  grid-column: 2;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}
.coach-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.coach-overview-grid article {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem;
  border: 1px solid #dfe3ed;
  border-radius: 0.85rem;
  background: white;
}
.coach-overview-grid article > span {
  color: #6a7184;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.coach-overview-grid article > strong {
  color: var(--brand);
  font-size: 2rem;
}
.coach-overview-grid small {
  color: #6a7184;
}
.coach-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 0.85fr);
  gap: 1.25rem;
  align-items: start;
}
.coach-column {
  display: grid;
  gap: 1.25rem;
}
.coach-label {
  width: fit-content;
  display: inline-flex;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}
.coach-label--active,
.coach-label--on-track {
  background: #e2f3e8;
  color: #17683a;
}
.coach-label--attention {
  background: #fbe8e8;
  color: #943535;
}
.coach-label--watch {
  background: #fff1c9;
  color: #795000;
}
.coach-team-row {
  display: grid;
  grid-template-columns: auto minmax(9rem, 1fr) minmax(14rem, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #e7eaf1;
}
.coach-team-row:first-of-type {
  border-top: 0;
}
.coach-team-mark {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 0.65rem;
  color: white;
  font-weight: 900;
}
.coach-team-row > div {
  display: grid;
  gap: 0.2rem;
}
.coach-team-row > div > span {
  color: #6a7184;
  font-size: 0.76rem;
}
.coach-team-fixture {
  padding-left: 1rem;
  border-left: 1px solid #e2e5ed;
}
.coach-team-fixture small {
  color: #6a7184;
  text-transform: uppercase;
}
.coach-student-table {
  overflow: hidden;
  border: 1px solid #e0e4ed;
  border-radius: 0.7rem;
}
.coach-student-table__head,
.coach-student-table article {
  display: grid;
  grid-template-columns: minmax(8rem, 1.3fr) 0.55fr 0.7fr minmax(9rem, 1.2fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
}
.coach-student-table__head {
  background: #f3f5f9;
  color: #646c80;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}
.coach-student-table article {
  border-top: 1px solid #e7eaf1;
  font-size: 0.8rem;
}
.coach-student-table article > span:not(.coach-label) {
  color: #60687b;
}
.coach-next-fixture > article {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #dce2f0;
  border-radius: 0.75rem;
  background: #f8f9fc;
}
.coach-next-fixture > article > span {
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}
.coach-next-fixture > article > strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.2rem;
}
.coach-next-fixture p {
  color: #646c80;
  font-size: 0.8rem;
  line-height: 1.5;
}
.coach-readiness {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e0e4ec;
  color: #596175;
  font-size: 0.75rem;
}
.coach-readiness b {
  width: 1.2rem;
  display: inline-grid;
  place-items: center;
  margin-right: 0.4rem;
  color: #237a47;
}
.coach-result-list {
  display: grid;
  margin-top: 0.75rem;
}
.coach-result-list article {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px solid #e7eaf1;
}
.coach-result-list article > div {
  display: grid;
}
.coach-result-list small {
  color: #697187;
}
.coach-result {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.45rem;
  font-size: 0.6rem;
  font-weight: 900;
}
.coach-result--win {
  background: #e2f3e8;
  color: #17683a;
}
.coach-result--draw {
  background: #edf0f5;
  color: #5f6675;
}
.coach-result--loss {
  background: #fbe8e8;
  color: #943535;
}
.coach-text-link {
  display: inline-flex;
  margin-top: 0.75rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}
.coach-qualification-panel > p {
  color: #697187;
  font-size: 0.8rem;
}
.coach-qualification-panel > article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-top: 1px solid #e7eaf1;
}
.coach-qualification-panel article > div {
  display: grid;
}
.coach-qualification-panel small {
  color: #697187;
}
.coach-rank-chip {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef0fb;
  color: var(--brand);
  font-weight: 900;
}
.coach-quick-actions {
  display: grid;
  gap: 0.65rem;
}
.coach-quick-actions a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.1rem 0.7rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid #e0e4ed;
  border-radius: 0.65rem;
  color: #202538;
  text-decoration: none;
}
.coach-quick-actions a > span {
  grid-row: 1 / 3;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  background: #eef0fb;
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 900;
}
.coach-quick-actions small {
  color: #697187;
}
@media (max-width: 68rem) {
  .coach-priority-grid {
    grid-template-columns: 1fr;
  }
  .coach-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .coach-main-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 46rem) {
  .coach-dashboard__header {
    align-items: flex-start;
    flex-direction: column;
  }
  .coach-header-status {
    width: 100%;
  }
  .coach-team-row {
    grid-template-columns: auto 1fr;
  }
  .coach-team-fixture {
    grid-column: 2;
    padding: 0.65rem 0 0;
    border: 0;
    border-top: 1px solid #e2e5ed;
  }
  .coach-student-table {
    overflow-x: auto;
  }
  .coach-student-table__head,
  .coach-student-table article {
    min-width: 42rem;
  }
}

/* Student academic league experience */
.student-dashboard {
  display: grid;
  gap: var(--space-5);
}
.student-dashboard__header {
  align-items: center;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 10%, rgb(0 168 204 / 25%), transparent 18rem),
    linear-gradient(135deg, var(--nm-blue-950), var(--nm-blue-800));
  color: white;
  box-shadow: var(--shadow-brand);
}
.student-dashboard__header h1 {
  color: white;
  font-size: clamp(2.25rem, 5vw, 4rem);
}
.student-dashboard__header p {
  max-width: 42rem;
  margin: 0;
  color: #dfe4ff;
  font-size: var(--text-md);
}
.student-dashboard__header .eyebrow {
  color: var(--nm-logo-gold);
}
.student-dashboard__header .button.secondary {
  background: white;
}
.student-dashboard > .dashboard-panel:first-of-type {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 0;
  background: linear-gradient(125deg, white, var(--nm-blue-50));
  box-shadow: var(--shadow-md);
}
.student-dashboard > .dashboard-panel:first-of-type::after {
  position: absolute;
  top: -5rem;
  right: -5rem;
  width: 13rem;
  height: 13rem;
  border: 2.5rem solid rgb(24 0 173 / 4%);
  border-radius: 50%;
  content: '';
}
.student-dashboard .team-heading {
  position: relative;
  z-index: 1;
}
.student-dashboard .team-mark {
  width: 5rem;
  height: 5rem;
  border: 4px solid white;
  border-radius: 1.4rem;
  box-shadow: 0 0.8rem 1.8rem rgb(13 7 83 / 18%);
  font-size: var(--text-xl);
}
.student-dashboard .team-heading h2 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
}
.student-dashboard .team-heading + .dashboard-columns {
  position: relative;
  z-index: 1;
  margin-top: var(--space-6);
}
.student-dashboard .team-heading + .dashboard-columns > div {
  padding: var(--space-5);
  border: 1px solid rgb(24 0 173 / 9%);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 78%);
}
.student-dashboard .team-heading + .dashboard-columns h3 {
  color: var(--brand);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.student-metric-grid {
  grid-template-columns: repeat(4, 1fr);
}
.student-metric-grid .metric {
  min-height: 8.5rem;
  align-content: space-between;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.student-metric-grid .metric:first-child {
  border: 0;
  background: linear-gradient(145deg, var(--nm-logo-gold), #f3cc72);
  color: #291a00;
}
.student-metric-grid .metric span {
  color: var(--muted);
  opacity: 1;
}
.student-metric-grid .metric:first-child span {
  color: #654000;
}
.student-metric-grid .metric strong {
  color: inherit;
  font-family: var(--font-display);
  font-size: 2.25rem;
}
.student-topic-panel,
.student-achievements-panel {
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.student-topic-panel .topic-grid > div {
  position: relative;
  overflow: hidden;
  padding: var(--space-4);
  border: 1px solid var(--line);
  background: var(--surface-subtle);
}
.student-topic-panel .topic-grid > div::after {
  width: var(--topic-progress, 100%);
  height: 3px;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--interaction), var(--brand));
  content: '';
}
.student-achievements-panel {
  border-color: #f0d79a;
  background: radial-gradient(circle at 95% 0, var(--nm-gold-100), transparent 20rem), white;
}
.student-achievements-panel .badge-row {
  margin-top: var(--space-5);
}
.student-achievements-panel .badge-row > span {
  min-height: 5.5rem;
  display: inline-flex;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  border: 1px solid #edd18b;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, white, var(--nm-gold-100));
  color: var(--nm-gold-600);
  box-shadow: var(--shadow-sm);
}
.student-achievements-panel .badge-row > span::before {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  margin-right: var(--space-3);
  border-radius: 50%;
  background: var(--nm-logo-gold);
  color: #2a1a00;
  content: '★';
}
.student-career-link {
  display: inline-flex;
  margin-top: var(--space-6);
  color: var(--brand);
  font-size: var(--text-sm);
  font-weight: 800;
  text-decoration: none;
}
.student-career-link::after {
  margin-left: var(--space-2);
  content: '→';
}

/* Student profile and career */
.student-career__header {
  justify-content: flex-start;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 90% 0, rgb(0 168 204 / 24%), transparent 22rem),
    linear-gradient(135deg, var(--nm-blue-950), var(--nm-blue-800));
  color: white;
  box-shadow: var(--shadow-brand);
}
.student-career__header h1 {
  color: white;
  font-size: clamp(2.25rem, 5vw, 4rem);
}
.student-career__header p {
  margin: 0;
  color: #dfe4ff;
}
.student-career__header .eyebrow {
  color: var(--nm-logo-gold);
}
.student-profile-avatar {
  width: clamp(5rem, 12vw, 8rem);
  height: clamp(5rem, 12vw, 8rem);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 4px solid rgb(255 255 255 / 32%);
  border-radius: 2rem;
  background: white;
  color: var(--brand);
  box-shadow: 0 1rem 2.5rem rgb(0 0 0 / 24%);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.75rem);
  font-weight: 900;
}
.student-career__metrics .metric {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.student-career__metrics .metric span {
  color: var(--muted);
  opacity: 1;
}
.student-career__metrics .metric strong {
  color: var(--brand);
}
.trophy-cabinet {
  border-color: #efd698;
  background: linear-gradient(135deg, white, #fffaf0);
}
.trophy-cabinet .badge-row > span {
  padding: var(--space-4) var(--space-5);
  border: 1px solid #efd698;
  border-radius: var(--radius-lg);
  background: white;
  color: var(--nm-gold-600);
}
.career-timeline .data-list {
  position: relative;
  padding-left: var(--space-8);
}
.career-timeline .data-list::before {
  position: absolute;
  top: var(--space-3);
  bottom: var(--space-3);
  left: 0.55rem;
  width: 2px;
  background: var(--nm-blue-100);
  content: '';
}
.career-timeline .data-list article {
  position: relative;
}
.career-timeline .data-list article::before {
  position: absolute;
  top: 1rem;
  left: calc(-1 * var(--space-8));
  width: 0.8rem;
  height: 0.8rem;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 2px var(--nm-blue-100);
  content: '';
}

/* Student competition waiting state */
.competition-waiting {
  background:
    radial-gradient(circle at 75% 20%, rgb(0 168 204 / 18%), transparent 22rem), var(--nm-blue-50);
}
.competition-entry-card {
  width: min(58rem, 100%);
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid rgb(24 0 173 / 12%);
  border-radius: 1.75rem;
  background: white;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.competition-entry-card > .eyebrow {
  display: inline-flex;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
}
.competition-entry-card h1 {
  max-width: 13ch;
  margin: var(--space-5) auto;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}
.competition-entry-card > p {
  max-width: 38rem;
  margin-inline: auto;
}
.competition-entry {
  margin-top: var(--space-8);
}
.competition-entry__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.competition-entry__steps span {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
}
.competition-entry__steps strong {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-size: var(--text-md);
}
.competition-entry__form {
  max-width: 39rem;
  margin: 0 auto;
  text-align: left;
}
.competition-entry__form > div,
.results-season-form > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  align-items: end;
}
.competition-entry__form label,
.results-season-form label {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 800;
}
.competition-entry__note {
  margin: var(--space-5) 0 0;
  color: var(--muted);
  font-size: var(--text-xs);
}

/* Revealed results and recognition */
.results-shell {
  min-height: calc(100vh - 5.5rem);
  padding: clamp(1rem, 4vw, 3rem);
  background: var(--canvas);
}
.results-workspace {
  width: min(78rem, 100%);
  margin: 0 auto;
  display: grid;
  gap: var(--space-5);
}
.results-hero {
  padding: clamp(2rem, 6vw, 4rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 12%, rgb(227 173 68 / 28%), transparent 20rem),
    linear-gradient(135deg, var(--nm-blue-950), var(--nm-blue-800));
  color: white;
  box-shadow: var(--shadow-brand);
}
.results-hero .eyebrow {
  color: var(--nm-logo-gold);
}
.results-hero h1 {
  margin: var(--space-3) 0;
  color: white;
  font-size: clamp(2.75rem, 7vw, 5rem);
}
.results-hero p {
  max-width: 42rem;
  margin: 0;
  color: #dfe4ff;
}
.results-workspace > [role='status'] {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  font-size: var(--text-sm);
}
.results-season-form {
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
}
.results-section {
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow-sm);
}
.results-section__heading {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.results-section__heading > span {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 900;
}
.results-section__heading h2 {
  margin: var(--space-1) 0 0;
}
.results-ranking-list {
  display: grid;
}
.results-ranking-list article {
  display: grid;
  grid-template-columns: auto minmax(10rem, 1fr) auto auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-top: 1px solid var(--line);
}
.results-ranking-list article:first-child {
  border-top: 0;
}
.results-ranking-list article > div {
  display: grid;
  gap: var(--space-1);
}
.results-ranking-list article > div span,
.results-ranking-list article > span {
  color: var(--muted);
  font-size: var(--text-sm);
}
.ranking-position {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--canvas);
  color: var(--ink) !important;
  font-weight: 900;
}
.ranking-position--1 {
  background: var(--nm-gold-100);
  color: var(--nm-gold-600) !important;
}
.ranking-position--2 {
  background: #edf0f5;
  color: #50586a !important;
}
.ranking-position--3 {
  background: #f5e6d8;
  color: #89512d !important;
}
.results-awards-section {
  border-color: #efd698;
  background: linear-gradient(135deg, white, #fffaf0);
}
.results-awards-section .results-section__heading > span,
.qualification-section .results-section__heading > span {
  background: var(--nm-gold-100);
  color: var(--nm-gold-600);
}
.results-award-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: var(--space-3);
}
.results-award-grid article {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5);
  border: 1px solid #efd698;
  border-radius: var(--radius-lg);
  background: white;
}
.results-award-grid article > span:first-child {
  color: var(--nm-logo-gold);
  font-size: var(--text-xl);
}
.results-award-grid article > span:last-child {
  color: var(--muted);
}
.qualification-section {
  background: linear-gradient(135deg, white, var(--nm-blue-50));
}
.qualification-list {
  display: grid;
  gap: var(--space-3);
}
.qualification-list article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--nm-blue-100);
  border-radius: var(--radius-lg);
  background: white;
}
.qualification-list article > span {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-weight: 900;
}
.qualification-list article > div {
  display: grid;
}
.qualification-list small {
  color: var(--muted);
}

@media (max-width: 52rem) {
  .student-metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .results-ranking-list article {
    grid-template-columns: auto 1fr auto;
  }
  .results-ranking-list article > span:last-child {
    grid-column: 2;
  }
}
@media (max-width: 38rem) {
  .student-dashboard__header {
    padding: var(--space-6);
  }
  .student-metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .student-metric-grid .metric {
    min-height: 7rem;
  }
  .student-career__header {
    align-items: flex-start;
  }
  .competition-entry__steps {
    gap: var(--space-1);
  }
  .competition-entry__steps span {
    font-size: 0.62rem;
  }
  .competition-entry__form > div,
  .results-season-form > div {
    grid-template-columns: 1fr;
  }
  .results-ranking-list article {
    gap: var(--space-3);
    padding-inline: 0;
  }
  .qualification-list article {
    grid-template-columns: auto 1fr;
  }
  .qualification-list article > strong {
    grid-column: 2;
    font-size: var(--text-xs);
  }
}

/* Phase 4 student league refinement — deliberately scoped away from staff workspaces */
.student-dashboard,
.student-career,
.competition-waiting,
.student-results {
  --student-cyan: #19cbea;
  --student-yellow: #ffd55f;
  --student-lime: #7bdc65;
  --student-coral: #ff7167;
  --student-purple: #7355e8;
}
.student-dashboard {
  gap: clamp(1.25rem, 3vw, 2rem);
}
.student-dashboard__header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 19rem;
  border: 3px solid rgb(255 255 255 / 14%);
  border-radius: 2.25rem;
  background:
    radial-gradient(circle at 88% 22%, rgb(46 223 255 / 45%) 0 4rem, transparent 4.1rem),
    radial-gradient(circle at 92% 18%, rgb(255 213 95 / 22%) 0 8rem, transparent 8.1rem),
    linear-gradient(125deg, #120080 0%, #2712c5 55%, #007eae 130%);
  box-shadow: 0 1.4rem 3.5rem rgb(24 0 173 / 27%);
}
.student-dashboard__header::before,
.student-dashboard__header::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: '';
}
.student-dashboard__header::before {
  right: 9rem;
  bottom: -6rem;
  width: 15rem;
  height: 15rem;
  border: 1.5rem solid rgb(255 255 255 / 7%);
}
.student-dashboard__header::after {
  top: 2rem;
  right: 2rem;
  width: 4rem;
  height: 4rem;
  background:
    radial-gradient(circle, white 0 7%, transparent 9%),
    radial-gradient(circle at 70% 25%, white 0 5%, transparent 7%);
  opacity: 0.65;
}
.student-dashboard__header h1 {
  max-width: 11ch;
  margin-block: 0.5rem 1rem;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-shadow: 0 0.2rem 0 rgb(5 0 71 / 24%);
}
.student-hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #dffaff;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.student-hero-kicker span {
  padding: 0.38rem 0.7rem;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 999px;
  background: var(--student-yellow);
  color: #392400;
  font-size: 0.7rem;
  box-shadow: 0 0.25rem 0 #bd8100;
}
.student-hero-actions {
  display: grid;
  justify-items: center;
  gap: 1rem;
}
.student-hero-rank {
  width: 7rem;
  height: 7rem;
  display: grid;
  place-content: center;
  border: 0.42rem solid white;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--student-yellow), #ffab21);
  color: #432800;
  box-shadow:
    0 0.7rem 0 #9b5b00,
    0 1.3rem 2rem rgb(0 0 0 / 25%);
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}
.student-hero-rank small {
  margin-top: 0.25rem;
  font-family: inherit;
  font-size: 0.57rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.student-competitions-panel {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 2px solid #d8ddf3;
  border-radius: 2rem;
  background: radial-gradient(circle at 96% 0, rgb(25 203 234 / 12%), transparent 18rem), white;
  box-shadow: 0 0.5rem 0 #dfe4f2;
}
.student-ecosystem-mark {
  width: 3.6rem;
  height: 3.6rem;
  display: grid;
  place-items: center;
  border: 3px solid white;
  border-radius: 1.15rem;
  background: linear-gradient(145deg, var(--brand), #00a8cc);
  color: white;
  box-shadow: 0 0.3rem 0 #0b0064;
  font-family: var(--font-display);
  font-weight: 900;
}
.student-competitions-panel__intro {
  max-width: 45rem;
  margin: 0.75rem 0 1.5rem;
  color: var(--muted);
}
.student-competition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.student-competition-card {
  min-height: 12rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1rem;
  padding: 1.25rem;
  border: 2px solid #dce2f1;
  border-radius: 1.5rem;
  background: white;
  box-shadow: 0 0.32rem 0 #dce2f1;
  transition: transform 0.2s ease;
}
.student-competition-card:hover {
  transform: translateY(-0.18rem);
}
.student-competition-card h3 {
  margin: 0.55rem 0 0.3rem;
  color: var(--ink);
  font-size: 1.15rem;
}
.student-competition-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}
.student-competition-card--mpl {
  border-color: #7ddff1;
  background: linear-gradient(145deg, #effcff, white 60%);
  box-shadow: 0 0.35rem 0 #7ddff1;
}
.student-competition-card--math-masters {
  border-color: #f0ce79;
  background: linear-gradient(145deg, #fff9df, white 60%);
  box-shadow: 0 0.35rem 0 #d8ae42;
}
.student-competition-card--mind-masters {
  border-color: #cfc4ff;
  background: linear-gradient(145deg, #f4f1ff, white 60%);
  box-shadow: 0 0.35rem 0 #b7abe8;
}
.student-competition-card--future {
  border-style: dashed;
  background: #f7f8fc;
  box-shadow: none;
}
.student-competition-emblem {
  width: 3.8rem;
  height: 4.4rem;
  display: grid;
  place-items: center;
  border: 3px solid white;
  border-radius: 1.2rem 1.2rem 1.7rem 1.7rem;
  background: linear-gradient(145deg, var(--brand), #00a8cc);
  color: white;
  box-shadow: 0 0.32rem 0 #0b0064;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
}
.student-competition-card--math-masters .student-competition-emblem {
  background: linear-gradient(145deg, #ffd75f, #e69a13);
  color: #4b2d00;
  box-shadow: 0 0.32rem 0 #9b5b00;
}
.student-competition-card--mind-masters .student-competition-emblem {
  background: linear-gradient(145deg, #8268ed, #4930b7);
  box-shadow: 0 0.32rem 0 #2d1b82;
}
.student-competition-card--future .student-competition-emblem {
  border-color: #e0e4ef;
  background: white;
  color: #7c8497;
  box-shadow: none;
}
.competition-status {
  width: fit-content;
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.competition-status--active {
  background: #c9f5de;
  color: #075f35;
}
.competition-status--qualified {
  background: #fff0b5;
  color: #704300;
}
.competition-status--soon {
  background: #e7e1ff;
  color: #4327a7;
}
.competition-status--future {
  background: #e9ebf1;
  color: #5f6675;
}
.competition-card-note {
  display: block;
  margin-top: 0.8rem;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
}
.student-competition-card dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.8rem 0 0;
}
.student-competition-card dl div {
  display: grid;
}
.student-competition-card dt {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}
.student-competition-card dd {
  margin: 0;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
}
.student-platform-career {
  overflow: hidden;
  padding: 0;
  border: 2px solid #f0ce79;
  border-radius: 2rem;
  background: linear-gradient(145deg, #fffdf5, #f6f3ff);
  box-shadow:
    0 0.55rem 0 #d8ae42,
    0 1.2rem 2.4rem rgb(24 0 173 / 10%);
}
.student-platform-career__banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background:
    radial-gradient(circle at 82% 20%, rgb(25 203 234 / 42%), transparent 11rem),
    linear-gradient(125deg, #120080, #2a12c8 60%, #007b9e);
  color: white;
}
.student-platform-career__banner::after {
  position: absolute;
  z-index: -1;
  right: 16%;
  bottom: -5rem;
  width: 13rem;
  height: 13rem;
  border: 1.4rem solid rgb(255 255 255 / 7%);
  border-radius: 50%;
  content: '';
}
.student-career-level-emblem {
  width: 6.25rem;
  height: 7rem;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 94% 18%, 88% 74%, 50% 100%, 12% 74%, 6% 18%);
  background: linear-gradient(145deg, #ffe983, #efaa20);
  filter: drop-shadow(0 0.55rem 0 #8e5200) drop-shadow(0 0.8rem 0.8rem rgb(0 0 0 / 18%));
}
.student-career-level-emblem span {
  color: #3f2700;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 900;
}
.student-platform-career__eyebrow {
  color: #bff6ff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.student-platform-career__banner h2 {
  margin: 0.25rem 0 0.4rem;
  color: white;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1;
  text-shadow: 0 0.2rem 0 rgb(5 0 71 / 30%);
}
.student-career-stars {
  display: flex;
  gap: 0.35rem;
  color: var(--student-yellow);
  font-size: 1.5rem;
  filter: drop-shadow(0 0.15rem 0 #8e5200);
}
.student-career-rank {
  min-width: 7rem;
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 1rem;
  border: 2px solid rgb(255 255 255 / 32%);
  border-radius: 1.4rem;
  background: rgb(255 255 255 / 13%);
  backdrop-filter: blur(0.5rem);
}
.student-career-rank span {
  color: #dffaff;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}
.student-career-rank strong {
  color: white;
  font-family: var(--font-display);
  font-size: 2.15rem;
}
.student-platform-career__progress {
  padding: 1.35rem clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid #e5def4;
  background: white;
}
.student-career-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.student-career-stat-grid article {
  min-height: 10.5rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.25rem;
  padding: 1rem;
  border: 2px solid #dfe4f2;
  border-radius: 1.4rem;
  background: white;
  text-align: center;
  box-shadow: 0 0.35rem 0 #dfe4f2;
}
.student-career-stat-grid article:nth-child(2) {
  border-color: #f0ce79;
  box-shadow: 0 0.35rem 0 #d8ae42;
}
.student-career-stat-grid article:nth-child(3) {
  border-color: #8ee7f7;
  box-shadow: 0 0.35rem 0 #8ee7f7;
}
.student-career-stat-grid article > strong {
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
}
.student-career-stat-grid article > span:last-child {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.student-career-stat-art {
  width: 3.6rem;
  height: 3.6rem;
}
.student-career-stat-icon {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: linear-gradient(145deg, var(--brand), #00a8cc);
  color: white !important;
  font-family: var(--font-display);
  font-size: 1.4rem !important;
  font-weight: 900;
  box-shadow: 0 0.3rem 0 #0b0064;
}
.student-career-stat-icon--rank {
  background: linear-gradient(145deg, #8268ed, #4930b7);
  box-shadow: 0 0.3rem 0 #2d1b82;
}
.student-career-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 clamp(1.5rem, 4vw, 2.25rem) clamp(1.5rem, 4vw, 2.25rem);
}
.student-career-status {
  min-height: 7.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 2px solid #dfe4f2;
  border-radius: 1.35rem;
  background: white;
}
.student-career-status--qualified {
  border-color: #f0ce79;
  background: linear-gradient(145deg, #fff8df, white);
}
.student-career-status--soon {
  border-color: #cfc4ff;
  background: linear-gradient(145deg, #f4f1ff, white);
}
.student-career-status__art {
  width: 4.4rem;
  height: 4.4rem;
  flex: 0 0 auto;
}
.student-career-status__mind {
  width: 4rem;
  height: 4rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 1.2rem;
  background: linear-gradient(145deg, #8268ed, #4930b7);
  color: white;
  box-shadow: 0 0.3rem 0 #2d1b82;
  font-size: 1.75rem;
}
.student-career-status > div {
  display: grid;
  gap: 0.15rem;
}
.student-career-status > div > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}
.student-career-status > div > strong {
  color: var(--brand);
  font-size: 1.3rem;
}
.student-career-status small {
  color: #5f6675;
  font-weight: 700;
}
.student-team-card {
  min-height: 18rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem 2rem;
  border: 3px solid #cdd9ff !important;
  border-radius: 2rem !important;
  background:
    radial-gradient(circle at 95% 10%, rgb(25 203 234 / 18%), transparent 18rem),
    linear-gradient(135deg, #fff 0%, #eff5ff 100%) !important;
  box-shadow:
    0 0.75rem 0 #d8e0f5,
    0 1.4rem 2.8rem rgb(23 13 100 / 12%) !important;
}
.student-team-card .team-heading {
  gap: 1.5rem;
}
.student-team-card .team-heading > div:last-child {
  align-self: center;
}
.student-team-crest {
  width: clamp(6rem, 15vw, 9rem);
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 0.8rem 0.65rem rgb(24 0 173 / 24%));
}
.student-team-card__label {
  width: fit-content;
  margin-bottom: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #dffaff;
  color: #00677e;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.student-team-card .team-heading h2 {
  color: var(--brand);
  font-size: clamp(2.15rem, 5vw, 3.5rem);
}
.student-team-status {
  min-width: 10rem;
  display: grid;
  gap: 0.3rem;
  padding: 1.1rem 1.25rem;
  border: 2px solid #9feaf7;
  border-radius: 1.25rem;
  background: white;
  text-align: center;
  box-shadow: 0 0.35rem 0 #9feaf7;
}
.student-team-status strong {
  color: var(--brand);
  font-size: 1.35rem;
}
.student-team-status span {
  color: var(--muted);
  font-size: 0.75rem;
}
.student-team-card .dashboard-columns {
  grid-column: 1 / -1;
}
.student-team-card .dashboard-columns > div {
  border: 2px solid #e1e7fa !important;
  border-radius: 1.35rem !important;
  background: white !important;
  box-shadow: 0 0.3rem 0 #e1e7fa;
}
.student-metric-grid {
  gap: 1rem;
}
.student-metric-grid .metric {
  min-height: 9.5rem;
  border: 2px solid #e4e8f5;
  border-radius: 1.6rem;
  box-shadow: 0 0.42rem 0 #dde3f2;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.student-metric-grid .metric:nth-child(1) {
  background: linear-gradient(145deg, #ffe784, #ffc842);
  border-color: #e5a51a;
  box-shadow: 0 0.42rem 0 #bf7b00;
}
.student-metric-grid .metric:nth-child(2) {
  border-color: #8ee7f7;
  box-shadow: 0 0.42rem 0 #8ee7f7;
}
.student-metric-grid .metric:nth-child(3) {
  border-color: #cfc4ff;
  box-shadow: 0 0.42rem 0 #cfc4ff;
}
.student-metric-grid .metric:nth-child(4) {
  border-color: #b7ebb0;
  box-shadow: 0 0.42rem 0 #b7ebb0;
}
.student-metric-grid .metric:hover {
  transform: translateY(-0.2rem);
}
.student-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.student-section-heading h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}
.student-quest-panel,
.student-topic-panel,
.student-achievements-panel,
.career-progress-panel,
.trophy-cabinet,
.career-timeline {
  border-width: 2px;
  border-radius: 2rem;
  box-shadow: 0 0.5rem 0 #e4e8f5;
}
.student-quest-panel {
  overflow: hidden;
  border-color: #cfc4ff;
  background: linear-gradient(135deg, #fff, #f4f1ff);
}
.student-quest-panel__spark {
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border-radius: 1.1rem;
  background: var(--student-purple);
  color: white;
  font-size: 1.7rem;
  box-shadow: 0 0.35rem 0 #4025a8;
}
.student-progress-grid {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.5rem;
}
.student-progress {
  display: grid;
  gap: 0.55rem;
}
.student-progress__label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.student-progress__label strong {
  color: var(--ink);
}
.student-progress__label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.student-progress__track {
  height: 1rem;
  overflow: hidden;
  border: 2px solid #d9def0;
  border-radius: 999px;
  background: #edf0f7;
  box-shadow: inset 0 0.16rem 0.25rem rgb(25 12 101 / 12%);
}
.student-progress__track > span {
  width: var(--progress-value);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--student-cyan), var(--brand), var(--student-purple));
  box-shadow: inset 0 0.18rem rgb(255 255 255 / 30%);
  animation: student-progress-fill 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.student-next-action {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.1rem 0.75rem;
  align-items: center;
  padding: 1rem 1.2rem;
  border-radius: 1.2rem;
  background: var(--brand);
  color: white;
  text-decoration: none;
  box-shadow: 0 0.38rem 0 #0b0064;
  transition: transform 0.2s ease;
}
.student-next-action > span {
  grid-row: 1 / 3;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--student-cyan);
  color: #003c4a;
}
.student-next-action small {
  color: #dfe4ff;
}
.student-next-action:hover {
  transform: translateY(-0.15rem);
}
.student-topic-panel .topic-grid {
  gap: 1rem;
}
.student-topic-panel .topic-grid > div {
  min-height: 7rem;
  border: 2px solid #bfeef6;
  border-radius: 1.3rem;
  box-shadow: 0 0.3rem 0 #bfeef6;
}
.student-topic-panel .topic-grid > div::after {
  height: 0.55rem;
  background: linear-gradient(90deg, var(--student-cyan), var(--brand));
}
.achievement-count {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #fff1bd;
  color: #754800;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.student-award-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.student-award-card {
  position: relative;
  overflow: hidden;
  min-height: 13rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.4rem;
  padding: 1.25rem;
  border: 2px solid #f0ce79;
  border-radius: 1.55rem;
  background: linear-gradient(145deg, #fff, #fff8df);
  text-align: center;
  box-shadow: 0 0.42rem 0 #d8ae42;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.student-award-card:hover {
  transform: translateY(-0.25rem) rotate(-0.5deg);
  box-shadow: 0 0.65rem 0 #d8ae42;
}
.student-award-card strong {
  color: #4c3100;
  font-size: 0.9rem;
  text-transform: capitalize;
}
.student-award-card > span {
  color: #8a6517;
  font-size: 0.72rem;
  font-weight: 700;
}
.student-award-card.is-legendary {
  border-color: #65dff4;
  background:
    radial-gradient(circle at 50% 18%, white, transparent 5rem),
    linear-gradient(145deg, #e8fbff, #e8e2ff);
  box-shadow: 0 0.42rem 0 #36bdd4;
}
.student-award-card.is-legendary::after {
  position: absolute;
  inset: -50%;
  background: linear-gradient(110deg, transparent 40%, rgb(255 255 255 / 75%) 48%, transparent 56%);
  content: '';
  animation: badge-shimmer 4.5s ease-in-out infinite;
}
.student-award-card.is-locked {
  filter: grayscale(1);
  opacity: 0.58;
  border-style: dashed;
  box-shadow: none;
}
.student-award-card.is-locked .student-award-art {
  opacity: 0.42;
}
.student-award-art {
  width: 5.5rem;
  height: 5.5rem;
  filter: drop-shadow(0 0.4rem 0.35rem rgb(100 62 0 / 20%));
}
.trophy-count {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  background: var(--brand);
  color: white !important;
  font-weight: 900 !important;
}
.student-career__header {
  overflow: hidden;
  border: 3px solid rgb(255 255 255 / 14%);
  border-radius: 2.25rem;
  box-shadow:
    0 1rem 0 #0b0064,
    0 1.6rem 2.5rem rgb(24 0 173 / 22%);
}
.student-profile-avatar {
  border-radius: 50%;
  box-shadow:
    0 0.55rem 0 var(--student-cyan),
    0 1rem 2rem rgb(0 0 0 / 24%);
}
.student-career__metrics .metric {
  border-width: 2px;
  border-radius: 1.45rem;
  box-shadow: 0 0.38rem 0 #dce2f1;
}
.trophy-cabinet {
  border-color: #f0ce79;
  background: radial-gradient(circle at 90% 0, #fff0ad, transparent 18rem), #fffcf2;
  box-shadow: 0 0.5rem 0 #e3bd59;
}
.career-progress-panel {
  display: grid;
  gap: 1.15rem;
  border-color: #bfeef6;
  background: linear-gradient(145deg, white, #eefcff);
  box-shadow: 0 0.5rem 0 #bfeef6;
}
.career-timeline__art {
  width: 2.5rem;
  height: 2.5rem;
  float: left;
  margin-right: 0.7rem;
}
.career-timeline__art svg {
  width: 100%;
  height: 100%;
}
.competition-entry-card {
  overflow: hidden;
  border: 3px solid #cfc4ff;
  border-radius: 2.25rem;
  box-shadow:
    0 0.8rem 0 #b7abe8,
    0 1.6rem 3rem rgb(24 0 173 / 18%);
}
.competition-team-banner {
  margin: calc(-1 * clamp(2rem, 6vw, 4rem)) calc(-1 * clamp(2rem, 6vw, 4rem)) 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(120deg, #17009d, #007fa9);
  color: white;
  text-align: left;
}
.competition-team-banner__crest {
  width: 4.5rem;
  height: 5rem;
  filter: drop-shadow(0 0.4rem 0.3rem rgb(0 0 0 / 25%));
}
.competition-team-banner > span {
  display: grid;
}
.competition-team-banner small {
  color: #dffaff;
}
.competition-team-banner__stars {
  margin-left: auto;
  display: block !important;
  color: var(--student-yellow);
  letter-spacing: 0.4rem;
}
.competition-entry__steps strong {
  width: 3.3rem;
  height: 3.3rem;
  border: 3px solid white;
  box-shadow:
    0 0.35rem 0 #0b0064,
    0 0 0 3px var(--student-cyan);
}
.competition-entry__form input {
  min-height: 3.5rem;
  border-width: 2px;
  border-color: #bbb0ed;
  border-radius: 1rem;
}
.competition-entry__form button {
  min-height: 3.5rem;
  border-radius: 1rem;
  box-shadow: 0 0.3rem 0 #0b0064;
}
.student-results {
  background: radial-gradient(circle at 15% 8%, #e9faff, transparent 24rem), #f5f7fc;
}
.student-results .results-hero {
  border: 3px solid rgb(255 255 255 / 14%);
  border-radius: 2.25rem;
  box-shadow:
    0 1rem 0 #0b0064,
    0 1.6rem 2.5rem rgb(24 0 173 / 18%);
}
.student-results .results-section {
  border-width: 2px;
  border-radius: 2rem;
  box-shadow: 0 0.5rem 0 #dfe4f2;
}
.league-table-key {
  display: grid;
  grid-template-columns: 3rem minmax(10rem, 1fr) minmax(15rem, 1.3fr) 5rem 5rem;
  gap: 1rem;
  padding: 0.65rem 1rem;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.league-record {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}
.league-record b {
  min-width: 2.6rem;
  display: grid;
  place-items: center;
  padding: 0.4rem;
  border-radius: 0.7rem;
  background: #f0f3fb;
  color: var(--ink);
  font-size: 0.9rem;
}
.league-record small {
  color: var(--muted);
  font-size: 0.48rem;
  text-transform: uppercase;
}
.student-results .results-ranking-list article {
  margin-top: 0.45rem;
  border: 2px solid #e4e8f3;
  border-radius: 1.15rem;
  background: white;
  box-shadow: 0 0.25rem 0 #e4e8f3;
}
.student-results .results-ranking-list article:first-child {
  border-color: #f0ce79;
  background: linear-gradient(90deg, #fff9e6, white);
  box-shadow: 0 0.3rem 0 #e0b84f;
}
.student-results .ranking-position {
  width: 2.7rem;
  height: 2.7rem;
  border: 2px solid white;
  box-shadow: 0 0.22rem 0 #ccd3e6;
}
.results-award-grid article {
  min-height: 13rem;
  align-content: center;
  justify-items: center;
  border-width: 2px;
  border-radius: 1.5rem;
  text-align: center;
  box-shadow: 0 0.35rem 0 #e0b84f;
}
.results-award-art {
  width: 5.3rem;
  height: 5.3rem;
}
.qualification-section .student-progress {
  margin-top: 1.5rem;
}
@keyframes student-progress-fill {
  from {
    width: 0;
  }
  to {
    width: var(--progress-value);
  }
}
@keyframes badge-shimmer {
  0%,
  65% {
    transform: translateX(-60%);
  }
  90%,
  100% {
    transform: translateX(60%);
  }
}
@media (max-width: 52rem) {
  .student-team-card {
    grid-template-columns: 1fr;
  }
  .student-career-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .student-team-status {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }
  .league-table-key {
    display: none;
  }
}
@media (max-width: 38rem) {
  .student-dashboard__header {
    min-height: 23rem;
    align-items: flex-start;
  }
  .student-hero-actions {
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-items: stretch;
  }
  .student-hero-rank {
    width: 5.3rem;
    height: 5.3rem;
    border-width: 0.3rem;
    font-size: 1.55rem;
  }
  .student-competition-grid {
    grid-template-columns: 1fr;
  }
  .student-competition-card {
    min-height: 0;
  }
  .student-platform-career__banner {
    grid-template-columns: auto 1fr;
    gap: 1rem;
  }
  .student-career-level-emblem {
    width: 4.8rem;
    height: 5.5rem;
  }
  .student-career-rank {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    justify-items: start;
  }
  .student-career-rank strong {
    justify-self: end;
  }
  .student-career-stat-grid {
    gap: 0.75rem;
  }
  .student-career-stat-grid article {
    min-height: 9.5rem;
    padding: 0.75rem;
  }
  .student-career-status-grid {
    grid-template-columns: 1fr;
  }
  .student-team-card .team-heading {
    align-items: flex-start;
    padding-right: 0;
  }
  .student-team-crest {
    width: 5.5rem;
  }
  .student-team-status {
    position: static;
  }
  .student-progress__label {
    display: grid;
    gap: 0.2rem;
  }
  .student-award-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .student-award-card {
    min-height: 11.5rem;
    padding: 0.8rem;
  }
  .student-award-art {
    width: 4.5rem;
    height: 4.5rem;
  }
  .competition-team-banner__stars {
    display: none !important;
  }
  .league-record {
    grid-template-columns: repeat(4, 2.8rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .student-dashboard *,
  .student-career *,
  .competition-waiting *,
  .student-results * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Student Portal home — isolated from teacher and commissioner workspaces. */
.student-home {
  --student-ink: #18144a;
  --student-blue: #3122b7;
  --student-cyan: #20c7df;
  --student-gold: #ffc94b;
  display: grid;
  gap: clamp(1.1rem, 2.5vw, 1.75rem);
  color: var(--student-ink);
}
.student-home__hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 18rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 82% 20%, rgb(73 222 255 / 55%), transparent 14rem),
    linear-gradient(125deg, #15106e, #3527c7 60%, #087f9f);
  color: white;
  box-shadow: 0 1rem 2.5rem rgb(24 16 110 / 20%);
}
.student-home__hero::after {
  position: absolute;
  right: 13%;
  bottom: -8rem;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  border: 1.8rem solid rgb(255 255 255 / 8%);
  border-radius: 50%;
  content: '';
}
.student-home__hero h1 {
  margin: 0.35rem 0 0.55rem;
  color: white;
  font-size: clamp(2.65rem, 6vw, 5.25rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}
.student-home__hero p {
  margin: 0;
  color: #e8f9ff;
  font-size: clamp(1rem, 2vw, 1.2rem);
}
.student-home__eyebrow,
.student-section-title span,
.student-trophy-card__copy > span,
.student-team-summary__heading span,
.student-streak-card > div > span {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.student-home__eyebrow {
  color: #9df3ff;
}
.student-home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.student-primary-action,
.student-secondary-action {
  min-height: 3.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border-radius: 1rem;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}
.student-primary-action {
  background: var(--student-gold);
  color: #392500;
  box-shadow: 0 0.3rem 0 #a96900;
}
.student-secondary-action {
  border: 2px solid rgb(255 255 255 / 45%);
  background: rgb(255 255 255 / 12%);
  color: white;
}
.student-primary-action:hover,
.student-secondary-action:hover {
  transform: translateY(-0.15rem);
}
.student-level-orbit {
  width: clamp(8rem, 16vw, 10.5rem);
  aspect-ratio: 1;
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  justify-items: center;
  border: 0.55rem solid white;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffdf70, #ffad28);
  color: #442900;
  box-shadow:
    0 0.8rem 0 #8d5700,
    0 1.3rem 2rem rgb(0 0 0 / 22%);
}
.student-level-orbit span {
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}
.student-level-orbit strong {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 0.9;
}
.student-level-orbit small {
  margin-top: 0.4rem;
  font-weight: 900;
}
.student-xp-card,
.student-team-summary,
.student-result-card,
.student-streak-card,
.student-achievement-shelf {
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 2px solid #e0e4f2;
  border-radius: 1.65rem;
  background: white;
  box-shadow: 0 0.42rem 0 #dfe3ef;
}
.student-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.student-section-title span {
  color: #6557ca;
}
.student-section-title h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
}
.student-section-title > strong {
  color: #6557ca;
  font-size: 0.82rem;
}
.student-section-title a {
  color: var(--student-blue);
  font-weight: 900;
}
.student-xp-track {
  height: 1.15rem;
  overflow: hidden;
  margin: 1.25rem 0 1.4rem;
  border-radius: 999px;
  background: #eceefa;
  box-shadow: inset 0 0.15rem 0.25rem rgb(35 25 111 / 14%);
}
.student-xp-track > span {
  width: var(--student-xp);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #20c7df, #5847df 70%, #8b54e8);
  animation: student-progress-fill 0.9s ease-out both;
}
.student-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
}
.student-stat-grid article {
  min-height: 6rem;
  display: grid;
  align-content: center;
  gap: 0.15rem;
  padding: 0.8rem;
  border-radius: 1rem;
  background: #f4f6fc;
  text-align: center;
}
.student-stat-grid article:nth-child(2),
.student-stat-grid article:nth-child(5) {
  background: #e9fbfe;
}
.student-stat-grid article:nth-child(3),
.student-stat-grid article:nth-child(4) {
  background: #fff5d7;
}
.student-stat-grid span {
  color: #63677d;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}
.student-stat-grid strong {
  color: var(--student-blue);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
}
.student-home__two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.5vw, 1.75rem);
}
.student-trophy-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 21rem;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-radius: 1.65rem;
  background: #080f27;
  color: white;
  box-shadow: 0 0.5rem 0 #171549;
}
.student-trophy-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(5 10 33 / 96%) 0 30%, rgb(5 10 33 / 25%) 62%, transparent);
  content: '';
}
.student-trophy-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.student-trophy-card__copy {
  max-width: 15rem;
}
.student-trophy-card__copy > span {
  color: #8beeff;
}
.student-trophy-card h2 {
  margin: 0.35rem 0 0.7rem;
  color: white;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1;
}
.student-trophy-card p {
  color: #e8edff;
}
.student-trophy-card p strong {
  color: #ffd56a;
  font-size: 1.5rem;
}
.student-trophy-card a {
  display: inline-flex;
  gap: 0.5rem;
  color: white;
  font-weight: 900;
}
.student-team-summary {
  display: grid;
  align-content: space-between;
  background: linear-gradient(145deg, white, #f1f4ff);
}
.student-team-summary__heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}
.student-team-summary__heading span {
  color: #6557ca;
}
.student-team-summary__heading h2 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}
.student-team-summary__heading > strong {
  color: var(--student-blue);
  font-family: var(--font-display);
  font-size: 2.4rem;
}
.student-team-summary__crest {
  width: 5rem;
  height: auto;
  filter: drop-shadow(0 0.5rem 0.45rem rgb(24 0 173 / 22%));
}
.student-record {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 1.5rem 0;
}
.student-record > div {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 1.1rem 0.5rem;
  border-radius: 1rem;
  background: white;
  box-shadow: 0 0.25rem 0 #e0e4f2;
}
.student-record > div:first-child {
  background: #e7f9eb;
  box-shadow: 0 0.25rem 0 #b5e2bd;
}
.student-record strong {
  color: var(--student-blue);
  font-family: var(--font-display);
  font-size: 2rem;
}
.student-record span {
  color: #63677d;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}
.student-team-summary > a {
  color: var(--student-blue);
  font-weight: 900;
}
.student-result-card__result {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.9rem;
  margin: 1.2rem 0;
  padding: 1rem;
  border-radius: 1.1rem;
  background: #f5f7fc;
}
.student-result-card__result > div {
  display: grid;
  gap: 0.15rem;
}
.student-result-card__result > div:nth-last-child(-n + 2) {
  justify-items: center;
}
.student-result-card__result span {
  color: #676b7e;
  font-size: 0.7rem;
}
.student-result-badge {
  min-width: 3.2rem;
  padding: 0.65rem 0.45rem;
  border-radius: 0.8rem;
  background: #e6f8eb;
  color: #126534 !important;
  font-size: 0.72rem !important;
  font-weight: 900;
  text-align: center;
}
.student-result-badge--loss {
  background: #ffebe9;
  color: #92241d !important;
}
.student-result-badge--draw {
  background: #fff2c9;
  color: #745100 !important;
}
.student-next-fixture {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: var(--student-blue);
  color: white;
  text-decoration: none;
}
.student-next-fixture span,
.student-next-fixture small {
  color: #dce7ff;
  font-size: 0.7rem;
}
.student-streak-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  gap: 1rem;
  background: linear-gradient(145deg, #fff9ec, #fff1e7);
  border-color: #ffc58c;
  box-shadow: 0 0.42rem 0 #efaf6e;
}
.student-streak-card__flame {
  font-size: 3.2rem;
  filter: drop-shadow(0 0.3rem 0.25rem rgb(172 67 0 / 18%));
}
.student-streak-card h2 {
  margin: 0.15rem 0 0.35rem;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}
.student-streak-card p {
  margin: 0;
  color: #715746;
}
.student-streak-dots {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
}
.student-streak-dots span {
  display: grid;
  place-items: center;
  aspect-ratio: 1.6;
  border-radius: 0.8rem;
  background: #f0ddd0;
  color: #9b806d;
  font-weight: 900;
}
.student-streak-dots span.is-active {
  background: linear-gradient(145deg, #ffcf55, #ff8c37);
  color: #4d2500;
  box-shadow: 0 0.22rem 0 #bd5608;
}
.student-streak-card > small {
  grid-column: 1 / -1;
  color: #7c6759;
}
.student-achievement-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.3rem;
}
.student-achievement-grid article {
  min-height: 10.5rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.35rem;
  padding: 0.8rem;
  border: 2px dashed #d6d9e4;
  border-radius: 1.2rem;
  background: #f6f7fa;
  filter: grayscale(1);
  opacity: 0.66;
  text-align: center;
}
.student-achievement-grid article.is-unlocked {
  border: 2px solid #e3bd55;
  background: linear-gradient(145deg, white, #fff5cf);
  filter: none;
  opacity: 1;
  box-shadow: 0 0.28rem 0 #e3bd55;
}
.student-achievement-grid strong {
  font-size: 0.78rem;
}
.student-achievement-grid span {
  color: #6d7081;
  font-size: 0.68rem;
  font-weight: 800;
}
.student-achievement-grid .is-unlocked span {
  color: #775600;
}
.student-achievement-art {
  width: 4rem;
  height: 4rem;
}
@media (max-width: 62rem) {
  .student-stat-grid,
  .student-achievement-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .student-home__two-column {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 42rem) {
  .student-home__hero {
    min-height: 25rem;
    align-items: flex-start;
    padding: 1.5rem;
  }
  .student-level-orbit {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 7.2rem;
  }
  .student-home__actions {
    display: grid;
    width: calc(100% - 7.8rem);
  }
  .student-section-title {
    align-items: start;
  }
  .student-section-title > strong {
    max-width: 9rem;
    text-align: right;
  }
  .student-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .student-trophy-card {
    min-height: 24rem;
  }
  .student-trophy-card img {
    object-position: 62% center;
  }
  .student-trophy-card::after {
    background: linear-gradient(0deg, rgb(5 10 33 / 98%) 0 38%, transparent 78%);
  }
  .student-result-card__result {
    grid-template-columns: auto 1fr;
  }
  .student-result-card__result > div:nth-last-child(-n + 2) {
    justify-items: start;
  }
  .student-achievement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .student-home * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Public landing experience */
/* Student dashboard viewport composition and trophy room */
@media (min-width: 44.01rem) {
  .app-frame:has(.student-home) {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  .app-content:has(.student-home) > .dashboard-shell {
    box-sizing: border-box;
    height: calc(100dvh - 5.5rem - 2px);
    min-height: 0;
    padding: clamp(0.65rem, 1.3vw, 1rem);
    overflow: hidden;
  }
  .app-content:has(.demo-role-bar):has(.student-home) > .dashboard-shell {
    height: calc(100dvh - 9.7rem - 2px);
  }
  .app-content:has(.student-home) .dashboard-workspace {
    height: 100%;
  }
  .student-home {
    height: 100%;
    min-height: 0;
  }
}
.student-home {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 2.7rem;
  gap: 0.65rem;
  color: #171744;
}

.nex-dashboard-companion {
  position: fixed;
  right: clamp(0.55rem, 1.4vw, 1.2rem);
  bottom: clamp(3.7rem, 6vh, 4.8rem);
  z-index: 18;
  width: min(32rem, 38vw);
  display: grid;
  grid-template-columns: minmax(10.5rem, 1fr) minmax(8.5rem, 0.78fr);
  align-items: end;
  gap: clamp(0.2rem, 0.6vw, 0.55rem);
  pointer-events: none;
}

.nex-teleprompter {
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(1.5rem, 4vh, 3.25rem);
  padding: clamp(0.7rem, 1.1vw, 0.95rem);
  border: 1px solid rgb(176 240 255 / 78%);
  border-radius: 1.05rem;
  background:
    linear-gradient(145deg, rgb(48 99 229 / 88%), rgb(16 173 220 / 82%)), rgb(43 89 219 / 86%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 10%),
    inset 0 0 1.8rem rgb(145 238 255 / 20%),
    0 0.65rem 1.5rem rgb(31 80 190 / 20%),
    0 0 1.25rem rgb(80 204 255 / 12%);
  color: white;
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.nex-teleprompter::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgb(255 255 255 / 13%), transparent 28%),
    repeating-linear-gradient(0deg, transparent 0 7px, rgb(91 225 255 / 3%) 8px);
  content: '';
  pointer-events: none;
}

.nex-teleprompter__topline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8eebff;
  font-size: 0.56rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nex-teleprompter__topline i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #ffd351;
  box-shadow: 0 0 0.6rem #ffd351;
}

.nex-teleprompter__result {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.42rem;
  margin: 0.55rem 0;
}

.nex-teleprompter__result div {
  min-width: 0;
  display: grid;
}

.nex-teleprompter__result div:last-child {
  text-align: right;
}

.nex-teleprompter__result span {
  overflow: hidden;
  color: #d9f9ff;
  font-size: clamp(0.55rem, 0.75vw, 0.68rem);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nex-teleprompter__result strong {
  color: white;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1;
}

.nex-teleprompter__result b {
  color: #ffd65d;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
}

.nex-teleprompter__reward {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.58rem;
  border: 1px solid rgb(255 215 93 / 38%);
  border-radius: 0.65rem;
  background: rgb(3 8 51 / 28%);
}

.nex-teleprompter__reward strong {
  color: #fff;
  font-size: 0.82rem;
}

.nex-teleprompter__reward span {
  color: #ffd65d;
  font-size: 0.68rem;
  font-weight: 950;
}

.nex-teleprompter__details {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 0.4rem;
  margin: 0.5rem 0 0;
}

.nex-teleprompter__details div {
  min-width: 0;
  display: grid;
}

.nex-teleprompter__details dt {
  color: #8edff1;
  font-size: 0.48rem;
  font-weight: 850;
  text-transform: uppercase;
}

.nex-teleprompter__details dd {
  overflow: hidden;
  margin: 0.08rem 0 0;
  color: white;
  font-size: 0.66rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nex-mascot__stage {
  position: relative;
  min-width: 0;
  pointer-events: auto;
}

.nex-mascot {
  position: relative;
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: 52% 88%;
}

.nex-mascot:focus-visible {
  border-radius: 45%;
  outline: 3px solid #ffd452;
  outline-offset: 3px;
}

.nex-mascot__walk {
  position: relative;
  width: 100%;
  display: block;
  transform-origin: 50% 88%;
  will-change: transform;
}

.nex-mascot__base {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 1px rgb(248 252 255 / 36%))
    drop-shadow(0 0.3rem 0.3rem rgb(27 41 104 / 12%));
}

.nex-mascot__shadow {
  position: absolute;
  right: 15%;
  bottom: 3.5%;
  left: 20%;
  height: 7%;
  border-radius: 50%;
  background: rgb(36 51 112 / 17%);
  filter: blur(6px);
  transform: scaleX(1.06);
}

.nex-mascot__limb {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  background: url('/student/nex-dashboard-web-v2.png') center / 100% 100% no-repeat;
  pointer-events: none;
  will-change: transform;
}

.nex-mascot__limb--left-leg {
  clip-path: polygon(21% 68%, 48% 67%, 48% 96%, 19% 96%);
  transform-origin: 39% 70%;
}

.nex-mascot__limb--right-leg {
  clip-path: polygon(47% 65%, 73% 66%, 74% 98%, 47% 98%);
  transform-origin: 54% 69%;
}

.nex-mascot__limb--arm {
  clip-path: polygon(8% 24%, 35% 25%, 41% 60%, 18% 60%);
  transform-origin: 34% 50%;
}

.nex-mascot__limb--tail {
  z-index: 0;
  clip-path: polygon(56% 52%, 95% 55%, 94% 86%, 63% 86%);
  transform-origin: 61% 70%;
}

.nex-mascot__eyelid {
  position: absolute;
  z-index: 3;
  width: 11.5%;
  height: 9%;
  border-radius: 50%;
  background: linear-gradient(180deg, #2863d6, #174ebf);
  box-shadow: inset 0 -1px 0 rgb(7 43 135 / 35%);
  pointer-events: none;
  transform-origin: center;
  will-change: transform;
}

.nex-mascot__eyelid--left {
  top: 21.8%;
  left: 34.2%;
  rotate: -7deg;
}

.nex-mascot__eyelid--right {
  top: 23.6%;
  left: 50.4%;
  rotate: 6deg;
}

.nex-speech {
  position: absolute;
  right: 62%;
  bottom: 79%;
  z-index: 4;
  width: max-content;
  max-width: 13rem;
  padding: 0.68rem 0.85rem;
  border: 2px solid #c7edff;
  border-radius: 0.9rem 0.9rem 0.2rem 0.9rem;
  background: white;
  box-shadow: 0 0.45rem 1rem rgb(19 20 91 / 18%);
  color: #211879;
  font-size: clamp(0.72rem, 0.9vw, 0.86rem);
  font-weight: 900;
  line-height: 1.35;
  white-space: pre-line;
  text-align: center;
}

.nex-asset-comparison {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 50;
  width: min(92vw, 48rem);
  padding: 1rem;
  border: 1px solid #dce4f6;
  border-radius: 1rem;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 1.3rem 3rem rgb(24 24 91 / 28%);
  color: #171744;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.nex-asset-comparison__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.nex-asset-comparison__heading span {
  color: #68708b;
  font-size: 0.72rem;
}

.nex-asset-comparison__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.nex-asset-comparison figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid #e0e5f1;
  border-radius: 0.8rem;
  background: #fff;
}

.nex-asset-comparison figure.is-blue {
  background: #edf7ff;
}

.nex-asset-comparison figure > div {
  height: 11rem;
  display: grid;
  place-items: center;
}

.nex-asset-comparison figure img {
  width: 10.625rem;
  height: 10.625rem;
  object-fit: contain;
}

.nex-asset-comparison figcaption {
  padding: 0.4rem;
  background: rgb(235 240 251 / 90%);
  font-size: 0.67rem;
  font-weight: 900;
  text-align: center;
}

@media (max-width: 1080px) {
  .nex-dashboard-companion {
    width: min(27rem, 45vw);
    grid-template-columns: minmax(9.5rem, 1fr) minmax(7.5rem, 0.72fr);
  }
}

@media (max-width: 760px) {
  .nex-dashboard-companion {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 3;
    width: min(100%, 30rem);
    margin: 0 auto;
    grid-template-columns: minmax(10rem, 1fr) minmax(8rem, 0.72fr);
    grid-row: 2;
  }
  .student-home {
    height: auto;
    grid-template-rows: auto auto auto;
  }
  .student-results-ticker {
    grid-row: 3;
  }
  .nex-teleprompter {
    margin-bottom: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nex-dashboard-companion *,
  .nex-dashboard-companion *::before,
  .nex-dashboard-companion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.student-home__workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: clamp(15.5rem, 23vw, 19.5rem) minmax(0, 1fr);
  gap: clamp(0.65rem, 1.2vw, 1rem);
}
.student-player-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(8rem, 1fr) auto auto auto;
  padding: clamp(0.8rem, 1.4vw, 1.1rem);
  border: 2px solid #c8d2f5;
  border-radius: 1.35rem;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 96%), rgb(235 243 255 / 96%)),
    linear-gradient(135deg, #2515a3, #16b8d1);
  box-shadow:
    0 0.4rem 0 #bec9eb,
    0 0.8rem 1.5rem rgb(28 20 108 / 10%);
}
.student-player-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4.2rem;
  background: linear-gradient(115deg, #211394, #087d9c);
  content: '';
}
.student-player-card__topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}
.student-player-card__topline span {
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.student-player-card__topline strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
}
.student-player-card__portrait {
  position: relative;
  overflow: hidden;
  width: min(100%, 13rem);
  min-height: 8rem;
  margin: 0.65rem auto 0;
  display: grid;
  place-items: center;
  border: 3px solid white;
  border-radius: 1.1rem;
  background: linear-gradient(145deg, #dff9ff, #d9d4ff);
  box-shadow: 0 0.28rem 0 #7084c5;
}
.student-player-card__portrait > span {
  color: #2e2790;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6vh, 4.6rem);
  font-weight: 900;
}
.student-player-card__portrait img {
  object-fit: cover;
}
.student-player-card__portrait button {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  z-index: 2;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 0.65rem;
  background: rgb(16 13 70 / 86%);
  color: white;
  font-size: 0.65rem;
  font-weight: 900;
}
.student-player-card__portrait input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.student-player-card__identity {
  padding: 0.65rem 0 0.45rem;
  text-align: center;
}
.student-player-card__identity h1 {
  margin: 0;
  color: #17144c;
  font-size: clamp(1.35rem, 2.7vh, 1.8rem);
}
.student-player-card__identity p {
  margin: 0.12rem 0 0.3rem;
  color: #414a70;
  font-weight: 850;
}
.student-player-card__identity > span {
  color: #74788c;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}
.student-player-card__record {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin: 0;
}
.student-player-card__record div {
  display: grid;
  justify-items: center;
  padding: 0.4rem 0.2rem;
  border-radius: 0.65rem;
  background: white;
  box-shadow: 0 0.15rem 0 #d7ddef;
}
.student-player-card__record dt {
  color: #666b81;
  font-size: 0.54rem;
  font-weight: 900;
  text-transform: uppercase;
}
.student-player-card__record dt small,
.student-player-card__points small {
  color: #7a43a0;
  font-size: 0.42rem;
}
.student-player-card__record dd {
  margin: 0;
  color: #24178d;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 900;
}
.student-player-card__points {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.45rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  background: linear-gradient(110deg, #ffe074, #ffc64c);
  color: #442a00;
}
.student-player-card__points span {
  display: grid;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}
.student-player-card__points strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.student-command {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: clamp(0.55rem, 1vh, 0.8rem);
}
.student-command__welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(0.8rem, 1.4vw, 1.15rem) clamp(1rem, 2vw, 1.5rem);
  border-radius: 1.2rem;
  background: linear-gradient(115deg, #171077, #3829c5 62%, #087e9c);
  color: white;
}
.student-command__welcome h2 {
  margin: 0.1rem 0;
  color: white;
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  line-height: 1;
}
.student-command__welcome p {
  margin: 0;
  color: #dff8ff;
  font-size: 0.78rem;
}
.student-preview-pill {
  color: #ffe083;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.student-command__play {
  min-height: 2.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border-radius: 0.85rem;
  background: #ffd04f;
  color: #3d2700;
  box-shadow: 0 0.25rem 0 #956000;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}
.student-command__progress {
  display: grid;
  grid-template-columns: auto minmax(10rem, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border: 2px solid #dfe3f2;
  border-radius: 1.05rem;
  background: white;
  box-shadow: 0 0.25rem 0 #dfe3f2;
}
.student-level-chip {
  width: 3.8rem;
  height: 3.8rem;
  display: grid;
  place-content: center;
  justify-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe278, #ffb62f);
  color: #432800;
  box-shadow: 0 0.22rem 0 #a66a00;
}
.student-level-chip span,
.student-quick-stat span {
  font-size: 0.52rem;
  font-weight: 900;
  text-transform: uppercase;
}
.student-level-chip strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
}
.student-xp-compact h3 {
  margin: 0;
  font-size: 1rem;
}
.student-xp-compact > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
}
.student-xp-compact > div:first-child span {
  color: #6f7388;
  font-size: 0.62rem;
}
.student-command__progress .student-xp-track {
  height: 0.65rem;
  margin: 0.32rem 0 0;
}
.student-quick-stat {
  min-width: 5rem;
  display: grid;
  justify-items: center;
  padding: 0.45rem;
  border-left: 1px solid #e2e5ef;
}
.student-quick-stat strong {
  color: #281b95;
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.student-command__middle {
  min-height: 0;
  display: grid;
  grid-template-columns: 0.88fr 0.78fr 1.2fr;
  gap: 0.7rem;
}
.student-team-mini,
.student-result-mini {
  min-width: 0;
  display: grid;
  align-content: center;
  padding: clamp(0.65rem, 1.1vw, 0.9rem);
  border: 2px solid #dfe3f0;
  border-radius: 1.05rem;
  background: white;
  box-shadow: 0 0.25rem 0 #dfe3f0;
}
.student-team-mini__heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
}
.student-team-mini__crest {
  width: clamp(2.7rem, 5vw, 4rem);
  height: auto;
}
.student-team-mini__heading span,
.student-result-mini > span {
  color: #6758c5;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.student-team-mini h3,
.student-result-mini h3 {
  overflow: hidden;
  margin: 0.05rem 0;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.student-team-mini__heading > strong {
  color: #271991;
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.student-team-mini .student-record {
  gap: 0.25rem;
  margin: 0.55rem 0;
}
.student-team-mini .student-record > div {
  padding: 0.28rem;
  box-shadow: none;
  background: #f1f3fa;
}
.student-team-mini .student-record strong {
  font-size: 1rem;
}
.student-team-mini > a {
  color: #281b94;
  font-size: 0.68rem;
  font-weight: 900;
}
.student-result-mini {
  background: linear-gradient(145deg, #fff, #f8f4ff);
}
.student-result-mini > h3 {
  color: #19733f;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
}
.student-result-mini p {
  overflow: hidden;
  margin: 0.15rem 0 0.55rem;
  color: #5e6277;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.student-result-mini dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin: 0;
}
.student-result-mini dl div {
  display: grid;
  padding: 0.4rem;
  border-radius: 0.55rem;
  background: white;
}
.student-result-mini dt {
  color: #74788a;
  font-size: 0.52rem;
  font-weight: 900;
  text-transform: uppercase;
}
.student-result-mini dd {
  margin: 0;
  color: #281b94;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
}
.student-cabinet-preview {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
  display: grid;
  align-content: end;
  padding: 0.85rem;
  border-radius: 1.05rem;
  color: white;
  text-decoration: none;
  box-shadow: 0 0.28rem 0 #17164d;
}
.student-cabinet-preview::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgb(5 8 27 / 98%), rgb(5 8 27 / 12%) 75%);
  content: '';
}
.student-cabinet-preview img {
  z-index: -2;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.student-cabinet-preview:hover img,
.student-cabinet-preview:focus-visible img {
  transform: scale(1.035);
}
.student-cabinet-preview > span {
  color: #87edff;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.student-cabinet-preview > strong {
  color: white;
  font-size: 1.15rem;
}
.student-cabinet-preview > small {
  color: #ffd86d;
  font-weight: 850;
}
.student-advanced-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
.student-advanced-actions a {
  min-height: 2.5rem;
  display: grid;
  place-items: center;
  padding: 0.45rem;
  border: 1px solid #cfd6ed;
  border-radius: 0.75rem;
  background: white;
  color: #271991;
  font-size: 0.7rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}
.student-results-ticker {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  overflow: hidden;
  border: 2px solid #c78b00;
  border-radius: 0.6rem;
  background: #ffd330;
  color: #1e1b08;
  box-shadow: 0 0.22rem 0 #9f7100;
}
.student-results-ticker__label {
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0 0.8rem;
  border-right: 2px solid #2d2707;
  background: #ffbf19;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
}
.student-results-ticker__window {
  overflow: hidden;
  display: flex;
  align-items: center;
}
.student-results-ticker__track {
  width: max-content;
  display: flex;
  align-items: center;
  animation: student-ticker 36s linear infinite;
}
.student-results-ticker__track span {
  padding-inline: 1.1rem;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}
.student-results-ticker__track b {
  margin-left: 2rem;
  font-size: 0.55rem;
}
.student-results-ticker:hover .student-results-ticker__track,
.student-results-ticker:focus .student-results-ticker__track,
.student-results-ticker:focus-within .student-results-ticker__track {
  animation-play-state: paused;
}
@keyframes student-ticker {
  to {
    transform: translateX(-50%);
  }
}

.trophy-room {
  min-height: calc(100dvh - 5.5rem);
  padding: clamp(1rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 75% 0, rgb(255 222 126 / 42%), transparent 28rem),
    linear-gradient(145deg, #f8fbff, #e7f3ff 54%, #fff5d9);
  color: #171744;
}
.trophy-room__header {
  width: min(86rem, 100%);
  margin: 0 auto 1rem;
  display: flex;
  align-items: end;
  gap: 1.5rem;
}
.trophy-room__header > a {
  min-height: 2.7rem;
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.85rem;
  border: 1px solid #cad8ef;
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 78%);
  color: #281b94;
  box-shadow: 0 0.2rem 0 #d6e0ef;
  font-weight: 850;
  text-decoration: none;
}
.trophy-room__header > div span {
  color: #2368b2;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.trophy-room__header h1 {
  margin: 0.1rem 0;
  color: #17135f;
  font-size: clamp(2rem, 4vw, 3.2rem);
}
.trophy-room__header p {
  margin: 0;
  color: #5d6680;
}
.trophy-room__layout {
  width: min(86rem, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 21rem);
  align-items: start;
  gap: 1.1rem;
}
.trophy-cabinet-real {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  padding: clamp(0.8rem, 1.5vw, 1.2rem);
  border: 0.55rem solid #477ac6;
  border-radius: 1.15rem;
  background: linear-gradient(120deg, rgb(255 255 255 / 72%), rgb(225 242 255 / 78%)), #e6f3ff;
  box-shadow:
    inset 0 0 0 2px rgb(255 255 255 / 80%),
    inset 0 0 2.5rem rgb(58 127 206 / 10%),
    0 1rem 2.2rem rgb(39 75 139 / 17%);
}
.trophy-cabinet-real::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(110deg, rgb(255 255 255 / 65%), transparent 24%),
    repeating-linear-gradient(90deg, rgb(41 89 164 / 3%) 0 1px, transparent 1px 38px);
  content: '';
}
.trophy-cabinet-real__light {
  position: absolute;
  top: -8rem;
  left: 10%;
  width: 80%;
  height: 25rem;
  background: radial-gradient(ellipse, rgb(255 214 103 / 32%), transparent 68%);
  pointer-events: none;
}
.trophy-display {
  position: relative;
  z-index: 1;
  padding: clamp(0.8rem, 1.4vw, 1.1rem);
  border: 1px solid rgb(81 126 187 / 25%);
  border-radius: 0.95rem;
  background: rgb(255 255 255 / 62%);
  box-shadow:
    inset 0 1px rgb(255 255 255 / 85%),
    0 0.4rem 0.9rem rgb(53 90 145 / 8%);
}
.trophy-display + .trophy-display {
  margin-top: 0.85rem;
}
.trophy-display--championship {
  background:
    radial-gradient(circle at 50% 30%, rgb(255 221 111 / 35%), transparent 45%),
    rgb(255 253 242 / 82%);
}
.trophy-display > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}
.trophy-display > header span {
  color: #81702a;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.trophy-display > header h2 {
  margin: 0.08rem 0 0;
  color: #1c1764;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
}
.trophy-display > header p {
  max-width: 26rem;
  margin: 0;
  color: #65708a;
  font-size: 0.68rem;
  text-align: right;
}
.trophy-display__shelf {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  align-items: end;
  gap: 0.55rem;
  padding: 0.45rem 0.35rem 0.75rem;
  border-bottom: 0.65rem solid #8ab2d8;
  box-shadow: 0 0.5rem 0.8rem rgb(48 79 121 / 13%);
}
.trophy-display--championship .trophy-display__shelf {
  grid-template-columns: repeat(4, minmax(7.2rem, 1fr));
  border-bottom-color: #d7b85b;
}
.trophy-display--medal .trophy-display__shelf {
  grid-template-columns: repeat(5, minmax(5.8rem, 1fr));
  border-bottom-color: #7ea8d1;
}
.trophy-display__shelf button {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 8rem;
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 0.3rem;
  padding: 0.45rem;
  border: 2px solid transparent;
  border-radius: 0.8rem;
  background: transparent;
  color: #171744;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}
.trophy-display--championship .trophy-display__shelf button {
  min-height: 11.8rem;
}
.trophy-display--medal .trophy-display__shelf button {
  min-height: 7.8rem;
}
.trophy-display__shelf button:hover {
  transform: translateY(-0.2rem);
}
.trophy-display__shelf button:hover,
.trophy-display__shelf button.is-selected {
  border-color: #2b67dc;
  background: rgb(76 144 240 / 9%);
}
.trophy-display__shelf button:focus-visible {
  outline: 3px solid #ffbf24;
  outline-offset: 2px;
}
.trophy-nameplate {
  width: 100%;
  overflow: hidden;
  display: grid;
  gap: 0.04rem;
  padding: 0.35rem 0.4rem;
  border: 1px solid #b98c2f;
  border-radius: 0.35rem;
  background: linear-gradient(#fff0a8, #dcb34c);
  color: #352000;
  text-align: center;
}
.trophy-nameplate strong {
  overflow: hidden;
  font-size: 0.55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trophy-nameplate small {
  color: #6c4b12;
  font-size: 0.45rem;
  font-weight: 900;
  text-transform: uppercase;
}
.trophy-award {
  position: relative;
  width: 5.2rem;
  height: 6.8rem;
  display: block;
  filter: drop-shadow(0 0.35rem 0.28rem rgb(48 53 92 / 22%));
}
.trophy-display--championship .trophy-award {
  width: 7.3rem;
  height: 9rem;
}
.trophy-award__body {
  position: absolute;
  top: 0.55rem;
  left: 18%;
  width: 64%;
  height: 46%;
  border-radius: 0.35rem 0.35rem 48% 48%;
  background: linear-gradient(110deg, #b87516, #fff0a0 45%, #d18a1d 70%, #8d5711);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 45%);
}
.trophy-award__handles {
  position: absolute;
  top: 1rem;
  left: 4%;
  width: 92%;
  height: 32%;
  border: 0.48rem solid #e1a32d;
  border-top-color: transparent;
  border-radius: 0 0 50% 50%;
}
.trophy-award__stem {
  position: absolute;
  bottom: 1.15rem;
  left: 43%;
  width: 14%;
  height: 34%;
  background: linear-gradient(90deg, #95611c, #ffe181, #9d651c);
}
.trophy-award__base {
  position: absolute;
  right: 14%;
  bottom: 0.25rem;
  left: 14%;
  height: 1rem;
  border-radius: 0.25rem;
  background: linear-gradient(#354f88, #14265a);
  border-bottom: 0.2rem solid #dca635;
}
.trophy-award__emblem,
.trophy-award__ribbon,
.trophy-award__halo {
  position: absolute;
  display: block;
}
.trophy-award__halo {
  inset: -8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 215 80 / 34%), transparent 67%);
}
.trophy-award--math-crystal .trophy-award__handles,
.trophy-award--mind-globe .trophy-award__handles {
  display: none;
}
.trophy-award--math-crystal .trophy-award__body {
  top: 0.3rem;
  left: 24%;
  width: 52%;
  height: 58%;
  clip-path: polygon(50% 0, 100% 34%, 75% 100%, 25% 100%, 0 34%);
  border-radius: 0;
  background: linear-gradient(125deg, #2785da, #e8ffff 42%, #7de5ff 62%, #2860b3);
}
.trophy-award--mind-globe .trophy-award__body {
  top: 0.35rem;
  left: 22%;
  width: 56%;
  height: 52%;
  border: 0.28rem solid #efbd39;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #8ff6ff, #2467c7 48%, #152e75);
}
.trophy-award--mind-globe .trophy-award__body::after {
  position: absolute;
  inset: 18% -12%;
  border: 0.16rem solid rgb(255 224 115 / 75%);
  border-radius: 50%;
  content: '';
}
.trophy-award--season-star .trophy-award__emblem {
  top: 0.1rem;
  left: 25%;
  width: 50%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #fff1a3, #df991b);
  clip-path: polygon(
    50% 0,
    61% 34%,
    98% 35%,
    68% 56%,
    79% 93%,
    50% 71%,
    21% 93%,
    32% 56%,
    2% 35%,
    39% 34%
  );
}
.trophy-award--season-star .trophy-award__body {
  top: 2.4rem;
  height: 25%;
}
.trophy-award--round-gold,
.trophy-award--round-silver,
.trophy-award--perfect-medal {
  width: 4.4rem;
  height: 5.4rem;
}
.trophy-award--round-gold .trophy-award__handles,
.trophy-award--round-gold .trophy-award__stem,
.trophy-award--round-gold .trophy-award__base,
.trophy-award--round-silver .trophy-award__handles,
.trophy-award--round-silver .trophy-award__stem,
.trophy-award--round-silver .trophy-award__base,
.trophy-award--perfect-medal .trophy-award__handles,
.trophy-award--perfect-medal .trophy-award__stem,
.trophy-award--perfect-medal .trophy-award__base {
  display: none;
}
.trophy-award--round-gold .trophy-award__ribbon,
.trophy-award--round-silver .trophy-award__ribbon,
.trophy-award--perfect-medal .trophy-award__ribbon {
  top: 0;
  left: 25%;
  width: 50%;
  height: 58%;
  background: linear-gradient(90deg, #1756bd 0 38%, #f5cf47 38% 62%, #1756bd 62%);
  clip-path: polygon(0 0, 100% 0, 74% 100%, 50% 76%, 26% 100%);
}
.trophy-award--round-gold .trophy-award__body,
.trophy-award--round-silver .trophy-award__body,
.trophy-award--perfect-medal .trophy-award__body {
  top: 2rem;
  left: 18%;
  width: 64%;
  aspect-ratio: 1;
  height: auto;
  border: 0.25rem solid #c98718;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3a7, #e6aa24 66%, #9b6512);
}
.trophy-award--round-silver .trophy-award__body {
  border-color: #7d8ca4;
  background: radial-gradient(circle at 35% 30%, #fff, #bdc8d8 65%, #75849c);
}
.trophy-award--perfect-medal .trophy-award__body {
  border-color: #3d87c6;
  background: radial-gradient(circle at 35% 30%, #fff, #8cecff 52%, #347bc1);
}
.trophy-award--perfect-medal .trophy-award__emblem {
  top: 2.75rem;
  left: 38%;
  width: 24%;
  aspect-ratio: 1;
  background: white;
  clip-path: polygon(
    50% 0,
    61% 34%,
    98% 35%,
    68% 56%,
    79% 93%,
    50% 71%,
    21% 93%,
    32% 56%,
    2% 35%,
    39% 34%
  );
}
.trophy-award--accuracy-shield .trophy-award__handles,
.trophy-award--accuracy-shield .trophy-award__stem,
.trophy-award--accuracy-shield .trophy-award__base,
.trophy-award--qualification-shield .trophy-award__handles,
.trophy-award--qualification-shield .trophy-award__stem,
.trophy-award--qualification-shield .trophy-award__base {
  display: none;
}
.trophy-award--accuracy-shield .trophy-award__body,
.trophy-award--qualification-shield .trophy-award__body {
  top: 0.7rem;
  left: 19%;
  width: 62%;
  height: 65%;
  clip-path: polygon(50% 0, 96% 16%, 87% 70%, 50% 100%, 13% 70%, 4% 16%);
  border-radius: 0;
  background: linear-gradient(135deg, #263eac, #4fd6eb 48%, #162d86);
}
.trophy-award--qualification-shield .trophy-award__body {
  background: linear-gradient(135deg, #1873a7, #c3f8ff 48%, #2461a8);
}
.trophy-award--first-win-plaque .trophy-award__handles,
.trophy-award--first-win-plaque .trophy-award__stem,
.trophy-award--first-win-plaque .trophy-award__base,
.trophy-award--runner-up-plaque .trophy-award__handles,
.trophy-award--runner-up-plaque .trophy-award__stem,
.trophy-award--runner-up-plaque .trophy-award__base {
  display: none;
}
.trophy-award--first-win-plaque .trophy-award__body,
.trophy-award--runner-up-plaque .trophy-award__body {
  top: 0.8rem;
  left: 12%;
  width: 76%;
  height: 64%;
  border: 0.38rem solid #8c5a2b;
  border-radius: 0.45rem;
  background: linear-gradient(135deg, #f5d286, #bb7832);
}
.trophy-award--runner-up-plaque .trophy-award__body {
  border-color: #7a879c;
  background: linear-gradient(135deg, #f9fbff, #98a8bd);
}
.trophy-award--questions-badge .trophy-award__handles,
.trophy-award--questions-badge .trophy-award__stem,
.trophy-award--questions-badge .trophy-award__base {
  display: none;
}
.trophy-award--questions-badge .trophy-award__body {
  top: 0.55rem;
  left: 18%;
  width: 64%;
  aspect-ratio: 1;
  height: auto;
  border: 0.32rem double #f3c746;
  border-radius: 50%;
  background: radial-gradient(circle, #4fdceb, #214db0 72%);
}
.trophy-award.is-locked {
  opacity: 0.6;
  filter: saturate(0.65) drop-shadow(0 0 0.55rem rgb(255 211 73 / 52%));
}
.trophy-detail {
  position: sticky;
  top: 1rem;
  align-self: start;
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid #cbd9ed;
  border-radius: 1rem;
  background: rgb(255 255 255 / 92%);
  box-shadow:
    inset 0 1px white,
    0 0.7rem 1.6rem rgb(46 78 130 / 14%);
}
.trophy-detail--inline {
  display: none;
}
.trophy-detail__nex {
  display: grid;
  grid-template-columns: 5.1rem 1fr;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #edf8ff, #fff9df);
}
.trophy-detail__nex img {
  width: 5.1rem;
  height: 5.1rem;
  object-fit: contain;
  filter: drop-shadow(0 0.22rem 0.22rem rgb(44 57 104 / 16%));
  animation: trophy-nex-guide 3s ease-in-out infinite;
}
.trophy-detail__nex p {
  margin: 0;
  color: #211879;
  font-size: 0.73rem;
  font-weight: 900;
  line-height: 1.35;
  animation: trophy-message-in 0.24s ease-out;
}
.trophy-detail__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.trophy-detail__title > span {
  width: fit-content;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}
.trophy-detail__title > span.is-earned {
  background: #c9f6dc;
  color: #075f35;
}
.trophy-detail__title > span.is-locked {
  background: #e8eaf2;
  color: #444a63;
}
.trophy-detail__title small {
  color: #6f768b;
  font-size: 0.55rem;
  font-weight: 900;
  text-transform: uppercase;
}
.trophy-detail h2 {
  margin: 0;
  color: #19145d;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
}
.trophy-detail__explanation {
  margin: 0;
  color: #5c6681;
  font-size: 0.75rem;
  line-height: 1.4;
}
.trophy-detail dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0;
}
.trophy-detail dl div {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem;
  border: 1px solid #e1e7f1;
  border-radius: 0.55rem;
  background: #f8faff;
}
.trophy-detail dt {
  color: #3972b1;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}
.trophy-detail dd {
  margin: 0;
  color: #292a45;
  font-size: 0.7rem;
  font-weight: 750;
}
@keyframes trophy-nex-guide {
  50% {
    transform: translateY(-0.12rem) rotate(-0.8deg);
  }
}
@keyframes trophy-message-in {
  from {
    opacity: 0;
    transform: translateY(0.2rem);
  }
}
@media (max-width: 62rem) and (min-width: 44.01rem) {
  .student-home__workspace {
    grid-template-columns: 15rem minmax(0, 1fr);
  }
  .student-command__middle {
    grid-template-columns: 1fr 1fr;
  }
  .student-cabinet-preview {
    grid-column: 1 / -1;
    min-height: 7rem;
  }
  .student-cabinet-preview img {
    object-position: center 48%;
  }
  .student-player-card__record {
    gap: 0.22rem;
  }
  .student-command__welcome p {
    display: none;
  }
}
@media (max-width: 64rem) {
  .trophy-room__layout {
    grid-template-columns: 1fr;
  }
  .trophy-detail--desktop {
    display: none;
  }
  .trophy-detail--inline {
    position: static;
    display: grid;
    margin-top: 0.8rem;
  }
  .trophy-detail--inline .trophy-detail__nex {
    grid-template-columns: 5.5rem minmax(0, 1fr);
  }
  .trophy-display--championship .trophy-display__shelf {
    grid-template-columns: repeat(4, minmax(6.5rem, 1fr));
  }
  .trophy-display--medal .trophy-display__shelf {
    grid-template-columns: repeat(4, minmax(5.8rem, 1fr));
  }
}
@media (max-width: 44rem) {
  .student-home {
    grid-template-rows: auto auto;
    padding: 0;
  }
  .student-home__workspace {
    grid-template-columns: 1fr;
  }
  .student-player-card {
    min-height: 38rem;
  }
  .student-command__middle {
    grid-template-columns: 1fr;
  }
  .student-cabinet-preview {
    min-height: 14rem;
  }
  .student-command__progress {
    grid-template-columns: auto 1fr;
  }
  .student-quick-stat {
    border-left: 0;
    border-top: 1px solid #e2e5ef;
  }
  .student-advanced-actions {
    grid-template-columns: 1fr;
  }
  .student-results-ticker {
    position: static;
    min-height: 3rem;
  }
  .trophy-room__layout {
    grid-template-columns: 1fr;
  }
  .trophy-room__header {
    align-items: start;
    flex-direction: column;
  }
  .trophy-room {
    padding: 0.75rem;
  }
  .trophy-cabinet-real {
    padding: 0.55rem;
    border-width: 0.35rem;
  }
  .trophy-display {
    padding: 0.7rem 0.55rem;
  }
  .trophy-display > header {
    align-items: start;
    flex-direction: column;
    gap: 0.25rem;
  }
  .trophy-display > header p {
    text-align: left;
  }
  .trophy-display--championship .trophy-display__shelf,
  .trophy-display--medal .trophy-display__shelf,
  .trophy-display__shelf {
    grid-template-columns: repeat(2, minmax(7rem, 1fr));
  }
  .trophy-display--championship .trophy-display__shelf button {
    min-height: 10.5rem;
  }
  .trophy-detail dl {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .student-results-ticker__track {
    width: auto;
    animation: none;
  }
  .student-results-ticker__track span:nth-child(n + 5) {
    display: none;
  }
  .student-cabinet-preview img {
    transition: none;
  }
  .trophy-display__shelf button,
  .trophy-detail__nex img,
  .trophy-detail__nex p {
    animation: none;
    transition: none;
  }
}

/* Public landing experience */
.landing-page {
  overflow: hidden;
  background: white;
}
.landing-container {
  width: min(76rem, calc(100% - 2rem));
  margin: 0 auto;
}
.landing-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(5rem, 10vw, 8.5rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgb(0 168 204 / 22%), transparent 24rem),
    linear-gradient(135deg, var(--nm-blue-950), var(--nm-blue-800) 58%, #2918cb);
  color: white;
}
.landing-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.17;
  background-image:
    linear-gradient(rgb(255 255 255 / 18%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 18%) 1px, transparent 1px);
  background-size: 4rem 4rem;
  content: '';
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.landing-hero__glow {
  position: absolute;
  right: -12rem;
  bottom: -17rem;
  z-index: -1;
  width: 42rem;
  height: 42rem;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  box-shadow:
    0 0 0 5rem rgb(255 255 255 / 3%),
    0 0 0 10rem rgb(255 255 255 / 2%);
}
.landing-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(24rem, 0.95fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
}
.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.45rem 0.8rem;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 9%);
  color: #f1f4ff;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.landing-kicker__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--nm-cyan-500);
  box-shadow: 0 0 0 0.3rem rgb(0 168 204 / 18%);
}
.landing-hero h1 {
  max-width: 12ch;
  margin: var(--space-6) 0;
  color: white;
  font-size: clamp(3rem, 6.8vw, 5.75rem);
  line-height: 0.97;
  letter-spacing: -0.055em;
}
.landing-hero__lead {
  max-width: 39rem;
  margin: 0;
  color: #dfe4ff;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.65;
}
.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.landing-button--gold {
  background: linear-gradient(135deg, var(--nm-logo-gold), #f0c35e);
  color: #231700;
  box-shadow: 0 0.8rem 2rem rgb(0 0 0 / 18%);
}
.landing-button--gold:hover {
  background: linear-gradient(135deg, #f0bd4e, #f7d47e);
  color: #231700;
}
.landing-button--ghost {
  border: 1px solid rgb(255 255 255 / 35%);
  background: rgb(255 255 255 / 10%);
  color: white;
  box-shadow: none;
}
.landing-button--ghost:hover {
  background: rgb(255 255 255 / 18%);
}
.landing-proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin: var(--space-8) 0 0;
  padding: 0;
  color: #ccd3ff;
  font-size: var(--text-sm);
  list-style: none;
}
.landing-proof li::before {
  margin-right: var(--space-2);
  color: var(--nm-cyan-500);
  content: '✓';
  font-weight: 900;
}
.competition-preview {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 1.75rem;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 2.5rem 6rem rgb(4 2 52 / 38%);
  color: var(--ink);
  transform: rotate(1.5deg);
}
.competition-preview::before {
  position: absolute;
  inset: 0.7rem;
  z-index: -1;
  border: 1px solid var(--nm-blue-100);
  border-radius: 1.25rem;
  content: '';
}
.competition-preview__topline,
.competition-preview__caption,
.preview-question-meta,
.preview-answer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.preview-live {
  color: var(--success);
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.preview-live i {
  width: 0.55rem;
  height: 0.55rem;
  display: inline-block;
  margin-right: var(--space-2);
  border-radius: 50%;
  background: #20aa68;
  box-shadow: 0 0 0 0.3rem var(--success-soft);
}
.preview-timer {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 900;
}
.competition-preview__fixture {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-6) 0;
  text-align: center;
}
.competition-preview__fixture > div {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
}
.competition-preview__fixture > span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 900;
  text-transform: uppercase;
}
.competition-preview__fixture strong {
  font-size: var(--text-sm);
}
.preview-team-mark {
  width: 3.6rem;
  height: 3.6rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  color: white;
  font-weight: 900;
}
.preview-team-mark--blue {
  background: linear-gradient(145deg, var(--nm-blue-800), var(--nm-blue-600));
}
.preview-team-mark--gold {
  background: linear-gradient(145deg, var(--nm-gold-600), var(--nm-logo-gold));
  color: #2c1b00;
}
.competition-preview__question {
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-subtle);
}
.preview-question-meta {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.competition-preview__question > p {
  margin: var(--space-6) 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  text-align: center;
}
.preview-answer {
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--interaction);
  border-radius: var(--radius-md);
  background: white;
}
.preview-answer span {
  font-size: var(--text-lg);
  font-weight: 800;
}
.preview-answer strong {
  color: var(--success);
  font-size: var(--text-xs);
}
.preview-progress {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: var(--space-1);
  margin-top: var(--space-5);
}
.preview-progress span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
}
.preview-progress .is-complete {
  background: var(--success-soft);
  color: var(--success);
}
.preview-progress .is-current {
  background: var(--brand);
  color: white;
  box-shadow: 0 0 0 3px var(--nm-blue-100);
}
.competition-preview__caption {
  margin-top: var(--space-5);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}
.landing-section {
  padding: clamp(5rem, 9vw, 8rem) 0;
}
.landing-section--tint {
  background: var(--nm-blue-50);
}
.section-heading {
  max-width: 39rem;
}
.section-heading--centered {
  margin: 0 auto;
  text-align: center;
}
.section-heading h2,
.landing-cta h2 {
  margin: var(--space-4) 0;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.08;
}
.section-heading p {
  margin: 0;
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-12);
}
.workflow-card {
  position: relative;
  padding: var(--space-8);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow-sm);
}
.workflow-card > span {
  color: var(--nm-logo-gold);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 900;
}
.workflow-card h3 {
  margin: var(--space-8) 0 var(--space-3);
  font-size: var(--text-xl);
}
.workflow-card p {
  margin: 0;
  font-size: var(--text-md);
}
.value-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
}
.text-link {
  display: inline-flex;
  gap: var(--space-2);
  margin-top: var(--space-6);
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}
.text-link:hover {
  color: var(--interaction);
}
.value-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.value-card {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-6);
  border: 1px solid rgb(24 0 173 / 10%);
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow-sm);
}
.value-card--large {
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr;
  align-items: center;
}
.value-card h3 {
  margin: 0 0 var(--space-2);
}
.value-card p {
  margin: 0;
  font-size: var(--text-md);
}
.value-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: var(--text-xl);
  font-weight: 900;
}
.value-icon--cyan {
  background: var(--nm-cyan-100);
  color: var(--interaction);
}
.value-icon--gold {
  background: var(--nm-gold-100);
  color: var(--nm-gold-600);
}
.landing-cta {
  padding: clamp(4rem, 7vw, 6rem) 0;
  background: var(--nm-blue-950);
}
.landing-cta__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.landing-cta .nm-mark {
  background: white;
}
.landing-cta h2 {
  margin: var(--space-2) 0;
  color: white;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}
.landing-cta p {
  margin: 0;
  color: #cbd1f6;
}
.landing-cta .eyebrow {
  color: var(--nm-logo-gold);
}

/* Authentication experience */
.auth-page {
  min-height: calc(100vh - 5.5rem);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 12% 15%, var(--nm-cyan-100), transparent 24rem), var(--canvas);
}
.auth-layout {
  width: min(62rem, 100%);
  display: grid;
  grid-template-columns: minmax(19rem, 0.85fr) minmax(22rem, 1.15fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background: white;
  box-shadow: 0 2rem 5rem rgb(13 7 83 / 14%);
}
.auth-brand-panel {
  min-height: 34rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-10);
  padding: clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(circle at 80% 15%, rgb(0 168 204 / 30%), transparent 15rem),
    linear-gradient(145deg, var(--nm-blue-950), var(--nm-blue-800));
  color: white;
}
.auth-brand-panel .nm-mark {
  background: white;
  box-shadow: 0 1rem 2rem rgb(0 0 0 / 18%);
}
.auth-brand-panel__label {
  color: var(--nm-logo-gold);
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.auth-brand-panel h2 {
  margin: var(--space-4) 0;
  color: white;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}
.auth-brand-panel p {
  margin: 0;
  color: #dbe0ff;
  font-size: var(--text-md);
}
.auth-brand-panel__footer {
  color: #bfc7f6;
  font-size: var(--text-xs);
  font-weight: 700;
}
.auth-card {
  align-self: center;
  padding: clamp(2rem, 6vw, 4.5rem);
}
.auth-card h1 {
  margin: var(--space-3) 0 var(--space-4);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
}
.auth-card__intro {
  margin: 0;
  font-size: var(--text-md);
}
.auth-card__content {
  margin-top: var(--space-8);
}
.auth-actions {
  display: grid;
  gap: var(--space-3);
}
.auth-actions .button {
  width: 100%;
}
.auth-assurance {
  margin: var(--space-6) 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-xs);
  text-align: center;
}
.auth-assurance::before {
  margin-right: var(--space-2);
  color: var(--success);
  content: '✓';
  font-weight: 900;
}
.auth-alert {
  margin: 0 0 var(--space-5);
  padding: var(--space-4);
  border: 1px solid #f2b5c0;
  border-radius: var(--radius-md);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: var(--text-sm);
}
.auth-loading {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--canvas);
  font-size: var(--text-sm);
}
.auth-invitation {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-subtle);
}
.auth-invitation span {
  color: var(--muted);
  font-size: var(--text-sm);
}
.auth-invitation strong {
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
}
.school-choice-list {
  display: grid;
  gap: var(--space-3);
}
.school-choice {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  box-shadow: none;
  text-align: left;
}
.school-choice:hover {
  border-color: var(--interaction);
  background: var(--nm-cyan-100);
  color: var(--ink);
  box-shadow: none;
}
.school-choice__mark {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 900;
}
.school-choice > span:nth-child(2) {
  display: grid;
}
.school-choice small {
  margin-top: 0.15rem;
  color: var(--muted);
}

@media (max-width: 56rem) {
  .landing-hero__grid,
  .value-grid {
    grid-template-columns: 1fr;
  }
  .landing-hero h1 {
    max-width: 14ch;
  }
  .competition-preview {
    width: min(35rem, 100%);
    margin: 0 auto;
    transform: none;
  }
  .workflow-grid {
    grid-template-columns: 1fr;
  }
  .workflow-card h3 {
    margin-top: var(--space-4);
  }
  .landing-cta__inner {
    grid-template-columns: auto 1fr;
  }
  .landing-cta__inner > .button {
    grid-column: 2;
    justify-self: start;
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-brand-panel {
    min-height: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
  }
  .auth-brand-panel__footer {
    grid-column: 1 / -1;
  }
}
@media (max-width: 38rem) {
  .landing-container {
    width: min(100% - 1.5rem, 76rem);
  }
  .landing-hero {
    padding-top: 3.5rem;
  }
  .landing-kicker {
    align-items: flex-start;
    border: 0;
    background: transparent;
    padding: 0;
    line-height: 1.5;
  }
  .landing-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }
  .landing-hero__actions,
  .landing-hero__actions .button {
    width: 100%;
  }
  .competition-preview {
    padding: var(--space-4);
    border-radius: var(--radius-xl);
  }
  .competition-preview__fixture strong {
    font-size: var(--text-xs);
  }
  .preview-question-meta span:last-child,
  .competition-preview__caption span:last-child {
    display: none;
  }
  .value-cards {
    grid-template-columns: 1fr;
  }
  .value-card--large {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .landing-cta__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .landing-cta .nm-mark,
  .landing-cta__inner > .button {
    grid-column: auto;
    justify-self: center;
  }
  .auth-page {
    min-height: calc(100vh - 4.75rem);
    padding: var(--space-3);
  }
  .auth-layout {
    border-radius: var(--radius-xl);
  }
  .auth-brand-panel {
    grid-template-columns: auto 1fr;
    padding: var(--space-6);
  }
  .auth-brand-panel .nm-mark {
    width: 4rem;
  }
  .auth-brand-panel h2 {
    margin: var(--space-2) 0 0;
    font-size: var(--text-xl);
  }
  .auth-brand-panel p,
  .auth-brand-panel__footer {
    display: none;
  }
  .auth-card {
    padding: var(--space-8) var(--space-5);
  }
}
.demo-role-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.65rem 1rem;
  color: #172033;
  background: #fff7d6;
  border-bottom: 1px solid #ead17a;
}
.demo-role-bar button {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}
.demo-login-panel {
  padding: 1rem;
  border: 1px solid #d9d4ff;
  border-radius: 1rem;
  background: #f7f5ff;
}
.ai-diagram-preview {
  margin: 0;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-subtle);
}
.ai-diagram-preview__grid {
  position: relative;
  width: min(100%, 22rem);
  height: 10rem;
  border: 1px solid #b9bdd0;
  border-radius: 0.65rem;
  background-image:
    linear-gradient(#dfe3ee 1px, transparent 1px),
    linear-gradient(90deg, #dfe3ee 1px, transparent 1px);
  background-size: 1.5rem 1.5rem;
  overflow: hidden;
}
.ai-diagram-preview__axis-x,
.ai-diagram-preview__axis-y {
  position: absolute;
  display: block;
  background: #374151;
}
.ai-diagram-preview__axis-x {
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
}
.ai-diagram-preview__axis-y {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
}
.ai-diagram-preview__point {
  position: absolute;
  left: 68%;
  top: 22%;
  color: var(--nm-gold-600);
  font-size: 1.5rem;
}
.ai-diagram-preview figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Teacher Dashboard visual prototype */
.portal-teacher {
  --teacher-gold: #c69214;
  --teacher-gold-dark: #674700;
  --teacher-gold-soft: #fff3c4;
  --teacher-ink: #152033;
  --teacher-muted: #647084;
  --teacher-line: #e5e3dd;
  background: #f6f6f4;
}

.portal-teacher .app-header {
  border-bottom-color: #d8b853;
  box-shadow: 0 3px 14px rgb(103 71 0 / 7%);
}

.portal-teacher .app-nav__link[aria-current='page'] {
  color: var(--teacher-gold-dark);
  background: var(--teacher-gold-soft);
  box-shadow: inset 0 -2px var(--teacher-gold);
}

.portal-teacher :where(a, button, input, select, textarea, summary):focus-visible {
  outline-color: var(--teacher-gold);
}

.teacher-prototype {
  display: grid;
  gap: 1rem;
  color: var(--teacher-ink);
}

.teacher-portal-nav {
  display: flex;
  gap: 0.25rem;
  padding: 0.3rem;
  overflow-x: auto;
  border: 1px solid #dfc66e;
  border-radius: 0.9rem;
  background: linear-gradient(90deg, #fffdf7, white);
  box-shadow: 0 6px 18px rgb(103 71 0 / 6%);
}

.teacher-portal-nav a {
  flex: 0 0 auto;
  padding: 0.65rem 0.9rem;
  border-radius: 0.65rem;
  color: var(--teacher-muted);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.teacher-portal-nav a:hover,
.teacher-portal-nav a.is-active {
  color: #2c1e00;
  background: #edc84d;
  box-shadow: inset 0 -2px #a87700;
}

.teacher-generator-shell {
  min-height: 100vh;
  padding: 1.5rem clamp(1rem, 4vw, 4rem) 4rem;
  background: #f6f7f5;
  color: #1d2924;
}

.teacher-generator-panel,
.teacher-generator-summary,
.teacher-generated-card {
  max-width: 1120px;
  margin: 1.25rem auto;
  border: 1px solid #dbe2dc;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgb(28 54 42 / 8%);
}

.teacher-generator-panel {
  padding: clamp(1rem, 3vw, 2rem);
}

.teacher-generator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.teacher-type-first {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1rem 0;
  border-radius: 14px;
  padding: 1rem;
  background: #f5f9f6;
}

.teacher-generator-guidance,
.teacher-selected-concepts {
  margin-bottom: 1rem;
  border: 1px solid #dbe2dc;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: #f8faf8;
}

.teacher-generator-guidance p,
.teacher-selected-concepts p {
  margin: 0.35rem 0 0;
  color: #496258;
}

.teacher-selected-concepts h2 {
  margin: 0;
  font-size: 1rem;
}

.teacher-generator-panel label {
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
}

.teacher-generator-panel input,
.teacher-generator-panel select {
  min-height: 44px;
  border: 1px solid #b8c6be;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  color: inherit;
}

.teacher-concept-picker,
.teacher-builder-filter {
  margin: 1.25rem 0;
  border: 0;
  padding: 0;
}

.teacher-concept-picker legend,
.teacher-builder-filter legend {
  width: 100%;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.teacher-concept-picker legend span {
  float: right;
  color: #47715e;
  font-size: 0.9rem;
}

.teacher-concept-actions {
  display: flex;
  justify-content: flex-end;
  margin: -0.25rem 0 0.75rem;
}

.teacher-concept-actions button {
  min-height: 38px;
  border: 1px solid #9eb3a8;
  border-radius: 9px;
  padding: 0.45rem 0.8rem;
  background: #fff;
  color: #28523f;
  font-weight: 750;
}

.teacher-concept-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.teacher-concept-option {
  grid-template-columns: auto 1fr !important;
  align-items: start;
  margin: 0.5rem 0;
  border: 1px solid #dbe2dc;
  border-radius: 12px;
  padding: 0.75rem;
}

.teacher-concept-option input,
.teacher-builder-filter input {
  min-height: auto;
}

.teacher-concept-option span,
.teacher-concept-option small,
.teacher-concept-option em {
  display: block;
}

.teacher-concept-option small {
  margin-top: 0.25rem;
  color: #567063;
  font-weight: 500;
}

.teacher-concept-option em {
  margin-top: 0.35rem;
  color: #815d20;
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 500;
}

.teacher-concept-option.is-unavailable {
  background: #f5f2eb;
}

.teacher-builder-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.teacher-builder-filter label {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.teacher-generator-warning {
  max-width: 1120px;
  margin: 0.75rem auto;
  border-left: 4px solid #b78320;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  background: #fff6dc;
  color: #593f10;
}

.teacher-generator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.teacher-generator-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  padding: 1rem 1.25rem;
}

.teacher-generator-details {
  flex-basis: 100%;
}

.teacher-generated-list {
  max-width: 960px;
  margin: 1.5rem auto;
}

.teacher-generated-card {
  overflow: hidden;
}

.teacher-generated-card > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: #eaf4ef;
  color: #1e5a41;
  font-weight: 800;
  text-transform: capitalize;
}

.teacher-generated-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.teacher-question-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #8aa6bc;
  border-radius: 999px;
  padding: 0.18rem 0.55rem 0.18rem 0.25rem;
  background: #eef6ff;
  color: #17496c;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.teacher-question-type-badge strong {
  display: inline-grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: 50%;
  background: #2477b3;
  color: #fff;
  font-size: 0.72rem;
}

.teacher-question-type-badge.is-v {
  border-color: #74a98d;
  background: #effaf3;
  color: #1e5a41;
}

.teacher-question-type-badge.is-m {
  border-color: #9a6700;
  background: #fff4c2;
  color: #684600;
}

.teacher-question-type-badge.is-c,
.teacher-concept-type-badges .is-c {
  border-color: #7054b7;
  background: #eee8ff;
  color: #3f247f;
}

.polygon-construction {
  display: grid;
  gap: 0.8rem;
}

.polygon-construction > header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.polygon-construction-surface {
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  overflow: hidden;
  border: 2px solid #8c96aa;
  border-radius: 0.85rem;
  background: #fbfcff;
}

.polygon-construction-surface svg {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  max-height: min(66vh, 36rem);
  touch-action: none;
  user-select: none;
}

.construction-polygon {
  fill: none;
  stroke: #3723a8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 8;
}

.construction-polygon.is-closed {
  fill: rgb(55 35 168 / 10%);
}

.construction-vertex {
  cursor: grab;
  fill: #fff;
  stroke: #3723a8;
  stroke-width: 8;
  outline: none;
}

.construction-vertex.is-first {
  fill: #ffd45f;
}

.construction-vertex:focus-visible {
  stroke: #c22444;
  stroke-width: 12;
}

.construction-vertex.is-dragging {
  cursor: grabbing;
}

.construction-assistance-guide {
  pointer-events: none;
  stroke: #7054b7;
  stroke-dasharray: 12 10;
  stroke-width: 3;
}

.construction-assistance-candidate {
  pointer-events: none;
}

.construction-assistance-candidate circle {
  fill: rgb(112 84 183 / 12%);
  stroke: #7054b7;
  stroke-dasharray: 7 6;
  stroke-width: 4;
}

.construction-right-angle-marker {
  fill: none;
  stroke: #7054b7;
  stroke-width: 4;
}

.polygon-construction-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

@media (prefers-reduced-motion: no-preference) {
  .construction-vertex {
    transition:
      cx 120ms linear,
      cy 120ms linear;
  }

  .construction-vertex.is-dragging {
    transition: none;
  }
}

.polygon-construction-result {
  font-weight: 800;
}

@media (max-width: 24rem) {
  .polygon-construction-actions button {
    flex: 1 1 calc(50% - 0.55rem);
  }
}

.teacher-concept-type-badges .is-m {
  border-color: #9a6700;
  background: #fff4c2;
  color: #684600;
}

.teacher-manipulative {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
  padding: clamp(1rem, 2.5vw, 1.4rem);
  overflow: hidden;
  border: 2px solid #d4a922;
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 100% 0, rgb(255 220 105 / 22%), transparent 15rem),
    linear-gradient(145deg, #fffef8, #fff9e8);
  box-shadow:
    0 0.35rem 0 #ead58f,
    0 1rem 2rem rgb(71 53 0 / 9%);
}

.teacher-manipulative > header,
.teacher-manipulative-actions,
.teacher-manipulative-stepper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.teacher-manipulative > header {
  justify-content: space-between;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #eadba8;
}

.teacher-manipulative-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
}

.teacher-manipulative-slot {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid #d7dce5;
  border-radius: 0.8rem;
  background: #fff;
}

.teacher-manipulative-tokens {
  display: flex;
  flex-wrap: wrap;
  min-height: 2.5rem;
  gap: 0.25rem;
  color: #1800ad;
  font-size: 1.35rem;
}

.teacher-manipulative-stepper {
  justify-content: center;
}

.teacher-manipulative-stepper button,
.teacher-fraction-manipulative button {
  min-width: 2.75rem;
  min-height: 2.75rem;
}

.teacher-manipulative-stepper output {
  min-width: 2ch;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
}

.teacher-fraction-manipulative {
  display: flex;
  width: min(100%, 34rem);
  min-height: 6.25rem;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 0.4rem 0 rgb(24 0 173 / 14%);
  touch-action: none;
}

.teacher-fraction-manipulative button {
  flex: 1;
  border: 2px solid #1800ad;
  border-radius: 0;
  background: linear-gradient(#fff, #f5f7ff);
  transition:
    background 140ms ease,
    transform 140ms ease;
}

.teacher-fraction-manipulative button.is-filled {
  background: repeating-linear-gradient(45deg, #45d5e9, #45d5e9 8px, #2b17ba 8px, #2b17ba 12px);
}

.teacher-fraction-manipulative button:hover,
.teacher-fraction-manipulative button:focus-visible {
  position: relative;
  z-index: 1;
  transform: translateY(-0.12rem);
  box-shadow: inset 0 0 0 3px #ffd45f;
}

.manipulative-workspace {
  position: relative;
  min-height: 13rem;
  overflow: hidden;
  border: 2px dashed #8b77d9;
  border-radius: 0.9rem;
  background-color: #fff;
  background-image:
    linear-gradient(#ece9ff 1px, transparent 1px),
    linear-gradient(90deg, #ece9ff 1px, transparent 1px);
  background-size: 2rem 2rem;
  touch-action: none;
}

.manipulative-workspace > span {
  position: absolute;
  right: 0.65rem;
  bottom: 0.5rem;
  left: 0.65rem;
  color: #5a5470;
  font-size: 0.82rem;
  pointer-events: none;
}

.polygon-workspace svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #1800ad;
  pointer-events: none;
}

.direct-placement,
.tally-manipulative {
  display: grid;
  gap: 0.75rem;
}

.piece-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.piece-palette button,
.placed-piece {
  min-width: 3rem;
  min-height: 3rem;
  border: 2px solid #1800ad;
  border-radius: 0.9rem;
  background: linear-gradient(145deg, #fff, #f3f0ff);
  color: #1800ad;
  font-weight: 800;
  box-shadow: 0 0.25rem 0 #c8c0eb;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease;
  touch-action: none;
  cursor: grab;
}

.piece-palette button.is-dragging {
  transform: scale(1.07) translateY(-0.12rem);
  background: #fff4c2;
  cursor: grabbing;
}

.manipulative-drag-ghost {
  position: fixed;
  z-index: 100;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 2px solid #1800ad;
  border-radius: 0.9rem;
  background: #fff4c2;
  color: #1800ad;
  box-shadow: 0 0.65rem 1.5rem rgb(24 0 173 / 22%);
  font-size: 1.35rem;
  font-weight: 900;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.drop-workspace {
  display: flex;
  align-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
}

.pictograph-builder {
  display: grid;
  gap: 0.85rem;
  touch-action: none;
  user-select: none;
}

.pictograph-title {
  display: grid;
  grid-template-columns: minmax(7rem, 0.8fr) minmax(13rem, 3fr);
  align-items: end;
  gap: 0.75rem;
  color: #16133d;
  text-align: center;
}

.pictograph-title strong {
  grid-column: 1 / -1;
  font-size: 1.15rem;
}

.pictograph-title span {
  grid-column: 2;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pictograph-chart {
  overflow: hidden;
  border: 2px solid #3d3190;
  border-radius: 1rem;
  background: white;
  box-shadow: 0 0.35rem 0 rgb(24 0 173 / 12%);
}

.pictograph-row {
  display: grid;
  grid-template-columns: minmax(7rem, 0.8fr) minmax(13rem, 3fr);
  min-height: 5rem;
}

.pictograph-row + .pictograph-row {
  border-top: 2px solid #d9d4ef;
}

.pictograph-row > strong {
  display: grid;
  place-items: center start;
  padding: 0.8rem 1rem;
  border-right: 2px solid #3d3190;
  background: linear-gradient(135deg, #fff5c7, #fff);
  color: #25195f;
  font-size: 1rem;
}

.pictograph-drop-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.7rem;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 3.35rem,
    rgb(61 49 144 / 8%) 3.35rem,
    rgb(61 49 144 / 8%) 3.4rem
  );
  transition:
    background-color 120ms ease,
    box-shadow 120ms ease;
}

.pictograph-drop-row.is-target {
  background-color: #eefcf9;
  box-shadow: inset 0 0 0 4px #16a085;
}

.pictograph-symbol,
.pictograph-tray button {
  width: 2.8rem;
  height: 2.8rem;
  display: inline-grid;
  place-items: center;
  flex: 0 0 2.8rem;
  padding: 0;
  border: 2px solid #c76a00;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff7a8, #ffbd2e);
  color: #7b3000;
  box-shadow: 0 0.2rem 0 #b65a00;
  font-size: 1.45rem;
  cursor: grab;
  touch-action: none;
}

.pictograph-symbol.is-snap-preview {
  opacity: 0.5;
  border-style: dashed;
  box-shadow: none;
}

.pictograph-key,
.pictograph-tray {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  padding: 0.65rem 0.9rem;
  border-radius: 0.85rem;
}

.pictograph-key {
  border: 2px solid #d7a500;
  background: #fff8cf;
  color: #4f3900;
}

.pictograph-key span {
  color: #c76a00;
  font-size: 1.5rem;
}

.pictograph-tray {
  width: 100%;
  flex-wrap: wrap;
  border: 2px dashed #7d69cf;
  background: #f6f3ff;
}

.pictograph-tray > span {
  color: #25195f;
  font-weight: 850;
}

.pictograph-tray small {
  color: #595272;
}

@media (max-width: 36rem) {
  .pictograph-title,
  .pictograph-row {
    grid-template-columns: minmax(5.5rem, 0.8fr) minmax(12rem, 3fr);
  }

  .pictograph-row > strong {
    padding: 0.65rem;
  }

  .pictograph-drop-row {
    overflow-x: auto;
  }
}

.bar-manipulative {
  display: grid;
  grid-template-columns: 2.25rem repeat(3, minmax(4.5rem, 1fr));
  align-items: end;
  gap: 0.75rem;
  min-height: 17rem;
  padding: 1rem 1rem 0;
  border-left: 3px solid #2f3441;
  border-bottom: 3px solid #2f3441;
  border-radius: 0.75rem 0.75rem 0 0;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent calc(var(--bar-grid-step) - 1px),
    #c8cedb calc(var(--bar-grid-step) - 1px),
    #c8cedb var(--bar-grid-step)
  );
  box-shadow: inset 0 0 0 1px rgb(47 52 65 / 8%);
}

.bar-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: start;
  height: 13rem;
  color: #4b5262;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
}

.bar-column {
  display: grid;
  grid-template-rows: 13rem auto;
  gap: 0.4rem;
  text-align: center;
}

.bar-track {
  position: relative;
  display: flex;
  align-items: end;
  min-width: 3.5rem;
  touch-action: none;
  cursor: ns-resize;
  border-radius: 0.65rem 0.65rem 0 0;
  transition: background 140ms ease;
  user-select: none;
}

.bar-track:hover,
.bar-track:focus-visible {
  outline: 3px solid #ffd45f;
  outline-offset: 2px;
  background: rgb(57 198 220 / 9%);
}

.bar-fill {
  position: relative;
  width: 100%;
  min-height: 0.35rem;
  border-radius: 0.4rem 0.4rem 0 0;
  background: linear-gradient(180deg, #5ee1ee, #2612b9);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 28%);
  transition: height 120ms ease-out;
}

.bar-fill span {
  position: absolute;
  top: -1.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 800;
}

.bar-track.is-dragging .bar-fill {
  transition: none;
}

.direct-category-row {
  display: grid;
  grid-template-columns: minmax(5rem, 0.7fr) minmax(10rem, 3fr) auto;
  align-items: center;
  gap: 0.65rem;
}

.tally-drop-zone {
  min-height: 3.5rem;
  padding: 0.65rem;
  border: 2px dashed #8b77d9;
  background: #fff;
  color: #1800ad;
  text-align: left;
  touch-action: none;
  border-radius: 0.85rem;
  box-shadow: inset 0 0 0 1px rgb(24 0 173 / 5%);
  transition:
    background 140ms ease,
    border-color 140ms ease;
}

.tally-drop-zone:hover,
.tally-drop-zone:focus-visible {
  border-color: #1800ad;
  background: #f5f2ff;
}

.tally-strokes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.15rem;
}

.tally-group {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(4, 0.32rem);
  align-items: center;
  justify-content: start;
  gap: 0.3rem;
  width: 2.18rem;
  height: 2rem;
}

.tally-group.is-remainder {
  width: auto;
  grid-template-columns: repeat(4, 0.32rem);
}

.tally-group i {
  display: block;
  border-radius: 999px;
  background: #1800ad;
  transform-origin: center;
}

.tally-vertical {
  width: 0.18rem;
  height: 1.85rem;
  justify-self: center;
  transform: rotate(-2deg);
}

.tally-diagonal {
  position: absolute;
  top: 0.87rem;
  left: -0.09rem;
  width: 2.4rem;
  height: 0.18rem;
  transform: rotate(-42deg);
}

.line-plot-manipulative {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
  align-items: end;
  min-height: 13rem;
  border-bottom: 3px solid #2f3441;
}

.line-plot-column {
  position: relative;
  display: grid;
  grid-template-rows: 10rem auto;
  align-items: end;
  min-height: 12rem;
  border: 0;
  border-right: 1px solid #d8dce5;
  background: transparent;
  touch-action: none;
  transition:
    background 120ms ease,
    box-shadow 120ms ease;
}

.line-plot-column.is-previewing {
  background: linear-gradient(to top, rgb(255 212 95 / 26%), transparent 72%);
  box-shadow: inset 0 -0.25rem 0 #d39b00;
}

.line-plot-stack {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  color: #1800ad;
  font-size: 1.5rem;
  font-weight: 900;
}

.line-plot-stack button {
  min-width: 2.75rem;
  min-height: 2.25rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.line-plot-stack button,
.line-plot-ghost {
  width: 2.75rem;
  height: 2.25rem;
  display: grid;
  flex: 0 0 2.25rem;
  place-items: center;
  line-height: 1;
}

.line-plot-ghost {
  color: #8b6d13;
  opacity: 0.58;
  pointer-events: none;
}

.manipulative-alternative {
  padding: 0.7rem;
  border: 1px solid #d7dce5;
  border-radius: 0.7rem;
  background: #fff;
}

.teacher-manipulative-actions button {
  min-height: 2.75rem;
}

@media (max-width: 520px) {
  .teacher-manipulative {
    padding: 0.75rem;
  }

  .teacher-manipulative-slots {
    grid-template-columns: 1fr;
  }

  .direct-category-row {
    grid-template-columns: 1fr;
  }

  .bar-manipulative {
    grid-template-columns: 1.75rem repeat(3, minmax(3.5rem, 1fr));
    padding-inline: 0.5rem;
  }
}

.teacher-question-type-badge.is-v strong {
  background: #2f8a5d;
}

.teacher-question-type-legend,
.teacher-concept-type-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.teacher-question-type-legend {
  margin: 0.4rem 0 0.85rem;
  color: #475569;
  font-size: 0.78rem;
}

.teacher-question-type-legend span {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
}

.teacher-question-type-legend strong,
.teacher-concept-type-badges b {
  display: inline-grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border-radius: 0.45rem;
  color: #fff;
  font-size: 0.72rem;
  font-style: normal;
}

.teacher-question-type-legend span:nth-child(1) strong,
.teacher-concept-type-badges .is-t {
  background: #2563eb;
}

.teacher-question-type-legend span:nth-child(2) strong,
.teacher-concept-type-badges .is-v {
  background: #15803d;
}

.teacher-question-type-legend span:nth-child(3) strong {
  background: #b7791f;
}

.teacher-question-type-legend span:nth-child(4) strong,
.teacher-concept-type-badges .is-i {
  background: #7e22ce;
}

.teacher-concept-type-badges {
  margin-top: 0.35rem;
}

.teacher-generator-guidance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.85rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid #f0cf7b;
  border-radius: 0.8rem;
  background: #fffaf0;
  color: #694b0c;
}

.teacher-generator-guidance p {
  margin: 0;
}

.teacher-generator-guidance button {
  flex: 0 0 auto;
}

.teacher-generated-card h2,
.teacher-generated-card dl,
.teacher-generated-card footer,
.teacher-generated-visual {
  margin: 1.25rem;
}

.teacher-generated-card h2 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.teacher-generated-card dl {
  display: grid;
  gap: 1rem;
}

.teacher-generated-card dt {
  color: #486055;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.teacher-generated-card dd {
  margin: 0.2rem 0 0;
}

.teacher-generated-visual {
  border: 1px dashed #8ba89a;
  border-radius: 12px;
  padding: 1rem;
  background: #f4faf7;
}

.teacher-generated-visual img {
  display: block;
  width: min(100%, 720px);
  max-height: 420px;
  margin: 0.85rem auto 0;
  object-fit: contain;
}

.teacher-generated-visual details {
  margin-top: 0.85rem;
  color: #486055;
  font-size: 0.9rem;
}

.teacher-generated-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px solid #e4e9e6;
  padding-top: 1rem;
}

@media (max-width: 760px) {
  .teacher-generator-grid {
    grid-template-columns: 1fr;
  }
}

.teacher-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.6rem 0.25rem;
}

.teacher-greeting h1 {
  margin: 0.15rem 0 0.25rem;
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  letter-spacing: -0.035em;
}

.teacher-greeting p {
  margin: 0;
  color: var(--teacher-muted);
  font-size: 1.02rem;
}

.teacher-greeting .eyebrow {
  color: var(--teacher-gold-dark);
}

.teacher-season-pill {
  padding: 0.55rem 0.85rem;
  border: 1px solid #e7d9aa;
  border-radius: 999px;
  color: var(--teacher-gold-dark);
  background: var(--teacher-gold-soft);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.teacher-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(19rem, 0.8fr);
  gap: 1rem;
}

.teacher-today-card,
.teacher-coming-card,
.teacher-attention-card,
.teacher-quick-card,
.teacher-advanced-tools {
  border: 1px solid var(--teacher-line);
  border-radius: 1.2rem;
  background: white;
  box-shadow: 0 10px 28px rgba(28, 33, 43, 0.055);
}

.teacher-today-card {
  min-height: 16.5rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border-color: #ddc778;
  border-top: 5px solid var(--teacher-gold);
  box-shadow: 0 14px 34px rgb(103 71 0 / 10%);
}

.teacher-coming-card,
.teacher-attention-card,
.teacher-quick-card {
  padding: 1.2rem;
}

.teacher-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.teacher-card-heading h2 {
  margin: 0;
  font-size: 1.15rem;
}

.teacher-card-heading a {
  color: var(--teacher-gold-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.teacher-status {
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.teacher-status--ready,
.teacher-status--complete {
  color: #17623f;
  background: #e8f7ef;
}

.teacher-status--attention {
  color: #765400;
  background: #fff2c2;
}

.teacher-status--live {
  color: #9a1836;
  background: #fde9ee;
}

.teacher-status--immediate {
  color: #8f1530;
  background: #fde1e8;
}

.teacher-today-event {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  min-height: 9rem;
}

.teacher-competition-mark {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.15rem;
  color: white;
  background: linear-gradient(145deg, #1800ad, #5038da);
  box-shadow: 0 9px 22px rgba(24, 0, 173, 0.2);
  font-weight: 900;
}

.teacher-today-event h3 {
  margin: 0.2rem 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.teacher-today-event p {
  margin: 0;
  color: var(--teacher-muted);
}

.teacher-primary-action {
  min-height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border: 1px solid #a87700;
  border-radius: 0.75rem;
  color: #251900;
  background: linear-gradient(135deg, #f5d35d, #dcae23);
  box-shadow: 0 8px 20px rgb(142 101 0 / 24%);
  font-weight: 850;
  text-decoration: none;
}

.teacher-event-list,
.teacher-attention-list {
  display: grid;
}

.teacher-event-list a,
.teacher-attention-list a {
  display: grid;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.6rem;
  padding: 0.7rem 0;
  border-top: 1px solid #efeee9;
  color: inherit;
  text-decoration: none;
}

.teacher-event-list a {
  grid-template-columns: 5.25rem 1fr auto;
}

.teacher-event-list a:first-child,
.teacher-attention-list a:first-child {
  border-top: 0;
}

.teacher-event-list time {
  color: var(--teacher-gold-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.teacher-event-list span {
  display: grid;
  color: var(--teacher-muted);
  font-size: 0.82rem;
}

.teacher-event-list strong {
  color: var(--teacher-ink);
}

.teacher-event-list small {
  color: #17623f;
  font-weight: 800;
}

.teacher-attention-card .teacher-card-heading > span {
  display: grid;
  place-items: center;
  min-width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  color: #765400;
  background: #fff2c2;
  font-weight: 900;
}

.teacher-attention-list a {
  grid-template-columns: auto 1fr auto;
}

.teacher-attention-list a > span {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.55rem;
  color: #765400;
  background: #fff2c2;
  font-weight: 900;
}

.teacher-attention-list small {
  color: var(--teacher-gold-dark);
  font-weight: 800;
}

.teacher-ready-state,
.teacher-empty-state {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 7rem;
  color: var(--teacher-muted);
}

.teacher-ready-state > span {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  color: #17623f;
  background: #e8f7ef;
  font-weight: 900;
}

.teacher-ready-state p,
.teacher-empty-state span {
  margin: 0.2rem 0 0;
}

.teacher-empty-state {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  border-radius: 0.9rem;
  background: #fafaf8;
}

.teacher-empty-state--compact {
  min-height: 6rem;
}

.teacher-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.teacher-quick-grid a {
  min-height: 4.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem;
  border: 1px solid #ebe8dd;
  border-radius: 0.85rem;
  color: var(--teacher-ink);
  background: #fffefa;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.teacher-quick-grid a:hover {
  transform: translateY(-2px);
  border-color: #dbc374;
  box-shadow: 0 8px 18px rgba(52, 42, 13, 0.08);
}

.teacher-quick-grid a > span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  border-radius: 0.6rem;
  color: var(--teacher-gold-dark);
  background: var(--teacher-gold-soft);
  font-weight: 900;
}

.teacher-quick-grid strong {
  font-size: 0.82rem;
}

.teacher-advanced-tools {
  box-shadow: none;
}

.teacher-advanced-tools > summary {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.1rem;
  cursor: pointer;
  list-style: none;
}

.teacher-advanced-tools > summary::-webkit-details-marker {
  display: none;
}

.teacher-advanced-tools > summary > span:first-child {
  display: grid;
}

.teacher-advanced-tools summary small {
  color: var(--teacher-muted);
  font-weight: 500;
}

.teacher-advanced-tools > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0 1.1rem 1.1rem;
}

.teacher-advanced-tools > div a {
  padding: 0.75rem;
  border-radius: 0.7rem;
  color: var(--teacher-gold-dark);
  background: var(--teacher-gold-soft);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 62rem) {
  .teacher-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .teacher-coming-card,
  .teacher-attention-card,
  .teacher-quick-card {
    min-height: auto;
  }

  .teacher-advanced-tools > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 42rem) {
  .teacher-greeting,
  .teacher-today-event {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .teacher-season-pill {
    white-space: normal;
  }

  .teacher-primary-action {
    width: 100%;
  }

  .teacher-event-list a {
    grid-template-columns: 4.5rem 1fr;
  }

  .teacher-event-list small {
    grid-column: 2;
  }

  .teacher-quick-grid,
  .teacher-advanced-tools > div {
    grid-template-columns: 1fr;
  }
}

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

/* Stage 11 Teacher Portal functional prototype */
.teacher-workflow {
  max-width: 76rem;
  margin: 0 auto;
}

.teacher-page-header,
.teacher-stadium-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0.25rem;
}

.teacher-page-header h1,
.teacher-stadium-header h1 {
  margin: 0.15rem 0 0.3rem;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.teacher-page-header p,
.teacher-stadium-header p {
  margin: 0;
  color: var(--teacher-muted);
}

.teacher-page-header--competition {
  padding: 1.2rem;
  border: 1px solid #e7d9aa;
  border-radius: 1.2rem;
  background: linear-gradient(120deg, #fffdf6, #fff7db);
}

.teacher-back-link {
  width: fit-content;
  color: var(--teacher-gold-dark);
  font-weight: 800;
  text-decoration: none;
}

.teacher-success-banner {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid #a9dcc0;
  border-radius: 0.85rem;
  color: #17623f;
  background: #e8f7ef;
}

.teacher-create-panel,
.teacher-import-panel,
.teacher-prompt-builder,
.teacher-inline-create,
.teacher-default-time,
.teacher-empty-panel {
  padding: 1.2rem;
  border: 1px solid var(--teacher-line);
  border-radius: 1rem;
  background: white;
  box-shadow: 0 10px 28px rgba(28, 33, 43, 0.05);
}

.teacher-create-panel {
  display: grid;
  gap: 1rem;
}

.teacher-create-panel h2,
.teacher-import-panel h2 {
  margin: 0;
}

.teacher-create-panel label,
.teacher-import-panel label,
.teacher-prompt-builder label,
.teacher-round-card label,
.teacher-team-card label,
.teacher-question-card label,
.teacher-inline-create label {
  display: grid;
  gap: 0.35rem;
  color: var(--teacher-ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.teacher-create-panel :where(input, select, textarea),
.teacher-import-panel :where(input, select, textarea),
.teacher-prompt-builder :where(input, select, textarea),
.teacher-round-card :where(input, select),
.teacher-team-card :where(input, select),
.teacher-question-card :where(input, select, textarea),
.teacher-inline-create input,
.teacher-default-time input {
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d8d6ce;
  border-radius: 0.7rem;
  color: var(--teacher-ink);
  background: white;
  font: inherit;
}

.teacher-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.teacher-form-note,
.teacher-muted {
  margin: 0;
  color: var(--teacher-muted);
}

.teacher-competition-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.teacher-competition-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 10rem;
  padding: 1.2rem;
  border: 1px solid var(--teacher-line);
  border-radius: 1.1rem;
  color: inherit;
  background: white;
  box-shadow: 0 9px 25px rgba(28, 33, 43, 0.05);
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.teacher-competition-card:hover {
  transform: translateY(-2px);
  border-color: #dbc374;
  box-shadow: 0 12px 30px rgba(60, 48, 12, 0.1);
}

.teacher-competition-card__mark {
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 1rem;
  color: #2b1e00;
  background: linear-gradient(145deg, #f8d76e, #d7a821);
  font-weight: 950;
}

.teacher-competition-card small,
.teacher-card-progress {
  color: var(--teacher-gold-dark);
  font-weight: 800;
}

.teacher-competition-card h2 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.25rem;
}

.teacher-competition-card p {
  margin: 0;
  color: var(--teacher-muted);
}

.teacher-card-progress {
  grid-column: 2;
  font-size: 0.8rem;
}

.teacher-default-time {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
}

.teacher-default-time > div {
  display: grid;
}

.teacher-default-time span,
.teacher-default-time small {
  color: var(--teacher-muted);
}

.teacher-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.5rem 0 0;
}

.teacher-section-heading h2 {
  margin: 0.15rem 0 0;
}

.teacher-section-heading a {
  color: var(--teacher-gold-dark);
  font-weight: 800;
}

.teacher-round-grid,
.teacher-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.teacher-round-card,
.teacher-team-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--teacher-line);
  border-radius: 1rem;
  background: white;
  box-shadow: 0 8px 22px rgba(28, 33, 43, 0.05);
}

.teacher-round-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.teacher-round-card h3,
.teacher-team-card h2 {
  margin: 0;
}

.teacher-round-card > small {
  color: var(--teacher-muted);
}

.teacher-card-action {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.8rem;
  border: 1px solid #d9bb56;
  border-radius: 0.65rem;
  color: var(--teacher-gold-dark);
  background: var(--teacher-gold-soft);
  font-weight: 850;
  text-decoration: none;
}

.teacher-inline-create {
  display: flex;
  align-items: end;
  gap: 0.75rem;
}

.teacher-inline-create label {
  flex: 1;
}

.teacher-team-card {
  border-top: 4px solid var(--team-color);
}

.teacher-team-card__header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.teacher-team-card__header > span {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.8rem;
  color: white;
  background: var(--team-color);
  font-weight: 900;
}

.teacher-team-card__header small {
  color: var(--teacher-muted);
}

.teacher-member-list {
  display: grid;
}

.teacher-member-list > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  border-top: 1px solid #efeee9;
}

.teacher-member-list button {
  padding: 0.3rem;
  border: 0;
  color: var(--teacher-gold-dark);
  background: transparent;
  cursor: pointer;
}

.teacher-member-list span {
  display: grid;
}

.teacher-member-list small {
  color: var(--teacher-gold-dark);
}

.teacher-question-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid var(--teacher-line);
  border-radius: 0.9rem;
  background: white;
}

.teacher-question-actions button {
  min-height: 2.6rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid #d9bb56;
  border-radius: 0.65rem;
  color: var(--teacher-gold-dark);
  background: var(--teacher-gold-soft);
  font-weight: 800;
  cursor: pointer;
}

.teacher-question-actions button[aria-selected='true'] {
  border-color: #a87900;
  color: #251900;
  background: linear-gradient(135deg, #f6d56b, #e0b531);
  box-shadow: inset 0 -2px 0 rgb(102 72 0 / 18%);
}

.teacher-question-actions span {
  margin-left: auto;
  color: var(--teacher-muted);
  font-size: 0.8rem;
}

.teacher-import-panel {
  display: grid;
  gap: 0.75rem;
}

.teacher-prompt-builder {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid #dfc36f;
  border-radius: 1rem;
  background: linear-gradient(145deg, #fffefa, #fff8df);
  box-shadow: 0 10px 28px rgba(60, 48, 12, 0.07);
}

.teacher-prompt-builder h2,
.teacher-prompt-builder p {
  margin: 0.15rem 0 0;
}

.teacher-prompt-builder p {
  color: var(--teacher-muted);
}

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

.teacher-prompt-builder > label > textarea {
  min-height: 15rem;
  resize: vertical;
  line-height: 1.55;
}

.teacher-prompt-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.teacher-prompt-actions button {
  min-height: 2.7rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid #d9bb56;
  border-radius: 0.65rem;
  color: var(--teacher-gold-dark);
  background: white;
  font-weight: 850;
  cursor: pointer;
}

.teacher-prompt-actions .teacher-primary-action {
  color: #251900;
  background: linear-gradient(135deg, #f2c94c, #d7a821);
}

.teacher-prompt-actions span {
  color: var(--teacher-muted);
  font-size: 0.82rem;
}

.teacher-import-panel p {
  margin: 0;
  color: var(--teacher-muted);
}

.teacher-import-panel textarea {
  min-height: 10rem;
  resize: vertical;
}

.teacher-import-panel .teacher-primary-action {
  width: fit-content;
  border: 0;
}

.teacher-nmaif-import {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--teacher-border, #d9dee8);
}

.teacher-nmaif-dropzone {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding: 1.5rem;
  border: 2px dashed #b8a56a;
  border-radius: 14px;
  background: #fffdf6;
  text-align: center;
}

.teacher-nmaif-dropzone input[type='file'] {
  display: block;
  max-width: min(100%, 20rem);
  margin-top: 0.5rem;
}

.teacher-nmaif-file-summary,
.teacher-nmaif-review-heading,
.teacher-nmaif-block > div:first-child,
.teacher-nmaif-block-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.teacher-nmaif-review {
  display: grid;
  grid-template-columns: minmax(14rem, 0.8fr) minmax(0, 1.4fr);
  gap: 1rem;
  align-items: start;
}

.teacher-nmaif-review img,
.teacher-nmaif-block img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 0.75rem;
  border: 1px solid #d7dbe3;
  border-radius: 10px;
  background: white;
}

.teacher-nmaif-blocks {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

.teacher-nmaif-block {
  padding: 1rem;
  border: 1px solid #d7dbe3;
  border-radius: 12px;
  background: white;
}

.teacher-nmaif-block dl,
.teacher-nmaif-block dd {
  margin: 0.75rem 0 0;
}

.teacher-nmaif-card-metadata,
.teacher-question-visual-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin: 0.75rem 0;
  padding: 0.7rem;
  border-radius: 8px;
  background: #f7f8fb;
}

.teacher-nmaif-block progress {
  width: 100%;
  accent-color: #217a53;
}

.teacher-nmaif-detail {
  grid-column: 1 / -1;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #d8c894;
  border-radius: 18px;
  background: #fffdf7;
}

.teacher-nmaif-detail > header,
.teacher-student-safe-preview > header,
.teacher-nmaif-review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.teacher-nmaif-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.teacher-nmaif-compare img,
.teacher-student-safe-preview img,
.teacher-nmaif-card-metadata img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d6dbe4;
  border-radius: 10px;
  background: white;
}

.teacher-nmaif-visual-review {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 1rem;
}

.teacher-nmaif-visual-review > section {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px solid #d6dbe4;
  border-radius: 12px;
  background: white;
}

.teacher-nmaif-crop-stage {
  position: relative;
}

.teacher-nmaif-crop-overlay {
  position: absolute;
  box-sizing: border-box;
  border: 3px solid #0b8f55;
  border-radius: 4px;
  background: rgb(11 143 85 / 10%);
  box-shadow: 0 0 0 2px white;
  pointer-events: none;
}

.teacher-nmaif-visual-status {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}

.teacher-nmaif-visual-status > div {
  display: grid;
  grid-template-columns: minmax(9rem, 0.8fr) minmax(0, 1.2fr);
  gap: 0.55rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #e5e8ee;
}

.teacher-nmaif-visual-status dt {
  font-weight: 700;
}

.teacher-nmaif-visual-status dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.teacher-nmaif-import-summary {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid #d6dbe4;
  border-radius: 14px;
  background: #fffdf7;
}

.teacher-nmaif-import-summary dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.55rem;
  margin: 0;
}

.teacher-nmaif-import-summary dl > div {
  display: grid;
  gap: 0.2rem;
  padding: 0.65rem;
  border: 1px solid #e5e8ee;
  border-radius: 10px;
  background: white;
}

.teacher-nmaif-import-summary dt {
  font-size: 0.78rem;
  font-weight: 700;
  color: #5c6472;
}

.teacher-nmaif-import-summary dd {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.teacher-nmaif-import-summary dl > .is-ready {
  border-color: #9fd2b6;
  background: #f2fbf6;
}

.teacher-nmaif-import-summary dl > .is-needs-review {
  border-color: #e4c96f;
  background: #fffaf0;
}

.teacher-nmaif-import-summary dl > .is-error {
  border-color: #e2a6a6;
  background: #fff5f5;
}

.teacher-nmaif-summary-actions,
.teacher-nmaif-teacher-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.teacher-nmaif-review-stage-four {
  grid-template-columns: minmax(0, 1fr);
}

.teacher-nmaif-review-stage-four > .teacher-nmaif-original-sheet {
  display: none;
}

.teacher-nmaif-review-stage-four .teacher-nmaif-review-heading > button {
  display: none;
}

.teacher-nmaif-question-card {
  padding: 0;
  overflow: hidden;
  border-width: 2px;
  border-color: #8bc6a5;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgb(28 37 48 / 7%);
}

.teacher-nmaif-question-card.is-needs-review {
  border-color: #d8b84f;
}

.teacher-nmaif-question-card.is-error {
  border-color: #c94f4f;
}

.teacher-nmaif-question-card > :not(.teacher-nmaif-teacher-card) {
  display: none;
}

.teacher-nmaif-question-card.is-details-open > :not(.teacher-nmaif-teacher-card) {
  display: block;
  margin: 0 1.15rem 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid #dde1e7;
}

.teacher-nmaif-question-card.is-details-open > .teacher-nmaif-block-actions,
.teacher-nmaif-question-card.is-details-open > div:first-of-type {
  display: flex;
}

.teacher-nmaif-teacher-card {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
}

.teacher-nmaif-teacher-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.teacher-nmaif-teacher-card h3 {
  max-width: 54rem;
  margin: 0.2rem 0 0;
  font-size: 1.15rem;
  line-height: 1.45;
}

.teacher-nmaif-status {
  flex: none;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: #145d3a;
  background: #e7f7ee;
  font-size: 0.8rem;
  font-weight: 800;
}

.teacher-nmaif-status.is-needs-review {
  color: #6d5200;
  background: #fff1bd;
}

.teacher-nmaif-status.is-error {
  color: #8e2323;
  background: #ffe2e2;
}

.teacher-nmaif-question-card img.teacher-nmaif-question-visual {
  width: min(100%, 32rem);
  max-height: 18rem;
  margin: 0;
  object-fit: contain;
}

.teacher-nmaif-answer-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 2rem;
  margin: 0;
  padding-left: 1.75rem;
}

.teacher-nmaif-question-facts {
  display: grid;
  grid-template-columns: minmax(12rem, 2fr) repeat(2, minmax(8rem, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.teacher-nmaif-question-facts > div {
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: #f6f7f9;
}

.teacher-nmaif-question-facts dt {
  color: #626a77;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.teacher-nmaif-question-facts dd {
  margin: 0.25rem 0 0;
  font-weight: 700;
}

.teacher-nmaif-teacher-warning {
  padding: 0.8rem;
  border-radius: 10px;
  color: #654d00;
  background: #fff7dc;
}

.teacher-nmaif-question-card.is-error .teacher-nmaif-teacher-warning {
  color: #7b2525;
  background: #fff0f0;
}

.teacher-nmaif-teacher-warning p,
.teacher-nmaif-approved {
  margin: 0.25rem 0 0;
}

.teacher-nmaif-approved {
  color: #176a43;
  font-weight: 800;
}

.teacher-nmaif-native-card,
.teacher-student-safe-preview {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid #d6dbe4;
  border-radius: 14px;
  background: white;
}

.teacher-nmaif-native-card label,
.teacher-nmaif-choice label,
.teacher-nmaif-native-choices label {
  display: grid;
  gap: 0.3rem;
  font-weight: 700;
}

.teacher-nmaif-choice {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 0.6rem;
}

.teacher-nmaif-confidence dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.5rem;
}

.teacher-nmaif-confidence dl div {
  padding: 0.5rem;
  border-radius: 8px;
  background: #f4f6f9;
}

.teacher-nmaif-native-choices {
  display: grid;
  gap: 0.5rem;
  padding: 0.8rem;
  border: 1px solid #d6dbe4;
  border-radius: 10px;
}

@media (max-width: 900px) {
  .teacher-nmaif-visual-review {
    grid-template-columns: 1fr;
  }

  .teacher-nmaif-compare {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .teacher-nmaif-review {
    grid-template-columns: 1fr;
  }

  .teacher-nmaif-question-facts,
  .teacher-nmaif-answer-choices {
    grid-template-columns: 1fr;
  }
}

.teacher-studio-bank-list {
  display: grid;
  gap: 0.55rem;
}

.teacher-studio-bank-list > div {
  display: grid;
  gap: 0.18rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--teacher-line);
  border-radius: 0.75rem;
  background: #fffefa;
}

.teacher-studio-bank-list span {
  color: var(--teacher-gold-dark);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.teacher-question-list {
  display: grid;
  gap: 0.8rem;
}

.teacher-question-card {
  display: grid;
  grid-template-columns: 5rem 1fr;
  overflow: hidden;
  border: 1px solid #238651;
  border-left-width: 5px;
  border-radius: 1rem;
  background: white;
}

.teacher-question-card--needs-review {
  border-color: #d89200;
}

.teacher-question-card--cannot-organize {
  border-color: #b4233f;
}

.teacher-question-card__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 0.5rem;
  background: #faf9f5;
}

.teacher-question-card__body {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.teacher-question-card__body textarea {
  min-height: 5rem;
  resize: vertical;
}

.teacher-question-image {
  min-height: 12rem;
  border: 1px solid #e4e1d7;
  border-radius: 0.8rem;
  background-color: #faf9f5;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.teacher-question-card__status {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #167343;
  font-size: 0.8rem;
  font-weight: 850;
}

.teacher-question-card__status > span:first-child {
  width: fit-content;
  padding: 0.2rem 0.48rem;
  border-radius: 999px;
  color: #12683b;
  background: #e2f5e9;
}

.teacher-question-card--needs-review .teacher-question-card__status > span:first-child {
  color: #765400;
  background: #fff2c2;
}

.teacher-question-card--cannot-organize .teacher-question-card__status > span:first-child {
  color: #98243a;
  background: #fde9ee;
}

.teacher-question-issue {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  color: #765400;
  background: #fff2c2;
  font-size: 0.85rem;
  font-weight: 750;
}

.teacher-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #d7a821;
  border-radius: 0.85rem;
  color: #2b1e00;
  background: #fff7db;
  box-shadow: 0 10px 25px rgba(60, 48, 12, 0.12);
}

.teacher-selection-bar .teacher-primary-action {
  border: 0;
}

.teacher-question-workspace-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  color: var(--teacher-muted);
  font-size: 0.8rem;
}

.teacher-question-workspace-actions button {
  min-height: 2.5rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--teacher-line);
  border-radius: 0.65rem;
  color: var(--teacher-ink);
  background: white;
  font-weight: 800;
  cursor: pointer;
}

.teacher-bank-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.teacher-bank-summary > div {
  display: grid;
  gap: 0.15rem;
  padding: 1rem;
  border: 1px solid var(--teacher-line);
  border-radius: 0.85rem;
  background: white;
}

.teacher-bank-summary strong {
  font-size: 1.4rem;
}

.teacher-bank-summary span,
.teacher-bank-list small,
.teacher-bank-list p {
  color: var(--teacher-muted);
}

.teacher-bank-list {
  display: grid;
  gap: 0.75rem;
}

.teacher-bank-list article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--teacher-line);
  border-left: 5px solid var(--teacher-gold);
  border-radius: 0.9rem;
  background: white;
}

.teacher-bank-list article > span:first-child {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.7rem;
  color: var(--teacher-gold-dark);
  background: var(--teacher-gold-soft);
  font-weight: 900;
}

.teacher-bank-list h2,
.teacher-bank-list p {
  margin: 0.2rem 0;
  font-size: 1rem;
}

.teacher-question-card--cannot-organize .teacher-question-issue {
  color: #98243a;
  background: #fde9ee;
}

.teacher-question-card__status button {
  min-width: 2rem;
  min-height: 2rem;
  border: 0;
  border-radius: 0.4rem;
  color: var(--teacher-gold-dark);
  background: var(--teacher-gold-soft);
  cursor: pointer;
}

.teacher-empty-panel {
  display: grid;
  gap: 0.25rem;
  min-height: 9rem;
  place-content: center;
  text-align: center;
}

.teacher-empty-panel span {
  color: var(--teacher-muted);
}

.teacher-stadium-header {
  padding: 1.2rem;
  border-radius: 1.2rem;
  color: white;
  background: linear-gradient(130deg, #172033, #34323a);
}

.teacher-stadium-header p,
.teacher-stadium-header .eyebrow {
  color: #f5dda0;
}

.teacher-live-pill {
  padding: 0.55rem 0.75rem;
  border: 1px solid #dfc36f;
  border-radius: 999px;
  color: #261b00;
  background: #f3cd5d;
  font-size: 0.8rem;
  font-weight: 900;
}

.teacher-stadium-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.teacher-stadium-summary > div {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem;
  border: 1px solid var(--teacher-line);
  border-radius: 0.85rem;
  background: white;
}

.teacher-stadium-summary strong {
  font-size: 1.65rem;
}

.teacher-stadium-summary span {
  color: var(--teacher-muted);
  font-size: 0.8rem;
}

.teacher-stadium-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--teacher-line);
  border-radius: 1rem;
  background: white;
}

.teacher-stadium-table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
}

.teacher-stadium-table :where(th, td) {
  padding: 0.75rem;
  border-bottom: 1px solid #eceae3;
  text-align: center;
}

.teacher-stadium-table th:first-child {
  text-align: left;
}

.stadium-indicator {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0.65rem;
  font-weight: 900;
  cursor: pointer;
}

.stadium-indicator--correct {
  color: #17623f;
  background: #e8f7ef;
}
.stadium-indicator--incorrect {
  color: #98243a;
  background: #fde9ee;
}
.stadium-indicator--attention {
  width: auto;
  min-width: 3.75rem;
  padding-inline: 0.45rem;
  color: #765400;
  background: #fff2c2;
}
.stadium-indicator--immediate {
  color: #98243a;
  background: #fde9ee;
}
.stadium-indicator--waiting {
  color: #647084;
  background: #f1f2f4;
}

.teacher-issue-drawer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #e4bd42;
  border-radius: 0.9rem;
  color: #4f3a00;
  background: #fff7db;
}

.teacher-issue-drawer p {
  margin: 0.2rem 0 0;
}

.teacher-issue-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin: 0.65rem 0;
}

.teacher-issue-details div {
  display: grid;
  gap: 0.1rem;
}

.teacher-issue-details dt {
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.teacher-issue-details dd {
  margin: 0;
  font-weight: 800;
}

.teacher-stadium-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--teacher-muted);
  font-size: 0.82rem;
}

@media (max-width: 62rem) {
  .teacher-round-grid,
  .teacher-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-form-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 42rem) {
  .teacher-page-header,
  .teacher-stadium-header,
  .teacher-inline-create,
  .teacher-issue-drawer {
    align-items: stretch;
    flex-direction: column;
  }

  .teacher-competition-cards,
  .teacher-round-grid,
  .teacher-team-grid,
  .teacher-stadium-summary {
    grid-template-columns: 1fr;
  }

  .teacher-default-time {
    grid-template-columns: 1fr;
  }

  .teacher-question-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .teacher-selection-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .teacher-bank-summary,
  .teacher-bank-list article {
    grid-template-columns: 1fr;
  }

  .teacher-prompt-options {
    grid-template-columns: 1fr;
  }

  .teacher-prompt-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .teacher-question-actions span {
    margin-left: 0;
  }

  .teacher-question-card {
    grid-template-columns: 3.5rem 1fr;
  }
}

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

/* Student Competition Stadium View — isolated from administration and Question Engine surfaces */
.stadium-page {
  --stadium-blue: #0968d9;
  --stadium-blue-deep: #07348f;
  --stadium-sky: #8edcff;
  --stadium-yellow: #ffd84f;
  --stadium-green: #36a94f;
  --stadium-ink: #101b45;
  position: relative;
  min-height: calc(100vh - 5.5rem);
  padding-bottom: 0;
  overflow: hidden;
  background: #dff4ff;
  color: var(--stadium-ink);
}
.stadium-scene {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 9rem);
  padding: clamp(1rem, 2.5vw, 2rem);
  overflow: hidden;
  background: linear-gradient(#9ce1ff 0 36%, #eaf9ff 36% 40%, #2fa34c 40%);
}
.stadium-scene__sky,
.stadium-scene__stands,
.stadium-scene__crowd,
.stadium-scene__field {
  position: absolute;
  pointer-events: none;
}
.stadium-scene__sky {
  inset: 0 0 auto;
  z-index: -4;
  height: 43%;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 18%, rgb(255 255 255 / 92%) 0 2.8rem, transparent 2.9rem),
    linear-gradient(#7dd5ff, #e7f8ff);
}
.stadium-scene__sky::before,
.stadium-scene__sky::after {
  position: absolute;
  top: 1.5rem;
  width: 0.7rem;
  height: 13rem;
  border-radius: 999px;
  background: #e8f2fa;
  box-shadow: 0 0 0 0.35rem rgb(255 255 255 / 48%);
  content: '';
}
.stadium-scene__sky::before {
  left: 5%;
  transform: rotate(-13deg);
}
.stadium-scene__sky::after {
  right: 5%;
  transform: rotate(13deg);
}
.stadium-scene__sky i {
  position: absolute;
  top: 1rem;
  width: 5.5rem;
  height: 2.2rem;
  border-radius: 0.35rem;
  background:
    radial-gradient(circle, #fff 0 0.2rem, transparent 0.23rem) 0 0 / 1.1rem 1.1rem,
    #dbeaf4;
  box-shadow: 0 0 1.2rem white;
}
.stadium-scene__sky i:nth-child(1) {
  left: 2.5%;
  transform: rotate(-9deg);
}
.stadium-scene__sky i:nth-child(2) {
  top: 5rem;
  left: 7%;
  transform: rotate(-9deg);
}
.stadium-scene__sky i:nth-child(3) {
  right: 2.5%;
  transform: rotate(9deg);
}
.stadium-scene__sky i:nth-child(4) {
  top: 5rem;
  right: 7%;
  transform: rotate(9deg);
}
.stadium-scene__stands {
  inset: 24% -3% auto;
  z-index: -3;
  height: 31%;
  display: flex;
  align-items: start;
  justify-content: space-around;
  padding: 1rem 12%;
  border: 0.75rem solid #f7fbff;
  border-radius: 50% 50% 0 0 / 28% 28% 0 0;
  background: repeating-linear-gradient(
    90deg,
    #1c5dbd 0 1.5rem,
    #ffd84f 1.5rem 2.4rem,
    #f44968 2.4rem 3.9rem,
    #fff 3.9rem 4.7rem
  );
  box-shadow: inset 0 -3rem 0 rgb(11 53 132 / 48%);
}
.stadium-scene__stands span {
  padding: 0.35rem 0.65rem;
  border-radius: 0.25rem;
  background: white;
  color: var(--stadium-blue-deep);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.07em;
}
.stadium-scene__crowd {
  inset: 33% 0 auto;
  z-index: -2;
  height: 15%;
  background:
    radial-gradient(circle, #142d72 0 0.16rem, transparent 0.18rem) 0 0 / 1.5rem 1.35rem,
    radial-gradient(circle, #ffdc59 0 0.16rem, transparent 0.18rem) 0.7rem 0.5rem / 1.6rem 1.4rem,
    radial-gradient(circle, #fff 0 0.15rem, transparent 0.17rem) 0.25rem 0.8rem / 1.4rem 1.25rem;
  opacity: 0.9;
}
.stadium-scene__field {
  inset: 47% -12% -25%;
  z-index: -1;
  border: 0.22rem solid rgb(255 255 255 / 82%);
  border-radius: 50% 50% 0 0;
  background:
    linear-gradient(90deg, transparent 49.8%, rgb(255 255 255 / 50%) 50%, transparent 50.2%),
    repeating-linear-gradient(90deg, #43b95b 0 8%, #35a84e 8% 16%);
  box-shadow: inset 0 0 0 2rem rgb(255 255 255 / 8%);
}
.stadium-preview-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  overflow-x: auto;
  border-bottom: 1px solid #c7d8e9;
  background: white;
  color: var(--ink);
  font-size: 0.72rem;
  white-space: nowrap;
}
.stadium-preview-nav > strong {
  color: #6c748c;
  text-transform: uppercase;
}
.stadium-preview-nav > div {
  display: flex;
  gap: 0.35rem;
}
.stadium-preview-nav a {
  padding: 0.3rem 0.55rem;
  border: 1px solid #d7deec;
  border-radius: 999px;
  color: #24304f;
  font-weight: 800;
  text-decoration: none;
}
.stadium-preview-nav a[aria-current='page'] {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}
.stadium-waiting-card,
.stadium-complete-card,
.stadium-results-card {
  width: min(52rem, calc(100% - 1rem));
  min-height: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.45rem;
  margin: 0 auto;
  padding: clamp(1.15rem, 2.5vw, 2rem);
  border: 0.4rem solid white;
  border-radius: 2.25rem;
  background:
    radial-gradient(circle at 80% 8%, rgb(255 216 79 / 24%), transparent 12rem),
    rgb(255 255 255 / 96%);
  box-shadow:
    0 1.2rem 0 rgb(4 47 128 / 18%),
    0 2rem 4rem rgb(2 35 91 / 25%);
  text-align: center;
}
.stadium-waiting-card h1,
.stadium-complete-card h1,
.stadium-results-card h1 {
  margin: 0;
  color: var(--stadium-blue-deep);
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 0.95;
}
.stadium-waiting-card > p,
.stadium-complete-card > p,
.stadium-results-card > p {
  max-width: 38rem;
  margin: 0;
  color: #4f5b75;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}
.stadium-eyebrow {
  color: #0b64bc;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stadium-competition-mark {
  width: 5.2rem;
  height: 5.2rem;
  display: grid;
  place-items: center;
  border: 0.35rem solid white;
  border-radius: 1.35rem;
  background: linear-gradient(145deg, #0b71df, #142e94);
  color: white;
  box-shadow:
    0 0.45rem 0 #061f69,
    0 0 0 0.25rem var(--stadium-yellow);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 950;
}
.stadium-countdown {
  min-width: 8rem;
  padding: 0.45rem 1rem;
  border: 0.25rem solid #cfe3f7;
  border-radius: 1.25rem;
  background: #102154;
  color: #fff;
  box-shadow: inset 0 0 1.5rem rgb(68 181 255 / 28%);
  font-family: var(--font-mono);
  font-size: clamp(3.25rem, 8vw, 5rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  line-height: 1;
}
.stadium-student {
  min-width: 14rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid #cfe0ee;
  border-radius: 1rem;
  background: rgb(255 255 255 / 95%);
  box-shadow: 0 0.4rem 1rem rgb(4 43 105 / 10%);
  color: var(--stadium-ink);
  text-align: left;
}
.stadium-student__avatar {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 0.18rem solid white;
  border-radius: 50%;
  background: linear-gradient(145deg, #13b9df, #174fc5);
  color: white;
  box-shadow: 0 0 0 0.15rem #8fdcf0;
  font-size: 0.78rem;
  font-weight: 950;
}
.stadium-student > span:last-child {
  display: grid;
  min-width: 0;
}
.stadium-student strong {
  font-size: 0.9rem;
}
.stadium-student small {
  overflow: hidden;
  color: #5a6680;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stadium-nex {
  display: grid;
  grid-template-columns: auto minmax(8rem, 1fr);
  align-items: center;
  gap: 0.55rem;
  max-width: 20rem;
  padding: 0.4rem 0.75rem 0.4rem 0.35rem;
  border: 1px solid #d8e5f0;
  border-radius: 1.1rem;
  background: #fffbea;
  box-shadow: 0 0.35rem 1rem rgb(42 51 92 / 10%);
}
.stadium-nex img {
  width: 3.8rem;
  height: 3.8rem;
  object-fit: contain;
  border-radius: 0.75rem;
}
.stadium-nex p {
  margin: 0;
  color: #172766;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.35;
}
.stadium-live-layout {
  width: min(78rem, 100%);
  min-height: calc(100vh - 12.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  grid-template-rows: auto auto 1fr;
  gap: 0.8rem;
  margin: 0 auto;
}
.stadium-scoreboard {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 2fr 0.65fr 0.9fr 1fr auto;
  align-items: stretch;
  overflow: hidden;
  border: 0.24rem solid white;
  border-radius: 1.2rem;
  background: #10235b;
  box-shadow: 0 0.7rem 1.8rem rgb(0 31 83 / 25%);
  color: white;
}
.stadium-scoreboard > div {
  display: grid;
  align-content: center;
  gap: 0.15rem;
  padding: 0.65rem 0.9rem;
  border-right: 1px solid rgb(255 255 255 / 18%);
}
.stadium-scoreboard small,
.stadium-release-clock small,
.stadium-results-grid small,
.stadium-award-unlock small {
  color: #a9d9ff;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stadium-scoreboard strong {
  color: white;
  font-size: clamp(0.82rem, 1.5vw, 1.1rem);
}
.stadium-scoreboard > span {
  display: grid;
  place-items: center;
  padding: 0.65rem 1rem;
  background: var(--stadium-yellow);
  color: #302100;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.07em;
}
.stadium-clock strong {
  color: #fff;
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stadium-clock.is-near-end {
  background: #52310c;
  box-shadow: inset 0 0 0 0.18rem #ffc85a;
}
.stadium-live-layout > .stadium-student,
.stadium-live-layout > .stadium-nex {
  grid-column: 2;
}
.stadium-live-layout > .stadium-student {
  grid-row: 2;
}
.stadium-live-layout > .stadium-nex {
  grid-row: 3;
  align-self: start;
}
.stadium-question,
.stadium-loading {
  grid-column: 1;
  grid-row: 2 / span 2;
}
.stadium-question {
  align-self: stretch;
  overflow: hidden;
  border: 0.32rem solid white;
  border-radius: 1.8rem;
  background: rgb(255 255 255 / 98%);
  box-shadow:
    0 0.75rem 0 rgb(5 61 137 / 18%),
    0 1.5rem 3rem rgb(5 46 105 / 20%);
}
.stadium-question > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(90deg, #e9f5ff, #fff8d9);
  color: #31415f;
  font-size: 0.72rem;
  font-weight: 850;
}
.stadium-question > header span {
  color: var(--stadium-blue-deep);
  font-weight: 950;
}
.stadium-question__body {
  display: grid;
  gap: clamp(0.75rem, 1.7vh, 1.15rem);
  padding: clamp(1rem, 2.4vw, 1.75rem);
}
.stadium-question__body h1 {
  max-width: 34ch;
  margin: 0 auto;
  color: var(--stadium-ink);
  font-size: clamp(1.65rem, 3.2vw, 2.8rem);
  line-height: 1.13;
  text-align: center;
}
.stadium-question__body > .stadium-eyebrow {
  text-align: center;
}
.stadium-question__diagram {
  max-height: 13rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d9e5ee;
  border-radius: 1rem;
  background: #f4f9fc;
}
.stadium-question__diagram img {
  width: auto;
  max-width: 100%;
  height: min(12rem, 24vh);
  object-fit: contain;
}
.stadium-answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  border: 0;
}
.stadium-answers legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.stadium-answers button {
  min-height: 4.15rem;
  display: grid;
  grid-template-columns: 2.3rem 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.8rem;
  border: 0.16rem solid #cfd9e7;
  border-radius: 1rem;
  background: white;
  color: var(--stadium-ink);
  box-shadow: 0 0.3rem 0 #d8e0ea;
  text-align: left;
}
.stadium-answers button > span {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 0.7rem;
  background: #eaf3ff;
  color: #0b55b0;
  font-weight: 950;
}
.stadium-answers button strong {
  font-size: clamp(0.85rem, 1.6vw, 1rem);
}
.stadium-answers button small {
  color: #075e3b;
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}
.stadium-answers button:hover:not(:disabled) {
  border-color: #4292e6;
  background: #f4faff;
  color: var(--stadium-ink);
  transform: translateY(-1px);
}
.stadium-answers button.is-selected {
  border-color: #16845b;
  background: #eafaf3;
  box-shadow:
    0 0.3rem 0 #8acdb5,
    inset 0 0 0 0.12rem white;
}
.stadium-answers button.is-selected > span {
  background: #16845b;
  color: white;
}
.stadium-answers button:disabled {
  cursor: default;
  opacity: 1;
}
.stadium-text-answer {
  display: grid;
  gap: 0.45rem;
  color: var(--stadium-ink);
  font-size: 0.78rem;
  font-weight: 900;
}
.stadium-text-answer input {
  min-height: 4rem;
  border: 0.16rem solid #a9bdd4;
  border-radius: 1rem;
  background: white;
  color: var(--stadium-ink);
  font-size: 1.15rem;
}
.stadium-question__actions {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
}
.stadium-question__actions button {
  min-width: 11rem;
  min-height: 3.25rem;
  padding: 0.65rem 1rem;
  border-radius: 0.9rem;
  background: linear-gradient(#1687ef, #075bbb);
  box-shadow: 0 0.3rem 0 #063879;
  font-size: 0.86rem;
  font-weight: 950;
}
.stadium-question__actions button.is-secondary {
  background: linear-gradient(#ffd95b, #efb725);
  box-shadow: 0 0.3rem 0 #a16a00;
  color: #322000;
}
.stadium-question__actions button:disabled {
  box-shadow: none;
}
.stadium-submission-status {
  min-height: 1.3rem;
  margin: 0;
  color: #4d5c74;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}
.stadium-loading {
  min-height: 28rem;
  display: grid;
  place-items: center;
  place-content: center;
  gap: 0.8rem;
  border: 0.32rem solid white;
  border-radius: 1.8rem;
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 1.5rem 3rem rgb(5 46 105 / 20%);
  text-align: center;
}
.stadium-loading > span {
  width: 3.2rem;
  height: 3.2rem;
  border: 0.35rem solid #d5e9f8;
  border-top-color: var(--stadium-blue);
  border-radius: 50%;
  animation: stadium-spin 0.9s linear infinite;
}
.stadium-loading h1 {
  margin: 0;
  color: var(--stadium-blue-deep);
  font-size: clamp(2rem, 4vw, 3rem);
}
.stadium-loading p {
  margin: 0;
  color: #556079;
}
.stadium-connection {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.55rem 0.8rem;
  border: 2px solid #d99018;
  border-radius: 0.85rem;
  background: #fff5d9;
  color: #4b3202;
  font-size: 0.78rem;
}
.stadium-live-layout.has-connection {
  grid-template-rows: auto auto auto 1fr;
}
.stadium-live-layout.has-connection > .stadium-student {
  grid-row: 3;
}
.stadium-live-layout.has-connection > .stadium-nex {
  grid-row: 4;
}
.stadium-live-layout.has-connection > .stadium-question,
.stadium-live-layout.has-connection > .stadium-loading {
  grid-row: 3 / span 2;
}
.stadium-connection--reconnected {
  border-color: #16845b;
  background: #e8f9f1;
  color: #0c5237;
}
.stadium-release-clock {
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem 1.2rem;
  border-radius: 0.9rem;
  background: #10235b;
}
.stadium-release-clock strong {
  color: white;
}
.stadium-complete-card__icon {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border: 0.3rem solid white;
  border-radius: 50%;
  background: var(--stadium-green);
  color: white;
  box-shadow: 0 0 0 0.3rem #bdebc8;
  font-size: 2rem;
  font-weight: 950;
}
.stadium-preview-label {
  padding: 0.35rem 0.65rem;
  border: 1px solid #e2bc45;
  border-radius: 999px;
  background: #fff5c2;
  color: #5a3a00;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}
.stadium-results-card {
  max-width: 58rem;
}
.stadium-results-grid {
  width: min(38rem, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}
.stadium-results-grid > div {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 0.6rem;
  border: 1px solid #d8e3ee;
  border-radius: 0.9rem;
  background: #f7fbff;
}
.stadium-results-grid small,
.stadium-award-unlock small {
  color: #42618a;
}
.stadium-results-grid strong {
  color: var(--stadium-blue-deep);
  font-size: 1.3rem;
}
.stadium-award-unlock {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 1rem;
  border: 2px solid #e8bd3d;
  border-radius: 1rem;
  background: linear-gradient(135deg, #fff8d5, #fff);
  text-align: left;
}
.stadium-award-unlock > span {
  font-size: 2rem;
}
.stadium-award-unlock > div {
  display: grid;
}
.stadium-ticker {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 12;
  min-height: 3.5rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  background: var(--stadium-yellow);
  color: #271d00;
  box-shadow: 0 -0.25rem 1rem rgb(26 35 61 / 18%);
}
.stadium-ticker > strong {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 0 1rem;
  background: #13265e;
  color: white;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.stadium-ticker > div {
  overflow: hidden;
}
.stadium-ticker__track {
  width: max-content;
  display: flex;
  align-items: center;
  animation: stadium-ticker 28s linear infinite;
}
.stadium-ticker__track > span {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding-left: 2rem;
  font-size: 0.82rem;
  font-weight: 950;
  white-space: nowrap;
}
.stadium-ticker__track i {
  font-style: normal;
}
.stadium-ticker:hover .stadium-ticker__track,
.stadium-ticker:focus .stadium-ticker__track,
.stadium-ticker:focus-within .stadium-ticker__track {
  animation-play-state: paused;
}
@keyframes stadium-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes stadium-ticker {
  to {
    transform: translateX(-50%);
  }
}
@media (max-width: 64rem) {
  .stadium-live-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
  }
  .stadium-scoreboard {
    grid-column: 1;
  }
  .stadium-live-layout > .stadium-student {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }
  .stadium-live-layout > .stadium-nex {
    grid-column: 1;
    grid-row: 3;
    justify-self: end;
    margin-top: -4.4rem;
  }
  .stadium-question,
  .stadium-loading {
    grid-column: 1;
    grid-row: 4;
  }
  .stadium-connection {
    grid-column: 1;
  }
  .stadium-live-layout.has-connection {
    grid-template-rows: auto auto auto auto auto;
  }
  .stadium-live-layout.has-connection > .stadium-student {
    grid-row: 3;
  }
  .stadium-live-layout.has-connection > .stadium-nex {
    grid-row: 4;
    margin-top: -4.4rem;
  }
  .stadium-live-layout.has-connection > .stadium-question,
  .stadium-live-layout.has-connection > .stadium-loading {
    grid-row: 5;
  }
}
@media (max-width: 48rem) {
  .stadium-page {
    padding-bottom: 0;
  }
  .stadium-scene {
    min-height: calc(100vh - 8rem);
    padding: 0.7rem;
  }
  .stadium-scoreboard {
    grid-template-columns: 1.2fr 0.65fr 0.9fr;
  }
  .stadium-scoreboard > div:first-child {
    grid-column: span 2;
  }
  .stadium-scoreboard > .stadium-clock {
    grid-column: 3;
    grid-row: 1 / span 2;
    border-right: 0;
  }
  .stadium-scoreboard > span {
    grid-column: 1 / span 2;
  }
  .stadium-scoreboard > div {
    padding: 0.5rem 0.65rem;
  }
  .stadium-scoreboard strong {
    font-size: 0.78rem;
  }
  .stadium-clock strong {
    font-size: 1.3rem;
  }
  .stadium-question__body {
    padding: 0.9rem;
  }
  .stadium-question__body h1 {
    font-size: clamp(1.45rem, 5.5vw, 2rem);
  }
  .stadium-answers button {
    min-height: 4.6rem;
    grid-template-columns: 2.1rem 1fr;
  }
  .stadium-answers button small {
    grid-column: 2;
  }
}
@media (max-width: 32rem) {
  .stadium-page,
  .stadium-scene {
    overflow-x: clip;
    overflow-y: visible;
  }
  .stadium-preview-nav {
    align-items: start;
    flex-direction: column;
  }
  .stadium-live-layout {
    gap: 0.55rem;
  }
  .stadium-scoreboard {
    position: sticky;
    top: 0.25rem;
    z-index: 8;
    grid-template-columns: 1fr 1fr;
  }
  .stadium-scoreboard > div:first-child {
    display: none;
  }
  .stadium-scoreboard > div:nth-child(2) {
    display: none;
  }
  .stadium-scoreboard > div:nth-child(3) {
    grid-column: 1;
    grid-row: 1;
  }
  .stadium-scoreboard > .stadium-clock {
    grid-column: 2;
    grid-row: 1;
  }
  .stadium-scoreboard > span {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .stadium-live-layout > .stadium-student {
    width: 100%;
  }
  .stadium-live-layout > .stadium-nex {
    width: 100%;
    max-width: none;
    grid-row: 3;
    justify-self: stretch;
    margin-top: 0;
  }
  .stadium-answers {
    grid-template-columns: 1fr;
  }
  .stadium-question__actions {
    align-items: stretch;
    flex-direction: column;
  }
  .stadium-question__actions button {
    width: 100%;
  }
  .stadium-question > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }
  .stadium-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stadium-waiting-card,
  .stadium-complete-card,
  .stadium-results-card {
    width: 100%;
    min-height: auto;
    border-width: 0.25rem;
    border-radius: 1.5rem;
  }
  .stadium-waiting-card h1,
  .stadium-complete-card h1,
  .stadium-results-card h1 {
    font-size: 2.65rem;
  }
  .stadium-ticker {
    min-height: 3.25rem;
  }
  .stadium-ticker > strong {
    padding: 0 0.6rem;
    font-size: 0.62rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stadium-loading > span,
  .stadium-ticker__track {
    animation: none;
  }
  .stadium-ticker__track > span:nth-child(n + 5) {
    display: none;
  }
  .stadium-answers button {
    transition: none;
  }
}
/* Curriculum question builder (Teacher Portal only) */
.teacher-curriculum-builder {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid #eadfbf;
  border-radius: 20px;
  background: #fffdf8;
}

.teacher-builder-header,
.teacher-builder-form > header,
.teacher-builder-preview > header,
.teacher-builder-preview-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.teacher-builder-header h2,
.teacher-builder-form h3,
.teacher-builder-preview h3 {
  margin: 0.2rem 0;
}

.teacher-concept-search {
  position: relative;
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
}
.teacher-concept-search input {
  width: 100%;
}
.teacher-search-results {
  position: absolute;
  z-index: 5;
  top: 100%;
  width: 100%;
  max-height: 18rem;
  overflow: auto;
  border: 1px solid #d8c894;
  border-radius: 12px;
  background: white;
  box-shadow: 0 12px 30px rgb(35 30 15 / 16%);
}
.teacher-search-results button {
  display: grid;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 0;
  border-bottom: 1px solid #eee7d5;
  background: white;
  text-align: left;
}
.teacher-search-results button:hover {
  background: #fff9e8;
}
.teacher-search-results span {
  color: #5d6470;
  font-size: 0.82rem;
}

.teacher-curriculum-path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.teacher-curriculum-path label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}
.teacher-curriculum-path label > span {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #806018;
  color: white;
}
.teacher-curriculum-path select {
  width: 100%;
}

.teacher-concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.8rem;
}
.teacher-concept-grid button {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 2px solid #e7dfca;
  border-radius: 14px;
  background: white;
  text-align: left;
}
.teacher-concept-grid button:hover,
.teacher-concept-grid button.is-selected {
  border-color: #b48620;
  background: #fff9e8;
  box-shadow: 0 6px 18px rgb(128 96 24 / 12%);
}
.teacher-concept-grid button > span {
  color: #806018;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.teacher-concept-grid small {
  color: #5d6470;
}

.teacher-builder-form,
.teacher-builder-preview {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid #ded5bd;
  border-radius: 16px;
  background: white;
}
.teacher-builder-essentials {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(150px, 1fr));
  gap: 0.85rem;
}
.teacher-builder-essentials label,
.teacher-builder-customize label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}
.teacher-builder-essentials small,
.teacher-builder-customize small {
  color: #68707c;
  font-weight: 500;
}
.teacher-builder-customize {
  border-top: 1px solid #eee7d5;
  padding-top: 0.8rem;
}
.teacher-builder-customize summary {
  cursor: pointer;
  color: #6b551d;
  font-weight: 800;
}
.teacher-quality-check {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border: 1px solid;
  border-radius: 12px;
}
.teacher-quality-check.is-ready {
  border-color: #80b89a;
  background: #edf9f1;
  color: #1b623b;
}
.teacher-quality-check.has-errors {
  border-color: #da8c8c;
  background: #fff1f1;
  color: #8b2525;
}
.teacher-quality-check ul {
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
}
.teacher-builder-form code {
  color: #6b551d;
}
.teacher-builder-message {
  margin: 0;
  padding: 0.8rem 1rem;
  border-left: 4px solid #b48620;
  background: #fff7df;
}
.teacher-built-question {
  display: grid;
  gap: 1rem;
  max-width: 760px;
  margin: auto;
  padding: 1.25rem;
  border-radius: 14px;
  background: #f8f9fb;
}
.teacher-built-svg svg {
  display: block;
  width: 100%;
  max-height: 420px;
}
.teacher-answer-line {
  height: 3rem;
  border-bottom: 2px solid #8b9098;
  color: #626973;
}
.teacher-builder-warning {
  color: #8a4c00;
}

@media (max-width: 760px) {
  .teacher-builder-header,
  .teacher-builder-form > header,
  .teacher-builder-preview > header,
  .teacher-builder-preview-actions {
    flex-direction: column;
  }
  .teacher-curriculum-path {
    grid-template-columns: 1fr;
  }
  .teacher-builder-essentials {
    grid-template-columns: 1fr;
  }
}
