/* === Extracted from the real dashboard.html (results card, 2026-11-03..07), light theme only. Same classes, same values. === */
:root { --chart-line: #0B6E45; }
@keyframes stat-live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
/* Views per video: stacked bars by platform (2026-11-03) */
:root { --pf-yt: #E0382F; --pf-tt: #1F2933; --pf-ig: #C13584; --pf-sc: #EDBF00; }
.pf-yt { background: var(--pf-yt); } .pf-tt { background: var(--pf-tt); } .pf-ig { background: var(--pf-ig); } .pf-sc { background: var(--pf-sc); }

/* ── Results block (2026-11-03): a hero (the one figure that matters, where it came from, where the cycle
   stands) over a per-video chart with a round left axis. Replaces the three equal stat tiles and the bars with
   an axis on the right. The tiles stay for trials and closed plans (.stat-row above). ── */
.res-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border: 1px solid var(--rule-soft); border-radius: 6px; background: var(--white); overflow: hidden; }
.res-hero.solo { grid-template-columns: minmax(0, 1fr); }
.res-main { padding: 22px 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.res-split { padding: 22px 26px; border-left: 1px solid var(--rule-soft); display: flex; flex-direction: column; justify-content: center; gap: 14px; min-width: 0; }
.res-eb { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: 'IBM Plex Mono', monospace; font-weight: 500; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.res-chip { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; letter-spacing: .1em; }
.res-chip i { width: 7px; height: 7px; border-radius: 50%; display: block; animation: stat-live-pulse 1.8s ease-in-out infinite; }
.res-chip.live { color: var(--signal-ink); } .res-chip.live i { background: var(--chart-line); }
.res-chip.prod { color: var(--heat); } .res-chip.prod i { background: var(--heat); }
.res-chip.end { color: var(--steel); } .res-chip.end i { background: var(--steel); animation: none; }
/* cycle selector (2026-11-04): the current cycle and the one before it, switched on the results card */
.res-cyc { display: inline-flex; gap: 4px; padding: 3px; margin-bottom: 12px; max-width: 100%; border: 1px solid var(--rule-soft); border-radius: 8px; background: var(--white); }
.res-cyc-b { appearance: none; border: 0; background: transparent; cursor: pointer; display: flex; align-items: baseline; gap: 9px; padding: 7px 14px; border-radius: 6px; font-family: 'IBM Plex Mono', monospace; font-size: .7rem; color: var(--steel); text-align: left; }
.res-cyc-b b { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: .88rem; letter-spacing: -.01em; color: var(--ink); }
.res-cyc-b:hover { background: var(--rule-soft); }
.res-cyc-b.on, .res-cyc-b.on:hover { background: var(--ink); color: var(--white); }   /* same swap as .metric-seg: ink on white, white on ink, in both themes */
.res-cyc-b.on b { color: var(--white); }
.res-cyc-b.on span { opacity: .72; }
.res-cyc-b:focus-visible { outline: 2px solid var(--chart-line); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .res-chip i { animation: none; } }
.res-big { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: clamp(2.9rem, 6vw, 4.3rem); line-height: 1; font-variation-settings: 'wdth' 108; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--ink); }
/* the replayed counter (js/ticker.js): one column per digit, tabular so the columns do not breathe as it climbs */
.res-big.none { font-weight: 500; color: var(--steel); }   /* nothing measured: a quiet dash, not a heavy bar */
.res-big .stat-num { font-family: inherit; }   /* style.css sets .stat-num in the mono face, the hero figure is Archivo */
.res-big .roll { font-variant-numeric: tabular-nums; }
.res-big .roll-col { width: 1ch; }
.res-big .roll-sep { width: .3em; }
.res-delta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: 'IBM Plex Mono', monospace; font-weight: 500; font-size: .8rem; color: var(--steel); }
.res-delta b { font-weight: 600; color: var(--signal-ink); background: var(--signal-wash); padding: 2px 8px; border-radius: 999px; }
.res-prow { display: grid; grid-template-columns: 18px 76px minmax(0, 1fr) 58px; gap: 10px; align-items: center; font-family: 'IBM Plex Mono', monospace; font-size: .78rem; }
.res-prow img { width: 18px; height: 18px; border-radius: 4px; display: block; }
.res-prow .bar { height: 6px; background: var(--rule-soft); border-radius: 3px; overflow: hidden; }
.res-prow .bar i { display: block; height: 100%; border-radius: 3px; }
.res-prow b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.res-cycle { grid-column: 1 / -1; border-top: 1px solid var(--rule-soft); padding: 12px 26px; display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; font-family: 'IBM Plex Mono', monospace; font-size: .76rem; color: var(--steel); }
.res-cycle b { color: var(--ink); font-weight: 600; }
.res-pips { display: flex; gap: 4px; }
.res-pips i { width: 22px; height: 6px; border-radius: 3px; background: var(--rule-soft); display: block; }
.res-pips i.on { background: var(--chart-line); }
.res-pips i.next { background: transparent; border: 1px dashed var(--steel); }
.res-pips.bar { width: 120px; height: 6px; border-radius: 3px; background: var(--rule-soft); overflow: hidden; display: block; }
.res-pips.bar i { width: 0; height: 100%; border-radius: 0; background: var(--chart-line); }

.res-chart { margin-top: 14px; padding: 18px 22px 14px; border: 1px solid var(--rule-soft); border-radius: 6px; background: var(--white); min-width: 0; }
.res-chart .chart-wrap { margin-top: 10px; }
.res-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.res-head h3 { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: -.01em; margin: 0; }
.res-head span { font-family: 'IBM Plex Mono', monospace; font-size: .7rem; color: var(--steel); }
.res-plot { display: grid; grid-template-columns: 38px minmax(0, 1fr); margin-top: 22px; }
.res-y, .res-area { position: relative; height: 230px; }
.res-y span { position: absolute; right: 10px; transform: translateY(-50%); font-family: 'IBM Plex Mono', monospace; font-size: .68rem; color: var(--steel); }
.res-area .res-g { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--rule-soft); }
.res-area .res-g.z { border-top-color: var(--rule); }
.res-cols, .res-xs { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); }
.res-cols { position: absolute; inset: 0; }
.res-col { position: relative; cursor: default; }
.res-col.today::before { content: ""; position: absolute; inset: 0 3px; background: var(--signal-wash); opacity: .4; border-radius: 4px; }
.res-bar { position: absolute; bottom: 0; left: 50%; width: min(46px, 62%); transform: translateX(-50%); display: flex; flex-direction: column; justify-content: flex-end; }
.res-bar .seg { display: block; width: 100%; min-height: 2px; }
.res-bar .val { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 6px; font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: .72rem; color: var(--ink); white-space: nowrap; }
.res-stub { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: min(46px, 62%); height: 10px; border: 1px dashed var(--rule); border-bottom: 0; }
.res-stub.meas { border-color: var(--steel); }
.res-stub.sched { border-color: var(--signal); }
.res-stub.prod { border-color: var(--heat); opacity: .55; }
/* A platform's band of a bar, hovered (mouse) or tapped (phone): its logo and its views (dashboard.js wireBarTips, 2026-11-07). */
.res-bar .seg { cursor: pointer; transition: opacity .12s; }
.res-bar.has-sel .seg:not(.on) { opacity: .45; }
.res-bar .seg.on { outline: 2px solid var(--ink); outline-offset: -2px; position: relative; z-index: 1; }
.res-tip { position: absolute; z-index: 6; display: flex; align-items: center; gap: 8px; padding: 7px 11px 7px 8px; background: var(--ink); color: var(--panel-2);
  border-radius: 6px; font-family: 'IBM Plex Mono', monospace; font-size: .72rem; white-space: nowrap; box-shadow: 0 8px 22px rgba(0,0,0,.28);
  pointer-events: none; opacity: 0; transition: opacity .1s; }
.res-tip.on { opacity: 1; }
.res-tip img { width: 20px; height: 20px; border-radius: 4px; display: block; }
.res-tip b { font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; }
.res-tip small { opacity: .7; font-size: .68rem; }
.res-xs { margin-left: 38px; padding-top: 8px; }
.res-xs div { text-align: center; font-family: 'IBM Plex Mono', monospace; font-size: .66rem; line-height: 1.35; color: var(--steel); min-width: 0; }
.res-xs span { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .58rem; }
.res-xs b { display: block; font-weight: 600; color: var(--ink); font-size: .9rem; }
.res-xs small { display: block; font-size: .6rem; letter-spacing: .04em; min-height: 1.35em; text-transform: lowercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* "6:00 pm (ET)": the zone stays capitalised and may wrap under the hour instead of being cut off in a narrow column. */
.res-xs .sched small { color: var(--signal-ink); text-transform: none; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }
.res-xs .prod small { color: var(--heat); }
.res-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0 38px; font-family: 'IBM Plex Mono', monospace; font-size: .66rem; color: var(--steel); }
.res-legend span { display: inline-flex; align-items: center; gap: 6px; }
.res-legend i { width: 9px; height: 9px; border-radius: 2px; display: block; }
.res-legend i.dash { background: none; border: 1px dashed var(--steel); }
.res-legend i.dash.sched { border-color: var(--signal); }
.res-legend i.dash.prod { border-color: var(--heat); }
/* a longer cycle (9-14 videos): one narrow column each -- the weekday and the state go, the day number stays */
.res-wrap.empty .res-y, .res-wrap.empty .res-area { height: 96px; }   /* nothing measured yet: no tall empty plot */
.res-wrap.dense .res-xs span, .res-wrap.dense .res-xs small { display: none; }
.res-wrap.dense .res-bar .val { font-size: .6rem; }
@media (max-width: 900px) {
  .res-hero { grid-template-columns: minmax(0, 1fr); }
  .res-split { border-left: 0; border-top: 1px solid var(--rule-soft); }
}
@media (max-width: 560px) {
  .res-cyc { display: flex; }
  .res-cyc-b { flex: 1; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; }
  .res-main, .res-split { padding: 18px; }
  .res-cycle { padding: 12px 18px; }
  .res-chart { padding: 16px 12px 12px; }
  .res-plot { grid-template-columns: 30px minmax(0, 1fr); }
  .res-xs, .res-legend { margin-left: 30px; }
  .res-prow { grid-template-columns: 18px 70px minmax(0, 1fr) 52px; gap: 8px; }
  .res-bar .val { font-size: .62rem; }
  .res-xs small { display: none; }
  .res-wrap.dense .res-bar .val { display: none; }
}