/*
 * Selfmade Ninja Sponsor Program — "Aurora" design system.
 *
 * One sheet for every sponsorship surface: the public page (pool orb, live
 * ticker, Hall of Fame podium, donate), the application, the My Account
 * Sponsorship and Sponsor Admin tabs, and the admin dashboard.
 *
 * Standalone and mtime-versioned like ad-landing.css (see layout/_head.php),
 * loaded only where it is used, and namespaced `sch-` so nothing here reaches
 * the rest of the site. Mobile first. Motion is decoration only: everything
 * stands still under prefers-reduced-motion.
 */

/* ================================================================ tokens */

.sch {
  --sch-accent: #f97316;
  --sch-accent-2: #ffb066;
  --sch-accent-3: #fbbf24;
  --sch-grad: linear-gradient(135deg, #ffb066 0%, #f97316 45%, #ea580c 100%);
  --sch-grad-soft: linear-gradient(135deg, rgba(255, 176, 102, 0.22), rgba(234, 88, 12, 0.08));
  --sch-ink: #f7f7f8;
  --sch-muted: rgba(247, 247, 248, 0.66);
  --sch-faint: rgba(247, 247, 248, 0.44);
  --sch-line: rgba(255, 255, 255, 0.08);
  --sch-line-strong: rgba(255, 255, 255, 0.15);
  --sch-surface: #121216;
  --sch-surface-2: #17171c;
  --sch-surface-3: #1d1d23;
  --sch-green: #34d399;
  --sch-red: #f87171;
  --sch-amber: #fbbf24;
  --sch-blue: #60a5fa;
  --sch-violet: #a78bfa;
  --sch-gray: #9ca3af;
  --sch-gold: #fcd34d;
  --sch-silver: #e2e8f0;
  --sch-bronze: #fb923c;
  --sch-radius: 22px;
  --sch-radius-sm: 14px;
  --sch-gutter: clamp(16px, 4vw, 40px);
  --sch-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --sch-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --sch-glow: 0 18px 50px -12px rgba(249, 115, 22, 0.45);
  position: relative;
  color: var(--sch-ink);
  font-family: "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.sch *,
.sch *::before,
.sch *::after {
  box-sizing: border-box;
}

/* Full pages carry their own ambient light; embedded tabs borrow My Account's. */
.sch:not(.sch--embedded)::before {
  content: "";
  position: absolute;
  inset: -80px 0 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 85% 0%, rgba(249, 115, 22, 0.14), transparent 65%),
    radial-gradient(700px 500px at 0% 35%, rgba(251, 191, 36, 0.07), transparent 65%),
    radial-gradient(800px 600px at 60% 100%, rgba(167, 139, 250, 0.06), transparent 65%);
}

.sch-wrap {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) var(--sch-gutter) clamp(56px, 8vw, 104px);
}

/* ================================================================ type */

.sch-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: linear-gradient(var(--sch-surface-2), var(--sch-surface-2)) padding-box,
    linear-gradient(90deg, rgba(249, 115, 22, 0.7), rgba(251, 191, 36, 0.3), rgba(255, 255, 255, 0.08)) border-box;
  border: 1px solid transparent;
  color: var(--sch-accent-2);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sch-eyebrow i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sch-grad);
  color: #111;
  font-size: 13px;
}

.sch-h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 6.2vw, 68px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.sch-h1--admin {
  font-size: clamp(30px, 4.6vw, 48px);
  margin: 14px 0 8px;
}

.sch-h2 {
  margin: 0 0 6px;
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sch-h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sch-lead {
  margin: 0;
  max-width: 60ch;
  color: var(--sch-muted);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.7;
}

.sch-muted {
  color: var(--sch-muted);
}

.sch-small {
  font-size: 13px;
  color: var(--sch-faint);
}

.sch-grad-text {
  background: var(--sch-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sch-shimmer-text {
  background: linear-gradient(100deg, #ffb066 20%, #fff6ec 40%, #f97316 60%, #ffb066 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sch-shimmer-text 6s linear infinite;
}

@keyframes sch-shimmer-text {
  to {
    background-position: -220% 0;
  }
}

/* ================================================================ layout */

.sch-section {
  margin-top: clamp(36px, 5vw, 64px);
}

.sch-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.sch-grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
}

@media (min-width: 960px) {
  .sch-grid--2 {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.sch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.sch-stack {
  display: grid;
  gap: 14px;
}

.sch-hr {
  height: 1px;
  margin: 18px 0;
  border: 0;
  background: var(--sch-line);
}

/* ================================================================ cards */

.sch-card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  isolation: isolate;
  padding: clamp(18px, 3vw, 30px);
  border-radius: var(--sch-radius);
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)) padding-box,
    linear-gradient(var(--sch-surface), var(--sch-surface)) padding-box,
    linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 35%, rgba(255, 255, 255, 0.03) 65%, rgba(249, 115, 22, 0.3)) border-box;
  box-shadow: var(--sch-shadow);
}

/* A soft light that follows the pointer (js: data-spot). */
.sch-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(249, 115, 22, 0.1), transparent 60%);
  transition: opacity 0.35s ease;
}

.sch-card:hover::after {
  opacity: 1;
}

.sch-card--accent {
  background:
    radial-gradient(600px 260px at 100% 0%, rgba(249, 115, 22, 0.14), transparent 70%) padding-box,
    linear-gradient(var(--sch-surface), var(--sch-surface)) padding-box,
    linear-gradient(150deg, rgba(255, 176, 102, 0.65), rgba(249, 115, 22, 0.12) 40%, rgba(255, 255, 255, 0.04) 70%, rgba(249, 115, 22, 0.5)) border-box;
  box-shadow: var(--sch-shadow), var(--sch-glow);
}

.sch-card--panel {
  margin-top: 16px;
}

/* ================================================================ buttons */

.sch-btn {
  --b-bg: var(--sch-grad);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--b-bg);
  color: #140a02;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 28px -8px rgba(249, 115, 22, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.22s var(--sch-ease), box-shadow 0.22s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

/* A sheen sweeps across on hover. */
.sch-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--sch-ease);
}

.sch-btn:hover::before {
  transform: translateX(120%);
}

.sch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(249, 115, 22, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #140a02;
  text-decoration: none;
}

.sch-btn:active {
  transform: translateY(0) scale(0.98);
}

.sch-btn--glow {
  animation: sch-breathe 3.2s ease-in-out infinite;
}

@keyframes sch-breathe {
  50% {
    box-shadow: 0 14px 44px -6px rgba(249, 115, 22, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
}

.sch-btn[disabled],
.sch-btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  animation: none;
}

.sch-btn--ghost {
  --b-bg: rgba(255, 255, 255, 0.04);
  color: var(--sch-ink);
  border: 1px solid var(--sch-line-strong);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.sch-btn--ghost::before {
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
}

.sch-btn--ghost:hover {
  color: var(--sch-ink);
  border-color: rgba(249, 115, 22, 0.65);
  background: rgba(249, 115, 22, 0.08);
  box-shadow: none;
}

.sch-btn--danger {
  --b-bg: linear-gradient(135deg, #fb7185, #dc2626);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(220, 38, 38, 0.7);
}

.sch-btn--danger:hover {
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(220, 38, 38, 0.85);
}

.sch-btn--success {
  --b-bg: linear-gradient(135deg, #6ee7b7, #059669);
  color: #04130c;
  box-shadow: 0 10px 26px -10px rgba(5, 150, 105, 0.7);
}

.sch-btn--success:hover {
  color: #04130c;
}

.sch-btn--sm {
  min-height: 36px;
  padding: 0 15px;
  font-size: 13px;
}

.sch-btn--block {
  width: 100%;
}

.sch-btn .sch-spinner {
  display: none;
}

.sch-btn.is-busy .sch-spinner {
  display: inline-block;
}

.sch-btn.is-busy > i {
  display: none;
}

.sch-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: sch-spin 0.7s linear infinite;
}

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

.sch-icon-btn {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--sch-line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--sch-ink);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sch-icon-btn:hover {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.55);
  transform: rotate(90deg);
}

.sch-btn:focus-visible,
.sch-icon-btn:focus-visible,
.sch-input:focus-visible,
.sch-chip:focus-visible,
.sch-tabs button:focus-visible,
.sch-segment button:focus-visible,
.sch-switch input:focus-visible + span,
.sch-perm input:focus-visible + span,
.sch-range:focus-visible,
[data-open]:focus-visible {
  outline: 2px solid var(--sch-accent-2);
  outline-offset: 3px;
}

/* ================================================================ chips, pills, badges */

.sch-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  margin-left: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--sch-line);
  color: var(--sch-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.sch-row .sch-pill {
  margin-left: 0;
}

.sch-pill--hot {
  background: rgba(249, 115, 22, 0.14);
  border-color: rgba(249, 115, 22, 0.4);
  color: var(--sch-accent-2);
}

.sch-badge {
  --c: var(--sch-gray);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 13%, transparent);
  color: var(--c);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 0 22px -8px var(--c);
}

.sch-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.sch-badge[data-badge="Active"],
.sch-badge[data-badge="Approved"],
.sch-badge[data-badge="Paid"],
.sch-badge[data-badge="Completed"] {
  --c: var(--sch-green);
}

.sch-badge[data-badge="Active"]::before {
  animation: sch-pulse 1.8s ease-out infinite;
}

.sch-badge[data-badge="Under Review"],
.sch-badge[data-badge="Appeal Under Review"],
.sch-badge[data-badge="Processing"],
.sch-badge[data-badge="Unpaid"] {
  --c: var(--sch-amber);
}

.sch-badge[data-badge="Rejected"],
.sch-badge[data-badge="Expired"],
.sch-badge[data-badge="Failed"] {
  --c: var(--sch-red);
}

.sch-badge[data-badge="Withdrawn"],
.sch-badge[data-badge="Lapsed"] {
  --c: var(--sch-gray);
}

@keyframes sch-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 70%, transparent);
  }
  100% {
    box-shadow: 0 0 0 9px transparent;
  }
}

.sch-chip {
  appearance: none;
  min-height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--sch-line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--sch-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--sch-ease);
}

.sch-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(249, 115, 22, 0.6);
}

.sch-chip.is-on {
  border-color: transparent;
  background: var(--sch-grad);
  color: #140a02;
}

.sch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

/* The My Account name tag for a sponsor admin. */
.myaccount__profile-badge--admin {
  background: linear-gradient(135deg, #1e1b4b, #4c1d95) !important;
  border: 1px solid rgba(167, 139, 250, 0.6) !important;
  color: #ede9fe !important;
  box-shadow: 0 0 18px -4px rgba(167, 139, 250, 0.7);
}

.myaccount__profile-badge--admin i {
  color: #c4b5fd !important;
}

/* ================================================================ public hero */

.sch-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  border-radius: calc(var(--sch-radius) + 10px);
  padding: clamp(26px, 5.5vw, 64px);
  border: 1px solid transparent;
  background:
    radial-gradient(1000px 420px at 90% -20%, rgba(249, 115, 22, 0.26), transparent 60%) padding-box,
    radial-gradient(600px 380px at -10% 120%, rgba(251, 191, 36, 0.12), transparent 60%) padding-box,
    linear-gradient(#0f0f13, #0f0f13) padding-box,
    linear-gradient(140deg, rgba(255, 176, 102, 0.5), rgba(255, 255, 255, 0.05) 40%, rgba(255, 255, 255, 0.05) 70%, rgba(249, 115, 22, 0.45)) border-box;
  box-shadow: 0 40px 100px -40px rgba(249, 115, 22, 0.4);
}

@media (min-width: 980px) {
  .sch-hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  }
}

.sch-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 75% 20%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 75% 20%, #000 0%, transparent 72%);
}

.sch-hero__orb,
.sch-aurora {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
}

.sch-hero__orb {
  right: -140px;
  top: -160px;
  width: 460px;
  height: 460px;
  background: conic-gradient(from 180deg, #f97316, #fbbf24, #fb7185, #f97316);
  opacity: 0.34;
  animation: sch-orb 16s ease-in-out infinite alternate;
}

.sch-aurora {
  right: -120px;
  top: -200px;
  width: 520px;
  height: 420px;
  background: conic-gradient(from 90deg, #f97316, #a78bfa, #fbbf24, #f97316);
  opacity: 0.22;
  animation: sch-orb 18s ease-in-out infinite alternate;
}

@keyframes sch-orb {
  to {
    transform: translate(-90px, 70px) scale(1.18) rotate(40deg);
  }
}

.sch-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.sch-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  color: var(--sch-faint);
  font-size: 13px;
}

.sch-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sch-trust i {
  color: var(--sch-green);
  font-size: 16px;
}

/* The pool, drawn as an atom in 3D.
 *
 * A glass nucleus holds the figure. Three tilted orbits sit in real 3D space: each
 * electron runs its orbit with a comet trail, passing behind the nucleus and
 * then in front of it, and counter-rotates so it always faces the viewer. The
 * whole system sways a little; energy pulses ripple out and dust twinkles.
 * Glows are gradients, never box-shadows, which render as squares on 3D
 * layers. Everything stands still under prefers-reduced-motion. */
.sch-orb {
  --orbit-x: 72deg;
  position: relative;
  width: min(380px, 78vw);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
  perspective: 1000px;
}

.sch-atom__halo {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(255, 170, 80, 0.5) 0 30%, rgba(249, 115, 22, 0.16) 55%, transparent),
    radial-gradient(closest-side at 50% 60%, rgba(167, 139, 250, 0.1), transparent 80%);
  filter: blur(18px);
  animation: sch-atom-breathe 6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes sch-atom-breathe {
  to {
    opacity: 0.65;
    transform: scale(1.08);
  }
}

/* Energy rippling out of the nucleus. */
.sch-atom__pulse {
  position: absolute;
  width: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 196, 120, 0.55);
  opacity: 0;
  animation: sch-atom-pulse 4.8s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
  pointer-events: none;
}

.sch-atom__pulse--2 {
  animation-delay: 2.4s;
}

@keyframes sch-atom-pulse {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(2);
  }
}

.sch-atom__dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sch-atom__dust i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffe4b5;
  box-shadow: 0 0 6px 1px rgba(255, 196, 120, 0.8);
  opacity: 0.2;
  animation: sch-atom-twinkle 3.6s ease-in-out infinite;
  animation-delay: var(--d);
}

@keyframes sch-atom-twinkle {
  50% {
    opacity: 1;
    transform: scale(1.6);
  }
}

.sch-atom__scene {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  animation: sch-atom-sway 16s ease-in-out infinite alternate;
}

@keyframes sch-atom-sway {
  from {
    transform: rotateX(6deg) rotateY(-12deg);
  }
  to {
    transform: rotateX(16deg) rotateY(12deg);
  }
}

.sch-atom__orbit {
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  transform-style: preserve-3d;
  transform: rotateZ(var(--tilt)) rotateX(var(--orbit-x));
  border: 1px solid rgba(255, 200, 140, 0.28);
}

/* The comet trail: a ring lit just behind the electron, turning in step
 * with it. The electron rides a separate, unmasked layer: the trail's mask
 * would otherwise clip it to the ring. */
.sch-atom__trail,
.sch-atom__path {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: sch-atom-run var(--speed) linear infinite;
  animation-delay: var(--delay);
}

.sch-atom__trail {
  background: conic-gradient(from 0deg, transparent 0deg 200deg, rgba(249, 115, 22, 0.25) 260deg, rgba(255, 190, 110, 0.9) 335deg, #fff7e8 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px));
}

.sch-atom__orbit:nth-child(2) .sch-atom__trail {
  background: conic-gradient(from 0deg, transparent 0deg 200deg, rgba(167, 139, 250, 0.25) 260deg, rgba(196, 181, 253, 0.9) 335deg, #f5f3ff 360deg);
}

.sch-atom__electron {
  position: absolute;
  top: -13px;
  left: calc(50% - 13px);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 16%, #ffe2ad 26%, rgba(251, 146, 60, 0.75) 42%, rgba(249, 115, 22, 0.25) 60%, transparent 72%);
  animation: sch-atom-face var(--speed) linear infinite;
  animation-delay: var(--delay);
}

.sch-atom__orbit:nth-child(2) .sch-atom__electron {
  background: radial-gradient(circle, #fff 0 16%, #ede9fe 26%, rgba(167, 139, 250, 0.75) 42%, rgba(139, 92, 246, 0.25) 60%, transparent 72%);
}

@keyframes sch-atom-run {
  to {
    transform: rotateZ(360deg);
  }
}

/* Undo the path's spin, the orbit's tilt and its turn: the bead faces us. */
@keyframes sch-atom-face {
  from {
    transform: rotateZ(0deg) rotateX(calc(-1 * var(--orbit-x))) rotateZ(calc(-1 * var(--tilt)));
  }
  to {
    transform: rotateZ(-360deg) rotateX(calc(-1 * var(--orbit-x))) rotateZ(calc(-1 * var(--tilt)));
  }
}

/* The glass nucleus. It turns against the sway so it always faces us. */
.sch-orb__core {
  position: relative;
  width: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 58%, rgba(249, 115, 22, 0.28), transparent 58%),
    radial-gradient(circle at 50% 50%, rgba(28, 14, 8, 0.72) 0%, rgba(14, 8, 6, 0.86) 70%, rgba(8, 5, 4, 0.92) 100%);
  border: 1px solid rgba(255, 210, 160, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -26px 40px -10px rgba(249, 115, 22, 0.55),
    inset 0 22px 34px -18px rgba(255, 255, 255, 0.22),
    inset 0 0 0 6px rgba(255, 255, 255, 0.02);
  animation: sch-atom-face-us 16s ease-in-out infinite alternate;
}

@keyframes sch-atom-face-us {
  from {
    transform: rotateY(12deg) rotateX(-6deg);
  }
  to {
    transform: rotateY(-12deg) rotateX(-16deg);
  }
}

/* A specular glint and a soft lower reflection on the glass. */
.sch-atom__gloss {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 36% 18% at 34% 18%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12) 55%, transparent 72%),
    radial-gradient(ellipse 30% 10% at 62% 88%, rgba(255, 196, 120, 0.3), transparent 70%),
    radial-gradient(circle at 50% 50%, transparent 52%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.sch-orb__value {
  position: relative;
  font-size: clamp(28px, 4.6vw, 44px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 30%, #ffd9a8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 18px rgba(249, 115, 22, 0.45));
}

.sch-orb__label {
  position: relative;
  margin-top: 2px;
  color: rgba(255, 236, 214, 0.78);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

@media (max-width: 480px) {
  .sch-atom__electron {
    top: -10px;
    left: calc(50% - 10px);
    width: 20px;
    height: 20px;
  }

  .sch-orb__label {
    font-size: 9.5px;
    letter-spacing: 0.14em;
  }
}

/* ================================================================ stats & kpis */

.sch-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(24px, 4vw, 36px);
}

@media (min-width: 760px) {
  .sch-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.sch-stat {
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
  border-radius: var(--sch-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--sch-line);
}

.sch-stat::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--sch-grad);
  opacity: 0.6;
}

.sch-stat__value {
  display: block;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.sch-stat__label {
  display: block;
  margin-top: 3px;
  color: var(--sch-faint);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sch-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

/* Two per row on phones (an odd last card takes the whole row), three on
   tablets, and every card in one row from 1180px. */
.sch-kpis > .sch-kpi:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

@media (min-width: 860px) {
  .sch-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sch-kpis > .sch-kpi:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (min-width: 1180px) {
  .sch-kpis {
    grid-template-columns: none;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
  }
}

.sch-kpi {
  --kpi: var(--sch-accent);
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 2px;
  padding: 18px;
  border-radius: var(--sch-radius-sm);
  border: 1px solid color-mix(in srgb, var(--kpi) 25%, transparent);
  background: radial-gradient(160px 100px at 100% 0%, color-mix(in srgb, var(--kpi) 20%, transparent), transparent 70%), var(--sch-surface);
  transition: transform 0.25s var(--sch-ease), border-color 0.25s ease;
}

.sch-kpi:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--kpi) 55%, transparent);
}

.sch-kpi > i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--kpi) 18%, transparent);
  color: var(--kpi);
  font-size: 19px;
}

.sch-kpi__value {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.sch-kpi__label {
  color: var(--sch-faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ================================================================ live ticker */

.sch-ticker {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  padding: 12px 0;
  border-radius: 999px;
  border: 1px solid var(--sch-line);
  background: rgba(255, 255, 255, 0.025);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.sch-ticker[hidden] {
  display: none;
}

.sch-ticker__track {
  display: flex;
  width: max-content;
  gap: 34px;
  padding-left: 34px;
  animation: sch-marquee 38s linear infinite;
}

.sch-ticker:hover .sch-ticker__track {
  animation-play-state: paused;
}

.sch-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 14px;
  color: var(--sch-muted);
}

.sch-ticker__item b {
  color: var(--sch-ink);
}

.sch-ticker__item i {
  color: var(--sch-accent);
}

.sch-ticker__item em {
  font-style: normal;
  color: var(--sch-accent-2);
  font-weight: 700;
}

@keyframes sch-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ================================================================ hall of fame */

.sch-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--sch-green);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sch-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: sch-pulse 1.6s ease-out infinite;
}

.sch-live[data-state="paused"] {
  color: var(--sch-faint);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--sch-line);
}

.sch-live[data-state="paused"]::before {
  animation: none;
}

.sch-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(8px, 2vw, 16px);
  margin: 44px 0 22px;
  perspective: 900px;
}

.sch-podium[hidden] {
  display: none;
}

.sch-podium__slot {
  --medal: var(--sch-silver);
  --h: 204px;
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: var(--h);
  padding: 34px 10px 18px;
  text-align: center;
  border-radius: 20px 20px 14px 14px;
  border: 1px solid color-mix(in srgb, var(--medal) 45%, transparent);
  background:
    radial-gradient(140px 90px at 50% 0%, color-mix(in srgb, var(--medal) 28%, transparent), transparent 75%),
    linear-gradient(180deg, color-mix(in srgb, var(--medal) 10%, #16161b), #111114);
  transform-origin: bottom center;
  animation: sch-rise 0.8s var(--sch-ease) both;
  transition: transform 0.35s var(--sch-ease), box-shadow 0.35s ease;
}

.sch-podium__slot:hover {
  transform: translateY(-6px) rotateX(6deg);
  box-shadow: 0 26px 50px -18px color-mix(in srgb, var(--medal) 60%, transparent);
}

.sch-podium__slot[data-rank="1"] {
  --medal: var(--sch-gold);
  --h: 262px;
  order: 2;
  box-shadow: 0 30px 70px -24px color-mix(in srgb, var(--sch-gold) 55%, transparent);
}

.sch-podium__slot[data-rank="2"] {
  --h: 226px;
  order: 1;
  animation-delay: 0.1s;
}

.sch-podium__slot[data-rank="3"] {
  --medal: var(--sch-bronze);
  --h: 204px;
  order: 3;
  animation-delay: 0.2s;
}

.sch-podium__crown {
  position: absolute;
  top: -18px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: -18px;
  border-radius: 50%;
  background: var(--medal);
  color: #1a1206;
  font-size: 18px;
  box-shadow: 0 0 0 4px #0f0f13, 0 0 24px color-mix(in srgb, var(--medal) 80%, transparent);
  animation: sch-bob 3s ease-in-out infinite;
}

@keyframes sch-bob {
  50% {
    transform: translateY(-4px);
  }
}

.sch-avatar,
.sch-avatar-sm {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sch-grad);
  color: #140a02;
  font-weight: 700;
}

.sch-avatar {
  width: 58px;
  height: 58px;
  margin: 4px auto 10px;
  font-size: 22px;
  box-shadow: 0 0 0 3px #0f0f13, 0 0 0 5px color-mix(in srgb, var(--medal, var(--sch-accent)) 80%, transparent);
}

.sch-avatar-sm {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  margin-right: 8px;
  font-size: 14px;
  vertical-align: middle;
}

.sch-avatar--anon {
  background: linear-gradient(135deg, #3f3f46, #18181b);
  color: var(--sch-muted);
}

.sch-podium__name {
  display: block;
  max-width: 100%;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.sch-podium__credits {
  display: block;
  margin-top: 6px;
  color: var(--medal);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
}

.sch-podium__rank {
  display: block;
  margin-top: 10px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1;
  color: color-mix(in srgb, var(--medal) 35%, transparent);
}

@keyframes sch-rise {
  from {
    opacity: 0;
    transform: translateY(26px) scaleY(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.sch-board {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.sch-board__row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--sch-radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--sch-line);
  transition: transform 0.5s var(--sch-ease), background 0.3s ease, border-color 0.3s ease;
}

.sch-board__row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--sch-line-strong);
}

.sch-board__row.is-new {
  border-color: rgba(52, 211, 153, 0.6);
  background: rgba(52, 211, 153, 0.09);
  box-shadow: 0 0 30px -12px rgba(52, 211, 153, 0.7);
}

.sch-board__rank {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--sch-muted);
}

.sch-board__who {
  min-width: 0;
}

.sch-board__name {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sch-board__bar {
  display: block;
  height: 5px;
  margin-top: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.sch-board__bar > i {
  display: block;
  height: 100%;
  width: var(--share, 0%);
  border-radius: inherit;
  background: var(--sch-grad);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.6);
  animation: sch-grow 1s var(--sch-ease) both;
}

@keyframes sch-grow {
  from {
    width: 0;
  }
}

.sch-board__credits {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--sch-accent-2);
  white-space: nowrap;
}

.sch-empty {
  padding: 30px 16px;
  text-align: center;
  color: var(--sch-muted);
}

.sch-empty > i {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 20px;
  background: var(--sch-grad-soft);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--sch-accent);
  font-size: 28px;
}

/* ================================================================ donate */

.sch-donate__balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 20px;
  padding: 14px 16px;
  border-radius: var(--sch-radius-sm);
  background: var(--sch-grad-soft);
  border: 1px solid rgba(249, 115, 22, 0.28);
}

.sch-donate__balance strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.sch-donate__amount {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 6px 0 10px;
}

.sch-donate__amount .sch-input {
  max-width: 170px;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.sch-range {
  --fill: 0%;
  width: 100%;
  height: 30px;
  margin: 6px 0 12px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.sch-range::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb066 0, #f97316 var(--fill), rgba(255, 255, 255, 0.09) var(--fill));
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.sch-range::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.sch-range::-moz-range-progress {
  height: 10px;
  border-radius: 999px;
  background: var(--sch-grad);
}

.sch-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -9px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 35%, #ffe4cc 100%);
  border: 5px solid #f97316;
  box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.18), 0 6px 16px rgba(249, 115, 22, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sch-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid #f97316;
  box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.18), 0 6px 16px rgba(249, 115, 22, 0.6);
}

.sch-range:active::-webkit-slider-thumb {
  transform: scale(1.15);
  box-shadow: 0 0 0 10px rgba(249, 115, 22, 0.22), 0 6px 16px rgba(249, 115, 22, 0.6);
}

.sch-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  color: var(--sch-muted);
  font-size: 14px;
}

.sch-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

/* The toggle is the span right after the checkbox; other spans in the label are text. */
.sch-switch input + span {
  position: relative;
  width: 46px;
  height: 27px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--sch-line-strong);
  transition: background 0.25s ease;
}

.sch-switch input + span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s var(--sch-ease);
}

.sch-switch input:checked + span {
  background: var(--sch-grad);
  border-color: transparent;
}

.sch-switch input:checked + span::after {
  transform: translateX(19px);
}

/* ================================================================ forms */

.sch-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.sch-field--full {
  grid-column: 1 / -1;
}

.sch-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--sch-muted);
}

.sch-label b {
  color: var(--sch-accent);
}

.sch-input,
.sch-select,
.sch-textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 15px;
  border-radius: var(--sch-radius-sm);
  border: 1px solid var(--sch-line-strong);
  background: rgba(0, 0, 0, 0.35);
  color: var(--sch-ink);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sch-input::placeholder,
.sch-textarea::placeholder {
  color: var(--sch-faint);
}

.sch-input:hover,
.sch-select:hover,
.sch-textarea:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.sch-select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--sch-muted) 50%),
    linear-gradient(135deg, var(--sch-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.sch-select option {
  background: #18181b;
  color: var(--sch-ink);
}

.sch-textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

.sch-input:focus,
.sch-select:focus,
.sch-textarea:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.85);
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

.sch-field.has-error .sch-input,
.sch-field.has-error .sch-select,
.sch-field.has-error .sch-textarea,
.sch-field.has-error .sch-drop {
  border-color: rgba(248, 113, 113, 0.85);
  animation: sch-shake 0.35s ease;
}

@keyframes sch-shake {
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

.sch-error {
  color: var(--sch-red);
  font-size: 12.5px;
}

.sch-error:empty {
  display: none;
}

.sch-hint {
  color: var(--sch-faint);
  font-size: 12.5px;
}

.sch-form-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 720px) {
  .sch-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sch-inline {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
}

.sch-search {
  position: relative;
  flex: 1 1 240px;
  display: block;
}

.sch-search i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sch-faint);
  font-size: 17px;
  pointer-events: none;
}

.sch-search input {
  width: 100%;
  min-height: 46px;
  padding: 10px 15px 10px 42px;
  border-radius: 999px;
  border: 1px solid var(--sch-line-strong);
  background: rgba(0, 0, 0, 0.35);
  color: var(--sch-ink);
  font: inherit;
  font-size: 14.5px;
}

.sch-search input:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.85);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

/* File drop zone */
.sch-drop {
  position: relative;
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 150px;
  padding: 20px;
  border-radius: var(--sch-radius);
  border: 1.5px dashed rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(300px 120px at 50% 0%, rgba(249, 115, 22, 0.08), transparent 70%),
    rgba(0, 0, 0, 0.25);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s var(--sch-ease);
}

.sch-drop:hover,
.sch-drop.is-over {
  border-color: rgba(249, 115, 22, 0.85);
  background: radial-gradient(300px 140px at 50% 0%, rgba(249, 115, 22, 0.16), transparent 70%), rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.sch-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.sch-drop > i {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--sch-grad-soft);
  border: 1px solid rgba(249, 115, 22, 0.3);
  font-size: 24px;
  color: var(--sch-accent);
}

.sch-drop.is-done {
  border-style: solid;
  border-color: rgba(52, 211, 153, 0.65);
  background: radial-gradient(300px 140px at 50% 0%, rgba(52, 211, 153, 0.14), transparent 70%), rgba(0, 0, 0, 0.25);
}

.sch-drop.is-done > i {
  color: var(--sch-green);
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.4);
}

.sch-drop__progress {
  width: min(260px, 80%);
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.sch-drop__progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--sch-grad);
  transition: width 0.2s ease;
}

/* Stepper */
.sch-steps {
  position: relative;
  display: flex;
  gap: 8px;
  margin: 4px 0 26px;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.sch-steps::-webkit-scrollbar {
  display: none;
}

.sch-step {
  flex: 1 0 auto;
  min-width: 112px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sch-faint);
  transition: color 0.3s ease;
}

.sch-step::before {
  content: "";
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.sch-step.is-done::before,
.sch-step.is-current::before {
  background: var(--sch-grad);
}

.sch-step.is-current::before {
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.7);
}

.sch-step.is-current {
  color: var(--sch-ink);
}

.sch-step.is-done {
  color: var(--sch-muted);
}

.sch-panel[hidden] {
  display: none;
}

.sch-panel {
  animation: sch-fade 0.4s var(--sch-ease) both;
}

@keyframes sch-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.sch-form-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--sch-line);
}

.sch-review {
  display: grid;
  margin: 0;
}

.sch-review div {
  display: grid;
  grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--sch-line);
}

.sch-review dt {
  color: var(--sch-faint);
  font-size: 13px;
}

.sch-review dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Admin permission tiles */
.sch-perm-grid {
  display: grid;
  gap: 10px;
}

@media (min-width: 520px) {
  .sch-perm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sch-perm {
  position: relative;
  cursor: pointer;
}

.sch-perm input {
  position: absolute;
  opacity: 0;
}

.sch-perm span {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  padding: 12px;
  border-radius: var(--sch-radius-sm);
  border: 1px solid var(--sch-line-strong);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.sch-perm span i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--sch-muted);
}

.sch-perm span small {
  color: var(--sch-faint);
  font-size: 12px;
}

.sch-perm input:checked + span {
  border-color: rgba(249, 115, 22, 0.65);
  background: rgba(249, 115, 22, 0.08);
}

.sch-perm input:checked + span i {
  background: var(--sch-grad);
  color: #140a02;
}

/* ================================================================ how it works & courses */

.sch-how {
  display: grid;
  gap: 14px;
  counter-reset: sch-how;
}

@media (min-width: 760px) {
  .sch-how {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sch-how__item {
  position: relative;
  overflow: hidden;
  padding: 24px 22px 22px;
  border-radius: var(--sch-radius);
  border: 1px solid var(--sch-line);
  background: radial-gradient(260px 160px at 100% 0%, rgba(249, 115, 22, 0.1), transparent 70%), var(--sch-surface);
  counter-increment: sch-how;
  transition: transform 0.3s var(--sch-ease), border-color 0.3s ease;
}

.sch-how__item:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.4);
}

.sch-how__item::before {
  content: counter(sch-how, decimal-leading-zero);
  position: absolute;
  right: 18px;
  bottom: -14px;
  font-size: 92px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
}

.sch-how__item i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 15px;
  background: var(--sch-grad);
  color: #140a02;
  font-size: 22px;
  box-shadow: 0 10px 24px -8px rgba(249, 115, 22, 0.7);
}

.sch-courses {
  /* Equal tiles, as many to a row as fit; one per row on a phone. */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 10px;
}

.sch-course {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--sch-ink);
  text-decoration: none;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  border: 1px solid var(--sch-line-strong);
  background: rgba(255, 255, 255, 0.035);
  font-weight: 600;
  font-size: 14px;
  transition: border-color 0.2s ease, transform 0.2s var(--sch-ease);
}

.sch-course:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.55);
}

.sch-course__name {
  flex: 1;
  min-width: 0;
}

a.sch-course:hover {
  color: var(--sch-ink);
}

.sch-course > .sch-course__go {
  width: auto;
  height: auto;
  background: none;
  color: var(--sch-faint);
  font-size: 18px;
  transition: color 0.2s ease, transform 0.2s var(--sch-ease);
}

a.sch-course:hover .sch-course__go {
  color: var(--sch-accent);
  transform: translate(2px, -2px);
}

.sch-course i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sch-grad-soft);
  color: var(--sch-accent);
}

/* ================================================================ modal, drawer, toast */

.sch-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(5, 5, 8, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: sch-fade 0.22s ease both;
}

.sch-modal[hidden] {
  display: none;
}

.sch-modal__box {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: clamp(22px, 4vw, 32px);
  border-radius: calc(var(--sch-radius) + 4px);
  border: 1px solid transparent;
  background: radial-gradient(400px 200px at 50% 0%, rgba(249, 115, 22, 0.14), transparent 70%) padding-box,
    linear-gradient(#131317, #131317) padding-box,
    linear-gradient(160deg, rgba(255, 176, 102, 0.6), rgba(255, 255, 255, 0.06) 45%, rgba(249, 115, 22, 0.35)) border-box;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
  animation: sch-pop 0.3s var(--sch-ease) both;
}

@keyframes sch-pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
}

.sch-modal__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: var(--sch-grad);
  color: #140a02;
  font-size: 28px;
  box-shadow: 0 14px 30px -10px rgba(249, 115, 22, 0.8);
}

.sch-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.sch-drawer {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: flex;
  justify-content: flex-end;
  background: rgba(5, 5, 8, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: sch-fade 0.2s ease both;
}

.sch-drawer[hidden] {
  display: none;
}

.sch-drawer__panel {
  width: min(760px, 100%);
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(18px, 3vw, 30px);
  background: radial-gradient(500px 260px at 100% 0%, rgba(249, 115, 22, 0.08), transparent 70%), #0f0f13;
  border-left: 1px solid var(--sch-line-strong);
  box-shadow: -40px 0 80px rgba(0, 0, 0, 0.5);
  animation: sch-slide 0.35s var(--sch-ease) both;
}

@keyframes sch-slide {
  from {
    transform: translateX(48px);
    opacity: 0;
  }
}

.sch-drawer__head {
  position: sticky;
  top: calc(-1 * clamp(18px, 3vw, 30px));
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: calc(-1 * clamp(18px, 3vw, 30px)) calc(-1 * clamp(18px, 3vw, 30px)) 18px;
  padding: 16px clamp(18px, 3vw, 30px);
  background: rgba(15, 15, 19, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sch-line);
}

.sch-drawer__head .sch-h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.sch-toasts {
  position: fixed;
  z-index: 10100;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  width: min(460px, calc(100vw - 32px));
  pointer-events: none;
}

.sch-toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 16px;
  border-radius: 16px;
  background: rgba(24, 24, 29, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid var(--sch-line-strong);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
  color: var(--sch-ink);
  font-size: 14px;
  animation: sch-pop 0.3s var(--sch-ease) both;
  pointer-events: auto;
}

.sch-toast i {
  font-size: 19px;
}

.sch-toast--ok {
  border-color: rgba(52, 211, 153, 0.4);
}

.sch-toast--ok i {
  color: var(--sch-green);
}

.sch-toast--err {
  border-color: rgba(248, 113, 113, 0.45);
}

.sch-toast--err i {
  color: var(--sch-red);
}

.sch-confetti {
  position: fixed;
  inset: 0;
  z-index: 10110;
  pointer-events: none;
  overflow: hidden;
}

.sch-confetti i {
  position: absolute;
  top: -12px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  animation: sch-fall var(--d, 2.4s) cubic-bezier(0.3, 0.7, 0.4, 1) forwards;
}

@keyframes sch-fall {
  to {
    transform: translate3d(var(--x, 0), 105vh, 0) rotate(var(--r, 540deg));
    opacity: 0.2;
  }
}

/* ================================================================ skeleton */

.sch-skel {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  min-height: 16px;
}

.sch-skel::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  animation: sch-shimmer 1.4s infinite;
}

@keyframes sch-shimmer {
  to {
    transform: translateX(100%);
  }
}

/* ================================================================ my account: sponsorship */

.sch-tab {
  display: grid;
  /* One column as wide as the tab: an auto track takes the widest card's
     content width and spills past a phone screen. */
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.sch-welcome {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3.5vw, 32px);
  border-radius: var(--sch-radius);
  border: 1px solid transparent;
  background:
    radial-gradient(380px 160px at 100% 0%, rgba(249, 115, 22, 0.08), transparent 70%) padding-box,
    linear-gradient(#111115, #111115) padding-box,
    linear-gradient(140deg, rgba(255, 176, 102, 0.3), rgba(255, 255, 255, 0.06) 45%, rgba(249, 115, 22, 0.18)) border-box;
}

@media (min-width: 860px) {
  .sch-welcome {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.sch-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sch-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 18px 0 4px;
  padding: 0;
  list-style: none;
}

.sch-progress li {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--sch-faint);
}

.sch-progress li i {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--sch-line-strong);
  background: var(--sch-surface-2);
  font-size: 17px;
  font-style: normal;
}

.sch-progress li:not(:last-child) i::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: calc(100% * 2.6);
  max-width: 120px;
  height: 2px;
  margin-left: 6px;
  background: var(--sch-line-strong);
}

.sch-progress li.is-done {
  color: var(--sch-muted);
}

.sch-progress li.is-done i {
  border-color: transparent;
  background: var(--sch-grad);
  color: #140a02;
}

.sch-progress li.is-done:not(:last-child) i::after {
  background: var(--sch-grad);
}

.sch-progress li.is-current {
  color: var(--sch-ink);
}

.sch-progress li.is-current i {
  border-color: var(--sch-accent);
  color: var(--sch-accent);
  box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.15), 0 0 24px rgba(249, 115, 22, 0.55);
  animation: sch-bob 2.6s ease-in-out infinite;
}

.sch-progress li.is-bad i {
  border-color: rgba(248, 113, 113, 0.6);
  color: var(--sch-red);
  background: rgba(248, 113, 113, 0.1);
}

@media (max-width: 560px) {
  .sch-progress li:not(:last-child) i::after {
    display: none;
  }
}

.sch-status {
  display: grid;
  gap: 18px;
}

@media (min-width: 900px) {
  .sch-status {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

.sch-status__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sch-validity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.sch-validity__cell {
  padding: 13px 15px;
  border-radius: var(--sch-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--sch-line);
}

.sch-validity__cell span {
  display: block;
  color: var(--sch-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sch-validity__cell strong {
  display: block;
  margin-top: 5px;
  font-size: 15px;
}

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

.sch-countdown div {
  position: relative;
  overflow: hidden;
  padding: 12px 6px;
  border-radius: 14px;
  text-align: center;
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.16), rgba(249, 115, 22, 0.04));
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.sch-countdown div::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.35);
}

.sch-countdown b {
  display: block;
  font-size: clamp(22px, 3.2vw, 30px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.sch-countdown span {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--sch-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sch-meter {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
}

.sch-ring {
  --p: 0;
  position: relative;
  width: 178px;
  height: 178px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#f97316 calc(var(--p) * 1%), rgba(255, 255, 255, 0.07) 0);
  box-shadow: 0 0 60px -14px rgba(249, 115, 22, 0.6);
}

.sch-ring::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #1d1d23, #101014);
}

.sch-ring > div {
  position: relative;
}

.sch-ring__value {
  display: block;
  font-size: 34px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.sch-ring__label {
  display: block;
  font-size: 12px;
  color: var(--sch-faint);
}

.sch-kv {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.sch-kv div {
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--sch-line);
}

.sch-kv b {
  display: block;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.sch-kv span {
  font-size: 11px;
  color: var(--sch-faint);
}

.sch-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--sch-radius);
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: radial-gradient(400px 160px at 0% 0%, rgba(251, 191, 36, 0.16), transparent 70%), rgba(249, 115, 22, 0.05);
}

.sch-callout--danger {
  border-color: rgba(248, 113, 113, 0.5);
  background: radial-gradient(400px 160px at 0% 0%, rgba(248, 113, 113, 0.16), transparent 70%), rgba(248, 113, 113, 0.04);
}

.sch-callout--ok {
  border-color: rgba(52, 211, 153, 0.45);
  background: radial-gradient(400px 160px at 0% 0%, rgba(52, 211, 153, 0.14), transparent 70%), rgba(52, 211, 153, 0.03);
}

.sch-callout__text {
  flex: 1 1 260px;
  line-height: 1.6;
}

.sch-price {
  display: grid;
  gap: 6px;
  margin: 16px 0;
  padding: 16px;
  border-radius: var(--sch-radius-sm);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--sch-line);
}

.sch-price div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--sch-muted);
}

.sch-price .is-total {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--sch-line-strong);
  color: var(--sch-ink);
  font-weight: 700;
  font-size: 19px;
}

/* Event log */
.sch-events__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 16px;
}

.sch-events {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sch-events::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.6), rgba(255, 255, 255, 0.05));
}

.sch-event {
  --k: var(--sch-accent);
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 10px 0;
  animation: sch-fade 0.4s var(--sch-ease) both;
}

.sch-event[hidden] {
  display: none;
}

.sch-event__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--k) 16%, #111115);
  border: 1px solid color-mix(in srgb, var(--k) 45%, transparent);
  color: var(--k);
  font-size: 18px;
}

.sch-event__body b {
  display: block;
  font-weight: 600;
}

.sch-event__body span {
  font-size: 13px;
  color: var(--sch-faint);
}

.sch-event__when {
  font-size: 12.5px;
  color: var(--sch-faint);
  white-space: nowrap;
  padding-top: 2px;
}

.sch-event[data-kind="application"] {
  --k: var(--sch-blue);
}

.sch-event[data-kind="credit"] {
  --k: var(--sch-green);
}

.sch-event[data-kind="course"] {
  --k: var(--sch-violet);
}

.sch-event[data-kind="fee"] {
  --k: var(--sch-amber);
}

.sch-event[data-kind="donation"] {
  --k: #fb7185;
}

@media (max-width: 520px) {
  .sch-event {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .sch-event__when {
    grid-column: 2;
    padding-top: 0;
  }
}

.sch-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 2px solid var(--sch-line);
}

.sch-timeline li {
  position: relative;
  padding: 0 0 16px 16px;
}

.sch-timeline li::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #18181b;
  border: 2px solid var(--sch-accent);
}

.sch-timeline li:first-child::before {
  background: var(--sch-accent);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.8);
}

.sch-timeline b {
  display: block;
}

/* ================================================================ tables */

.sch-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.sch-table th,
.sch-table td {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid var(--sch-line);
  vertical-align: middle;
}

.sch-table th {
  color: var(--sch-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sch-table td.num,
.sch-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sch-table tbody tr {
  transition: background 0.2s ease;
}

.sch-table--hover tbody tr[data-open] {
  cursor: pointer;
}

.sch-table--hover tbody tr[data-open]:hover {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.09), rgba(249, 115, 22, 0.02));
}

.sch-table--hover tbody tr[data-open]:hover td:first-child {
  box-shadow: inset 3px 0 0 var(--sch-accent);
}

@media (max-width: 899px) {
  .sch-table--cards thead {
    display: none;
  }

  .sch-table--cards,
  .sch-table--cards tbody,
  .sch-table--cards tr,
  .sch-table--cards td {
    display: block;
    width: 100%;
  }

  .sch-table--cards tr {
    margin-bottom: 10px;
    padding: 12px 14px;
    border-radius: var(--sch-radius-sm);
    border: 1px solid var(--sch-line);
    background: rgba(255, 255, 255, 0.03);
  }

  .sch-table--cards td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border: 0;
    text-align: right;
  }

  .sch-table--cards td::before {
    content: attr(data-label);
    color: var(--sch-faint);
    font-size: 12px;
    text-align: left;
  }

  .sch-table--cards td[colspan],
  .sch-table--hover td:first-child {
    display: block;
    text-align: left;
  }

  /* On a phone the applicant is the card's heading, not a labelled row. */
  .sch-table--hover td:first-child {
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--sch-line);
  }

  .sch-table--hover td:first-child::before {
    content: none;
  }

  .sch-table--cards td[colspan]::before {
    content: none;
  }
}

.sch-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

/* ================================================================ admin */

.sch-admin__hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
  border-radius: calc(var(--sch-radius) + 6px);
  border: 1px solid transparent;
  background:
    linear-gradient(#0f0f13, #0f0f13) padding-box,
    linear-gradient(140deg, rgba(167, 139, 250, 0.55), rgba(255, 255, 255, 0.05) 45%, rgba(249, 115, 22, 0.45)) border-box;
}

.sch-admin__hero .sch-muted {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.sch-admin__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sch-admin__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
}

.sch-admin__bar .sch-select {
  flex: 0 1 220px;
  border-radius: 999px;
}

.sch-segment {
  /* As wide as the cards above it; the sections share the width evenly. */
  display: flex;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  margin-top: 26px;
  padding: 5px;
  overflow-x: auto;
  border-radius: 999px;
  border: 1px solid var(--sch-line);
  background: rgba(255, 255, 255, 0.03);
  scrollbar-width: none;
}

.sch-segment::-webkit-scrollbar {
  display: none;
}

.sch-segment button {
  flex: 1 0 auto;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sch-muted);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.sch-segment button:hover {
  color: var(--sch-ink);
}

.sch-segment button[aria-selected="true"] {
  background: var(--sch-grad);
  color: #140a02;
  box-shadow: 0 8px 22px -8px rgba(249, 115, 22, 0.7);
}

.sch-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.sch-tabs::-webkit-scrollbar {
  display: none;
}

.sch-tabs button {
  flex: 0 0 auto;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--sch-line);
  background: transparent;
  color: var(--sch-muted);
  font: inherit;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.sch-tabs button:hover {
  color: var(--sch-ink);
  border-color: var(--sch-line-strong);
}

.sch-tabs button[aria-selected="true"] {
  background: rgba(249, 115, 22, 0.13);
  border-color: rgba(249, 115, 22, 0.6);
  color: var(--sch-ink);
}

.sch-count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.sch-tabs button[aria-selected="true"] .sch-count {
  background: var(--sch-accent);
  color: #140a02;
}

.sch-admin-list {
  display: grid;
  gap: 10px;
}

.sch-admin-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--sch-radius-sm);
  border: 1px solid var(--sch-line);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.sch-admin-row:hover {
  border-color: var(--sch-line-strong);
  background: rgba(255, 255, 255, 0.045);
}

.sch-admin-row.is-off {
  opacity: 0.6;
}

.sch-admin-row > .sch-row {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

@media (min-width: 720px) {
  .sch-admin-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .sch-admin-row > .sch-row {
    grid-column: auto;
  }
}

.sch-admin-row__who b {
  display: block;
}

.sch-admin-row__who .sch-small {
  overflow-wrap: anywhere;
}

.sch-dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin: 0;
}

.sch-dl div {
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--sch-line);
  min-width: 0;
}

.sch-dl dt {
  font-size: 11px;
  font-weight: 600;
  color: var(--sch-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sch-dl dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}

.sch-warn {
  color: var(--sch-amber);
}

.sch-settings {
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  .sch-settings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sch-program-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 130px auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--sch-line);
}

@media (max-width: 600px) {
  .sch-program-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* ================================================================ misc */

.sch-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s var(--sch-ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* No reveal without the script that runs it. */
.sch:not(.sch-js) [data-reveal] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .sch *,
  .sch *::before,
  .sch *::after,
  .sch-modal,
  .sch-drawer,
  .sch-toast {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* A field the student cannot change (their sign-in email). */
.sch-locked {
  position: relative;
}

.sch-locked .sch-input {
  padding-left: 44px;
  padding-right: 44px;
  color: var(--sch-muted);
  background: rgba(255, 255, 255, 0.03);
  border-style: dashed;
  cursor: not-allowed;
}

.sch-locked i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sch-faint);
  font-size: 17px;
  pointer-events: none;
}

.sch-locked i:first-child {
  left: 15px;
}

.sch-locked i:last-child {
  right: 15px;
  color: var(--sch-accent);
}

/* ================================================================ hall of fame (stage) */

.sch-hof {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 48px) clamp(24px, 4vw, 44px);
  border-radius: calc(var(--sch-radius) + 10px);
  border: 1px solid transparent;
  background:
    radial-gradient(700px 360px at 50% 18%, rgba(252, 211, 77, 0.16), transparent 65%) padding-box,
    radial-gradient(900px 400px at 50% 110%, rgba(249, 115, 22, 0.18), transparent 70%) padding-box,
    linear-gradient(#0e0e12, #0e0e12) padding-box,
    linear-gradient(180deg, rgba(252, 211, 77, 0.55), rgba(255, 255, 255, 0.05) 40%, rgba(249, 115, 22, 0.45)) border-box;
  box-shadow: 0 40px 100px -40px rgba(252, 211, 77, 0.35);
}

/* Two stage lights sweeping over the podium. */
.sch-hof__beam {
  position: absolute;
  top: -40%;
  z-index: -1;
  width: 38%;
  height: 120%;
  background: linear-gradient(180deg, rgba(255, 236, 179, 0.18), transparent 75%);
  filter: blur(18px);
  transform-origin: top center;
  pointer-events: none;
}

.sch-hof__beam--l {
  left: 14%;
  transform: rotate(18deg);
  animation: sch-sweep-l 9s ease-in-out infinite alternate;
}

.sch-hof__beam--r {
  right: 14%;
  transform: rotate(-18deg);
  animation: sch-sweep-r 11s ease-in-out infinite alternate;
}

@keyframes sch-sweep-l {
  to {
    transform: rotate(4deg);
  }
}

@keyframes sch-sweep-r {
  to {
    transform: rotate(-4deg);
  }
}

.sch-hof__head {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.sch-hof__title {
  margin: 4px 0 0;
  font-size: clamp(26px, 4.2vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.sch-hof__head .sch-muted {
  margin: 0;
}

.sch-stage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(8px, 2.4vw, 26px);
  max-width: 860px;
  margin: clamp(28px, 4vw, 44px) auto clamp(26px, 4vw, 40px);
}

.sch-pedestal {
  --medal: var(--sch-silver);
  --block: 120px;
  display: grid;
  justify-items: center;
  color: inherit;
  text-decoration: none;
  animation: sch-rise 0.9s var(--sch-ease) both;
}

.sch-pedestal[data-rank="1"] {
  --medal: var(--sch-gold);
  --block: 170px;
}

.sch-pedestal[data-rank="3"] {
  --medal: var(--sch-bronze);
  --block: 92px;
}

.sch-pedestal__who {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 0 4px 14px;
  text-align: center;
  transition: transform 0.35s var(--sch-ease);
}

.sch-pedestal:hover .sch-pedestal__who {
  transform: translateY(-6px);
}

.sch-pedestal .sch-avatar {
  width: clamp(54px, 7vw, 76px);
  height: clamp(54px, 7vw, 76px);
  margin: 0 0 10px;
  font-size: clamp(20px, 2.8vw, 28px);
  box-shadow: 0 0 0 4px #0e0e12, 0 0 0 7px var(--medal), 0 0 40px -4px color-mix(in srgb, var(--medal) 75%, transparent);
}

.sch-pedestal[data-rank="1"] .sch-avatar {
  width: clamp(66px, 9vw, 96px);
  height: clamp(66px, 9vw, 96px);
}

.sch-pedestal__crown {
  position: absolute;
  top: clamp(-30px, -3vw, -22px);
  font-size: clamp(26px, 3.4vw, 38px);
  color: var(--sch-gold);
  filter: drop-shadow(0 0 14px rgba(252, 211, 77, 0.8));
  animation: sch-bob 2.8s ease-in-out infinite;
}

.sch-pedestal__name {
  max-width: 100%;
  font-weight: 700;
  font-size: clamp(14px, 1.7vw, 18px);
  overflow-wrap: anywhere;
}

.sch-pedestal__credits {
  color: var(--medal);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(13px, 1.5vw, 16px);
}

.sch-pedestal__medal {
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--medal) 50%, transparent);
  background: color-mix(in srgb, var(--medal) 12%, transparent);
  color: var(--medal);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* The block itself: a lit step with its rank cut into the face. */
.sch-pedestal__block {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: var(--block);
  border-radius: 16px 16px 6px 6px;
  border: 1px solid color-mix(in srgb, var(--medal) 45%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--medal) 30%, transparent), transparent 22%),
    linear-gradient(180deg, color-mix(in srgb, var(--medal) 10%, #19191f), #0f0f13);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--medal) 60%, transparent), 0 30px 60px -30px color-mix(in srgb, var(--medal) 70%, transparent);
}

.sch-pedestal__block::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--medal), transparent);
  filter: blur(0.5px);
}

.sch-pedestal__block b {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, var(--medal), color-mix(in srgb, var(--medal) 20%, transparent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sch-pedestal.is-empty {
  --medal: rgba(255, 255, 255, 0.28);
  opacity: 0.85;
}

.sch-pedestal.is-empty .sch-pedestal__block {
  border-style: dashed;
  box-shadow: none;
}

.sch-pedestal.is-empty .sch-pedestal__credits {
  color: var(--sch-accent-2);
  font-weight: 600;
}

.sch-pedestal.is-empty:hover {
  opacity: 1;
}

.sch-avatar--open {
  background: transparent !important;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  color: var(--sch-muted) !important;
  box-shadow: none !important;
}

.sch-pedestal.is-empty:hover .sch-avatar--open {
  border-color: var(--sch-accent);
  color: var(--sch-accent) !important;
}

.sch-hof__rest {
  max-width: 980px;
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid var(--sch-line);
}

.sch-hof__rest-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.sch-board--grid {
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .sch-board--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sch-board--grid .sch-board__row {
  animation: sch-fade 0.5s var(--sch-ease) both;
}

.sch-board__open {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--sch-radius-sm);
  border: 1px dashed var(--sch-line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--sch-muted);
}

.sch-board__open > i {
  font-size: 22px;
  color: var(--sch-accent);
}

.sch-board__open > span {
  flex: 1 1 260px;
}

/* ================================================================ give back */

.sch-give {
  display: grid;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
}

@media (min-width: 900px) {
  .sch-give {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

.sch-give__points {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.sch-give__points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sch-muted);
}

.sch-give__points i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  background: var(--sch-grad-soft);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--sch-accent);
  font-size: 18px;
}

.sch-give__points b {
  color: var(--sch-ink);
}

.sch-give__panel {
  padding: clamp(16px, 2.6vw, 24px);
  border-radius: var(--sch-radius);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--sch-line);
}

.sch-give__panel .sch-donate__balance {
  margin-top: 0;
}

/* ================================================================ academy fund */

/* Gifts from the team wear a badge: violet for an admin, blue for the Academy. */
.sch-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sch-violet);
  background: rgba(167, 139, 250, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.sch-tag--academy {
  color: var(--sch-blue);
  background: rgba(96, 165, 250, 0.14);
  border-color: rgba(96, 165, 250, 0.35);
}

.sch-ticker__item--admin i {
  color: var(--sch-violet);
}

.sch-ticker__item--academy i {
  color: var(--sch-blue);
}

.sch-pill--academy {
  color: var(--sch-blue);
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.1);
}

.sch-stat__sub {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  color: var(--sch-blue);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.sch-stat__sub[hidden] {
  display: none;
}

.sch-donate__admin {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: var(--sch-radius-sm);
  font-size: 13px;
  line-height: 1.5;
  color: var(--sch-muted);
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.28);
}

.sch-donate__admin[hidden] {
  display: none;
}

.sch-donate__admin i {
  color: var(--sch-violet);
  font-size: 18px;
}

.sch-donate__admin b {
  color: var(--sch-violet);
}

.sch-notice {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: var(--sch-radius-sm);
  color: var(--sch-amber);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  font-size: 14px;
}

.sch-notice[hidden] {
  display: none;
}

.sch-notice i {
  font-size: 20px;
}

.sch-grid-2 {
  display: grid;
  gap: 12px;
}

@media (min-width: 560px) {
  .sch-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sch-academy__grid {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
}

@media (min-width: 900px) {
  .sch-academy__grid {
    grid-template-columns: minmax(260px, 340px) 1fr;
  }
}

/* The company wallet, drawn as a vault: a blue-violet twin of the pool orb. */
.sch-vault {
  position: relative;
  width: min(300px, 70vw);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.sch-vault__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 90deg, rgba(96, 165, 250, 0) 0deg, #60a5fa 140deg, #a78bfa 230deg, rgba(96, 165, 250, 0) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: sch-spin 11s linear infinite;
  filter: drop-shadow(0 0 14px rgba(96, 165, 250, 0.6));
}

.sch-vault__ring--2 {
  inset: 14%;
  opacity: 0.5;
  animation-duration: 16s;
  animation-direction: reverse;
}

.sch-vault__core {
  position: relative;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  text-align: center;
  background: radial-gradient(circle at 35% 30%, rgba(96, 165, 250, 0.28), rgba(18, 18, 22, 0.95) 62%);
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: inset 0 0 50px rgba(96, 165, 250, 0.2), 0 0 80px -12px rgba(96, 165, 250, 0.5);
  animation: sch-vault-breathe 5s ease-in-out infinite;
}

@keyframes sch-vault-breathe {
  50% {
    box-shadow: inset 0 0 60px rgba(96, 165, 250, 0.3), 0 0 110px -8px rgba(167, 139, 250, 0.6);
  }
}

.sch-vault__core > i {
  font-size: 26px;
  color: var(--sch-blue);
}

.sch-vault__value {
  font-size: clamp(28px, 4.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.sch-vault__label {
  max-width: 80%;
  color: var(--sch-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sch-academy__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sch-mini {
  padding: 14px;
  border-radius: var(--sch-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--sch-line);
  transition: transform 0.25s var(--sch-ease), border-color 0.25s;
}

.sch-mini:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.35);
}

.sch-mini__value {
  display: block;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sch-mini__label {
  display: block;
  margin-top: 2px;
  color: var(--sch-faint);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sch-sources {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--sch-radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--sch-line);
}

.sch-sources__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 14px;
}

.sch-sources__bar {
  display: flex;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.sch-sources__bar span {
  width: var(--w);
  background: var(--c);
  transform-origin: left;
  animation: sch-grow 0.9s var(--sch-ease) both;
}

.sch-sources__bar span + span {
  box-shadow: -2px 0 0 #121216;
}

.sch-sources__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--sch-muted);
}

.sch-sources__legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sch-sources__legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.sch-sources__legend b {
  color: var(--sch-ink);
  font-variant-numeric: tabular-nums;
}

.sch-move {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.sch-move--top-up i {
  color: var(--sch-green);
}

.sch-move--gift-to-pool i {
  color: var(--sch-accent);
}

.sch-move--adjustment i {
  color: var(--sch-amber);
}

.sch-pos {
  color: var(--sch-green);
}

.sch-neg {
  color: var(--sch-accent-2);
}

.sch-academy__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 18px;
  font-size: 28px;
  color: #04101f;
  background: linear-gradient(135deg, #93c5fd, #60a5fa 45%, #a78bfa);
  box-shadow: 0 14px 30px -10px rgba(96, 165, 250, 0.8);
}

.sch-modal.is-give .sch-academy__icon {
  color: #140a02;
  background: var(--sch-grad);
  box-shadow: 0 14px 30px -10px rgba(249, 115, 22, 0.8);
}

.sch-input--big {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sch-academy__preview {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--sch-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--sch-line-strong);
  font-size: 13.5px;
}

.sch-academy__preview div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--sch-muted);
}

.sch-academy__preview b {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 520px) {
  .sch-academy__stats {
    grid-template-columns: 1fr;
  }
}

/* The Academy's own giving, in the Hall of Fame's top-right corner. It is not
   ranked: the stage stays for students. */
.sch-hof__academy {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 18px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.3);
  box-shadow: 0 14px 34px -18px rgba(96, 165, 250, 0.6);
  backdrop-filter: blur(6px);
  animation: sch-pop 0.5s var(--sch-ease) both;
}

.sch-hof__academy[hidden] {
  display: none;
}

@media (min-width: 900px) {
  .sch-hof__academy {
    position: absolute;
    top: 20px;
    right: 20px;
    margin: 0;
  }
}

.sch-hof__academy-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  font-size: 20px;
  color: #04101f;
  background: linear-gradient(135deg, #93c5fd, #60a5fa 50%, #a78bfa);
}

.sch-hof__academy-text {
  display: grid;
  line-height: 1.25;
  text-align: left;
}

.sch-hof__academy-label,
.sch-hof__academy-note {
  color: var(--sch-faint);
  font-size: 11.5px;
}

.sch-hof__academy-text b {
  color: var(--sch-blue);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

/* ================================================================ fee credits */

/* "Use my Referral Credits" in the renewal / appeal dialog. */
.sch-paycredits {
  margin: 16px 0 0;
  padding: 14px;
  border-radius: var(--sch-radius-sm);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.08), rgba(18, 18, 22, 0.4));
  border: 1px solid rgba(52, 211, 153, 0.28);
  transition: border-color 0.25s var(--sch-ease), box-shadow 0.25s var(--sch-ease);
}

.sch-paycredits[hidden],
.sch-paycredits__body[hidden],
.sch-paycredits__off[hidden] {
  display: none;
}

.sch-paycredits:has(input[data-pay-credits-toggle]:checked) {
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 14px 34px -20px rgba(52, 211, 153, 0.7);
}

.sch-paycredits__head {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.sch-paycredits__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  font-size: 19px;
  color: #04170f;
  background: linear-gradient(135deg, #6ee7b7, #34d399);
}

.sch-paycredits__text {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.3;
}

.sch-paycredits__text small {
  color: var(--sch-faint);
  font-size: 12px;
}

.sch-switch--bare {
  flex: 0 0 auto;
}

.sch-paycredits__body {
  margin-top: 12px;
  animation: sch-fade 0.25s var(--sch-ease) both;
}

.sch-paycredits__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sch-paycredits__row .sch-input {
  width: 120px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sch-paycredits__off {
  margin: 10px 0 0;
}

.sch-price .is-credit {
  color: var(--sch-green);
}

.sch-price .is-credit i {
  margin-right: 4px;
}

.sch-credit-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: var(--sch-green);
  font-weight: 600;
}

/* Sponsor fund on the Referrals & Credits tab: its own panel, never
   added into the Referral Credit tiles. */
.referral-credits__sponsor[hidden] {
  display: none;
}

.referral-credits__sponsor .myaccount__panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.referral-credits__sponsor .myaccount__panel-title i {
  color: #f97316;
}

.referral-credits__sponsor-badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.referral-credits__sponsor-badge:empty {
  display: none;
}

.referral-credits__sponsor-badge[data-state="Active"] {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
}

.referral-credits__sponsor-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffb066;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.referral-credits__sponsor-link:hover {
  color: #f97316;
}

/* ================================================================ admin form: verify + steppers */

.sch-verify {
  position: relative;
  overflow: hidden;
  border-radius: var(--sch-radius-sm);
}

.sch-verify .sch-input {
  padding-left: 44px;
  padding-right: 46px;
  transition: border-color 0.25s var(--sch-ease), box-shadow 0.25s var(--sch-ease);
}

.sch-verify__lead {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  transform: translateY(-50%);
  color: var(--sch-faint);
  font-size: 17px;
  pointer-events: none;
}

.sch-verify__status {
  position: absolute;
  top: 50%;
  right: 14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  pointer-events: none;
}

.sch-verify__status > * {
  grid-area: 1 / 1;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.25s var(--sch-ease), transform 0.35s var(--sch-ease);
}

.sch-verify__spin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--sch-accent);
  animation: sch-spin 0.8s linear infinite;
}

.sch-verify__ok {
  color: var(--sch-green);
  font-size: 22px;
}

.sch-verify__bad {
  color: var(--sch-red);
  font-size: 22px;
}

/* The icon font's line box sits low; centre the glyph itself in the field. */
.sch-verify__status > i {
  display: block;
  line-height: 1;
}

.sch-verify[data-state="checking"] .sch-verify__spin,
.sch-verify[data-state="ok"] .sch-verify__ok,
.sch-verify[data-state="bad"] .sch-verify__bad {
  opacity: 1;
  transform: scale(1);
}

/* A light sweeps across the field while the lookup runs. */
.sch-verify__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 176, 102, 0.16) 50%, transparent 70%);
  background-size: 220% 100%;
}

.sch-verify[data-state="checking"] .sch-verify__scan {
  opacity: 1;
  animation: sch-verify-scan 1.1s linear infinite;
}

@keyframes sch-verify-scan {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

.sch-verify[data-state="ok"] .sch-input {
  border-color: rgba(52, 211, 153, 0.6);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
}

.sch-verify[data-state="bad"] .sch-input {
  border-color: rgba(248, 113, 113, 0.6);
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.1);
}

.sch-verify__msg {
  display: block;
  margin-top: 8px;
  line-height: 1.45;
  transition: color 0.2s;
}

.sch-verify[data-state="ok"] ~ .sch-verify__msg {
  color: var(--sch-green);
}

.sch-verify[data-state="bad"] ~ .sch-verify__msg {
  color: var(--sch-red);
}

.sch-verify__card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--sch-radius-sm);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.1), rgba(18, 18, 22, 0.5));
  border: 1px solid rgba(52, 211, 153, 0.35);
  animation: sch-pop 0.4s var(--sch-ease) both;
}

.sch-verify__card[hidden] {
  display: none;
}

.sch-verify__who {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.3;
}

.sch-verify__who small {
  overflow: hidden;
  color: var(--sch-faint);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sch-verify__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #04170f;
  background: linear-gradient(135deg, #6ee7b7, #34d399);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* − value + : the limits in the admin form. */
.sch-stepper {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--sch-radius-sm);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--sch-line-strong);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sch-stepper:focus-within {
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.sch-stepper__btn {
  display: grid;
  place-items: center;
  border: 0;
  color: var(--sch-ink);
  background: rgba(255, 255, 255, 0.04);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.sch-stepper__btn:hover:not(:disabled) {
  color: #140a02;
  background: var(--sch-grad);
}

.sch-stepper__btn:active:not(:disabled) {
  transform: scale(0.92);
}

.sch-stepper__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.sch-stepper__field {
  display: grid;
  place-items: center;
  padding: 6px 4px;
  border-inline: 1px solid var(--sch-line);
}

.sch-stepper__input {
  width: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--sch-ink);
  text-align: center;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}

.sch-stepper__input::-webkit-outer-spin-button,
.sch-stepper__input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.sch-stepper__caption {
  color: var(--sch-faint);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.sch-stepper.is-zero .sch-stepper__caption {
  color: var(--sch-accent-2);
}

.sch-stepper.is-bump .sch-stepper__input {
  animation: sch-stepper-bump 0.3s var(--sch-ease);
}

@keyframes sch-stepper-bump {
  40% {
    transform: scale(1.12);
    color: var(--sch-accent-2);
  }
}

.sch-btn:disabled {
  cursor: not-allowed;
}

/* ================================================================ dropdowns (sponsor-core.js) */

.sch-dd {
  position: relative;
  width: 100%;
  min-width: 0;
}

.sch-dd.is-open {
  z-index: 10070;
}

.sch-dd__native {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.sch-dd__button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px 11px 16px;
  border-radius: var(--sch-radius-sm);
  border: 1px solid var(--sch-line-strong);
  background: rgba(0, 0, 0, 0.35);
  color: var(--sch-ink);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.sch-dd__button:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.03);
}

.sch-dd__button:focus-visible,
.sch-dd.is-open .sch-dd__button {
  outline: none;
  border-color: rgba(249, 115, 22, 0.7);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.sch-dd.is-placeholder .sch-dd__value {
  color: var(--sch-faint);
}

.sch-dd.is-invalid .sch-dd__button {
  border-color: rgba(248, 113, 113, 0.7);
}

.sch-dd.is-disabled .sch-dd__button {
  opacity: 0.5;
  cursor: not-allowed;
}

.sch-dd__value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sch-dd__chevron {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: var(--sch-accent-2);
  background: rgba(249, 115, 22, 0.1);
  font-size: 18px;
  transition: transform 0.3s var(--sch-ease), background 0.2s;
}

.sch-dd.is-open .sch-dd__chevron {
  transform: rotate(180deg);
  background: rgba(249, 115, 22, 0.2);
}

.sch-dd__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 220px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid transparent;
  background:
    linear-gradient(#141418, #141418) padding-box,
    linear-gradient(160deg, rgba(255, 176, 102, 0.45), rgba(255, 255, 255, 0.06) 45%, rgba(249, 115, 22, 0.25)) border-box;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.4);
  transform-origin: top center;
  animation: sch-dd-in 0.2s var(--sch-ease) both;
}

.sch-dd.is-up .sch-dd__panel {
  top: auto;
  bottom: calc(100% + 8px);
  transform-origin: bottom center;
}

.sch-dd__panel[hidden] {
  display: none;
}

/* Calendar (sponsor-core.js enhanceCalendar): a date field in the dropdown's
   dress, opening a month card. */
.sch-cal .sch-cal__icon {
  font-size: 15px;
}
.sch-cal.is-open .sch-cal__icon {
  transform: none;
}
.sch-cal__panel {
  right: auto;
  width: 300px;
  max-width: calc(100vw - 32px);
  padding: 14px;
}
.sch-cal.is-end .sch-cal__panel {
  left: auto;
  right: 0;
}
.sch-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.sch-cal__title {
  color: var(--sch-ink);
  font-size: 15px;
}
.sch-cal__nav {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--sch-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--sch-ink);
  font-size: 18px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.sch-cal__nav:hover:not(:disabled) {
  border-color: rgba(249, 115, 22, 0.55);
  color: var(--sch-accent-2);
}
.sch-cal__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.sch-cal__week,
.sch-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.sch-cal__week span {
  padding: 4px 0;
  color: var(--sch-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}
.sch-cal__day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--sch-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sch-cal__day:hover:not(:disabled),
.sch-cal__day:focus-visible {
  outline: none;
  border-color: rgba(249, 115, 22, 0.55);
  background: rgba(249, 115, 22, 0.1);
}
.sch-cal__day.is-out {
  color: var(--sch-faint);
  opacity: 0.55;
}
.sch-cal__day.is-today {
  border-color: rgba(249, 115, 22, 0.45);
  color: var(--sch-accent-2);
}
.sch-cal__day.is-chosen {
  border-color: transparent;
  background: var(--sch-grad);
  color: #140a02;
  box-shadow: 0 6px 18px -6px rgba(249, 115, 22, 0.7);
}
.sch-cal__day:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}
.sch-cal__foot {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--sch-line);
}
.sch-cal__link {
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--sch-accent-2);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.sch-cal__link:hover:not(:disabled) {
  background: rgba(249, 115, 22, 0.1);
}
.sch-cal__link:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@keyframes sch-dd-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
}

.sch-dd__search {
  position: relative;
  margin: 2px 2px 6px;
}

.sch-dd__search[hidden] {
  display: none;
}

.sch-dd__search i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: var(--sch-faint);
}

.sch-dd__search input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border-radius: 10px;
  border: 1px solid var(--sch-line);
  outline: none;
  background: rgba(0, 0, 0, 0.35);
  color: var(--sch-ink);
  font: inherit;
  font-size: 14px;
}

.sch-dd__search input:focus {
  border-color: rgba(249, 115, 22, 0.55);
}

.sch-dd__list {
  max-height: 264px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.sch-dd__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--sch-muted);
  font-size: 14.5px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.sch-dd__option[hidden] {
  display: none;
}

.sch-dd__option i {
  opacity: 0;
  color: var(--sch-accent);
  font-size: 17px;
  transform: scale(0.5);
  transition: opacity 0.2s, transform 0.25s var(--sch-ease);
}

.sch-dd__option.is-active {
  color: var(--sch-ink);
  background: rgba(255, 255, 255, 0.06);
}

.sch-dd__option[aria-selected="true"] {
  color: var(--sch-ink);
  font-weight: 600;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.18), rgba(249, 115, 22, 0.04));
}

.sch-dd__option[aria-selected="true"] i {
  opacity: 1;
  transform: scale(1);
}

.sch-dd__option.is-any {
  color: var(--sch-faint);
}

.sch-dd__option[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
}

.sch-dd__empty {
  margin: 8px 10px;
  color: var(--sch-faint);
  font-size: 13px;
}

.sch-dd__empty[hidden] {
  display: none;
}

/* No browser spin buttons anywhere in the sponsorship pages. */
.sch input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.sch input[type="number"]::-webkit-outer-spin-button,
.sch input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.sch-admin__bar .sch-dd {
  flex: 0 1 250px;
}

.sch-admin__bar .sch-dd__button {
  min-height: 44px;
  border-radius: 999px;
}

/* ================================================================ admin dialog (responsive card) */

/* Head and actions stay put; only the middle scrolls, so nothing is ever
   pushed off screen however tall the form grows. */
.sch-modal__box.sch-adminform {
  display: flex;
  flex-direction: column;
  width: min(940px, 100%);
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
}

.sch-adminform__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(18px, 3vw, 26px) clamp(18px, 3vw, 28px) 16px;
  border-bottom: 1px solid var(--sch-line);
}

.sch-adminform__head .sch-h2 {
  margin: 0;
}

.sch-adminform__head .sch-small {
  margin: 4px 0 0;
}

.sch-adminform__head > div {
  flex: 1 1 auto;
  min-width: 0;
}

.sch-adminform__badge {
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 22px;
  color: #140a02;
  background: var(--sch-grad);
  box-shadow: 0 12px 26px -10px rgba(249, 115, 22, 0.8);
}

.sch-adminform__close {
  flex: 0 0 auto;
}

.sch-adminform__body {
  display: grid;
  gap: 22px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 20px clamp(18px, 3vw, 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

@media (min-width: 860px) {
  .sch-adminform__body {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
    gap: 28px;
  }

  .sch-adminform__col + .sch-adminform__col {
    padding-left: 28px;
    border-left: 1px solid var(--sch-line);
  }
}

.sch-adminform__col {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.sch-adminform__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
  color: var(--sch-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sch-adminform__title span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--sch-accent-2);
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(249, 115, 22, 0.35);
  font-size: 11px;
  letter-spacing: 0;
}

.sch-adminform__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px clamp(18px, 3vw, 28px);
  border-top: 1px solid var(--sch-line);
  background: rgba(10, 10, 13, 0.85);
}

.sch-adminform__foot .sch-modal__actions {
  margin: 0 0 0 auto;
}

.sch-adminform__foot .sch-error:empty {
  display: none;
}

/* Permissions as switches, grouped. */
.sch-toggles {
  display: grid;
  gap: 8px;
}

.sch-toggles__group {
  margin: 8px 0 0;
  color: var(--sch-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sch-toggles__group:first-child {
  margin-top: 0;
}


.sch-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--sch-radius-sm);
  border: 1px solid var(--sch-line);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--sch-ease);
}

.sch-toggle:hover {
  border-color: var(--sch-line-strong);
  transform: translateY(-1px);
}

.sch-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sch-toggle__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--sch-muted);
  background: rgba(255, 255, 255, 0.05);
  font-size: 18px;
  transition: background 0.25s, color 0.25s;
}

.sch-toggle__text {
  display: grid;
  min-width: 0;
  line-height: 1.3;
}

.sch-toggle__text small {
  color: var(--sch-faint);
  font-size: 12px;
}

.sch-toggle__switch {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--sch-line-strong);
  transition: background 0.25s;
}

.sch-toggle__switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d4d4d8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s var(--sch-ease), background 0.25s;
}

.sch-toggle:has(input:checked) {
  border-color: rgba(249, 115, 22, 0.45);
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.12), rgba(249, 115, 22, 0.02));
}

.sch-toggle input:checked ~ .sch-toggle__icon {
  color: #140a02;
  background: var(--sch-grad);
}

.sch-toggle input:checked ~ .sch-toggle__switch {
  background: var(--sch-grad);
  border-color: transparent;
}

.sch-toggle input:checked ~ .sch-toggle__switch::after {
  background: #fff;
  transform: translateX(18px);
}

.sch-toggle input:focus-visible ~ .sch-toggle__switch {
  outline: 2px solid var(--sch-accent-2);
  outline-offset: 3px;
}

/* Phones: a full-height sheet. */
@media (max-width: 560px) {
  .sch-modal:has(.sch-adminform) {
    padding: 0;
    place-items: end stretch;
  }

  .sch-modal__box.sch-adminform {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }

  .sch-adminform .sch-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Long dropdowns (the course picker) open as a centred card over a dim page. */
.sch-dd-host {
  position: relative;
  z-index: 10080;
}

.sch-dd__sheethead {
  display: none;
}

.sch-dd__backdrop {
  position: fixed;
  inset: 0;
  z-index: 10080;
  background: rgba(5, 5, 8, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: sch-fade 0.2s ease both;
}

.sch-dd__backdrop[hidden] {
  display: none;
}

.sch-dd__panel.is-sheet {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  z-index: 10081;
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100vw - 32px));
  max-height: min(640px, calc(100dvh - 48px));
  padding: 10px;
  border-radius: 22px;
  transform: translate(-50%, -50%);
  animation: sch-dd-sheet 0.28s var(--sch-ease) both;
}

@keyframes sch-dd-sheet {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.97);
  }
}

.sch-dd__panel.is-sheet .sch-dd__sheethead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 8px 12px 12px;
  font-size: 17px;
}

.sch-dd__panel.is-sheet .sch-dd__search {
  margin: 0 2px 8px;
}

.sch-dd__panel.is-sheet .sch-dd__search input {
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 15px;
}

.sch-dd__panel.is-sheet .sch-dd__list {
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
}

.sch-dd__panel.is-sheet .sch-dd__option {
  padding: 12px 14px;
}

html.sch-dd-locked,
html.sch-dd-locked body {
  overflow: hidden;
}

@media (max-width: 560px) {
  .sch-dd__panel.is-sheet {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 82dvh;
    border-radius: 22px 22px 0 0;
    transform: none;
    animation-name: sch-dd-sheet-up;
  }

  @keyframes sch-dd-sheet-up {
    from {
      transform: translateY(30px);
      opacity: 0;
    }
  }
}

/* ================================================================ application drawer */

.sch-dw-who {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sch-dw-avatar {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #140a02;
  background: var(--sch-grad);
  font-size: 19px;
  font-weight: 800;
  box-shadow: 0 10px 24px -10px rgba(249, 115, 22, 0.8);
}

.sch-dw-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

@media (min-width: 620px) {
  .sch-dw-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.sch-dw-tile {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 14px;
  overflow: hidden;
  border-radius: var(--sch-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--sch-line);
  animation: sch-fade 0.35s var(--sch-ease) both;
}

.sch-dw-tile:nth-child(2) { animation-delay: 0.04s; }
.sch-dw-tile:nth-child(3) { animation-delay: 0.08s; }
.sch-dw-tile:nth-child(4) { animation-delay: 0.12s; }

.sch-dw-tile i {
  margin-bottom: 6px;
  color: var(--sch-accent-2);
  font-size: 18px;
}

.sch-dw-tile span {
  color: var(--sch-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sch-dw-tile b {
  overflow: hidden;
  font-size: clamp(17px, 2.2vw, 21px);
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sch-dw-tile small {
  color: var(--sch-faint);
  font-size: 12px;
}

.sch-dw-tile--accent {
  border-color: rgba(249, 115, 22, 0.4);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(249, 115, 22, 0.02));
}

.sch-dw-tile--warn {
  border-color: rgba(251, 191, 36, 0.45);
}

.sch-dw-tile--warn small,
.sch-dw-tile--warn i {
  color: var(--sch-amber);
}

/* Tabs inside the drawer, stuck under its head. */
.sch-dw-tabs {
  position: sticky;
  top: 62px;
  z-index: 1;
  display: flex;
  gap: 6px;
  margin: 0 0 16px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(15, 15, 19, 0.92);
  border: 1px solid var(--sch-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sch-dw-tabs button {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: var(--sch-muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.sch-dw-tabs button:hover {
  color: var(--sch-ink);
}

.sch-dw-tabs button[aria-selected="true"] {
  color: #140a02;
  background: var(--sch-grad);
  box-shadow: 0 8px 20px -10px rgba(249, 115, 22, 0.9);
}

.sch-dw-tabs button[aria-selected="true"] .sch-count {
  color: #140a02;
  background: rgba(0, 0, 0, 0.15);
}

.sch-dw-pane {
  display: grid;
  gap: 14px;
  animation: sch-fade 0.25s var(--sch-ease) both;
}

.sch-dw-pane[hidden] {
  display: none;
}

/* The one thing to do next. */
.sch-dw-step {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: var(--sch-radius);
  border: 1px solid transparent;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(249, 115, 22, 0.12), transparent 70%) padding-box,
    linear-gradient(#141418, #141418) padding-box,
    linear-gradient(150deg, rgba(255, 176, 102, 0.55), rgba(255, 255, 255, 0.05) 45%, rgba(249, 115, 22, 0.3)) border-box;
}

.sch-dw-step--warn {
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(251, 191, 36, 0.12), transparent 70%) padding-box,
    linear-gradient(#141418, #141418) padding-box,
    linear-gradient(150deg, rgba(251, 191, 36, 0.55), rgba(255, 255, 255, 0.05) 45%, rgba(251, 191, 36, 0.25)) border-box;
}

.sch-dw-step--calm {
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--sch-line);
}

.sch-dw-step header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sch-dw-step header b {
  display: block;
  font-size: 17px;
}

.sch-dw-step header small {
  display: block;
  margin-top: 2px;
  color: var(--sch-faint);
  font-size: 13px;
  line-height: 1.45;
}

.sch-dw-step__icon {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #140a02;
  background: var(--sch-grad);
  font-size: 20px;
}

.sch-dw-step--warn .sch-dw-step__icon {
  background: linear-gradient(135deg, #fde68a, #fbbf24);
}

.sch-dw-step--calm .sch-dw-step__icon {
  color: var(--sch-muted);
  background: rgba(255, 255, 255, 0.06);
}

.sch-dw-step__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.sch-dw-pool {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  color: var(--sch-faint);
  font-size: 13px;
}

.sch-dw-pool b {
  color: var(--sch-ink);
  font-variant-numeric: tabular-nums;
}

.sch-dw-pool__bar {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.5), rgba(52, 211, 153, 0.25));
}

.sch-dw-pool__bar i {
  display: block;
  height: 100%;
  margin-left: auto;
  border-radius: 999px;
  background: var(--sch-grad);
  transition: width 0.35s var(--sch-ease);
}

.sch-dw-alloc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.sch-dw-alloc__amount {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sch-dw-alloc__amount .sch-input {
  width: 150px;
}

.sch-dw-alloc__amount span {
  color: var(--sch-faint);
}

.sch-chip.is-on,
.sch-chip--hot.is-on {
  color: #140a02;
  background: var(--sch-grad);
  border-color: transparent;
}

.sch-chip--hot {
  border-color: rgba(249, 115, 22, 0.45);
  color: var(--sch-accent-2);
}

.sch-dw-preview {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--sch-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--sch-line-strong);
  font-size: 13.5px;
}

.sch-dw-preview b {
  color: var(--sch-green);
  font-variant-numeric: tabular-nums;
}

.sch-dw-preview.is-bad {
  color: var(--sch-red);
  border-color: rgba(248, 113, 113, 0.4);
}

/* Cards in the panes. */
.sch-dw-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--sch-radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--sch-line);
}

.sch-dw-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
}

.sch-dw-card h4 i {
  color: var(--sch-accent-2);
  font-size: 17px;
}

.sch-dw-docs {
  display: grid;
  gap: 10px;
}

@media (min-width: 560px) {
  .sch-dw-docs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sch-dw-doc {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--sch-line-strong);
  color: var(--sch-ink);
  background: rgba(0, 0, 0, 0.3);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s var(--sch-ease), background 0.2s;
}

.sch-dw-doc:hover {
  border-color: rgba(249, 115, 22, 0.5);
  background: rgba(249, 115, 22, 0.06);
  transform: translateY(-2px);
}

.sch-dw-doc > i:first-of-type {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--sch-accent-2);
  background: rgba(249, 115, 22, 0.12);
  font-size: 19px;
}

.sch-dw-doc > span:not(.sch-spinner) {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.3;
}

.sch-dw-doc small {
  color: var(--sch-faint);
  font-size: 12px;
}

.sch-dw-doc__go {
  color: var(--sch-faint);
}

.sch-dw-doc.is-missing {
  opacity: 0.55;
  cursor: default;
}

.sch-dw-dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px 18px;
  margin: 0;
}

.sch-dw-dl div {
  min-width: 0;
}

.sch-dw-dl dt {
  color: var(--sch-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sch-dw-dl dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.sch-dw-course {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 12px 16px;
  border-radius: var(--sch-radius-sm);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(249, 115, 22, 0.02));
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.sch-dw-course i {
  color: var(--sch-accent-2);
  font-size: 20px;
}

.sch-dw-course span {
  color: var(--sch-faint);
}

.sch-dw-quote {
  position: relative;
  margin: 0;
  padding: 18px 18px 14px 50px;
  border-radius: var(--sch-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--sch-accent);
  color: var(--sch-ink);
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.sch-dw-quote > i {
  position: absolute;
  top: 14px;
  left: 16px;
  color: var(--sch-accent);
  font-size: 22px;
}

.sch-dw-quote cite {
  display: block;
  margin-top: 8px;
  color: var(--sch-faint);
  font-size: 12.5px;
  font-style: normal;
}

.sch-dw-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sch-dw-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}

.sch-dw-list li > span:nth-child(2) {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
}

.sch-dw-list small {
  color: var(--sch-faint);
  font-size: 12px;
}

.sch-dw-list__amt {
  min-width: 78px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sch-dw-timeline {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0 0 0 22px;
  list-style: none;
}

.sch-dw-timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: 2px;
  background: linear-gradient(var(--sch-accent), rgba(249, 115, 22, 0.1));
}

.sch-dw-timeline li {
  position: relative;
  display: grid;
}

.sch-dw-timeline li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -21px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0f0f13;
  border: 2px solid var(--sch-accent);
}

.sch-dw-timeline li:first-child::before {
  background: var(--sch-accent);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
}

.sch-dw-timeline small {
  color: var(--sch-faint);
  font-size: 12px;
}

.sch-dw-timeline p {
  margin: 4px 0 0;
  color: var(--sch-muted);
  font-size: 13px;
}

.sch-dw-doc .sch-spinner {
  display: none;
}

.sch-dw-doc.is-busy .sch-spinner {
  display: inline-block;
}

.sch-dw-doc.is-busy > i:first-of-type {
  display: none;
}

.sch-dw-tile b {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* ================================================================ phone polish */

@media (max-width: 560px) {
  .sch-stat__sub {
    display: block;
    font-size: 11.5px;
    line-height: 1.35;
  }

  .sch-hero__actions .sch-btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .sch-quick .sch-btn {
    flex: 1 1 140px;
    justify-content: center;
  }

  /* All five bars stay in view; only the current step names itself. */
  .sch-steps {
    overflow: visible;
  }

  .sch-step {
    flex: 1 1 0;
    min-width: 0;
    gap: 0;
    font-size: 0;
    transition: flex-grow 0.4s var(--sch-ease);
  }

  .sch-step.is-current {
    flex-grow: 3;
    gap: 9px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  .sch-callout > .sch-btn,
  .sch-callout .sch-callout__text + .sch-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 561px) and (max-width: 1180px) {
  /* Admin sections on a tablet: every one in view, in rows of four. */
  .sch-segment {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-radius: 24px;
  }
}

@media (max-width: 560px) {
  /* Admin sections: all four always in view. */
  .sch-segment {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    border-radius: 20px;
  }

  .sch-segment button {
    justify-content: center;
  }

  .sch-admin__hero-actions {
    width: 100%;
  }

  .sch-admin__hero-actions .sch-btn {
    flex: 1 1 140px;
    justify-content: center;
  }

  .sch-admin__bar .sch-dd {
    flex: 1 1 100%;
  }
}

/* Tablets: the card layout of tables gets two columns of cards. */
@media (min-width: 600px) and (max-width: 899px) {
  .sch-table--cards tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .sch-tabs {
    flex-wrap: wrap;
    overflow: visible;
  }
}

@media (max-width: 420px) {
  .sch-segment button {
    padding-inline: 8px;
    font-size: 13px;
    white-space: nowrap;
  }

  .sch-dw-tabs button {
    padding-inline: 6px;
    font-size: 13px;
  }

  .sch-dw-tabs button i {
    display: none;
  }
}

/* ================================================================ donate: locked */

/* No credits (or donations paused / credits owed): the controls stay in view,
   greyed out and inert, under a lock that says why. */
.sch-donate__lock {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 14px;
  margin: 14px 0 6px;
  padding: 14px 16px;
  border-radius: var(--sch-radius-sm);
  border: 1px dashed rgba(255, 176, 102, 0.4);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(0, 0, 0, 0.25));
  animation: sch-fade 0.3s var(--sch-ease) both;
}

.sch-donate__lock[hidden] {
  display: none;
}

.sch-donate__lock-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #140a02;
  background: var(--sch-grad);
  font-size: 20px;
  box-shadow: 0 10px 24px -10px rgba(249, 115, 22, 0.8);
}

.sch-donate__lock-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1.4;
}

.sch-donate__lock-text span {
  color: var(--sch-muted);
  font-size: 13.5px;
}

.sch-donate__lock .sch-btn[hidden] {
  display: none;
}

@media (max-width: 520px) {
  .sch-donate__lock {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .sch-donate__lock .sch-btn {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

.is-locked [data-donate-form] {
  position: relative;
  opacity: 0.38;
  filter: grayscale(0.7);
  pointer-events: none;
  user-select: none;
}

.is-locked .sch-donate__balance strong {
  color: var(--sch-faint);
}

/* ================================================================ date of birth */

.sch-dob {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 8px;
}

.sch-dob__native {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.sch-dob__part {
  min-width: 0;
}

.sch-dob .sch-dd__panel {
  min-width: 150px;
}

.sch-dob.is-set .sch-dd__button {
  border-color: rgba(52, 211, 153, 0.35);
}

.has-error .sch-dob .sch-dd__button {
  border-color: rgba(248, 113, 113, 0.7);
}

.sch-dob .sch-dd__button {
  gap: 6px;
  padding-inline: 12px 8px;
}

.sch-dob .sch-dd__chevron {
  width: 22px;
  height: 22px;
  font-size: 16px;
}

@media (max-width: 420px) {
  .sch-dob {
    gap: 6px;
  }

  .sch-dob .sch-dd__button {
    padding-inline: 10px 6px;
  }

  .sch-dob .sch-dd__chevron {
    width: 18px;
    background: none;
  }

  .sch-dob__part--year .sch-dd__panel {
    left: auto;
    right: 0;
  }
}

/* ================================================================ country code */

.sch-inline {
  grid-template-columns: minmax(118px, 170px) minmax(0, 1fr);
}

.sch-dial {
  position: relative;
  min-width: 0;
}

.sch-hidden-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Country and Nationality light up briefly when the code fills them. */
.sch-field.is-autofilled .sch-input {
  animation: sch-autofill 1.2s var(--sch-ease);
}

@keyframes sch-autofill {
  0% {
    border-color: rgba(52, 211, 153, 0.8);
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
  }
}

@media (max-width: 520px) {
  .sch-inline {
    grid-template-columns: 124px minmax(0, 1fr);
  }

  .sch-dial .sch-dd__button {
    padding-inline: 12px 8px;
  }
}

/* ================================================================ application review */

.sch-rv-intro {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--sch-radius-sm);
  color: var(--sch-muted);
  background: rgba(251, 191, 36, 0.07);
  border: 1px solid rgba(251, 191, 36, 0.3);
  font-size: 14px;
  line-height: 1.5;
}

.sch-rv-intro i {
  color: var(--sch-amber);
  font-size: 18px;
}

.sch-rv-intro b {
  color: var(--sch-ink);
}

.sch-rv {
  display: grid;
  gap: 14px;
}

.sch-rv-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  padding: 16px 18px;
  border-radius: var(--sch-radius);
  border: 1px solid transparent;
  background:
    radial-gradient(360px 140px at 100% 0%, rgba(249, 115, 22, 0.14), transparent 70%) padding-box,
    linear-gradient(#141418, #141418) padding-box,
    linear-gradient(140deg, rgba(255, 176, 102, 0.5), rgba(255, 255, 255, 0.05) 50%, rgba(249, 115, 22, 0.3)) border-box;
}

.sch-rv-head > div {
  display: grid;
  flex: 1 1 200px;
  min-width: 0;
}

.sch-rv-head b {
  font-size: 18px;
}

.sch-rv-head span:not(.sch-rv-avatar):not(.sch-rv-ready) {
  overflow: hidden;
  color: var(--sch-faint);
  font-size: 13px;
  text-overflow: ellipsis;
}

.sch-rv-avatar {
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #140a02;
  background: var(--sch-grad);
  font-size: 21px;
  font-weight: 800;
}

.sch-rv-ready {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--sch-green);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
  font-size: 12.5px;
  font-weight: 700;
}

.sch-rv-card {
  padding: 16px 18px;
  border-radius: var(--sch-radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--sch-line);
  animation: sch-fade 0.4s var(--sch-ease) both;
  animation-delay: calc(var(--i, 0) * 0.06s);
}

.sch-rv-card header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.sch-rv-card header b {
  flex: 1 1 auto;
  font-size: 15.5px;
}

.sch-rv-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--sch-accent-2);
  background: rgba(249, 115, 22, 0.12);
  font-size: 17px;
}

.sch-rv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px 22px;
  margin: 0;
}

.sch-rv-row {
  min-width: 0;
}

.sch-rv-row.is-wide {
  grid-column: 1 / -1;
}

.sch-rv-row dt {
  color: var(--sch-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sch-rv-row dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.sch-rv-row dd small {
  margin-left: 6px;
  color: var(--sch-faint);
  font-size: 12.5px;
}

.sch-rv-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--sch-line-strong);
}

.sch-rv-file i {
  color: var(--sch-green);
  font-size: 17px;
}

.sch-rv-file em {
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  color: var(--sch-green);
  background: rgba(52, 211, 153, 0.12);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.sch-rv-quote {
  margin: 4px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--sch-accent);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.03);
  white-space: pre-wrap;
  line-height: 1.6;
}

@media (max-width: 520px) {
  .sch-rv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
  }

  .sch-rv-card,
  .sch-rv-head {
    padding: 14px;
  }
}

.sch-rv-row dd small {
  white-space: nowrap;
}

/* Why Submit is still locked, beside it. The hint is the part that gives way
   (its text wraps), so Back and Submit stay on one row at either end. */
.sch-submit-hint {
  display: block;
  flex: 1 1 120px;
  align-self: center;
  min-width: 0;
  max-width: 340px;
  margin-left: auto;
  color: var(--sch-faint);
  font-size: 13px;
  text-align: right;
}

.sch-form-nav > .sch-btn {
  flex: 0 0 auto;
}

.sch-form-nav > [data-submit],
.sch-form-nav > [data-next] {
  margin-left: auto;
}

.sch-submit-hint[hidden] {
  display: none;
}

.sch-submit-hint i {
  margin-right: 4px;
  color: var(--sch-accent-2);
}

@media (max-width: 560px) {
  /* Phones: Back, then Submit across the full width, then the notes. */
  .sch-submit-hint {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    margin: 4px 0 0;
    text-align: center;
  }

  .sch-form-nav > .sch-draft-status {
    order: 4;
    flex: 1 1 100%;
    justify-content: center;
  }

  .sch-form-nav > [data-submit] {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* A hidden button stays hidden even where no site-wide [hidden] rule loads. */
.sch-btn[hidden] {
  display: none;
}

.sch-rv-file em {
  white-space: nowrap;
}

.sch-rv-file {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ================================================================ application draft */

.sch-draft {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: var(--sch-radius-sm);
  color: var(--sch-muted);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(18, 18, 22, 0.4));
  border: 1px solid rgba(96, 165, 250, 0.35);
  font-size: 14px;
  animation: sch-fade 0.35s var(--sch-ease) both;
}

.sch-draft > i {
  color: var(--sch-blue);
  font-size: 19px;
}

.sch-draft > span {
  flex: 1 1 240px;
}

.sch-draft b {
  color: var(--sch-ink);
}

.sch-draft-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sch-faint);
  font-size: 12.5px;
}

.sch-draft-status[hidden] {
  display: none;
}

.sch-draft-status i {
  color: var(--sch-green);
}

/* ================================================================ confirm dialog (S.confirm) */

.sch-confirm {
  z-index: 10060;
}

.sch-confirm__box {
  width: min(440px, 100%);
  text-align: center;
}

.sch-confirm__box .sch-h2 {
  margin: 4px 0 8px;
  font-size: clamp(19px, 2.6vw, 22px);
}

.sch-confirm__box .sch-muted {
  margin: 0;
  line-height: 1.55;
}

.sch-confirm__box .sch-modal__actions {
  justify-content: center;
}

.sch-confirm__box .sch-modal__actions .sch-btn {
  flex: 1 1 150px;
  justify-content: center;
}

.sch-confirm__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 20px;
  font-size: 28px;
  color: #140a02;
  background: var(--sch-grad);
  box-shadow: 0 14px 30px -10px rgba(249, 115, 22, 0.8);
  animation: sch-confirm-pop 0.45s var(--sch-ease) both;
}

.sch-confirm[data-tone="success"] .sch-confirm__icon {
  color: #04170f;
  background: linear-gradient(135deg, #6ee7b7, #34d399);
  box-shadow: 0 14px 30px -10px rgba(52, 211, 153, 0.8);
}

.sch-confirm[data-tone="danger"] .sch-confirm__icon {
  color: #fff;
  background: linear-gradient(135deg, #fb7185, #ef4444);
  box-shadow: 0 14px 30px -10px rgba(239, 68, 68, 0.8);
}

@keyframes sch-confirm-pop {
  from {
    transform: scale(0.6) rotate(-8deg);
    opacity: 0;
  }
}

/* ================================================================ allocate fund: sources */

.sch-dw-sources {
  display: grid;
  gap: 10px;
}

.sch-dw-src {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: var(--sch-radius-sm);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--sch-line);
  transition: border-color 0.25s, background 0.25s;
}

.sch-dw-src.is-used {
  border-color: rgba(249, 115, 22, 0.45);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(0, 0, 0, 0.22));
}

.sch-dw-src--academy.is-used {
  border-color: rgba(96, 165, 250, 0.5);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.08), rgba(0, 0, 0, 0.22));
}

.sch-dw-src__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sch-dw-src__head > span:nth-child(2) {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.3;
}

.sch-dw-src__head small {
  color: var(--sch-faint);
  font-size: 12px;
}

.sch-dw-src__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  color: var(--sch-accent-2);
  background: rgba(249, 115, 22, 0.12);
  font-size: 17px;
}

.sch-dw-src--academy .sch-dw-src__icon {
  color: var(--sch-blue);
  background: rgba(96, 165, 250, 0.12);
}

.sch-dw-src--academy .sch-dw-pool__bar {
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.45), rgba(96, 165, 250, 0.2));
}

.sch-dw-src--academy .sch-dw-pool__bar i {
  background: linear-gradient(90deg, #93c5fd, #a78bfa);
}

.sch-dw-src__after {
  color: var(--sch-faint);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sch-dw-src__after b {
  color: var(--sch-ink);
}

.sch-dw-preview__total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 4px;
}

.sch-dw-preview__total b {
  color: var(--sch-green);
  font-size: 17px;
}

.sch-dw-preview__total span {
  color: var(--sch-muted);
}

.sch-dw-preview__total span + span::before {
  content: "+ ";
}

@media (max-width: 520px) {
  .sch-dw-src__after {
    display: none;
  }
}

/* What the student asked for, inline in the allocate card's subtitle. */
.sch-dw-step header small .sch-dw-ask {
  color: var(--sch-ink);
  font-weight: 700;
}

/* ================================================================ funded by (sponsored student's tab) */

.sch-funded {
  display: grid;
  gap: 8px;
  margin: 2px 0 4px;
}

.sch-funded__title {
  color: var(--sch-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sch-funded__row {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 14px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--sch-line);
  text-align: left;
}

.sch-funded__row > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--sch-accent-2);
  background: rgba(249, 115, 22, 0.12);
  font-size: 17px;
}

.sch-funded__row--academy > i {
  color: var(--sch-blue);
  background: rgba(96, 165, 250, 0.12);
}

.sch-funded__row span {
  display: grid;
  min-width: 0;
  line-height: 1.3;
}

.sch-funded__row small {
  color: var(--sch-faint);
  font-size: 12px;
}

.sch-funded__row strong {
  font-variant-numeric: tabular-nums;
}

.sch-funded__bar {
  position: absolute !important;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.sch-funded__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--sch-grad);
  animation: sch-grow 0.9s var(--sch-ease) both;
}

.sch-funded__row--academy .sch-funded__bar i {
  background: linear-gradient(90deg, #93c5fd, #a78bfa);
}

/* ================================================================ faces */

/* A GitLab picture sits over the initial; the initial shows if it fails. */
.sch-face {
  position: relative;
  overflow: hidden;
}

.sch-face__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  background: #18181b;
}

.sch-face.has-picture .sch-face__initial {
  visibility: hidden;
}

.sch-board__who--face {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sch-board__who--face .sch-avatar-sm {
  margin-right: 0;
}

.sch-board__text {
  flex: 1 1 auto;
  min-width: 0;
}

.sch-ticker__face {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: var(--sch-grad);
  color: #140a02;
  font-size: 11px;
  font-weight: 700;
}

/* ================================================================ our sponsored students */

.sch-sponsored {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 48px) clamp(24px, 4vw, 44px);
  border-radius: calc(var(--sch-radius) + 10px);
  border: 1px solid transparent;
  background:
    radial-gradient(720px 340px at 50% 0%, rgba(52, 211, 153, 0.14), transparent 65%) padding-box,
    radial-gradient(800px 380px at 50% 115%, rgba(96, 165, 250, 0.14), transparent 70%) padding-box,
    linear-gradient(#0e0e12, #0e0e12) padding-box,
    linear-gradient(180deg, rgba(52, 211, 153, 0.5), rgba(255, 255, 255, 0.05) 45%, rgba(96, 165, 250, 0.4)) border-box;
  box-shadow: 0 40px 100px -44px rgba(52, 211, 153, 0.35);
}

.sch-sponsored__glow {
  position: absolute;
  top: -120px;
  left: 50%;
  z-index: -1;
  width: min(520px, 90%);
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(52, 211, 153, 0.22), transparent);
  filter: blur(20px);
  transform: translateX(-50%);
  animation: sch-sponsored-breathe 7s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes sch-sponsored-breathe {
  to {
    opacity: 0.55;
    transform: translateX(-50%) scale(1.15);
  }
}

.sch-sponsored__head {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.sch-sponsored__head .sch-muted {
  margin: 0;
  max-width: 560px;
}

.sch-sponsored__count {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
  color: var(--sch-muted);
  font-size: 13px;
}

.sch-sponsored__count b {
  color: var(--sch-green);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.sch-sponsored__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin: 18px 0 24px;
}

.sch-sponsored__legend .sch-small + .sch-source {
  margin-left: 10px;
}

.sch-sponsored__grid {
  /* Cards of one width, centred: a few students sit in the middle of the row. */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 220px));
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sch-sponsored-card {
  --ring: linear-gradient(135deg, #ffb066, #ea580c);
  --glow: rgba(249, 115, 22, 0.35);
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 22px 14px 16px;
  overflow: hidden;
  border-radius: calc(var(--sch-radius-sm) + 4px);
  border: 1px solid var(--sch-line);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  animation: sch-fade 0.5s var(--sch-ease) both;
  transition: transform 0.35s var(--sch-ease), border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.sch-sponsored-card.is-academy {
  --ring: linear-gradient(135deg, #93c5fd, #3b82f6);
  --band: linear-gradient(90deg, #93c5fd, #3b82f6);
  --glow: rgba(96, 165, 250, 0.35);
}

/* Both sources: orange for the Sponsorship Pool, blue for the Academy Fund. */
.sch-sponsored-card.is-both {
  --ring: conic-gradient(from 200deg, #ffb066, #f97316, #60a5fa, #3b82f6, #ffb066);
  --band: linear-gradient(90deg, #f97316 0 50%, #60a5fa 50% 100%);
  --glow: rgba(96, 165, 250, 0.3);
}

/* A thin band of the source's colour along the top edge. */
.sch-sponsored-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: var(--band, var(--ring));
  opacity: 0.85;
}

.sch-sponsored-card:hover {
  transform: translateY(-4px);
  border-color: var(--sch-line-strong);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 22px 40px -24px var(--glow);
}

.sch-sponsored-card.is-loading {
  min-height: 160px;
  animation: none;
}

.sch-sponsored__face {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 4px;
  border: 3px solid transparent;
  border-radius: 50%;
  background: var(--sch-grad) padding-box, var(--ring) border-box;
  box-shadow: 0 10px 26px -10px var(--glow);
  color: #140a02;
  font-size: 24px;
  font-weight: 700;
}

.sch-sponsored__name {
  max-width: 100%;
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sch-sponsored__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: var(--sch-muted);
  font-size: 12.5px;
}

.sch-sponsored__date i {
  color: var(--sch-green);
}

.sch-sponsored__from {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.sch-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.32);
  background: rgba(249, 115, 22, 0.12);
  color: var(--sch-accent-2);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.sch-source--academy {
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.12);
  color: var(--sch-blue);
}

.sch-source__and {
  color: var(--sch-faint);
  font-size: 12px;
  font-weight: 700;
}

.sch-sponsored__empty {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--sch-radius-sm);
  border: 1px dashed var(--sch-line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--sch-muted);
}

.sch-sponsored__empty > i {
  color: var(--sch-green);
  font-size: 22px;
}

.sch-sponsored__empty > span {
  flex: 1 1 240px;
}

.sch-sponsored__more {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

@media (max-width: 480px) {
  .sch-sponsored__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .sch-sponsored-card {
    padding: 18px 8px 14px;
  }

  .sch-sponsored__face {
    width: 54px;
    height: 54px;
    font-size: 20px;
  }

  .sch-sponsored__name {
    font-size: 14.5px;
  }

  .sch-sponsored__date {
    font-size: 11.5px;
  }

  .sch-source {
    padding: 2px 7px;
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sch-sponsored-card,
  .sch-sponsored__glow {
    animation: none;
    transition: none;
  }

  .sch-sponsored-card:hover {
    transform: none;
  }
}

/* ================================================================ sponsored students list opt-in (apply review) */

.sch-optin {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
  padding: 14px;
  border-radius: var(--sch-radius-sm);
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.08), rgba(18, 18, 22, 0.4));
  cursor: pointer;
  transition: border-color 0.25s var(--sch-ease), box-shadow 0.25s var(--sch-ease);
}

.sch-optin:has(input:checked) {
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 14px 34px -20px rgba(52, 211, 153, 0.7);
}

.sch-optin__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6ee7b7, #34d399);
  color: #04170f;
  font-size: 19px;
}

.sch-optin__text {
  display: grid;
  flex: 1 1 auto;
  gap: 2px;
  min-width: 0;
  line-height: 1.35;
}

.sch-optin__text small {
  color: var(--sch-faint);
  font-size: 12px;
}

.sch-optin__text small strong {
  color: var(--sch-ink);
}

.sch-optin__text a {
  color: var(--sch-green);
}

.sch-optin--tab {
  margin: 4px 0 0;
  text-align: left;
}

.sch-dw-avatar {
  position: relative;
  overflow: hidden;
}


/* ================================================================ sponsored students "See more" popup */

.sch-sponsored-modal__box {
  width: min(1040px, 100%);
  padding-top: clamp(26px, 4vw, 36px);
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(52, 211, 153, 0.14), transparent 70%) padding-box,
    linear-gradient(#111115, #111115) padding-box,
    linear-gradient(160deg, rgba(52, 211, 153, 0.55), rgba(255, 255, 255, 0.06) 45%, rgba(96, 165, 250, 0.4)) border-box;
}

.sch-sponsored-modal__head {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.sch-sponsored-modal__head .sch-h2 {
  margin: 0;
}

.sch-sponsored-modal__head b {
  color: var(--sch-green);
  font-variant-numeric: tabular-nums;
}

.sch-sponsored-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--sch-line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--sch-ink);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sch-sponsored-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.sch-sponsored__grid--modal {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

@media (max-width: 480px) {
  .sch-sponsored-modal {
    padding: 8px;
  }

  .sch-sponsored-modal__box {
    max-height: calc(100dvh - 16px);
    padding: 22px 12px 16px;
  }

  .sch-sponsored__grid--modal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sch-optin.is-locked {
  border-color: var(--sch-line-strong);
  background: rgba(255, 255, 255, 0.03);
  cursor: default;
}

.sch-optin.is-locked .sch-optin__icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--sch-muted);
}

/* An applicant's face beside their name in the admin queue. */
.sch-q-who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sch-q-who .sch-avatar-sm {
  margin-right: 0;
}

/* The Academy Fund powers in the admin form: shown, locked, and why. */
.sch-toggles__locked {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -4px 0 4px;
  color: var(--sch-faint);
}

.sch-toggles__locked[hidden] {
  display: none;
}

.sch-toggle:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Admins only: the person asked to stay hidden (an anonymous gift, a hidden
   sponsored student card). Only those rows carry it. */
.sch-tag--hidden {
  gap: 4px;
  color: var(--sch-amber);
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
  letter-spacing: 0.04em;
  text-transform: none;
}

/* A switch's label with a short note under it. */
.sch-switch__text {
  display: grid;
  gap: 2px;
}

.sch-switch__text small {
  color: var(--sch-faint);
  font-size: 12px;
}

.sch-donate__hideall {
  margin-top: 14px;
}

.sch-donate__hideall[hidden] {
  display: none;
}

/* "You": the viewer's own row on a board or list (shown to them alone). */
.sch-you {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.14);
  color: var(--sch-accent-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
  white-space: nowrap;
}

/* A masked row's tag sits on its own line under the name. */
.sch-pedestal__tag,
.sch-sponsored__tag {
  display: block;
  margin-top: 2px;
}

.sch-pedestal__tag .sch-tag,
.sch-sponsored__tag .sch-tag {
  margin-left: 0;
}

.sch-sponsored__face.sch-avatar--anon {
  font-size: 24px;
}

/* A form step fades in, which makes it its own stacking layer: an open
   dropdown inside could not rise above the Back / Continue row after it.
   While one is open, the step itself is lifted over that row. */
.sch-panel:has(.sch-dd.is-open) {
  position: relative;
  z-index: 20;
}

/* ------------------------------------------------------------ thank-you notes
   A sponsored student whose fund paid for their course: a soft heart button on the card
   opens one note with their thank-you and the Academy's. */
.sch-sponsored__thanks {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(244, 114, 182, 0.35);
  border-radius: 999px;
  background: rgba(244, 114, 182, 0.1);
  color: #f9a8d4;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--sch-ease);
}

.sch-sponsored__thanks i {
  animation: sch-heartbeat 2.4s ease-in-out infinite;
}

.sch-sponsored__thanks:hover {
  border-color: rgba(244, 114, 182, 0.6);
  background: rgba(244, 114, 182, 0.18);
  transform: translateY(-1px);
}

.sch-sponsored__thanks:focus-visible {
  outline: 2px solid #f9a8d4;
  outline-offset: 2px;
}

@keyframes sch-heartbeat {
  0%, 60%, 100% {
    transform: scale(1);
  }
  15%, 35% {
    transform: scale(1.18);
  }
}

.sch-thanks {
  width: min(600px, 100%);
  display: grid;
  gap: 16px;
  background:
    radial-gradient(420px 220px at 50% 0%, rgba(244, 114, 182, 0.16), transparent 70%) padding-box,
    linear-gradient(#131317, #131317) padding-box,
    linear-gradient(160deg, rgba(244, 114, 182, 0.55), rgba(255, 255, 255, 0.06) 45%, rgba(96, 165, 250, 0.45)) border-box;
}

.sch-thanks__head {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.sch-thanks__head .sch-h2 {
  margin: 0;
}

.sch-thanks__heart {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fbcfe8, #ec4899 70%);
  color: #fff;
  font-size: 26px;
  box-shadow: 0 12px 34px -8px rgba(236, 72, 153, 0.6);
}

.sch-thanks__heart i {
  animation: sch-heartbeat 2.4s ease-in-out infinite;
}

.sch-thanks__note {
  display: grid;
  gap: 10px;
  padding: 18px 18px 16px;
  border-radius: var(--sch-radius-sm);
  border: 1px solid var(--sch-line);
  background: rgba(255, 255, 255, 0.03);
  animation: sch-fade 0.5s var(--sch-ease) both;
}

.sch-thanks__note--sponsored {
  border-color: rgba(244, 114, 182, 0.25);
  background: linear-gradient(160deg, rgba(244, 114, 182, 0.08), rgba(255, 255, 255, 0.02));
}

.sch-thanks__note--academy {
  border-color: rgba(96, 165, 250, 0.25);
  background: linear-gradient(160deg, rgba(96, 165, 250, 0.08), rgba(255, 255, 255, 0.02));
  animation-delay: 0.12s;
}

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

.sch-thanks__who small {
  display: block;
  color: var(--sch-faint);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sch-thanks__who b {
  color: var(--sch-ink);
  font-size: 15px;
}

.sch-thanks__face,
.sch-thanks__mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 50%;
}

.sch-thanks__face {
  position: relative;
  background: var(--sch-grad);
  color: #1a0d05;
  font-size: 18px;
  font-weight: 800;
}

.sch-thanks__face.sch-avatar--anon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--sch-muted);
}

.sch-thanks__mark {
  background: rgba(96, 165, 250, 0.16);
  color: var(--sch-blue);
  font-size: 20px;
}

.sch-thanks__text {
  position: relative;
  margin: 0;
  padding-left: 16px;
  border-left: 2px solid rgba(244, 114, 182, 0.45);
  color: var(--sch-muted);
  font-size: 15px;
  font-style: italic;
  line-height: 1.7;
}

.sch-thanks__note--academy .sch-thanks__text {
  border-left-color: rgba(96, 165, 250, 0.45);
}

.sch-thanks__sign {
  margin: 0;
  color: #f9a8d4;
  font-size: 13.5px;
  font-weight: 700;
  text-align: right;
}

@media (max-width: 480px) {
  .sch-thanks__note {
    padding: 14px;
  }

  .sch-thanks__text {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sch-sponsored__thanks i,
  .sch-thanks__heart i,
  .sch-thanks__note {
    animation: none;
  }
}

/* ------------------------------------------------------------ more fund
   A sponsored student's requests for more fund (My Account tab and the admin Fund
   requests tab): #number, amount and course, dates, the team's message. */
.sch-request-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.sch-request-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--sch-line);
  border-radius: var(--sch-radius-sm);
  background: rgba(255, 255, 255, 0.025);
}

.sch-request-row__no {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 6px;
  border-radius: 12px;
  background: var(--sch-grad-soft);
  color: var(--sch-accent-2);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sch-request-row__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sch-request-row__note {
  margin-top: 4px;
  color: var(--sch-muted);
  font-size: 13px;
  line-height: 1.5;
}

.sch-request-row__reason {
  color: var(--sch-muted);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-line;
}

.sch-request-row__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.sch-request .sch-field {
  margin-top: 14px;
}

@media (max-width: 560px) {
  .sch-request-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .sch-request-row > .sch-badge,
  .sch-request-row__actions {
    grid-column: 2;
    justify-self: start;
  }
}

.sch-tag--request {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.12);
  color: var(--sch-amber);
}

.sch-request-records {
  display: grid;
  gap: 14px;
}

.sch-request-record {
  padding: 16px;
  border: 1px solid var(--sch-line);
  border-radius: var(--sch-radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.sch-request-decline {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.sch-request-decline .sch-request-row__actions {
  justify-content: flex-start;
}

.sch-dw-card--request {
  border-color: rgba(251, 191, 36, 0.35);
  background: linear-gradient(160deg, rgba(251, 191, 36, 0.07), rgba(255, 255, 255, 0.02));
}

.sch-dw-list__amt.sch-neg {
  color: var(--sch-red);
}

/* A tab's count of what waits on an admin (new applications, fund requests):
   solid, so it reads like an unread badge. */
.sch-count--alert,
.sch-segment button[aria-selected="true"] .sch-count--alert {
  display: inline-grid;
  place-items: center;
  margin-left: 6px;
  background: var(--sch-red);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.18);
  animation: sch-pop 0.3s var(--sch-ease) both;
}

.sch-count--alert[hidden] {
  display: none;
}

/* The Fund requests tab lists one row per sponsored student; a row opens their requests. */
.sch-request-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--sch-ease);
}

.sch-request-record:hover {
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(249, 115, 22, 0.05);
  transform: translateY(-1px);
}

.sch-request-record:focus-visible {
  outline: 2px solid var(--sch-accent);
  outline-offset: 2px;
}

.sch-request-record__meta {
  display: grid;
  justify-items: end;
  color: var(--sch-muted);
  font-size: 13px;
  white-space: nowrap;
}

.sch-request-record__meta b {
  color: var(--sch-ink);
}

.sch-request-record__go {
  color: var(--sch-faint);
  font-size: 22px;
}

.sch-request-modal__box {
  width: min(760px, 100%);
}

.sch-request-modal__head {
  margin-bottom: 6px;
  padding-right: 44px;
}

.sch-request-modal__head .sch-h2 {
  margin: 4px 0 2px;
}

@media (max-width: 560px) {
  .sch-request-record {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .sch-request-record .sch-q-who > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .sch-request-record__meta {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    padding-left: 44px;
  }

  .sch-request-record__go {
    display: none;
  }
}

.sch-request-modal__who {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.sch-request-modal__who > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sch-request-modal__face {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--sch-grad);
  color: #1a0d05;
  font-size: 22px;
  font-weight: 800;
}

@media (max-width: 560px) {
  .sch-request-modal__face {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

/* A waiting item this admin has not opened yet: a dot before the name. */
tr.is-unread .sch-q-who b::before,
.sch-request-record.is-unread .sch-q-who b::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--sch-red);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
  vertical-align: middle;
}

/* ------------------------------------------------------------ phones
   The admin sections, filter chips, Academy Fund actions, the donate balance
   and the sponsored student cards' note button, laid out for narrow screens. */
.sch-sponsored__thanks {
  white-space: nowrap;
}

@media (max-width: 560px) {
  .sch-segment {
    gap: 6px;
    padding: 6px;
  }

  .sch-segment button {
    min-height: 40px;
    padding: 0 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    font-size: 13px;
    white-space: nowrap;
  }

  /* An odd last section takes the whole row instead of sitting alone. */
  .sch-segment button:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .sch-segment .sch-count--alert {
    margin-left: 4px;
  }

  .sch-tabs {
    gap: 6px;
  }

  .sch-tabs button {
    min-height: 34px;
    padding: 0 11px;
    font-size: 12.5px;
  }

  .sch-academy__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    width: 100%;
  }

  .sch-academy__actions .sch-btn {
    justify-content: center;
    padding-inline: 12px;
  }

  .sch-donate__balance {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .sch-sponsored__thanks {
    padding: 5px 10px;
    font-size: 11.5px;
  }
}

/* The admin's face and name, then what they may do. */
.sch-admin__who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sch-admin__caps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 560px) {
  /* The chips take their own row under the name. */
  .sch-admin__caps {
    flex-basis: 100%;
  }

  /* Filter chips: one row that scrolls sideways, fading at the edge. */
  .sch-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -2px;
    padding-inline: 2px;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }

  .sch-tabs button {
    white-space: nowrap;
  }

  .sch-tabs button:last-child {
    margin-right: 24px;
  }
}

/* ------------------------------------------------------------ the guide
   "How the Sponsor Program works" and "Terms & conditions" in the
   My Account tab: collapsible cards, sections of titled items with a figure. */
.sch-guide-host {
  display: grid;
  /* One column as wide as the tab: an auto track would take the open
     panels' content width and spill past a phone screen. */
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}

.sch-guide {
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.sch-guide__summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
}

.sch-guide__summary::-webkit-details-marker {
  display: none;
}

.sch-guide__summary:focus-visible {
  outline: 2px solid var(--sch-accent);
  outline-offset: -2px;
}

.sch-guide__mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--sch-grad-soft);
  color: var(--sch-accent);
  font-size: 21px;
}

.sch-guide__heading {
  display: grid;
  flex: 1;
  gap: 3px;
  min-width: 0;
}

.sch-guide__heading b {
  color: var(--sch-ink);
  font-size: 17px;
}

.sch-guide__heading small {
  color: var(--sch-muted);
  font-size: 13px;
  line-height: 1.45;
}

.sch-guide__chevron {
  flex: none;
  color: var(--sch-faint);
  font-size: 24px;
  transition: transform 0.25s var(--sch-ease);
}

.sch-guide[open] .sch-guide__chevron {
  transform: rotate(180deg);
}

.sch-guide__body {
  display: grid;
  gap: 22px;
  padding: 4px 22px 24px;
  border-top: 1px solid var(--sch-line);
  animation: sch-fade 0.3s var(--sch-ease) both;
}

.sch-guide__section {
  display: grid;
  gap: 8px;
  padding-top: 18px;
}

.sch-guide__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--sch-ink);
  font-size: 15.5px;
}

.sch-guide__title i {
  color: var(--sch-accent);
}

.sch-guide__intro {
  margin: 0;
  color: var(--sch-muted);
  font-size: 14px;
  line-height: 1.6;
}

.sch-guide__items {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: sch-term;
}

.sch-guide__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--sch-line);
  border-radius: var(--sch-radius-sm);
  background: rgba(255, 255, 255, 0.025);
}

.sch-guide__item > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sch-guide__item b {
  color: var(--sch-ink);
  font-size: 14px;
}

.sch-guide__item span:not(.sch-guide__figure) {
  color: var(--sch-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.sch-guide__figure {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.3);
  background: rgba(249, 115, 22, 0.1);
  color: var(--sch-accent-2);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.sch-guide__items--numbered .sch-guide__item {
  counter-increment: sch-term;
}

/* The term's number sits on its heading's line; only the explanation wraps below. */
.sch-guide__items--numbered .sch-guide__item b::before {
  content: counter(sch-term) ". ";
  color: var(--sch-accent);
  font-weight: 800;
}

@media (max-width: 560px) {
  .sch-guide__summary {
    padding: 16px;
  }

  .sch-guide__body {
    padding: 2px 16px 18px;
  }

  .sch-guide__item {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sch-guide__body,
  .sch-guide__chevron {
    animation: none;
    transition: none;
  }
}

/* Sponsor a friend (js/sponsor-core.js friendMarkup): the friend's email or
   referral code with its Check button, then the amount to give. */
.sch-friend__row {
  display: flex;
  gap: 8px;
}
.sch-friend__row .sch-input {
  flex: 1;
  min-width: 0;
}
.sch-friend__hint {
  margin: 8px 0 0;
}
.sch-friend__error {
  margin: 10px 0 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.6rem;
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  font-size: 0.85rem;
}
.sch-friend__found {
  margin-top: 14px;
}
.sch-friend__who {
  margin: 0 0 12px;
  color: var(--sch-ink);
}
.sch-friend__who i {
  color: var(--sch-green);
}
.referral-credits__friend {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: none;
}
.referral-credits__friend-title {
  margin: 0 0 6px;
  color: #f7f7f8;
  font-size: 0.95rem;
  font-weight: 600;
}
@media (max-width: 600px) {
  .sch-friend__row {
    flex-direction: column;
  }
}

/* Who funded you (js/sponsor-tab.js sharesCard): one table per allocation. */
.sch-shares__block + .sch-shares__block {
  margin-top: 18px;
}
.sch-shares__head {
  margin: 14px 0 8px;
}
/* A narrow card (a phone, or half of a wide row): each sponsor is one row,
   who and source (or status) on the left, the fund and date on the right. */
.sch-shares,
.sch-friend-sponsors {
  container-type: inline-size;
}
.sch-shares .sch-tag,
.sch-friend-sponsors .sch-tag {
  white-space: nowrap;
}
@container (max-width: 520px) {
  .sch-shares .sch-table thead,
  .sch-friend-sponsors .sch-table thead {
    display: none;
  }
  .sch-shares .sch-table,
  .sch-shares .sch-table tbody,
  .sch-friend-sponsors .sch-table,
  .sch-friend-sponsors .sch-table tbody {
    display: block;
    width: 100%;
  }
  .sch-shares .sch-table tr,
  .sch-friend-sponsors .sch-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 6px 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--sch-line);
  }
  .sch-shares .sch-table td,
  .sch-friend-sponsors .sch-table td {
    display: block;
    padding: 0;
    border: 0;
  }
  .sch-shares .sch-table td:nth-child(1),
  .sch-friend-sponsors .sch-table td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }
  .sch-shares .sch-table td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .sch-shares .sch-table td:nth-child(3) {
    grid-column: 2;
    grid-row: 1 / span 2;
    max-width: 170px;
    text-align: right;
  }
  /* Friends: Friend | Gave | Status | When. */
  .sch-friend-sponsors .sch-table td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    font-weight: 700;
  }
  .sch-friend-sponsors .sch-table td:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }
  .sch-friend-sponsors .sch-table td:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
    color: var(--sch-faint);
    font-size: 0.8rem;
    text-align: right;
    white-space: nowrap;
  }
}
/* Your donations (sponsor-tab.js donationsCard): each gift and where it went. */
.sch-gift {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--sch-line);
  border-radius: var(--sch-radius-sm);
  background: rgba(255, 255, 255, 0.02);
}
.sch-gift__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sch-gift__head > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.sch-gift__status {
  margin: 6px 0 0;
  color: var(--sch-muted);
}
.sch-gift__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.sch-gift__stats span {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--sch-line);
  border-radius: 10px;
}
.sch-gift__stats small {
  color: var(--sch-faint);
  font-size: 0.72rem;
}
.sch-gift__stats b {
  color: var(--sch-ink);
}
.sch-gift__none {
  margin: 0;
}
.sch-gift__who {
  display: grid;
  gap: 2px;
}
.sch-gift__who small {
  color: var(--sch-faint);
}
.sch-gifts__totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
  margin: 16px 0 4px;
}
.sch-gifts__total {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--sch-line);
  border-radius: 12px;
  background: var(--sch-surface-2);
}
.sch-gifts__total small {
  color: var(--sch-faint);
  font-size: 0.74rem;
}
.sch-gifts__total b {
  color: var(--sch-ink);
  font-size: 1.15rem;
}
.sch-gifts__total[data-tone="ok"] b { color: #6ee7b7; }
.sch-gifts__total[data-tone="back"] b { color: #fcd34d; }
.sch-gifts__total[data-tone="wait"] b { color: #93c5fd; }
@media (max-width: 560px) {
  .sch-gift {
    padding: 12px;
  }
  .sch-gift__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sch-gift__stats span:last-child:nth-child(odd),
  .sch-gifts__total:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .sch-gifts__totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sch-gift__who {
    justify-items: end;
  }
}
.sch-shares .sch-table td i,
.sch-card .sch-table .sch-tag i {
  margin-right: 4px;
  color: var(--sch-accent-2);
}
.sch-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Admin drawer: whose donations paid an allocation (sponsor-admin.js shareLines). */
.sch-dw-shares {
  margin-top: 6px;
}
.sch-dw-shares summary {
  cursor: pointer;
  color: var(--sch-accent-2);
  font-size: 0.8rem;
}
.sch-dw-shares ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.sch-dw-shares li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  justify-content: space-between;
  padding: 4px 0;
  border-top: 1px dashed var(--sch-line);
  font-size: 0.82rem;
}

/* Fund expiry: when an allocation's fund must be used by (sponsor-tab.js
   expiryLine / nextExpiry, sponsor-admin.js allocations). */
/* Its own line under the allocation, sized to its text; when it wraps the
   icon stays at the start of the first line. */
.sch-expiry {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 6px 0 0;
  padding: 4px 10px;
  border: 1px solid var(--sch-line-strong);
  border-radius: 10px;
  color: var(--sch-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}
.sch-expiry i {
  margin-right: 4px;
  vertical-align: -1px;
}
.sch-expiry.is-soon {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.1);
  color: #fcd34d;
}
.sch-expiry.is-over {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
}
.sch-dw-list .sch-expiry {
  margin: 4px 0 0;
}
.sch-expiry-note {
  margin: 10px 0 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 0.6rem;
  background: rgba(251, 191, 36, 0.06);
}
/* Admin Transactions (sponsor/admin-panel.php, sponsor-admin.js loadTransactions). */
.sch-tx__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.sch-tx__head .sch-h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
}
.sch-tx__head .sch-small {
  margin: 0;
}
.sch-tx__filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 200px 170px 170px;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}
.sch-tx__filters .sch-search,
.sch-tx__filters .sch-select,
.sch-tx__filters .sch-input {
  width: 100%;
  height: 44px;
  margin: 0;
  box-sizing: border-box;
}
.sch-tx__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}
.sch-tx__field > span {
  color: var(--sch-faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sch-tx__totals {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.sch-tx__total {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--sch-line);
  border-radius: 12px;
  background: var(--sch-surface-2);
}
.sch-tx__total-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--sch-accent-2);
  font-size: 1.05rem;
}
.sch-tx__total-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.sch-tx__total-text small {
  color: var(--sch-faint);
  font-size: 0.74rem;
}
.sch-tx__total-text b {
  color: var(--sch-ink);
  font-size: 1rem;
}
.sch-tx {
  width: 100%;
  table-layout: fixed;
}
.sch-tx__c-when { width: 112px; }
.sch-tx__c-kind { width: 188px; }
.sch-tx__c-fund { width: 96px; }
.sch-tx__c-recs { width: 236px; }
.sch-tx__c-by { width: 112px; }
.sch-tx td {
  vertical-align: top;
  padding-top: 14px;
  padding-bottom: 14px;
}
.sch-tx__when b,
.sch-tx__when span {
  display: block;
  white-space: nowrap;
}
.sch-tx__when span {
  color: var(--sch-faint);
  font-size: 0.78rem;
}
.sch-tx__kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--sch-line-strong);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}
.sch-tx__kind[data-tone="in"] { border-color: rgba(52, 211, 153, 0.4); color: #6ee7b7; background: rgba(52, 211, 153, 0.08); }
.sch-tx__kind[data-tone="give"] { border-color: rgba(167, 139, 250, 0.4); color: #c4b5fd; background: rgba(167, 139, 250, 0.08); }
.sch-tx__kind[data-tone="spend"] { border-color: rgba(96, 165, 250, 0.4); color: #93c5fd; background: rgba(96, 165, 250, 0.08); }
.sch-tx__kind[data-tone="back"] { border-color: rgba(251, 191, 36, 0.4); color: #fcd34d; background: rgba(251, 191, 36, 0.08); }
.sch-tx__flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.sch-tx__arrow {
  margin-top: 2px;
  color: var(--sch-faint);
}
.sch-tx__party {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}
.sch-tx__party b,
.sch-tx__email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sch-tx__email {
  color: var(--sch-muted);
  font-size: 0.8rem;
}
.sch-tx__type {
  color: var(--sch-faint);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}
.sch-tx__note {
  margin: 8px 0 0;
  color: var(--sch-muted);
  font-size: 0.78rem;
}
.sch-tx__fund {
  color: var(--sch-ink);
  font-weight: 700;
  white-space: nowrap;
}
tr[data-tone="back"] .sch-tx__fund { color: #fcd34d; }
tr[data-tone="in"] .sch-tx__fund { color: #6ee7b7; }
.sch-tx__recs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.sch-tx__rec {
  max-width: 100%;
  overflow: hidden;
  padding: 2px 8px;
  border: 1px solid var(--sch-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--sch-muted);
  font: inherit;
  font-size: 0.74rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sch-tx__rec b {
  color: var(--sch-faint);
  font-weight: 600;
}
.sch-tx__rec.is-link {
  cursor: pointer;
  color: var(--sch-accent-2);
}
.sch-tx__rec.is-link:hover {
  border-color: var(--sch-accent);
}
.sch-tx__by {
  overflow: hidden;
  color: var(--sch-faint);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .sch-tx__filters { grid-template-columns: 1fr 1fr; }
  .sch-tx__search { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .sch-tx__head { flex-direction: column; }
  .sch-tx__filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sch-tx__filters > * { min-width: 0; }
  .sch-tx__search,
  .sch-tx__filters .sch-tx__field:nth-of-type(2) { grid-column: 1 / -1; }
  .sch-tx__totals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sch-tx__total { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .sch-tx__total-icon { width: 30px; height: 30px; font-size: 0.95rem; }
  .sch-tx__total-text b { white-space: nowrap; }
}

@media (max-width: 1180px) {
  .sch-tx, .sch-tx tbody { display: block; width: 100%; }
  .sch-tx colgroup, .sch-tx thead { display: none; }
  /* Each movement is a card: when and fund on top, then kind, flow, records. */
  .sch-tx tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: start;
    gap: 10px 12px;
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid var(--sch-line);
    border-radius: 12px;
    background: var(--sch-surface-2);
  }
  .sch-tx td { display: block; grid-column: 1 / -1; width: auto; min-width: 0; padding: 0; border: 0; }
  .sch-tx td[colspan] { padding: 4px 0; }
  .sch-tx td.sch-tx__when { grid-column: 1; grid-row: 1; }
  .sch-tx td.sch-tx__fund { grid-column: 2; grid-row: 1; align-self: start; text-align: right; font-size: 1.05rem; }
  .sch-tx__flow {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid var(--sch-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
  }
  .sch-tx__arrow { justify-self: start; margin: 0 0 0 2px; transform: rotate(90deg); }
  .sch-tx__recs { flex-flow: row wrap; gap: 6px; }
  .sch-tx td.sch-tx__by { white-space: normal; }
  .sch-tx td.sch-tx__by:not(:empty)::before { content: "By "; }
}
@media (min-width: 761px) and (max-width: 1180px) {
  .sch-tx tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sch-tx tr { margin-bottom: 0; }
  .sch-tx tr:only-child { grid-column: 1 / -1; }
}

/* Admin drawer: the Referral Credits the applicant already holds (sponsor-admin.js referralCard). */
.sch-dw-rc__head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sch-dw-rc__head h4 {
  margin: 0;
}
.sch-dw-rc__main {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.sch-dw-rc__main b {
  color: var(--sch-accent-2);
  font-size: 1.5rem;
}
.sch-dw-rc__main small {
  color: var(--sch-muted);
}
.sch-dw-rc__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}
.sch-dw-rc__cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--sch-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.sch-dw-rc__cell small {
  color: var(--sch-faint);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sch-dw-rc__cell b {
  color: var(--sch-ink);
  font-size: 1.05rem;
}
.sch-dw-rc__cell[data-tone="warn"] b { color: #fcd34d; }
.sch-dw-rc__cell[data-tone="bad"] b { color: #fca5a5; }
.sch-dw-rc__next {
  margin: 10px 0 0;
}
.sch-dw-rc.is-none {
  opacity: 0.85;
}
.sch-tag--credits {
  border-color: rgba(251, 191, 36, 0.35);
  color: #fcd34d;
}
