/* Rebuttal Results — additive stylesheet. Uses the tokens from style.css and
   touches nothing outside #rebuttal. */

#rebuttal { padding: var(--section-gap) 0 80px; border-top: 1px solid var(--border); }

.rb-badge {
  display: inline-block; margin-bottom: 12px; padding: 3px 11px;
  border: 1px solid var(--orange); border-radius: 99px;
  color: var(--orange); background: var(--orange-glow);
  font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
}
.rb-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; }
.rb-jump a {
  padding: 6px 14px; border: 1px solid var(--border-hover); border-radius: 99px;
  color: var(--text-2); font-size: .88rem; text-decoration: none; transition: .2s;
}
.rb-jump a:hover { color: var(--text-1); border-color: var(--text-3); }

.rb-sub { margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--border); }
.rb-sub > .section-lead { margin-bottom: 26px; }

/* ── video cards ─────────────────────────────────────────────── */
.rb-grid { display: grid; gap: 18px; }
.rb-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rb-grid-1 { grid-template-columns: minmax(0, 1fr); }

.rb-card {
  min-width: 0; padding: 14px 14px 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.rb-card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; }
.rb-prompt { flex: 1 1 220px; min-width: 0; color: var(--text-1); font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; }
.rb-id { color: var(--text-3); font-size: .75rem; font-variant-numeric: tabular-nums; }
.rb-chip {
  padding: 1px 9px; border: 1px solid var(--border-hover); border-radius: 99px;
  color: var(--text-2); font-size: .72rem; white-space: nowrap;
}

.rb-playall {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 3px 11px 3px 9px;
  font: inherit; font-size: .76rem; color: var(--text-2); background: transparent;
  border: 1px solid var(--border-hover); border-radius: 99px; cursor: pointer; transition: .15s;
}
.rb-playall:hover { color: var(--text-1); border-color: var(--text-3); }
.rb-playall svg { width: 11px; height: 11px; fill: currentColor; }
.rb-playall .i-pause, .rb-playall.is-playing .i-play { display: none; }
.rb-playall.is-playing .i-pause { display: inline; }
.rb-playall.is-playing { color: var(--spark); border-color: var(--spark); background: var(--spark-dim); }

.rb-vwrap { position: relative; width: 100%; background: #000; border-radius: var(--radius-sm); overflow: hidden; }
.rb-vwrap video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.rb-labs { display: grid; margin-top: 8px; }
.rb-lab { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; text-align: center; font-size: .82rem; color: var(--text-2); }
.rb-lab b { font-weight: 600; letter-spacing: .01em; }
.rb-lab.is-ours b { color: var(--spark); }
.rb-note { color: var(--text-1); font-size: .84rem; line-height: 1.4; }

/* ── radar plot ──────────────────────────────────────────────── */
.rb-plot {
  padding: 20px 20px 14px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.rb-plot-lead { color: var(--text-2); font-size: .92rem; max-width: 72ch; margin-bottom: 14px; }
.rb-plot-ctl { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-bottom: 10px; }
.rb-seg { display: inline-flex; border: 1px solid var(--border-hover); border-radius: 99px; overflow: hidden; }
.rb-seg button, .rb-leg button {
  font: inherit; font-size: .8rem; color: var(--text-2); background: transparent; border: 0;
  padding: 5px 13px; cursor: pointer; transition: .15s;
}
.rb-seg button:hover { color: var(--text-1); }
.rb-seg button[aria-pressed="true"] { background: var(--spark-dim); color: var(--text-1); }
.rb-leg { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.rb-leg button {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border-hover);
  border-radius: 99px; padding: 4px 12px 4px 10px;
}
.rb-leg button i { width: 18px; height: 0; border-top: 3px solid var(--c); }
.rb-leg button.is-input i { border-top-style: dashed; }
.rb-leg button[aria-pressed="false"] { opacity: .4; }
.rb-leg button:hover { color: var(--text-1); }

.rb-plot-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px 28px; align-items: center; }
.rb-plot-svg { position: relative; min-width: 0; }
.rb-plot-svg svg { display: block; width: 100%; height: auto; overflow: visible; }
.rb-plot-zoom { margin-top: 6px; color: var(--orange); font-size: .78rem; line-height: 1.45; }
.rb-plot-foot { margin-top: 10px; color: var(--text-3); font-size: .78rem; }

.rb-r-ring { fill: none; stroke: rgba(255,255,255,.08); }
.rb-r-axis { stroke: rgba(255,255,255,.12); }
.rb-r-wedge { fill: var(--orange-dim); }
.rb-r-lab { fill: var(--text-2); font-size: 11.5px; }
.rb-r-lab.is-key { fill: var(--orange); font-weight: 600; }
.rb-r-tick { fill: var(--text-3); font-size: 9.5px; }
.rb-r-poly { transition: opacity .15s; }
.rb-r-hit { stroke: transparent; stroke-width: 26; cursor: crosshair; }
.rb-r-dot { transition: r .1s; pointer-events: none; }
.rb-tip {
  position: absolute; z-index: 3; pointer-events: none; min-width: 190px; padding: 9px 12px;
  background: #0b0b18; border: 1px solid var(--border-hover); border-radius: var(--radius-sm);
  font-size: .8rem; color: var(--text-1); box-shadow: 0 8px 26px rgba(0,0,0,.5);
}
.rb-tip b { display: block; margin-bottom: 4px; }
.rb-tip div { display: flex; justify-content: space-between; gap: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.rb-tip div span:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--c); }

.rb-plot-table table { width: 100%; border-collapse: collapse; font-size: .8rem; font-variant-numeric: tabular-nums; }
.rb-plot-table th, .rb-plot-table td { padding: 4px 8px; text-align: right; border-bottom: 1px solid var(--border); }
.rb-plot-table th:first-child, .rb-plot-table td:first-child { text-align: left; }
.rb-plot-table th { color: var(--text-3); font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.rb-plot-table td { color: var(--text-2); }
.rb-plot-table tr.is-key td { background: var(--orange-glow); color: var(--text-1); }
.rb-plot-table tr.is-key td:first-child { color: var(--orange); font-weight: 600; }
.rb-plot-table tr.is-hl td { background: rgba(255,255,255,.05); }
.rb-plot-table td.c-ours { color: var(--spark); }
.rb-plot-table td.c-retake { color: var(--orange); }

@media (max-width: 960px) {
  .rb-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .rb-plot-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .rb-lab { font-size: .72rem; }
  .rb-note { font-size: .74rem; }
  .rb-plot { padding: 14px 12px 10px; }
  .rb-card { padding: 12px 10px 10px; }
}
@media (prefers-reduced-motion: reduce) { .rb-r-poly, .rb-r-dot { transition: none; } }

/* Phone widths: the SVG is scaled down with its container, so its text is
   set larger in viewBox units to stay readable. */
@media (max-width: 600px) {
  .rb-r-lab { font-size: 21px; }
  .rb-r-tick { font-size: 17px; }
}

/* Custom control bar (the native one is off, so there is no full-screen button). */
.rb-vwrap video { cursor: pointer; }
.rb-bar {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px;
  padding: 18px 10px 7px; background: linear-gradient(transparent, rgba(0,0,0,.72));
  opacity: 0; transition: opacity .18s;
}
.rb-vwrap:hover .rb-bar, .rb-vwrap:focus-within .rb-bar, .rb-vwrap.is-paused .rb-bar { opacity: 1; }
@media (hover: none) { .rb-bar { opacity: 1; } }
.rb-bar button {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; padding: 0; color: #fff; background: transparent; border: 0; cursor: pointer;
}
.rb-bar button svg { width: 15px; height: 15px; fill: currentColor; }
.rb-b-play .i-pause, .rb-b-play.is-playing .i-play { display: none; }
.rb-b-play.is-playing .i-pause { display: inline; }
.rb-b-mute .i-x { display: none; }
.rb-b-mute.is-muted .i-wave { display: none; }
.rb-b-mute.is-muted .i-x { display: inline; }
.rb-b-time { flex: 0 0 auto; min-width: 2.2em; color: #fff; font-size: .72rem; font-variant-numeric: tabular-nums; }
.rb-b-seek {
  flex: 1 1 auto; min-width: 0; height: 14px; margin: 0; cursor: pointer; background: transparent;
  -webkit-appearance: none; appearance: none; accent-color: var(--spark);
}
.rb-b-seek::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); }
.rb-b-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; margin-top: -4px; border-radius: 50%; background: var(--spark); border: 0; }
.rb-b-seek::-moz-range-track { height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); }
.rb-b-seek::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: var(--spark); border: 0; }

/* Noise optimization: learning-rate switch under the card */
.rb-lrs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.rb-lrs-lab { color: var(--text-3); font-size: .78rem; margin-right: 2px; }
.rb-lrs button {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; font: inherit; font-size: .8rem;
  font-variant-numeric: tabular-nums; color: var(--text-2); background: transparent;
  border: 1px solid var(--border-hover); border-radius: 99px; cursor: pointer; transition: .15s;
}
.rb-lrs button:hover { color: var(--text-1); border-color: var(--text-3); }
.rb-lrs button[aria-pressed="true"] { color: var(--text-1); border-color: var(--orange); background: var(--orange-glow); }
.rb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

.rb-tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; padding: 1px 9px; border: 1px solid var(--orange); border-radius: 99px; color: var(--orange); background: var(--orange-glow); font-size: .72rem; line-height: 1.5; }
.rb-tag[hidden] { display: none; }
