/* ---------------------------------------------------------------------
   Landing hero — a live, mouse-reactive particle-network canvas gathered
   around a glowing "AI core" orb, with the four tool icons floating in
   it. Nothing here is referenced outside public/index.html. */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: var(--space-7) 0 var(--space-6);
}
.hero > .container {
  position: relative; z-index: 2;
  max-width: none; margin: 0;
  padding-left: clamp(20px, 6vw, 96px);
  padding-right: clamp(20px, 6vw, 96px);
}
.hero-grid { max-width: 880px; }

.hero-canvas { position: absolute; inset: 0; z-index: 0; display: block; }

/* Hero core — "beacon on a radar disc": a scanning disc (concentric rings
   + rotating sweep) with a transmitter mast rising from its center, sonar
   pings expanding outward. Replaces the old solid glowing orb; the network
   canvas still gathers particles toward its center (landing-hero.js reads
   #heroOrb's bounding box, unchanged). */
.hero-orb {
  position: absolute; top: 26%; right: 15%;
  width: 230px; height: 230px;
}
.hero-orb .core-ring {
  position: absolute; border: 1px solid color-mix(in srgb, var(--color-accent) 30%, transparent);
  border-radius: 50%;
}
.hero-orb .core-ring.r1 { inset: 0; }
.hero-orb .core-ring.r2 { inset: 34px; }
.hero-orb .core-ring.r3 { inset: 68px; }
.hero-orb .core-sweep {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  animation: core-spin 4.4s linear infinite;
}
.hero-orb .core-sweep::before {
  content: ""; position: absolute; inset: 0;
  background: conic-gradient(from 0deg, color-mix(in srgb, var(--color-accent) 55%, transparent), transparent 22%);
}
.hero-orb .core-mast {
  position: absolute; left: 50%; bottom: 35%; width: 3px; height: 46%;
  margin-left: -1.5px;
  background: linear-gradient(to top, var(--color-accent), transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--color-accent) 70%, transparent);
}
.hero-orb .core-base {
  position: absolute; left: 50%; bottom: 35%; width: 12px; height: 12px;
  margin-left: -6px; margin-bottom: -6px; border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--color-accent) 90%, transparent);
  animation: core-breathe 4.5s ease-in-out infinite;
}
.hero-orb .core-ping {
  position: absolute; left: 50%; bottom: 35%; width: 12px; height: 12px;
  margin-left: -6px; margin-bottom: -6px; border-radius: 50%;
  border: 1.5px solid var(--color-accent);
  animation: core-ping 3.6s ease-out infinite;
}
.hero-orb .core-ping.p2 { animation-delay: 1.2s; }
.hero-orb .core-ping.p3 { animation-delay: 2.4s; }
@keyframes core-spin { to { transform: rotate(360deg); } }
@keyframes core-breathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}
@keyframes core-ping {
  0% { width: 12px; height: 12px; margin-left: -6px; margin-bottom: -6px; opacity: .75; }
  100% { width: 210px; height: 105px; margin-left: -105px; margin-bottom: -52.5px; opacity: 0; }
}
@media (max-width: 820px) {
  .hero-orb { width: 130px; height: 130px; top: 18%; right: 6%; }
  .hero-orb .core-ring.r2 { inset: 19px; }
  .hero-orb .core-ring.r3 { inset: 38px; }
  .hero-orb .core-ping { animation-name: core-ping-sm; }
  @keyframes core-ping-sm {
    0% { width: 12px; height: 12px; margin-left: -6px; margin-bottom: -6px; opacity: .75; }
    100% { width: 120px; height: 60px; margin-left: -60px; margin-bottom: -30px; opacity: 0; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orb .core-sweep, .hero-orb .core-base, .hero-orb .core-ping { animation: none; }
}

.hero-art { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
/* Tool-name tags, not icons — spelling out ChatGPT/Claude/Gemini/Copilot
   avoids reproducing anyone's trademarked mark while still being instantly
   readable, which the previous abstracted 2-tone glyphs weren't. */
.skill-node {
  position: absolute; padding: 9px 14px; clip-path: var(--chamfer-sm);
  background: var(--color-cta);
  box-shadow: var(--shadow-elevated);
  filter: var(--glow-primary-sm);
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.skill-node .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-cta-ink); flex-shrink: 0; animation: pulse-dot 1.8s ease-in-out infinite; }
.skill-node .mono { font-size: 12px; font-weight: 600; color: var(--color-cta-ink); }
.skill-node.sn-1 { top: 12%; right: 28%; animation: node-float-a 6.5s ease-in-out infinite; }
.skill-node.sn-2 { top: 30%; right: 6%; animation: node-float-b 7.5s ease-in-out infinite .4s; }
.skill-node.sn-3 { bottom: 26%; right: 34%; animation: node-float-a 7s ease-in-out infinite 1.1s; }
.skill-node.sn-4 { bottom: 10%; right: 10%; animation: node-float-b 6s ease-in-out infinite .7s; }
.skill-node.sn-2 .dot { animation-delay: .4s; }
.skill-node.sn-3 .dot { animation-delay: .9s; }
.skill-node.sn-4 .dot { animation-delay: .6s; }
@keyframes node-float-a { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes node-float-b { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(12px); } }
@media (max-width: 820px) { .skill-node { display: none; } }
@media (prefers-reduced-motion: reduce) { .skill-node { animation: none; } }

.hero .eyebrow-row { display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-4); color: var(--color-accent-deep); font-size: 12.5px; }
.hero .eyebrow-row .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); animation: pulse-dot 1.8s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(1.3); } }

.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.04;
  position: relative;
}
.hero h1 .accent-word { color: var(--color-accent); }

/* Glitch headline — a static 1-2px chromatic-aberration split at rest,
   with an occasional short "corruption" burst via clip-path. data-text is
   set from the live heading text by landing-hero.js. */
.hero h1.glitch::before,
.hero h1.glitch::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  background: var(--color-page);
  mix-blend-mode: lighten;
  overflow: hidden;
  pointer-events: none;
}
.hero h1.glitch::before { color: var(--color-primary); transform: translate(-2px, 0); clip-path: inset(0 0 60% 0); animation: glitch-a 5.4s infinite steps(1); }
.hero h1.glitch::after { color: var(--color-glitch); transform: translate(2px, 0); clip-path: inset(60% 0 0 0); animation: glitch-b 5.4s infinite steps(1); }
@keyframes glitch-a {
  0%, 88% { clip-path: inset(0 0 60% 0); transform: translate(-2px, 0); }
  89% { clip-path: inset(10% 0 40% 0); transform: translate(-7px, -1px); }
  90% { clip-path: inset(70% 0 5% 0); transform: translate(5px, 1px); }
  91%, 100% { clip-path: inset(0 0 60% 0); transform: translate(-2px, 0); }
}
@keyframes glitch-b {
  0%, 88% { clip-path: inset(60% 0 0 0); transform: translate(2px, 0); }
  89% { clip-path: inset(30% 0 20% 0); transform: translate(7px, 1px); }
  90% { clip-path: inset(2% 0 75% 0); transform: translate(-5px, -1px); }
  91%, 100% { clip-path: inset(60% 0 0 0); transform: translate(2px, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1.glitch::before, .hero h1.glitch::after { animation: none; }
}
.hero p.lede { font-size: 18px; margin-top: var(--space-4); max-width: 46ch; color: var(--color-ink-secondary); }
.hero .cta-row { display: flex; gap: 14px; margin-top: var(--space-5); flex-wrap: wrap; }

.stat-row { display: flex; gap: var(--space-6); margin-top: var(--space-6); flex-wrap: wrap; }
.stat-row .stat b {
  display: block; font-family: var(--font-mono); font-weight: 600; font-size: 26px;
  color: var(--color-primary); font-variant-numeric: tabular-nums;
}
.stat-row .stat span { font-size: 12.5px; color: var(--color-ink-muted); }

@media (max-width: 760px) {
  .stat-row { gap: var(--space-5); }
}

/* ---------- Route / stations — the curriculum as a marked route ---------- */
.route-section { position: relative; padding: var(--space-8) 0 var(--space-5); }
.route-line-svg { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%); z-index: 0; }
.route-line-svg path { fill: none; stroke: var(--color-primary); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 1.6s var(--ease-standard); }
.route-line-svg.drawn path { stroke-dashoffset: 0; }

.route-section .section-head { text-align: center; max-width: 640px; margin: 0 auto var(--space-7); position: relative; z-index: 1; }
.route-section .section-head h2 { font-size: clamp(26px, 3.2vw, 38px); margin-top: 10px; }
.route-section .section-head .eyebrow { color: var(--color-accent-deep); font-size: 12.5px; }

.stations { display: flex; flex-direction: column; gap: var(--space-7); position: relative; z-index: 1; }
.station { display: grid; grid-template-columns: 1fr 84px 1fr; align-items: center; gap: 0 var(--space-5); }
.station:nth-child(even) .station-card { grid-column: 3; }
.station:nth-child(even) .station-spacer { grid-column: 1; }
.station:nth-child(odd) .station-card { grid-column: 1; }
.station:nth-child(odd) .station-spacer { grid-column: 3; }
.station-marker { grid-column: 2; display: flex; align-items: center; justify-content: center; position: relative; }
.station-marker .puck {
  width: 64px; height: 64px; border-radius: 50%; background: var(--color-surface);
  border: 2.5px solid var(--color-primary); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-elevated); filter: var(--glow-primary-sm);
  opacity: 0; transform: scale(.5);
  transition: opacity .5s var(--ease-standard), transform .5s var(--ease-standard);
}
.station.in-view .puck { opacity: 1; transform: scale(1); }
.station-marker .puck svg { width: 30px; height: 30px; }
.station-marker .idx {
  position: absolute; top: -10px; right: -6px; background: var(--color-accent); color: var(--color-primary-ink);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; width: 22px; height: 22px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

.station-card {
  background: var(--color-surface); border: 1px solid var(--color-border); clip-path: var(--chamfer);
  padding: var(--space-6); box-shadow: var(--shadow-card);
  opacity: 0; transform: translateY(18px);
  transition: opacity .55s var(--ease-standard) .1s, transform .55s var(--ease-standard) .1s, box-shadow .25s var(--ease-standard);
}
.station.in-view .station-card { opacity: 1; transform: translateY(0); }
.station-card:hover { box-shadow: var(--shadow-elevated); }
.station-card .level-tag { font-size: 12px; color: var(--color-accent-deep); margin-bottom: 6px; }
.station-card h3 { font-size: 21px; margin-top: 2px; }
.station-card p { margin-top: var(--space-2); font-size: 15px; }
.station-card .session-count { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-4); font-family: var(--font-mono); font-size: 12px; color: var(--color-ink-muted); }

@media (max-width: 820px) {
  .station, .station:nth-child(even) { grid-template-columns: 84px 1fr; }
  .station:nth-child(odd) .station-marker, .station:nth-child(even) .station-marker { grid-column: 1; grid-row: 1; align-self: start; margin-top: var(--space-5); }
  .station:nth-child(odd) .station-card, .station:nth-child(even) .station-card { grid-column: 2; grid-row: 1; }
  .station-spacer { display: none; }
  .route-line-svg { left: 42px; }
}

/* ---------- Tools grid ---------- */
.tools-section { padding: var(--space-8) 0; background: var(--color-surface-raised); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.tools-section .section-head { text-align: center; max-width: 640px; margin: 0 auto var(--space-7); }
.tools-section .section-head .eyebrow { color: var(--color-accent-deep); font-size: 12.5px; }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.tool-card {
  background: var(--color-surface); border: 1px solid var(--color-border); clip-path: var(--chamfer);
  padding: var(--space-5) var(--space-4); text-align: center;
  transition: transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
}
.tool-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-elevated); }
.tool-card .ic-wrap { width: 52px; height: 52px; margin: 0 auto var(--space-3); clip-path: var(--chamfer-sm); background: var(--color-surface-raised); display: flex; align-items: center; justify-content: center; }
.tool-card .ic-wrap svg { width: 28px; height: 28px; }
.tool-card h4 { font-size: 15px; margin: 0 0 4px; }
.tool-card p { font-size: 13px; }
@media (max-width: 760px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Testimonial ---------- */
.testimonial-section { padding: var(--space-8) 0; text-align: center; }
.testimonial-section blockquote { margin: 0 auto; max-width: 720px; font-weight: 800; font-size: clamp(20px, 2.8vw, 30px); color: var(--color-ink); line-height: 1.28; font-family: var(--font-heading); }
.testimonial-section .attrib { margin-top: var(--space-5); font-size: 14px; color: var(--color-ink-muted); }
.testimonial-section .attrib b { color: var(--color-ink); }

/* ---------- Final CTA card ---------- */
.cta-card {
  background: var(--color-surface); color: var(--color-ink); clip-path: var(--chamfer);
  border: 1px solid var(--color-border); border-top: 3px solid var(--color-accent);
  box-shadow: var(--shadow-elevated);
  padding: var(--space-8) var(--space-6); text-align: center; position: relative; overflow: hidden;
}
.cta-card h2 { color: var(--color-ink); }
.cta-card p { color: var(--color-ink-secondary); margin: var(--space-3) auto 0; max-width: 46ch; }
.cta-card .cta-row { justify-content: center; margin-top: var(--space-6); }

/* Auth shell — login/signup/forgot-password/set-password/account pages.
   Full hero-band background, same fixed brand block as .hero. The form-card
   inside it uses the normal (dark-only, theme-independent) --color-* tokens
   like every other card — Nocturne has one theme, so there's no separate
   light-card variant to protect here. */
.auth-shell {
  background:
    radial-gradient(900px 480px at 88% -12%, var(--hero-bg-deep), transparent),
    var(--hero-bg);
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-4);
}
.auth-shell .form-card {
  box-shadow: var(--shadow-elevated);
}

/* Page banner — a cobalt band under the header on data-heavy app pages
   (dashboard, coach). Content below it (tables, stat tiles) stays on the
   theme-reactive neutral surface for readability. */
.page-banner {
  background:
    radial-gradient(700px 320px at 92% -30%, var(--hero-bg-deep), transparent),
    var(--hero-bg);
  padding: var(--space-6) var(--space-5);
}
.page-banner .container { padding-top: 0; padding-bottom: 0; }
.page-banner h1 { color: var(--hero-ink); margin-bottom: var(--space-1); }
.page-banner p { color: var(--hero-ink-dim); margin: 0; max-width: 520px; }

.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
  padding: var(--space-6) 0;
}
.feature-strip .feature {
  text-align: center;
  padding: var(--space-5) var(--space-4);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--duration-base) var(--ease-standard),
    transform var(--duration-base) var(--ease-standard);
}
.feature-strip .feature:hover { box-shadow: var(--shadow-elevated); }
.feature-strip .feature .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: var(--space-3);
  clip-path: var(--chamfer-sm);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.feature-strip .feature .icon svg { width: 26px; height: 26px; }

/* Cards */
.card {
  background: var(--color-surface);
  clip-path: var(--chamfer);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  transition: box-shadow var(--duration-base) var(--ease-standard),
    transform var(--duration-base) var(--ease-standard);
}
.card-accent {
  border-left: 4px solid var(--color-primary);
}

/* Progress rings */
.ring-row { display: flex; gap: var(--space-6); flex-wrap: wrap; justify-content: center; padding: var(--space-5) 0; }
.progress-ring { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring .ring-track { fill: none; stroke: var(--color-border); stroke-width: 10; }
.progress-ring .ring-fill { fill: none; stroke: var(--color-accent); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset var(--duration-slow) var(--ease-standard); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--color-accent) 65%, transparent)); }
.progress-ring .ring-label-wrap { position: relative; width: 120px; height: 120px; }
.progress-ring .ring-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 22px; font-weight: 700; }
.progress-ring .ring-name { font-weight: 600; font-size: 14px; color: var(--color-ink-secondary); }

/* Status pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.pill-complete { background: rgba(12,163,12,0.12); color: var(--color-complete); }
.pill-complete::before { background: var(--color-complete); }
.pill-in-progress { background: rgba(184,121,10,0.14); color: var(--color-in-progress); }
.pill-in-progress::before { background: var(--color-in-progress); }
.pill-not-started { background: rgba(107,106,101,0.12); color: var(--color-not-started); }
.pill-not-started::before { background: var(--color-not-started); }
.pill-critical { background: rgba(179,35,31,0.12); color: var(--color-critical); }
.pill-critical::before { background: var(--color-critical); }

/* Session timeline */
.level-group { margin-bottom: var(--space-6); }
.level-group-header { display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-4); }
.level-group-header h3 { margin: 0; }
.session-list { display: flex; flex-direction: column; gap: var(--space-3); }
.session-row {
  display: flex; align-items: center; gap: var(--space-4);
  background: var(--color-surface); clip-path: var(--chamfer);
  padding: var(--space-4); box-shadow: var(--shadow-card);
}
.session-row .session-num { font-family: var(--font-heading); font-weight: 700; color: var(--color-ink-muted); width: 28px; flex-shrink: 0; }
.session-row .session-info { flex: 1; min-width: 0; }
.session-row .session-title { font-weight: 600; margin-bottom: 2px; }
.session-row .session-meta { font-size: 12px; color: var(--color-ink-muted); display: flex; gap: var(--space-3); flex-wrap: wrap; }
.session-row .session-actions { flex-shrink: 0; }
.session-row.locked { opacity: 0.55; }
.checkpoint-card { border: 1.5px dashed var(--color-primary); background: var(--color-surface); }

/* Session detail page */
.duration-chip { display: inline-block; font-size: 12px; font-weight: 600; color: var(--color-ink-muted); background: var(--color-border); padding: 3px 10px; border-radius: 999px; }
.level-badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--color-primary); text-transform: uppercase; letter-spacing: .04em; margin-bottom: var(--space-2); }
.session-header { padding: var(--space-6) 0 var(--space-4); border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-5); }
.section-card { margin-bottom: var(--space-5); }
.section-card h3 { display: flex; align-items: center; gap: var(--space-2); }
pre.code-block { background: #16161a; color: #e7e7e2; padding: var(--space-4); border-radius: var(--radius-control); overflow-x: auto; font-size: 13px; position: relative; }
.copy-btn { position: absolute; top: 8px; right: 8px; font-size: 11px; padding: 4px 10px; }
.explanation { font-size: 13px; color: var(--color-ink-muted); margin-top: 4px; }

/* Quiz */
.quiz-question { padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border); }
.quiz-question:last-of-type { border-bottom: none; }
.quiz-options { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-3); }
.quiz-option { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-control); cursor: pointer; transition: border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard); }
.quiz-option:hover { border-color: var(--color-primary); background: var(--color-primary-soft); }
.quiz-option.correct { border-color: var(--color-complete); background: rgba(12,163,12,0.08); }
.quiz-option.incorrect { border-color: var(--color-critical); background: rgba(179,35,31,0.08); }
.quiz-result { text-align: center; padding: var(--space-5); }
.quiz-result .score { font-family: var(--font-heading); font-size: 40px; font-weight: 700; }
.topic-tag { font-size: 11px; color: var(--color-ink-muted); text-transform: uppercase; letter-spacing: .04em; }

/* Coach KPI tiles */
.stat-tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-5); }
.stat-tile { background: var(--color-surface); clip-path: var(--chamfer); box-shadow: var(--shadow-card); padding: var(--space-4); position: relative; }
.stat-tile::before {
  content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 2px;
  background: var(--color-primary); box-shadow: 0 0 8px color-mix(in srgb, var(--color-primary) 70%, transparent);
}
.stat-tile.warn::before { background: var(--color-critical); box-shadow: 0 0 8px color-mix(in srgb, var(--color-critical) 70%, transparent); }
.stat-tile .stat-value { font-family: var(--font-heading); font-size: 28px; font-weight: 700; color: var(--color-ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-tile .stat-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-ink-muted); margin-top: 6px; }
.stat-tile .stat-value.warn { color: var(--color-critical); }

/* Session drop-off curve */
.dropoff-row { display: flex; align-items: center; gap: var(--space-3); padding: 5px 0; }
.dropoff-row .dropoff-label { width: 220px; flex-shrink: 0; font-size: 12px; color: var(--color-ink-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dropoff-track { flex: 1; height: 8px; background: var(--color-border); border-radius: 999px; overflow: hidden; }
.dropoff-fill { height: 100%; border-radius: 999px; background: var(--color-accent); box-shadow: 0 0 6px color-mix(in srgb, var(--color-accent) 60%, transparent); }
.dropoff-fill.big-drop { background: var(--color-critical); box-shadow: 0 0 6px color-mix(in srgb, var(--color-critical) 60%, transparent); }
.dropoff-pct { width: 40px; text-align: right; font-size: 12px; font-weight: 600; }
.dropoff-callout { font-size: 13px; color: var(--color-critical); margin: var(--space-2) 0 var(--space-4); }

/* Coach roster table */
.roster-table-wrap { overflow-x: auto; }
table.roster-table { width: 100%; border-collapse: collapse; background: var(--color-surface); clip-path: var(--chamfer); box-shadow: var(--shadow-card); }
table.roster-table th, table.roster-table td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border); font-size: 14px; }
table.roster-table th { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--color-ink-muted); font-weight: 400; }
table.roster-table tr:last-child td { border-bottom: none; }
table.roster-table tr.clickable { cursor: pointer; transition: background var(--duration-fast) var(--ease-standard); }
table.roster-table tr.clickable:hover { background: var(--color-primary-soft); }

.topic-bar-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) 0; }
.topic-bar-row .topic-name { width: 220px; flex-shrink: 0; font-size: 13px; }
.topic-bar-track { flex: 1; height: 8px; background: var(--color-border); border-radius: 999px; overflow: hidden; }
.topic-bar-fill { height: 100%; border-radius: 999px; }
.topic-bar-fill.strong { background: var(--color-complete); box-shadow: 0 0 6px color-mix(in srgb, var(--color-complete) 55%, transparent); }
.topic-bar-fill.developing { background: var(--color-in-progress); box-shadow: 0 0 6px color-mix(in srgb, var(--color-in-progress) 55%, transparent); }
.topic-bar-fill.needs_attention { background: var(--color-critical); box-shadow: 0 0 6px color-mix(in srgb, var(--color-critical) 55%, transparent); }
.topic-pct { width: 44px; text-align: right; font-size: 13px; font-weight: 600; }

/* Browse / catalog page */
.search-bar { position: relative; max-width: 640px; margin: 0 auto; }
.search-bar .icon { position: absolute; left: var(--space-4); top: 50%; transform: translateY(-50%); color: var(--color-ink-muted); display: flex; }
.search-bar input {
  width: 100%; padding: 12px 16px 12px 44px;
  border: 1px solid var(--color-border); clip-path: var(--chamfer-sm);
  background: var(--color-surface-raised); color: var(--color-ink);
  font-size: 15px; font-family: var(--font-body);
  transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}
.search-bar input::placeholder { color: var(--color-ink-muted); }
.search-bar input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-soft); }

.chip-row { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: 2px; }
.chip {
  flex-shrink: 0; padding: 8px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--color-border); background: var(--color-surface);
  color: var(--color-ink-secondary); font-family: var(--font-body); font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: border-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}
.chip:hover { border-color: var(--color-primary); color: var(--color-ink); }
.chip.active { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-soft); }

.catalog-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.catalog-card .catalog-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.catalog-card .catalog-num { font-family: var(--font-heading); font-weight: 500; font-size: 22px; color: var(--color-ink-muted); margin-bottom: var(--space-2); }
.catalog-card h3 { font-size: 17px; margin-bottom: var(--space-2); }
.catalog-card .catalog-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.catalog-card .catalog-duration { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--color-ink-muted); }
.catalog-empty { text-align: center; padding: var(--space-8) 0; color: var(--color-ink-muted); grid-column: 1 / -1; }

@media (max-width: 640px) {
  table.roster-table thead { display: none; }
  table.roster-table, table.roster-table tbody, table.roster-table tr, table.roster-table td { display: block; width: 100%; }
  table.roster-table tr { margin-bottom: var(--space-3); clip-path: var(--chamfer); box-shadow: var(--shadow-card); }
  table.roster-table td { border-bottom: none; padding: var(--space-2) var(--space-4); }
  table.roster-table td::before { content: attr(data-label); display: block; font-size: 11px; text-transform: uppercase; color: var(--color-ink-muted); margin-bottom: 2px; }
}
