/* ============================================================
   Streamline — design system v3 "Natatorium, deepened"
   A meet-day command center: the pool before warmups, scoreboard
   glowing. Layered blue-black surfaces, hairline edges, falcon-
   gold signal (the highlighter on the heat sheet), water-cyan
   data flow. Big quiet statements; numbers always in mono.
   Signature: the decode strip — a heat-sheet line swept by a
   gold highlight, resolving into split chips.
   ============================================================ */

:root {
  --abyss: #0A101D;
  --depth: #101A2D;
  --panel: #17233E;
  --glass: rgba(23, 35, 62, 0.55);
  --hairline: rgba(232, 237, 245, 0.09);
  --hairline-strong: rgba(232, 237, 245, 0.17);

  --ink: #EAEFF6;
  --ink-dim: #9CAAC1;
  --ink-faint: #7C8BA3;

  --falcon: #F2C14E;
  --falcon-deep: #C99A2E;
  --flow: #4FD8E8;

  --best: #3DDC97;
  --season: #6EA8FE;
  --warn: #F2C14E;
  --off: #F58A6B;
  --danger: #FF6B5E;

  --font-display: "Sora", system-ui, sans-serif;
  --font-ui: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --rail-w: 228px;

  /* z-scale */
  --z-sticky: 30;
  --z-modal: 50;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  background:
    radial-gradient(1200px 640px at 78% -10%, rgba(79, 216, 232, 0.07), transparent 60%),
    radial-gradient(900px 520px at -10% 110%, rgba(242, 193, 78, 0.05), transparent 55%),
    var(--abyss);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(79, 216, 232, 0.28); }

a { color: var(--flow); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--flow); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ================================ Brand */

.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 30px; height: auto; display: block; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.4)); }
.brand .brand-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 17px; letter-spacing: 0.01em;
  color: var(--ink);
}
.brand .brand-name em { font-style: normal; color: var(--falcon); }

/* ================================ Signature: decode strip */

.decode {
  font-family: var(--font-mono); font-size: 13px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--depth));
  box-shadow: inset 0 1px 0 rgba(232,237,245,0.05), 0 24px 60px rgba(0,0,0,0.42);
  padding: 18px 20px;
  overflow: hidden;
}
.decode .d-head {
  color: var(--ink-faint); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 12px;
  display: flex; justify-content: space-between; gap: 10px;
}
.decode .d-head .d-file { color: var(--ink-dim); }
.decode .d-line {
  position: relative; color: var(--ink-dim); white-space: nowrap;
  padding: 7px 10px; border-radius: 7px;
  overflow: hidden; text-overflow: ellipsis;
}
.decode .d-line.hit { color: var(--ink); }
.decode .d-line.hit::before {
  content: "";
  position: absolute; inset: 2px;
  background: linear-gradient(90deg, rgba(242,193,78,0.30), rgba(242,193,78,0.10) 82%, rgba(242,193,78,0.02));
  border-radius: 6px;
  transform-origin: left center;
  animation: hl-sweep 900ms var(--ease-out) 500ms both;
}
.decode .d-line span { position: relative; }
@keyframes hl-sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.decode .d-out {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px dashed var(--hairline-strong);
}
.decode .chip {
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 4px 11px; font-size: 12px; color: var(--ink);
  background: rgba(10, 16, 29, 0.5);
  opacity: 0;
  animation: chip-in 500ms var(--ease-out) both;
}
.decode .chip b { color: var(--flow); font-weight: 600; margin-left: 6px; }
.decode .chip.gold b { color: var(--falcon); }
.decode .chip:nth-child(1) { animation-delay: 1150ms; }
.decode .chip:nth-child(2) { animation-delay: 1300ms; }
.decode .chip:nth-child(3) { animation-delay: 1450ms; }
.decode .chip:nth-child(4) { animation-delay: 1600ms; }
@keyframes chip-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.decode .d-verdict {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px;
  margin-top: 14px; padding: 12px 14px;
  border: 1px solid rgba(242, 193, 78, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(242, 193, 78, 0.07);
  opacity: 0;
  animation: chip-in 550ms var(--ease-out) 1850ms both;
}
.decode .d-verdict .v-badge {
  font-family: var(--font-ui); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--falcon);
}
.decode .d-verdict b { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.decode .d-verdict .v-drop { font-size: 12px; color: var(--best); }

@media (prefers-reduced-motion: reduce) {
  .decode .chip, .decode .d-verdict { opacity: 1; }
}

/* ================================ Landing */

.landing { min-height: 100vh; display: flex; flex-direction: column; }

.landing-nav {
  position: sticky; top: 0; z-index: var(--z-sticky);
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 56px);
  background: rgba(10, 16, 29, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.landing-nav .nav-actions { display: flex; gap: 12px; align-items: center; }

.hero {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 9vh, 110px) clamp(20px, 5vw, 56px) clamp(56px, 10vh, 120px);
  max-width: 1240px; width: 100%; margin: 0 auto;
}
.hero::before {
  /* lane lines: the pool under the page */
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg,
    transparent 0, transparent calc(20% - 1px),
    rgba(232, 237, 245, 0.03) calc(20% - 1px), rgba(232, 237, 245, 0.03) 20%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 72%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 72%, transparent);
  pointer-events: none;
}
.hero > * { position: relative; }

.kicker {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--flow);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 700; line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero h1 .gold { color: var(--falcon); }
.hero .sub {
  color: var(--ink-dim); font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65; max-width: 46ch; margin: 22px 0 32px;
  text-wrap: pretty;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.cta-hint { font-size: 13px; color: var(--ink-faint); margin-top: 14px; }

.hero-panel { animation: settle 900ms var(--ease-out) both; }
@keyframes settle { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero-panel .float { animation: hover-float 7s ease-in-out 1.8s infinite; }
@keyframes hover-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.trust-row {
  display: flex; gap: clamp(18px, 3.5vw, 44px); flex-wrap: wrap;
  padding: 20px clamp(20px, 5vw, 56px);
  max-width: 1240px; margin: 0 auto; width: 100%;
  border-top: 1px solid var(--hairline);
  color: var(--ink-faint); font-size: 13px;
}
.trust-row b { color: var(--ink-dim); font-weight: 600; }

/* ---------- Landing sections */

.land-section {
  width: 100%; max-width: 1240px; margin: 0 auto;
  padding: clamp(64px, 11vh, 130px) clamp(20px, 5vw, 56px) 0;
}
.land-section:last-of-type { padding-bottom: clamp(64px, 11vh, 130px); }

.land-section h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.025em;
  max-width: 22ch;
}
.land-section .section-lede {
  color: var(--ink-dim); font-size: 16px; line-height: 1.65;
  max-width: 58ch; margin: 16px 0 0;
  text-wrap: pretty;
}

/* Steps: a real 1-2-3 pipeline, so numbers earn their place */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(36px, 5vh, 56px);
}
.step { border-top: 1px solid var(--hairline-strong); padding-top: 18px; }
.step .step-n {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--falcon);
}
.step h3 { font-size: 18px; font-weight: 600; margin: 10px 0 8px; letter-spacing: -0.01em; }
.step p { color: var(--ink-dim); font-size: 14.5px; line-height: 1.6; margin: 0; text-wrap: pretty; }
.step p b { color: var(--ink); font-weight: 600; }

/* Showcase: copy beside a real product fragment, alternating */
.showcase {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(44px, 7vh, 80px);
}
.showcase.flip { grid-template-columns: 1.1fr 0.9fr; }
.showcase.flip .show-copy { order: 2; }
.showcase.flip .show-stage { order: 1; }

.show-copy h3 {
  font-size: clamp(21px, 2.2vw, 27px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.15;
}
.show-copy p {
  color: var(--ink-dim); font-size: 15px; line-height: 1.65;
  margin: 14px 0 0; max-width: 44ch; text-wrap: pretty;
}
.show-copy p b { color: var(--ink); font-weight: 600; }
.show-copy .show-link { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; }

.show-stage { min-width: 0; }
.show-stage .frame {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(23,35,62,0.55), rgba(16,26,45,0.55));
  box-shadow: inset 0 1px 0 rgba(232,237,245,0.05), 0 30px 70px rgba(0,0,0,0.4);
  overflow: hidden;
}
.show-stage .frame-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint);
}
.show-stage .frame-head .fh-mode { color: var(--flow); letter-spacing: 0.08em; }
.show-stage .frame-body { padding: 6px 0; }
.show-stage table.data { font-size: 13.5px; }
.show-stage .frame-pad { padding: 18px; }

/* Continuity: two decks, one roster */
.decks {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: clamp(16px, 3vw, 36px);
  align-items: stretch;
  margin-top: clamp(36px, 5vh, 56px);
}
.deck {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(23,35,62,0.4), rgba(16,26,45,0.4));
  padding: 26px 28px;
}
.deck .deck-where {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--flow); margin-bottom: 12px;
}
.deck h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.deck ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.deck li { color: var(--ink-dim); font-size: 14.5px; padding-left: 22px; position: relative; }
.deck li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 12px; height: 2px; border-radius: 2px; background: var(--falcon);
}
.decks .link-rail {
  display: grid; place-items: center;
  color: var(--ink-faint);
}
.decks .link-rail .lr {
  display: grid; gap: 5px; width: 56px;
}
.decks .link-rail .lr i { height: 2px; border-radius: 2px; background: var(--hairline-strong); }
.decks .link-rail .lr i:nth-child(2) { background: var(--flow); }
.decks .link-rail .lr-cap {
  margin-top: 10px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; text-align: center;
}

/* Final CTA: the one drenched moment */
.cta-band {
  margin-top: clamp(72px, 12vh, 140px);
  background: linear-gradient(160deg, #F6CB63, var(--falcon) 55%, #E0AC38);
  color: #17130A;
}
.cta-band-inner {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(56px, 9vh, 96px) clamp(20px, 5vw, 56px);
  display: grid; grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.cta-band h2 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.03em;
  color: #17130A;
}
.cta-band p { color: rgba(23, 19, 10, 0.78); font-size: 16px; line-height: 1.6; margin: 14px 0 0; max-width: 48ch; }
.cta-band .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-self: end; }
.btn.abyss {
  background: #17130A; border-color: #17130A; color: var(--falcon);
}
.btn.abyss:hover { background: #2A2312; border-color: #2A2312; }
.btn.on-gold { border-color: rgba(23,19,10,0.35); color: #17130A; }
.btn.on-gold:hover { border-color: #17130A; }

/* Footer */
.landing-foot {
  border-top: 1px solid var(--hairline);
  padding: 28px clamp(20px, 5vw, 56px);
}
.landing-foot .foot-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.landing-foot .foot-links { display: flex; gap: 22px; font-size: 13.5px; }
.landing-foot .foot-links a { color: var(--ink-dim); }
.landing-foot .foot-links a:hover { color: var(--ink); }
.landing-foot .foot-note { font-size: 12.5px; color: var(--ink-faint); }

/* Scroll reveal: enhance-only. Content is fully visible without JS;
   the .js root class arms it, IO adds .in, and a timed fallback in
   app.js guarantees .in even if IO never fires. */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ================================ Controls */

.btn {
  font: inherit; font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--hairline-strong);
  background: transparent; color: var(--ink);
  cursor: pointer; white-space: nowrap;
  transition: border-color 160ms var(--ease-out), background 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:hover { border-color: var(--flow); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.gold { background: var(--falcon); border-color: var(--falcon); color: #17130A; }
.btn.gold:hover { background: #F8D072; border-color: #F8D072; }
.btn.ghost { border-color: transparent; color: var(--ink-dim); }
.btn.ghost:hover { color: var(--ink); border-color: var(--hairline-strong); }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn.lg { padding: 13px 24px; font-size: 15px; border-radius: 11px; }

.input, select.input {
  font: inherit; font-size: 14px;
  padding: 10px 13px; border-radius: 10px;
  border: 1px solid var(--hairline-strong);
  background: rgba(10, 16, 29, 0.6);
  color: var(--ink); min-width: 0;
}
.input::placeholder { color: var(--ink-faint); }
.input:focus { border-color: var(--flow); outline: none; }
select.input option { background: var(--depth); }

.seg { display: inline-flex; border: 1px solid var(--hairline-strong); border-radius: 10px; overflow: hidden; }
.seg button {
  font: inherit; font-size: 13px; font-weight: 600;
  border: 0; background: transparent; color: var(--ink-dim);
  padding: 8px 14px; cursor: pointer;
  transition: color 140ms var(--ease-out), background 140ms var(--ease-out);
}
.seg button:hover { color: var(--ink); }
.seg button + button { border-left: 1px solid var(--hairline); }
.seg button.on { background: var(--falcon); color: #17130A; }
.seg button.on:hover { color: #17130A; }

.field { display: grid; gap: 6px; }
.field label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint);
}

/* ================================ Auth */

.auth-panel {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(14px);
  padding: 26px;
  display: grid; gap: 15px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.auth-panel h2 { font-size: 17px; font-weight: 600; }
.auth-panel form { display: grid; gap: 13px; }

/* ================================ App shell */

.shell { display: grid; grid-template-columns: var(--rail-w) 1fr; min-height: 100vh; }

.rail {
  border-right: 1px solid var(--hairline);
  padding: 22px 14px;
  display: flex; flex-direction: column; gap: 26px;
  position: sticky; top: 0; height: 100vh;
  background: linear-gradient(180deg, rgba(16,26,45,0.6), rgba(10,16,29,0.2));
}

.rail nav { display: grid; gap: 3px; }

.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--ink-dim); font-weight: 500; font-size: 14px;
  border: 1px solid transparent;
  transition: color 140ms var(--ease-out), background 140ms var(--ease-out);
}
.nav-link:hover { color: var(--ink); background: rgba(232,237,245,0.04); text-decoration: none; }
.nav-link.active {
  color: var(--ink);
  background: rgba(242, 193, 78, 0.08);
  border-color: rgba(242, 193, 78, 0.22);
}
.nav-link .tick { width: 14px; height: 2px; border-radius: 2px; background: transparent; flex: none; transition: background 140ms var(--ease-out); }
.nav-link.active .tick { background: var(--falcon); }

.rail-foot { margin-top: auto; display: grid; gap: 10px; font-size: 12.5px; color: var(--ink-dim); }

.mode-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  font-weight: 600; font-size: 12px; width: fit-content;
}
.mode-chip .dot { width: 7px; height: 7px; border-radius: 50%; }
.mode-chip.demo .dot { background: var(--ink-faint); }
.mode-chip.live .dot { background: var(--best); box-shadow: 0 0 8px rgba(61,220,151,0.6); }

.main { padding: 34px 42px 72px; max-width: 1120px; width: 100%; }

.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: 27px; font-weight: 700; }
.page-head .lede { color: var(--ink-dim); margin: 7px 0 0; font-size: 14.5px; }

.flowline { display: grid; gap: 4px; margin-top: 12px; width: min(300px, 100%); }
.flowline i {
  height: 2px; border-radius: 2px; background: var(--hairline-strong);
  transform-origin: left center;
  animation: flow-in 360ms var(--ease-out) both;
}
.flowline i:nth-child(1) { width: 100%; background: var(--flow); }
.flowline i:nth-child(2) { width: 62%; animation-delay: 60ms; }
.flowline i:nth-child(3) { width: 38%; animation-delay: 120ms; }
@keyframes flow-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ================================ Cards, stats, tables */

.card {
  background: linear-gradient(180deg, rgba(23,35,62,0.5), rgba(16,26,45,0.5));
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(232,237,245,0.04);
}

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { padding: 18px 20px; }
.stat .n { font-family: var(--font-mono); font-size: 27px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .n.gold { color: var(--falcon); }
.stat .n.green { color: var(--best); }
.stat .l { font-size: 11px; text-transform: uppercase; letter-spacing: 0.11em; color: var(--ink-faint); margin-top: 3px; }
.stat .d { font-size: 12px; color: var(--ink-dim); margin-top: 5px; }

table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: left; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.11em;
  color: var(--ink-faint);
  padding: 11px 16px;
  border-bottom: 1px solid var(--hairline-strong);
}
table.data td { padding: 12px 16px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tr.rowlink { cursor: pointer; }
table.data tr.rowlink:hover td { background: rgba(79, 216, 232, 0.05); }

.t-time { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-dim { color: var(--ink-dim); }
.t-right { text-align: right; }

.badge {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; margin-left: 8px;
}
.badge.best { color: var(--best); background: rgba(61,220,151,0.12); }
.badge.season { color: var(--season); background: rgba(110,168,254,0.12); }
.badge.status { color: var(--danger); background: rgba(255,107,94,0.11); }

.splits-row td { background: rgba(10, 16, 29, 0.45); }
.splits { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--font-mono); font-size: 12.5px; }
.splits .s { color: var(--ink-faint); }
.splits .s b { color: var(--flow); font-weight: 600; margin-left: 6px; }
.splits-empty { color: var(--ink-faint); font-size: 12.5px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.toolbar .spacer { flex: 1; }

.banner {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(242, 193, 78, 0.25);
  background: rgba(242, 193, 78, 0.06);
  font-size: 13px; color: var(--ink-dim);
  margin-bottom: 22px;
}
.banner b { color: var(--falcon); }

.note { font-size: 13px; color: var(--ink-dim); }
.error-text { font-size: 13px; color: var(--danger); }
.empty { padding: 48px 20px; text-align: center; color: var(--ink-faint); font-size: 14px; }

tr.editing td { background: rgba(79, 216, 232, 0.05); }
td .cell-edit { display: flex; gap: 8px; align-items: center; }
td .cell-edit .input { padding: 6px 10px; font-size: 13.5px; }

/* ================================ Meet summary */

.sum-grid { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: stretch; margin-bottom: 16px; }
.donut-card { padding: 22px; display: grid; justify-items: center; gap: 14px; }
.donut-wrap { position: relative; width: 190px; height: 190px; }
.donut-wrap svg { transform: rotate(-90deg); display: block; }
.donut-wrap .donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.donut-center .big { font-family: var(--font-mono); font-size: 30px; font-weight: 600; }
.donut-center .cap { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-top: 2px; }
.legend { display: grid; gap: 7px; width: 100%; font-size: 12.5px; }
.legend .lg { display: flex; align-items: center; gap: 9px; color: var(--ink-dim); }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend .lg b { margin-left: auto; font-family: var(--font-mono); color: var(--ink); }

.board { padding: 4px 0 10px; }
.board h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-faint); padding: 16px 18px 8px; }
.board .row { display: flex; align-items: center; gap: 12px; padding: 9px 18px; font-size: 13.5px; border-top: 1px solid var(--hairline); }
.board .row .rk { font-family: var(--font-mono); color: var(--falcon); width: 18px; font-weight: 600; }
.board .row .val { margin-left: auto; font-family: var(--font-mono); font-weight: 600; color: var(--flow); }

.bar-row { display: grid; grid-template-columns: 110px 1fr 64px; gap: 12px; align-items: center; padding: 8px 18px; font-size: 13px; color: var(--ink-dim); }
.bar-row .track { height: 8px; border-radius: 4px; background: rgba(232,237,245,0.06); overflow: hidden; }
.bar-row .fill { height: 100%; border-radius: 4px; transform-origin: left; animation: flow-in 700ms var(--ease-out) both; }
.bar-row .num { font-family: var(--font-mono); text-align: right; color: var(--ink-dim); }

/* ================================ Upload */

.dropzone {
  border: 1.5px dashed var(--hairline-strong);
  border-radius: var(--radius);
  padding: 48px 24px; text-align: center;
  color: var(--ink-dim);
  background: rgba(16, 26, 45, 0.35);
  transition: border-color 160ms var(--ease-out), background 160ms var(--ease-out);
}
.dropzone.over { border-color: var(--falcon); background: rgba(242, 193, 78, 0.05); color: var(--ink); }
.dropzone .dz-title { font-weight: 600; color: var(--ink); font-size: 15px; font-family: var(--font-display); }
.dropzone .flowline { margin: 16px auto 0; width: 170px; }
.dropzone .flowline i { animation: none; }
.dropzone.over .flowline i { animation: flow-in 340ms var(--ease-out) both; }
.dropzone.over .flowline i:nth-child(1) { background: var(--falcon); }

.file-queue { margin-top: 18px; display: grid; gap: 8px; }
.file-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.file-item .fname { font-family: var(--font-mono); font-size: 13px; }
.file-item .fmeta { font-size: 12px; color: var(--ink-faint); }
.file-item .fstate { margin-left: auto; font-size: 12px; font-weight: 700; }
.file-item .fstate.ok { color: var(--best); }
.file-item .fstate.err { color: var(--danger); }
.file-item .fstate.wait { color: var(--ink-dim); }

/* ================================ Responsive */

@media (max-width: 980px) {
  .showcase, .showcase.flip { grid-template-columns: 1fr; gap: 24px; }
  .showcase.flip .show-copy { order: 1; }
  .showcase.flip .show-stage { order: 2; }
  .decks { grid-template-columns: 1fr; }
  .decks .link-rail { padding: 4px 0; }
  .decks .link-rail .lr { width: 40px; margin: 0 auto; }
  .cta-band-inner { grid-template-columns: 1fr; }
  .cta-band .cta-actions { justify-self: start; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero::before { display: none; }
  .sum-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .rail {
    position: static; height: auto;
    flex-direction: row; align-items: center; gap: 12px;
    padding: 12px 16px;
    border-right: 0; border-bottom: 1px solid var(--hairline);
    overflow-x: auto;
  }
  .rail nav { display: flex; gap: 2px; }
  .nav-link { padding: 8px 10px; white-space: nowrap; }
  .nav-link .tick { display: none; }
  .rail-foot { display: none; }
  .main { padding: 22px 16px 56px; }
  .decode { font-size: 11.5px; padding: 14px; }
}

.noscript { padding: 40px; text-align: center; }
