@layer components {
html[data-route="/analysis/running-back-draft-lab"] {
  --lab-paper: #f2eee5;
  --lab-ink: #11100f;
  --lab-red: #ff2d2d;
  --lab-red-deep: #9f0e19;
  --lab-orange: #ff7a18;
  --lab-gold: #ffc820;
  --lab-blue: #48a9df;
  --lab-green: #62c58b;
  --lab-violet: #b68ee3;
  --lab-line: rgba(255,255,255,.105);
  --lab-surface: #0c0c0c;
  --lab-surface-2: #121212;
  --lab-muted: #a9a49d;
}

html[data-route="/analysis/running-back-draft-lab"] .rb-lab {
  width: min(100%, 1540px);
  max-width: none;
  margin: 0 auto;
  padding: 18px 22px 72px;
  color: #f7f4ee;
  overflow: clip;
}

.rb-lab * { box-sizing: border-box; }
.rb-lab button, .rb-lab select { font: inherit; }
.rb-lab button:focus-visible, .rb-lab select:focus-visible, .rb-lab a:focus-visible {
  outline: 3px solid var(--lab-gold);
  outline-offset: 3px;
}

/* ---------- Hero: editorial cover + live scoreboard ---------- */
.lab-hero {
  position: relative;
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(350px, .8fr);
  align-items: end;
  gap: clamp(28px, 5vw, 84px);
  padding: clamp(30px, 5vw, 78px);
  overflow: hidden;
  border: 1px solid #302b26;
  border-radius: 18px;
  background:
    radial-gradient(circle at 73% 42%, rgba(255,45,45,.2), transparent 29%),
    linear-gradient(122deg, #0b0a09 0 56%, #1d080a 56% 72%, #0b0a09 72%);
  box-shadow: 0 30px 90px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.04);
  isolation: isolate;
}
.lab-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 55%;
  width: 5px;
  background: var(--lab-red);
  transform: skewX(-16deg);
  box-shadow: 22px 0 0 rgba(255,45,45,.16), 44px 0 0 rgba(255,45,45,.07);
  z-index: -1;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .24;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000, transparent 80%);
}
.hero-ghost {
  position: absolute;
  right: -1vw;
  top: -5vw;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,.065);
  font: 400 clamp(230px, 35vw, 570px)/.8 var(--f-display, sans-serif);
  letter-spacing: -.09em;
  transform: rotate(-5deg);
  user-select: none;
}
.hero-copy { align-self: center; max-width: 760px; }
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font: 800 12px/1 var(--f-mono, monospace);
  letter-spacing: .16em;
  color: var(--lab-orange);
}
.live-pip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  color: #fff;
  border: 1px solid rgba(255,45,45,.65);
  border-radius: 999px;
  background: rgba(255,45,45,.12);
}
.live-pip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lab-red);
  box-shadow: 0 0 14px var(--lab-red);
  animation: lab-pulse 1.8s ease-in-out infinite;
}
.hero-copy h1 {
  max-width: 780px;
  margin: 0;
  color: var(--lab-paper);
  font: 400 clamp(62px, 9vw, 132px)/.78 var(--f-display, sans-serif);
  letter-spacing: -.055em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero-copy h1 em {
  color: var(--lab-red);
  font-style: normal;
  text-shadow: 0 0 34px rgba(255,45,45,.24);
}
.hero-dek {
  max-width: 680px;
  margin: 30px 0 0;
  color: #d7d1c8;
  font: 600 clamp(17px, 1.75vw, 24px)/1.48 var(--f-body, sans-serif);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.lab-button {
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid #514b45;
  border-radius: 7px;
  color: #f6f1e9;
  background: rgba(13,13,13,.72);
  font: 800 11px/1 var(--f-mono, monospace);
  letter-spacing: .12em;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.lab-button:hover { transform: translateY(-2px); border-color: #8d8276; background: #171513; }
.lab-button:active { transform: translateY(0) scale(.98); }
.lab-button--primary { color: #fff; border-color: var(--lab-red); background: linear-gradient(135deg, #e21829, #a90818); box-shadow: 0 10px 25px rgba(225,24,41,.22); }
.lab-button--full { width: 100%; margin-top: 16px; }

.hero-scoreboard {
  align-self: end;
  position: relative;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(4,4,4,.75);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  backdrop-filter: blur(14px);
}
.score-row {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto auto;
  align-items: center;
  gap: 11px;
  min-height: 74px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.score-row--hot { background: linear-gradient(90deg, rgba(255,122,24,.16), transparent); }
.score-rank { color: #77716a; font: 700 12px/1 var(--f-mono, monospace); }
.score-name { overflow: hidden; color: #f8f4ed; font: 800 16px/1.2 var(--f-body, sans-serif); text-overflow: ellipsis; white-space: nowrap; }
.score-pos {
  padding: 5px 7px;
  border-radius: 5px;
  font: 800 10px/1 var(--f-mono, monospace);
}
.score-row strong { min-width: 70px; text-align: right; color: var(--lab-gold); font: 400 25px/1 var(--f-numeral, monospace); }
.score-caption { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; color: #837d76; font: 700 9px/1 var(--f-mono, monospace); letter-spacing: .1em; }

.pos-QB, [data-pos="QB"] { --pos-color: var(--lab-red); }
.pos-RB, [data-pos="RB"] { --pos-color: var(--lab-orange); }
.pos-WR, [data-pos="WR"] { --pos-color: var(--lab-blue); }
.pos-TE, [data-pos="TE"] { --pos-color: var(--lab-green); }
.score-pos.pos-QB { color: #ff7777; background: rgba(255,45,45,.14); }
.score-pos.pos-RB { color: #ff9d55; background: rgba(255,122,24,.14); }

/* ---------- Argument strip ---------- */
.argument-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: -1px 18px 0;
  border: 1px solid #302d29;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #0a0908;
}
.argument-strip article {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 14px;
  min-height: 110px;
  padding: 20px 24px;
  border-right: 1px solid #2b2926;
}
.argument-strip article:last-child { border-right: 0; }
.argument-num { color: var(--lab-gold); font: 400 clamp(30px, 4vw, 56px)/.9 var(--f-numeral, monospace); }
.argument-strip strong { color: #f0ebe3; font: 800 10px/1.2 var(--f-mono, monospace); letter-spacing: .09em; }
.argument-strip p { margin: 6px 0 0; color: #8f8981; font: 500 12px/1.45 var(--f-body, sans-serif); }

/* ---------- Common section language ---------- */
.model-console, .story-section { margin-top: clamp(48px, 7vw, 94px); }
.lab-thesis {
  display: grid;
  grid-template-columns: minmax(210px, .62fr) minmax(320px, 1.08fr) minmax(360px, 1.45fr);
  gap: clamp(22px, 4vw, 58px);
  margin: clamp(42px, 6vw, 76px) auto 0;
  border-top: 1px solid #3a342e;
  border-bottom: 1px solid #3a342e;
  padding: clamp(26px, 4vw, 44px) 0;
}
.lab-thesis > span { color: var(--lab-red); font: 800 10px/1 var(--f-mono, monospace); letter-spacing: .17em; }
.lab-thesis h2 { margin: 0; color: #f3efe8; font: 400 clamp(32px, 4vw, 56px)/.95 var(--f-display, sans-serif); letter-spacing: -.025em; }
.lab-thesis > div { display: grid; gap: 17px; }
.lab-thesis p, .story-copy p { margin: 0; color: #bbb4ab; font: 500 16px/1.7 var(--f-body, sans-serif); }
.lab-thesis p:first-child { color: #eee9e1; font-size: 18px; }
.story-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 54px); max-width: 1180px; margin: -2px 0 28px; }
.story-copy--ink p { color: #514a42; }
.story-copy--ink p:first-child { color: #211d19; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}
.section-index { display: block; margin-bottom: 8px; color: var(--lab-red); font: 800 10px/1 var(--f-mono, monospace); letter-spacing: .17em; }
.section-heading h2, .method-footer h2 {
  margin: 0;
  max-width: 900px;
  color: #f3efe8;
  font: 400 clamp(32px, 4.2vw, 64px)/.92 var(--f-display, sans-serif);
  letter-spacing: -.025em;
}
.section-heading > p { max-width: 540px; margin: 0 0 5px; color: var(--lab-muted); font: 500 14px/1.55 var(--f-body, sans-serif); }
.heading-actions { align-self: end; }
.utility-button {
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid #3b3834;
  border-radius: 6px;
  color: #b9b3aa;
  background: #11100f;
  font: 800 9px/1 var(--f-mono, monospace);
  letter-spacing: .1em;
  cursor: pointer;
}
.utility-button:hover { color: #fff; border-color: var(--lab-red); }

/* ---------- Model console ---------- */
.model-console {
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid #3a3530;
  border-radius: 15px;
  background:
    linear-gradient(110deg, rgba(255,45,45,.09), transparent 34%),
    #0d0c0b;
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.console-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
}
.control-block { min-width: 0; grid-column: span 3; margin: 0; padding: 0; border: 0; }
.control-block--format { grid-column: span 4; }
.control-block legend, .select-control span {
  display: block;
  margin-bottom: 7px;
  color: #827c74;
  font: 800 9px/1 var(--f-mono, monospace);
  letter-spacing: .12em;
}
.segmented { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border: 1px solid #34312e; border-radius: 8px; background: #070707; }
.segmented button {
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  color: #8f8981;
  background: transparent;
  font: 800 9px/1 var(--f-mono, monospace);
  letter-spacing: .07em;
  cursor: pointer;
}
.segmented button:hover { color: #fff; background: #171514; }
.segmented button.is-active { color: #fff; background: linear-gradient(135deg, #e02030, #9e0a17); box-shadow: 0 5px 15px rgba(255,45,45,.2); }
.select-control { min-width: 0; }
.select-control select {
  width: 100%;
  min-height: 50px;
  padding: 0 28px 0 12px;
  color: #f0ece5;
  border: 1px solid #34312e;
  border-radius: 7px;
  background: #080808;
  font: 700 14px/1 var(--f-mono, monospace);
  cursor: pointer;
}
.console-note { display: flex; align-items: center; gap: 9px; margin: 18px 0 0; color: #817b74; font: 600 11px/1.4 var(--f-mono, monospace); }
.status-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #8a847d; }
.model-console.is-ready .status-dot { background: var(--lab-green); box-shadow: 0 0 12px rgba(98,197,139,.6); }
.model-console.is-error .status-dot { background: var(--lab-red); }

/* ---------- Metric ribbon ---------- */
.metric-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #302d29;
  border-radius: 11px;
  overflow: hidden;
  background: #0a0909;
}
.starter-card { position: relative; min-width: 0; padding: 18px 19px; border-right: 1px solid #302d29; overflow: hidden; }
.starter-card:last-child { border-right: 0; }
.starter-card::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--pos-color); }
.starter-card span { color: #817a72; font: 800 9px/1 var(--f-mono, monospace); letter-spacing: .1em; }
.starter-card strong { display: block; margin-top: 7px; color: #f5f0e8; font: 400 29px/1 var(--f-numeral, monospace); }
.starter-card p { margin: 6px 0 0; color: #89837c; font: 600 11px/1.35 var(--f-body, sans-serif); }

.chart-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 16px; margin-top: 16px; }
.data-panel, .proof-card {
  border: 1px solid #302d29;
  border-radius: 12px;
  background: linear-gradient(155deg, #12110f, #090909 62%);
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 16px 45px rgba(0,0,0,.22);
}
.panel-head { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid #2d2a27; }
.panel-head span { display: block; margin-bottom: 5px; color: var(--lab-red); font: 800 9px/1 var(--f-mono, monospace); letter-spacing: .12em; }
.panel-head h3 { margin: 0; color: #efebe4; font: 400 24px/1 var(--f-display, sans-serif); letter-spacing: .01em; }

.rank-bars { padding: 10px 12px 14px; }
.board-round-break { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 9px -12px 4px; border-top: 1px solid #51483f; border-bottom: 1px solid #302b26; padding: 9px 20px; color: #857d74; background: #080706; font: 800 8px/1.25 var(--f-mono, monospace); letter-spacing: .1em; }
.board-round-break span { color: var(--lab-orange); }
.rank-row {
  --bar: 20%;
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(140px, 1.25fr) 50px minmax(130px, 1fr) 70px;
  align-items: center;
  gap: 9px;
  min-height: 47px;
  padding: 7px 9px;
  border-bottom: 1px solid rgba(255,255,255,.055);
  overflow: hidden;
  animation: board-row-in .42s cubic-bezier(.2,.72,.25,1) both;
  animation-delay: var(--row-delay, 0ms);
}
.rank-row--round-two { background: rgba(255,255,255,.018); }
.rank-row::before { content: ""; position: absolute; inset: 5px auto 5px 0; width: var(--bar); border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--pos-color) 22%, transparent), transparent); opacity: .85; }
.rank-row > * { position: relative; }
.rank-number { color: #6f6962; font: 700 10px/1 var(--f-mono, monospace); }
.rank-player { min-width: 0; overflow: hidden; color: #f4f0e9; font: 800 13px/1.2 var(--f-body, sans-serif); text-overflow: ellipsis; white-space: nowrap; }
.rank-pos { justify-self: start; min-width: 36px; padding: 5px 7px; color: var(--pos-color); border: 1px solid color-mix(in srgb, var(--pos-color) 45%, transparent); border-radius: 5px; background: color-mix(in srgb, var(--pos-color) 10%, transparent); text-align: center; font: 800 9px/1 var(--f-mono, monospace); }
.rank-bar-track { height: 7px; border-radius: 999px; background: #24211e; overflow: hidden; }
.rank-bar-track i { display: block; height: 100%; width: var(--bar); border-radius: inherit; background: var(--pos-color); box-shadow: 0 0 12px color-mix(in srgb, var(--pos-color) 38%, transparent); transform-origin: left; animation: board-bar-in .55s cubic-bezier(.2,.72,.25,1) both; animation-delay: calc(var(--row-delay, 0ms) + 70ms); }
.rank-value { color: var(--lab-gold); text-align: right; font: 400 15px/1 var(--f-numeral, monospace); }
.board-takeaway { margin: 18px 0 0; border-left: 3px solid var(--lab-orange); padding: 4px 0 4px 17px; color: #c7c0b7; font: 600 14px/1.65 var(--f-body, sans-serif); }

@keyframes board-row-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes board-bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.proof-card { position: relative; padding: 25px; overflow: hidden; }
.proof-card::after { content: "RANK"; position: absolute; right: -12px; bottom: -22px; color: rgba(255,255,255,.035); font: 400 108px/1 var(--f-display, sans-serif); }
.proof-kicker { color: var(--lab-orange); font: 800 10px/1 var(--f-mono, monospace); letter-spacing: .16em; }
.proof-equation { margin: 28px 0 7px; color: #a29b92; font: 400 clamp(24px, 3vw, 38px)/1 var(--f-numeral, monospace); }
.proof-card strong { color: var(--lab-gold); font: 400 clamp(28px, 4vw, 47px)/1 var(--f-numeral, monospace); }
.proof-card hr { margin: 24px 0; border: 0; border-top: 1px solid #3b3732; }
.proof-note { position: relative; z-index: 1; margin: 25px 0 0; color: #aaa39a; font: 600 13px/1.55 var(--f-body, sans-serif); }

/* ---------- Depth chart ---------- */
.story-section--ink { position: relative; padding: clamp(24px, 4vw, 48px); border-radius: 16px; color: var(--lab-ink); background: var(--lab-paper); }
.story-section--ink .section-heading h2 { color: #16130f; }
.story-section--ink .section-index { color: #a30e1b; }
.story-section--ink .section-heading > p { color: #696158; }
.story-section--ink .data-panel { border-color: #d0c7ba; background: #f8f4ec; box-shadow: 0 18px 45px rgba(51,39,24,.12); }
.depth-panel { padding: 18px; }
.depth-legend { display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-end; padding: 4px 8px 10px; }
.depth-legend span { display: inline-flex; align-items: center; gap: 7px; color: #4c463f; font: 800 10px/1 var(--f-mono, monospace); letter-spacing: .08em; }
.depth-legend span::before { content: ""; width: 19px; height: 4px; border-radius: 999px; background: var(--pos-color); }
.svg-wrap { width: 100%; overflow-x: auto; }
#depth-chart { display: block; width: 100%; min-width: 760px; height: auto; }
.chart-foot { margin: 10px 8px 0; color: #71695f; font: 600 11px/1.5 var(--f-body, sans-serif); }

/* ---------- Format chart + movers ---------- */
.rules-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 16px; }
.format-bars, .mover-list { padding: 18px; }
.format-row { margin-bottom: 19px; }
.format-row:last-child { margin-bottom: 0; }
.format-row-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.format-row-head strong { color: #f3efe7; font: 800 11px/1 var(--f-mono, monospace); letter-spacing: .09em; }
.format-row-head span { color: #7d776f; font: 700 10px/1 var(--f-mono, monospace); }
.format-stack { display: flex; height: 31px; border-radius: 5px; overflow: hidden; background: #1e1b18; }
.format-segment { display: grid; place-items: center; min-width: 0; color: #090909; font: 900 9px/1 var(--f-mono, monospace); transition: width .25s ease; }
.format-segment[data-pos="QB"] { background: var(--lab-red); }
.format-segment[data-pos="RB"] { background: var(--lab-orange); }
.format-segment[data-pos="WR"] { background: var(--lab-blue); }
.format-segment[data-pos="TE"] { background: var(--lab-green); }

.mover-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.mover-card:last-child { border-bottom: 0; }
.mover-label { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; color: var(--lab-orange); font: 800 9px/1 var(--f-mono, monospace); letter-spacing: .1em; }
.mover-label i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mover-card h4 { margin: 0; color: #f3eee7; font: 800 15px/1.2 var(--f-body, sans-serif); }
.mover-card p { margin: 6px 0 0; color: #8f8981; font: 500 12px/1.45 var(--f-body, sans-serif); }
.mover-rank { align-self: center; min-width: 84px; color: #f3eee7; text-align: right; font: 400 23px/1 var(--f-numeral, monospace); }
.mover-rank small { display: block; margin-top: 6px; color: #77716a; font: 800 8px/1 var(--f-mono, monospace); letter-spacing: .08em; }

/* ---------- Order of operations ---------- */
.story-section--field {
  position: relative;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid #3a2016;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,.055) 50%, transparent calc(50% + 1px)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 10%),
    linear-gradient(145deg, #180c08, #0d0b09 55%, #130b08);
}
.operation-grid { counter-reset: op; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.operation-grid li { position: relative; min-height: 214px; padding: 18px 16px 16px; border: 1px solid rgba(255,255,255,.11); border-right: 0; background: rgba(4,4,4,.48); }
.operation-grid li:first-child { border-radius: 9px 0 0 9px; }
.operation-grid li:last-child { border-right: 1px solid rgba(255,255,255,.11); border-radius: 0 9px 9px 0; background: linear-gradient(150deg, rgba(255,45,45,.28), rgba(3,3,3,.72)); }
.operation-grid li:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 34px; z-index: 2; width: 18px; color: var(--lab-red); text-align: center; font: 800 15px/1 var(--f-mono, monospace); }
.operation-grid li > span { color: var(--lab-orange); font: 400 31px/1 var(--f-numeral, monospace); }
.operation-grid li div { margin-top: 48px; }
.operation-grid strong { color: #f2eee7; font: 800 11px/1.3 var(--f-mono, monospace); letter-spacing: .06em; }
.operation-grid p { margin: 9px 0 0; color: #938d85; font: 500 12px/1.48 var(--f-body, sans-serif); }

/* ---------- Reported roster context ---------- */
.news-context { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 0 0 18px; }
.news-context article { display: flex; min-height: 250px; flex-direction: column; border: 1px solid #302d29; border-radius: 11px; padding: 24px; background: linear-gradient(145deg, #12110f, #090909 70%); }
.news-context article > span { color: var(--lab-orange); font: 800 9px/1 var(--f-mono, monospace); letter-spacing: .12em; }
.news-context h3 { margin: 15px 0 12px; color: #f2eee7; font: 400 28px/1.02 var(--f-display, sans-serif); letter-spacing: .01em; }
.news-context p { margin: 0; color: #a8a198; font: 500 14px/1.6 var(--f-body, sans-serif); }
.news-context a { align-self: flex-start; margin-top: auto; padding-top: 20px; color: #f5f0e8; font: 800 9px/1 var(--f-mono, monospace); letter-spacing: .08em; text-decoration-color: var(--lab-red); text-underline-offset: 4px; }
.news-context a:hover { color: var(--lab-red); }

/* ---------- Snake grid and live room ---------- */
.snake-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.snake-slot { min-width: 0; min-height: 124px; padding: 12px 8px; border: 1px solid #302d29; border-radius: 7px; background: #0d0c0b; cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.snake-slot:hover { transform: translateY(-3px); border-color: #665d54; }
.snake-slot.is-active { border-color: var(--lab-red); background: linear-gradient(160deg, rgba(255,45,45,.2), #0c0b0a 70%); box-shadow: inset 0 0 0 1px rgba(255,45,45,.18), 0 12px 28px rgba(255,45,45,.12); }
.snake-slot span { display: block; color: #7d776f; font: 800 9px/1 var(--f-mono, monospace); }
.snake-slot strong { display: block; margin-top: 15px; color: #f2eee7; font: 400 clamp(20px, 2vw, 31px)/1 var(--f-numeral, monospace); }
.snake-slot i { display: block; height: 5px; margin: 12px 0 9px; border-radius: 999px; background: linear-gradient(90deg, var(--lab-red) var(--gap), #292622 var(--gap)); }
.snake-slot small { color: #89827a; font: 700 9px/1.25 var(--f-mono, monospace); }
.room-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 16px; margin-top: 16px; }
.decision-panel, .room-panel { overflow: hidden; }
.urgency-chip { padding: 7px 9px; border: 1px solid rgba(255,122,24,.5); border-radius: 999px; color: var(--lab-orange) !important; background: rgba(255,122,24,.08); font-size: 8px !important; white-space: nowrap; }
.decision-callout { display: grid; grid-template-columns: 94px minmax(0,1fr); align-items: center; gap: 18px; padding: 24px 20px 18px; }
.decision-number { color: var(--lab-red); font: 400 78px/.8 var(--f-numeral, monospace); letter-spacing: -.06em; }
.decision-eyebrow { color: var(--lab-orange); font: 800 9px/1 var(--f-mono, monospace); letter-spacing: .13em; }
.decision-callout h3 { margin: 7px 0 0; color: #f5f0e9; font: 400 clamp(28px, 3vw, 43px)/.95 var(--f-display, sans-serif); }
.decision-callout p { margin: 9px 0 0; color: #948d84; font: 500 12px/1.45 var(--f-body, sans-serif); }
.decision-list { padding: 0 18px 3px; }
.decision-alt { display: grid; grid-template-columns: 28px minmax(0,1fr) auto auto; align-items: center; gap: 9px; min-height: 48px; border-top: 1px solid rgba(255,255,255,.065); }
.decision-alt > span:first-child { color: #6f6962; font: 700 9px/1 var(--f-mono, monospace); }
.decision-alt strong { min-width: 0; overflow: hidden; color: #dcd6cd; font: 700 12px/1.2 var(--f-body, sans-serif); text-overflow: ellipsis; white-space: nowrap; }
.decision-alt em { color: var(--pos-color); font: 800 9px/1 var(--f-mono, monospace); font-style: normal; }
.decision-alt small { color: #817a72; text-align: right; font: 700 9px/1 var(--f-mono, monospace); }
.decision-panel .lab-button { margin: 18px; width: calc(100% - 36px); }
.room-instruction { margin: 14px 18px 0; color: #8f8981; font: 500 12px/1.45 var(--f-body, sans-serif); }
.run-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 14px 18px; }
.run-cell { padding: 10px; border: 1px solid #2d2a27; border-radius: 6px; background: #0a0909; }
.run-cell span { display: block; color: var(--pos-color); font: 800 9px/1 var(--f-mono, monospace); }
.run-cell strong { display: block; margin-top: 7px; color: #f4efe8; font: 400 22px/1 var(--f-numeral, monospace); }
.run-cell small { display: block; margin-top: 5px; color: #9b958d; font: 700 8px/1 var(--f-mono, monospace); }
.roster-control { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; margin: 0 18px 14px; padding: 10px; border: 1px solid #302d29; border-radius: 7px; background: #080808; }
.roster-control > span { color: #a29b93; font: 800 8px/1 var(--f-mono, monospace); letter-spacing: .09em; }
.roster-control > div { display: flex; gap: 5px; }
.roster-control button { min-height: 44px; flex: 1 1 0; padding: 0 8px; color: var(--pos-color); border: 1px solid color-mix(in srgb, var(--pos-color) 35%, #2e2b27); border-radius: 5px; background: color-mix(in srgb, var(--pos-color) 7%, #090909); font: 800 9px/1 var(--f-mono, monospace); cursor: pointer; }
.roster-control button:hover { border-color: var(--pos-color); }
.roster-control small { color: #9b958d; font: 600 8px/1.25 var(--f-body, sans-serif); }
.room-board { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; max-height: 430px; padding: 0 18px 18px; overflow-y: auto; }
.room-player { min-width: 0; display: grid; grid-template-columns: 31px minmax(0,1fr) auto; align-items: center; gap: 8px; min-height: 48px; padding: 7px 8px; border: 1px solid #2d2a27; border-radius: 6px; color: #ddd7ce; background: #0b0a09; cursor: pointer; text-align: left; }
.room-player:hover { border-color: var(--pos-color); background: color-mix(in srgb, var(--pos-color) 8%, #0b0a09); }
.room-player.is-gone { opacity: .42; text-decoration: line-through; }
.room-player > span:first-child { color: #6e6861; font: 700 9px/1 var(--f-mono, monospace); }
.room-player strong { min-width: 0; overflow: hidden; font: 700 11px/1.2 var(--f-body, sans-serif); text-overflow: ellipsis; white-space: nowrap; }
.room-player em { color: var(--pos-color); font: 800 8px/1 var(--f-mono, monospace); font-style: normal; }

/* ---------- Named RB profiles ---------- */
.story-section--names { padding-top: 8px; }
.name-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.name-card { position: relative; min-height: 340px; display: flex; flex-direction: column; padding: 21px; border: 1px solid #37322e; border-radius: 11px; overflow: hidden; background: #0d0c0b; }
.name-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--profile-color, var(--lab-orange)); }
.name-card::after { content: attr(data-index); position: absolute; right: -5px; top: 20px; color: rgba(255,255,255,.04); font: 400 100px/1 var(--f-numeral, monospace); }
.name-card .profile-tag { position: relative; z-index: 1; color: var(--profile-color, var(--lab-orange)); font: 800 9px/1 var(--f-mono, monospace); letter-spacing: .13em; }
.name-card h3 { position: relative; z-index: 1; margin: 35px 0 5px; color: #f4efe8; font: 400 34px/.96 var(--f-display, sans-serif); }
.name-card .profile-school { color: #7f7971; font: 800 9px/1 var(--f-mono, monospace); letter-spacing: .09em; }
.profile-stat { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin-top: 23px; }
.profile-stat div { padding: 10px 7px; border: 1px solid #2e2b27; border-radius: 5px; background: #090908; }
.profile-stat span { display: block; color: #716b64; font: 800 8px/1 var(--f-mono, monospace); }
.profile-stat strong { display: block; margin-top: 7px; color: #eee9e2; font: 400 17px/1 var(--f-numeral, monospace); }
.name-card p { position: relative; z-index: 1; margin: 18px 0 0; color: #a19a91; font: 500 12px/1.55 var(--f-body, sans-serif); }
.name-card .profile-action { margin-top: auto; padding-top: 18px; color: var(--profile-color, var(--lab-orange)); font: 800 9px/1.35 var(--f-mono, monospace); letter-spacing: .07em; }

/* ---------- Footer, toast, state ---------- */
.method-footer { display: grid; grid-template-columns: minmax(240px,.55fr) minmax(0,1.45fr); gap: 34px 70px; margin-top: 80px; padding: 34px; border-top: 3px solid var(--lab-red); border-bottom: 1px solid #302d29; background: #0b0a09; }
.method-footer p { margin: 0; color: #9a938a; font: 500 13px/1.65 var(--f-body, sans-serif); }
.method-footer p + p { margin-top: 14px; }
.method-footer a { color: #ff6969; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 1000; max-width: min(360px, calc(100vw - 30px)); padding: 13px 16px; border: 1px solid #4a433c; border-radius: 8px; color: #f7f2ea; background: #11100f; box-shadow: 0 18px 45px rgba(0,0,0,.55); font: 700 11px/1.4 var(--f-mono, monospace); transform: translateY(25px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { transform: translateY(0); opacity: 1; }
.lab-loading { min-height: 180px; display: grid; place-items: center; color: #827b73; font: 700 11px/1 var(--f-mono, monospace); letter-spacing: .08em; }

@keyframes lab-pulse { 0%,100% { opacity: .5; transform: scale(.82); } 50% { opacity: 1; transform: scale(1.12); } }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .console-grid { grid-template-columns: repeat(7, 1fr); }
  .control-block--format { grid-column: span 4; }
  .operation-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .operation-grid li, .operation-grid li:last-child { border: 1px solid rgba(255,255,255,.11); border-radius: 8px; }
  .operation-grid li:not(:last-child)::after { display: none; }
  .name-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1040px) {
  .lab-hero { grid-template-columns: 1fr; min-height: 680px; align-items: end; }
  .hero-copy { align-self: end; }
  .hero-scoreboard { width: min(100%, 620px); }
  .argument-strip { grid-template-columns: 1fr; }
  .lab-thesis { grid-template-columns: 1fr 1.2fr; }
  .lab-thesis > div { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lab-thesis p:first-child { grid-column: 1 / -1; }
  .argument-strip article { min-height: 86px; border-right: 0; border-bottom: 1px solid #2b2926; }
  .argument-strip article:last-child { border-bottom: 0; }
  .chart-layout, .rules-grid, .room-grid { grid-template-columns: 1fr; }
  .proof-card { min-height: 340px; }
  .snake-grid { grid-template-columns: repeat(6, 1fr); }
  .method-footer { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  html[data-route="/analysis/running-back-draft-lab"] .rb-lab { padding: 58px 12px 60px; }
  .lab-hero { min-height: 650px; padding: 28px 22px; border-radius: 13px; }
  .hero-copy h1 { font-size: clamp(58px, 18vw, 92px); }
  .argument-strip { margin-left: 8px; margin-right: 8px; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .section-heading > p { max-width: 70ch; }
  .story-copy { grid-template-columns: 1fr; gap: 15px; }
  .console-grid { grid-template-columns: repeat(4, 1fr); }
  .control-block { grid-column: 1 / -1; }
  .control-block--format { grid-column: 1 / -1; }
  .metric-ribbon { grid-template-columns: repeat(2, 1fr); }
  .starter-card:nth-child(2) { border-right: 0; }
  .starter-card:nth-child(-n+2) { border-bottom: 1px solid #302d29; }
  .operation-grid { grid-template-columns: repeat(2, 1fr); }
  .snake-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 600px) {
  html[data-route="/analysis/running-back-draft-lab"] .rb-lab { padding-left: 8px; padding-right: 8px; }
  .lab-hero { min-height: 620px; padding: 24px 16px; }
  .hero-copy h1 { font-size: clamp(54px, 19vw, 76px); }
  .hero-dek { font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .score-row { grid-template-columns: 30px minmax(0,1fr) auto; }
  .score-pos { display: none; }
  .score-row strong { min-width: 65px; font-size: 19px; }
  .argument-strip article { padding: 16px; }
  .lab-thesis { grid-template-columns: 1fr; }
  .lab-thesis > div { grid-column: auto; grid-template-columns: 1fr; }
  .lab-thesis p:first-child { grid-column: auto; }
  .model-console, .story-section { margin-top: 54px; }
  .model-console { padding: 19px 14px; }
  .section-heading h2, .method-footer h2 { font-size: 35px; }
  .console-grid { grid-template-columns: repeat(2, 1fr); }
  .segmented { grid-template-columns: repeat(2, 1fr); }
  .rank-row { grid-template-columns: 24px minmax(0,1fr) 36px 57px; }
  .rank-bar-track { display: none; }
  .proof-card { padding: 20px; }
  .story-section--ink, .story-section--field { padding: 22px 12px; }
  .operation-grid { grid-template-columns: 1fr; }
  .operation-grid li { min-height: 150px; }
  .operation-grid li div { margin-top: 25px; }
  .snake-grid { grid-template-columns: repeat(3, 1fr); }
  .decision-callout { grid-template-columns: 70px minmax(0,1fr); padding-left: 14px; padding-right: 14px; }
  .decision-number { font-size: 59px; }
  .room-board { grid-template-columns: 1fr; }
  .name-grid { grid-template-columns: 1fr; }
  .news-context { grid-template-columns: 1fr; }
  .name-card { min-height: 310px; }
  .method-footer { padding: 24px 18px; }
}

@media (max-width: 360px) {
  .snake-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-ribbon { grid-template-columns: 1fr; }
  .starter-card { border-right: 0; border-bottom: 1px solid #302d29; }
  .starter-card:last-child { border-bottom: 0; }
  .run-meter { grid-template-columns: repeat(2, 1fr); }
  .roster-control { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .live-pip::before { animation: none; }
  .lab-button, .snake-slot, .toast, .format-segment { transition: none; }
  .rank-row, .rank-bar-track i { animation: none; }
}

@media print {
  body { background: #fff !important; }
  #sns-chrome, .mob-nav-burger, .model-console, .hero-actions, .utility-button, .room-panel, .toast { display: none !important; }
  html[data-route="/analysis/running-back-draft-lab"] .rb-lab { width: 100%; padding: 0; color: #111; }
  .lab-hero { min-height: 410px; break-after: page; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .story-section { break-inside: avoid; }
  .story-section--ink { background: #f2eee5 !important; }
  .section-heading h2 { color: #111; }
  .data-panel, .proof-card, .name-card { break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .room-grid { grid-template-columns: 1fr; }
}
}
.lab-breadcrumb { display:flex; align-items:center; gap:9px; margin:0 0 14px; color:#777780; font:700 10px/1 var(--f-mono,"JetBrains Mono",monospace); letter-spacing:.12em; }
.lab-breadcrumb a { color:#ff3b30; text-decoration:none; }
.lab-breadcrumb a:hover { color:#fff; }
