/* Player of Games companion site. Loaded after factorio-ui.css (the stream's art kit, copied in at build time).
   Dark theme is the kit's own look; light theme keeps its font, bevels and square corners on a warm light ground.
   Light is default, dark via OS or the toggle. The header and the live panel are always dark (game GUI). */
:root {
  color-scheme: light;
  --bg: #f3f1ec;
  --bg-image: none;
  --surface: #fcfbf8;
  --surface-2: #ebe8e1;
  --well: #f7f5f0;
  --ink: #1a1918;
  --ink-2: #47443f;
  --muted: #66625b;
  --heading: #241f1b;
  --line: #dcd8cf;
  --line-strong: #bdb8ad;
  --accent: #a65400;
  --accent-fill: #ff9f1c;
  --accent-ink: #141414;
  --hl: #fff1d9;
  --good: #1f8a1f;
  --bad: #c43a2b;
  --panel-border: #cfcac0;
  --panel-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .10);
  --well-shadow: inset 0 1px 3px rgba(0, 0, 0, .12), inset 0 0 0 1px rgba(0, 0, 0, .06);
  --thead: linear-gradient(180deg, #ebe8e1, #e2ded5);
  /* chart series (validated categorical order) */
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  --grid: #e1ddd4; --axis: #c3beb2;
  --radius: var(--fx-r-3);
  --font: var(--fx-font);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
/* Dark: the kit's surfaces. Chart steps validated against --surface #313031. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: var(--fx-backdrop);
    --bg-image: radial-gradient(ellipse at 50% 0%, rgba(255, 170, 80, .07), transparent 60%), linear-gradient(180deg, #1d1c1d 0%, #121112 100%);
    --surface: var(--fx-frame); --surface-2: var(--fx-raised); --well: var(--fx-deep);
    --ink: var(--fx-text); --ink-2: #cfcfcf; --muted: var(--fx-muted); --heading: var(--fx-heading);
    --line: #464546; --line-strong: #5e5d5e;
    --accent: var(--fx-orange); --hl: #3d321f; --good: var(--fx-green); --bad: var(--fx-red-text);
    --panel-border: #0f0f0f; --panel-shadow: var(--fx-bevel), 0 3px 10px rgba(0, 0, 0, .45);
    --well-shadow: var(--fx-inset-shadow);
    --thead: linear-gradient(180deg, #3a393a, #2e2d2e);
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --s5: #d55181; --s6: #2f9a2f; --s7: #9085e9; --s8: #e66767;
    --grid: #403f40; --axis: #555455;
  }
}
:root[data-theme="dark"], .site-header, .live-panel, .live-card {
  color-scheme: dark;
  --bg: var(--fx-backdrop);
  --bg-image: radial-gradient(ellipse at 50% 0%, rgba(255, 170, 80, .07), transparent 60%), linear-gradient(180deg, #1d1c1d 0%, #121112 100%);
  --surface: var(--fx-frame); --surface-2: var(--fx-raised); --well: var(--fx-deep);
  --ink: var(--fx-text); --ink-2: #cfcfcf; --muted: var(--fx-muted); --heading: var(--fx-heading);
  --line: #464546; --line-strong: #5e5d5e;
  --accent: var(--fx-orange); --hl: #3d321f; --good: var(--fx-green); --bad: var(--fx-red-text);
  --panel-border: #0f0f0f; --panel-shadow: var(--fx-bevel), 0 3px 10px rgba(0, 0, 0, .45);
  --well-shadow: var(--fx-inset-shadow);
  --thead: linear-gradient(180deg, #3a393a, #2e2d2e);
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --s5: #d55181; --s6: #2f9a2f; --s7: #9085e9; --s8: #e66767;
  --grid: #403f40; --axis: #555455;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); background-image: var(--bg-image); background-attachment: fixed; color: var(--ink);
  font: 17px/1.55 var(--font); text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: rgba(var(--fx-orange-rgb), .4); }
code { font-family: var(--mono); font-size: .84em; background: var(--well); padding: .1em .35em; border-radius: var(--fx-r-1); box-shadow: inset 0 0 0 1px var(--line); }
pre { overflow-x: auto; background: var(--well); padding: 12px; border-radius: var(--fx-r-1); box-shadow: var(--well-shadow); }
pre code { background: none; padding: 0; box-shadow: none; }
h1, h2, h3 { line-height: 1.2; color: var(--heading); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); margin: 1.2rem 0 .6rem; }
h2 { font-size: 1.5rem; margin: 2.4rem 0 .8rem; }
h3 { font-size: 1.1rem; margin: 1.4rem 0 .4rem; }
.h-sub { display: block; font-size: 1.05rem; font-weight: 400; color: var(--ink-2); margin-top: .3rem; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 16px; }
/* The live page uses the whole screen: the video column grows with it (text pages keep .prose's line length). */
.wrap:has(.live-app) { max-width: 1920px; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 46em; }
.meta { color: var(--muted); font-size: .92rem; margin-top: -.2rem; }
.crumbs { font-size: .9rem; margin: 1.4rem 0 0; color: var(--muted); }
.crumbs a { color: var(--muted); }
section { margin-bottom: 1rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px; z-index: 10; }
:focus-visible { outline: var(--fx-focus); outline-offset: 2px; }

/* shared panel look: kit bevels on the theme's surface */
.stat, .flow-step, .team-member, .run-row, .chart, .agent-card, .agent-run, .bars, .incidents li, .live-panel {
  background: var(--surface); border: 1px solid var(--panel-border); border-radius: var(--radius); box-shadow: var(--panel-shadow);
}

/* header: a game window title bar in both themes */
.site-header { position: sticky; top: 0; z-index: 5; color: var(--ink);
  background: linear-gradient(180deg, #3a393a, #2b2a2b); border-bottom: 1px solid #000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 2px 8px rgba(0, 0, 0, .35); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--fx-heading); text-decoration: none; white-space: nowrap; }
.site-header .brand { color: var(--fx-heading); }
.brand-mark { width: 26px; height: 26px; border-radius: var(--fx-r-1); background: var(--fx-orange) url(/favicon.svg) center/cover;
  box-shadow: var(--fx-slot-shadow), 0 0 0 1px #000; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; margin-left: auto; }
.site-header .site-nav a { color: var(--fx-text); text-decoration: none; padding: 4px 12px; border-radius: var(--fx-r-2); font-weight: 600; font-size: .98rem; white-space: nowrap; }
.site-header .site-nav a:hover { color: var(--fx-orange); }
.site-header .site-nav a[aria-current] { color: var(--fx-heading); background: var(--fx-deep); box-shadow: var(--fx-slot-shadow); }
.theme-toggle { width: 32px; min-width: 32px; height: 32px; }
/* "More" (batch270): Polls, Updates, How it was made, GitHub; a dot and "open" when a poll is open */
.nav-toggle { display: none; }
.nav-more { position: relative; }
.nav-more > summary { list-style: none; cursor: pointer; color: var(--fx-text); padding: 4px 12px; border-radius: var(--fx-r-2); font-weight: 600; font-size: .98rem; white-space: nowrap; display: flex; align-items: center; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after { content: ""; border: 4px solid transparent; border-top-color: currentColor; margin: 4px 0 0 6px; }
.nav-more > summary:hover { color: var(--fx-orange); }
.nav-more.is-current > summary { color: var(--fx-heading); background: var(--fx-deep); box-shadow: var(--fx-slot-shadow); }
.nav-more-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 210px; display: flex; flex-direction: column; gap: 2px; padding: 6px; background: #2b2a2b; border: 1px solid #000; border-radius: var(--fx-r-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 8px 20px rgba(0, 0, 0, .5); }
.site-header .nav-more-list a { padding: 8px 12px; }
.nav-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fx-orange); margin-left: 6px; box-shadow: 0 0 0 2px rgba(255, 159, 28, .3); }
.nav-dot:not([hidden]) { display: inline-block; }
.nav-chip { margin-left: 6px; font-size: .75rem; font-weight: 700; color: #141414; background: var(--fx-orange); border-radius: 3px; padding: 0 5px; }
@media (max-width: 640px) {
  .header-row { gap: 4px 8px; padding-bottom: 6px; }
  .site-nav { order: 3; width: 100%; margin-left: -12px; }
  .theme-toggle { margin-left: auto; }
}

.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: .9rem; }
.site-footer p { margin: .3rem 0; }
.site-footer .credit { font-size: .82rem; }
/* the game's icons (site/gameicons.py): 64 px files drawn at 16-48 px */
.gi { display: inline-block; vertical-align: -.28em; object-fit: contain; flex: none; }
.gi + .gi { margin-left: 1px; }

/* buttons: the kit's .fx-btn, plus two sizes */
a.fx-btn { text-decoration: none; }
.fx-btn.small { min-height: 26px; padding: 1px 10px; font-size: .9rem; }
.fx-btn.ghost { color: var(--fx-text); background: linear-gradient(180deg, #4a494a, #383738); border-color: #000;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .15), inset -1px -1px 0 rgba(0, 0, 0, .4), 0 1px 2px rgba(0, 0, 0, .5); }
.fx-btn.ghost:hover { color: var(--fx-text-dark); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* hero */
.hero { padding: 2rem 0 .5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; color: var(--accent); font-weight: 700; margin: 0; }
.hero h1 { max-width: 18em; }

/* stats */
/* (batch314 A, viewer Aurora) value tiles (stats, records, key times) size to their number: a tile is as wide as its
   value (never under the minimum, never over the row), a row takes as many as fit and they grow to fill it, so a larger
   count makes fewer columns; a value wider than the whole row wraps at its group commas (build.py breakable), never
   clipped. The label and sub lines do not widen a tile (width 0, min-width 100%): they wrap within it. */
.stats, .records, .keytimes { display: flex; flex-wrap: wrap; gap: 10px; margin: 1rem 0; }
.stat, .record, .keytime { flex: 1 1 auto; min-width: min(100%, 9rem); box-sizing: border-box; }
.stat { padding: 10px 14px; }
.stat-value { font-size: 1.6rem; font-weight: 700; line-height: 1.2; color: var(--heading); font-variant-numeric: tabular-nums; }
.stat-label { color: var(--ink-2); font-size: .88rem; }
.stat-sub { color: var(--muted); font-size: .8rem; }
.stat-label, .stat-sub, .r-label, .r-shift, .k-label, .k-sub { width: 0; min-width: 100%; overflow-wrap: break-word; }
.hero-stats { margin-top: 2rem; }
h3.who { margin-bottom: .2rem; }

/* how it works */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; counter-reset: f; }
.flow-step { padding: 14px 16px; position: relative; }
.flow-step h3 { margin-top: .2rem; }
.flow-step p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.flow-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--fx-r-1);
  background: var(--fx-deep); color: var(--fx-orange); font-weight: 700; font-size: .9rem; box-shadow: var(--fx-slot-shadow); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 32px; }
ul.ticks, ul.crosses { list-style: none; padding: 0; }
ul.ticks li, ul.crosses li { padding-left: 1.6em; position: relative; margin: .3rem 0; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
ul.crosses li::before { content: "✕"; position: absolute; left: 0; color: var(--bad); font-weight: 700; }

/* avatars: pixel portraits in kit item slots */
.avatar.fx-slot { --fx-slot: 36px; padding: 2px; }
.avatar.fx-slot.sm { --fx-slot: 26px; padding: 1px; }
.avatar.fx-slot.lg { --fx-slot: 52px; }
.avatar.fx-slot.xl { --fx-slot: 100px; }
.avatar.fx-slot > img, .avatar.fx-slot > svg { width: 100%; height: 100%; image-rendering: pixelated; }
.avatar.letter { font-weight: 700; font-size: .7rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.chip.operator { color: var(--muted); font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: .4rem 0 0; font-size: .9rem; }

/* team */
.team { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.team-member { display: flex; gap: 12px; align-items: center; border-left: 3px solid var(--ac); padding: 10px 12px; }
.team-member div { display: flex; flex-direction: column; line-height: 1.35; font-size: .92rem; }

/* run list */
.run-list { display: grid; gap: 10px; }
.run-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 18px; color: inherit; text-decoration: none; }
.run-row:hover { box-shadow: var(--fx-glow), var(--panel-shadow); }
.run-row h2, .run-row h3 { margin: 0 0 .2rem; font-size: 1.2rem; color: var(--accent); }
.run-row p { margin: 0; }
.run-row p + p { margin-top: .3rem; color: var(--ink-2); }
.run-final { font-weight: 600; text-align: right; font-size: .92rem; white-space: nowrap; }
@media (max-width: 640px) { .run-row { flex-direction: column; align-items: flex-start; } .run-final { text-align: left; white-space: normal; } }
/* the long run: its row leads the Runs list; its page's shift table */
.run-row.featured { border-left: 4px solid var(--accent); }
table.long-run th[scope=row] { white-space: nowrap; }
table.long-run th[scope=row] .small { display: block; font-weight: 400; }
table.long-run td { vertical-align: top; }
table.long-run tr.empty td, table.long-run tr.empty th { opacity: .7; }
table.long-run .moments { margin: 0; padding-left: 1.1em; min-width: 16em; font-size: .9rem; }
table.long-run th[scope=row] .fx-chip { margin-left: 4px; }
td.num, th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* (batch314 C) the made/consumed and repeatable tables: on a phone each row is a card of label / value lines, a value
   that does not fit beside its label going under it */
@media (max-width: 720px) {
  table.stack-table, table.stack-table tbody, table.stack-table tr, table.stack-table td, table.stack-table th { display: block; }
  table.stack-table thead { display: none; }
  table.stack-table tr { border: 1px solid var(--line); border-radius: var(--fx-r-1); padding: 8px 10px; margin-bottom: 10px; }
  table.stack-table th[scope=row] { padding: 0 0 4px; border: 0; }
  table.stack-table td { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; padding: 2px 0; border: 0; white-space: normal; }
  table.stack-table td::before { content: attr(data-l); color: var(--muted); font-size: .85rem; }
}
/* phones: each shift is a card of label / value lines */
@media (max-width: 720px) {
  table.long-run, table.long-run tbody, table.long-run tr, table.long-run td, table.long-run th { display: block; }
  table.long-run thead { display: none; }
  table.long-run tr { border: 1px solid var(--line); border-radius: var(--fx-r-1); padding: 8px 10px; margin-bottom: 10px; }
  table.long-run th[scope=row] { font-size: 1.05rem; padding: 0 0 4px; border: 0; }
  table.long-run td { display: grid; grid-template-columns: 9em 1fr; gap: 8px; padding: 2px 0; border: 0; }
  table.long-run td::before { content: attr(data-l); color: var(--muted); font-size: .85rem; }
  table.long-run td[colspan] { grid-template-columns: 1fr; }
  table.long-run .moments { min-width: 0; }
}
.meta { color: var(--muted); margin: -.2rem 0 1rem; }
.stats-compact { gap: 8px; }
.stats-compact .stat { padding: 8px 12px; }
.stats-compact .stat-value { font-size: 1.35rem; }
/* records: the best shift for each, linked */
.records { gap: 8px; margin: .6rem 0 1rem; }
.record { display: grid; padding: 8px 12px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--fx-r-1); color: inherit; text-decoration: none; }
.record:hover { background: var(--hl); }
.r-val { font-size: 1.35rem; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }
.r-label { color: var(--ink-2); font-size: .88rem; }
.r-shift { color: var(--muted); font-size: .8rem; }
/* the run page's jump links, key times, live banner */
.jump { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 .6rem; font-size: .92rem; }
.keytimes { gap: 8px; margin: .6rem 0 1rem; }
@media (max-width: 600px) { .r-val, .k-val { font-size: 1.2rem; } }
.keytime { display: grid; padding: 8px 12px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--fx-r-1); color: inherit; text-decoration: none; }
.keytime:hover { background: var(--hl); }
.k-label { color: var(--ink-2); font-size: .88rem; font-weight: 600; }
.k-val { font-size: 1.5rem; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }
.k-sub { color: var(--muted); font-size: .8rem; }
.live-banner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; margin: .4rem 0 0; border: 1px solid var(--line); border-radius: var(--fx-r-1); background: var(--hl); }
.live-banner[hidden] { display: none; }
.kind-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: .4rem 0 .6rem; }
.kind-filter[hidden] { display: none; }
.kind-filter .fx-btn[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 600px) {
  table.firsts thead { display: none; }
  table.firsts, table.firsts tbody { display: block; }
  table.firsts tr { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
  table.firsts tr[hidden] { display: none; }
  table.firsts td, table.firsts th { border: 0; padding: 0; }
  table.firsts th[scope=row] { flex-basis: 100%; order: -1; }
  table.firsts td.num { font-size: .88rem; color: var(--muted); }
}
.techs { list-style: none; padding: 0; margin: .4rem 0; columns: 3 15em; column-gap: 24px; font-size: .92rem; }
.techs li { break-inside: avoid; padding: 1px 0; }
.techs .c-time { display: inline-block; min-width: 4.2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.vlink { text-decoration: none; font-size: .8em; margin-left: 4px; color: var(--accent); }
/* the homepage's run summary */
.run-summary { margin: 1.2rem 0 1.6rem; }
.run-summary h2 { margin-bottom: .2rem; }
.sum-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 0 28px; align-items: start; }
@media (max-width: 860px) { .sum-cols { grid-template-columns: 1fr; } }
.latest { list-style: none; padding: 0; margin: .4rem 0 1rem; display: grid; gap: 6px; }
.latest li { display: grid; }
/* the About page's facts */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; margin: .6rem 0; }
.facts > div { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--fx-r-1); }
.facts dt { font-weight: 700; color: var(--heading); scroll-margin-top: 80px; }
.facts dd { margin: .2rem 0 0; color: var(--ink-2); }
/* milestones (firsts) */
table.firsts th[scope=row] { font-weight: 600; }
.kind { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 1px 6px; border-radius: 3px; border: 1px solid var(--line-strong); color: var(--ink-2); }
.kind-space { border-color: var(--accent); }
/* shift markers in the run's charts */
.chart-svg .mark { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-svg .mark-label { fill: var(--muted); font-size: 12px; }
/* a shift's page */
.shift-nav { display: flex; gap: 18px; flex-wrap: wrap; margin: .4rem 0 1rem; }
.shift-cols { align-items: start; }
table.packs { width: auto; min-width: 14em; }
.deaths { list-style: none; padding: 0; margin: .4rem 0; display: grid; gap: 2px; font-size: .92rem; }
.deaths li { display: grid; grid-template-columns: 4.4em 1fr; gap: 8px; align-items: center; }
.chip.viewer { color: var(--accent); }
.chip.host { color: var(--muted); font-style: italic; }
.chat.qa li.qa-viewer { background: var(--hl); }
.chat.qa li.qa-thread { margin-left: 1.5em; border-left: 2px solid var(--line, #ccc); padding-left: 6px; }
/* shift videos (site/content/videos.json): embeds on the long run page and each shift's page */
.video-wrap { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--fx-r-1); overflow: hidden; margin: 1rem 0 .4rem; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.shift-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.shift-video h3 { margin: 0; }
.shift-video .video-wrap { margin: .4rem 0; }
ol.chapters { list-style: none; padding: 0; columns: 2 18rem; font-size: .92rem; }
ol.chapters li { break-inside: avoid; margin: 0 0 .3rem; }
ol.chapters a { font-variant-numeric: tabular-nums; margin-right: .4em; }

/* tables: deep wells with the kit's header bar */
.table-wrap { overflow-x: auto; border-radius: var(--fx-r-1); background: var(--well); box-shadow: var(--well-shadow); margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 6px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--thead); color: var(--heading); font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--panel-border); }
tbody tr:hover > * { background: rgba(var(--fx-orange-rgb), .08); }
table.milestones td { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.milestones.wide th[scope=row] { white-space: nowrap; }

/* charts */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
/* (batch314 B) the long run's charts: one a row (larger plots), a range bar every chart shares, notes on the data */
.chart-grid-wide { grid-template-columns: minmax(0, 1fr); }
.chart-range { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: .4rem 0 .6rem; }
.chart-range[hidden] { display: none; }
.chart-range select { font: inherit; padding: 2px 6px; min-height: 30px; border: 1px solid var(--line); border-radius: var(--fx-r-1); background: var(--surface); color: var(--ink); }
.chart-range label { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; }
.chart-notes { margin: .2rem 0 1rem; padding-left: 1.2rem; }
.chart-notes li { margin: .15rem 0; }
.chart-svg .gap { fill: var(--grid); opacity: .7; }
.chart-svg .mark-tick { stroke: var(--line-strong); stroke-width: 1; }
.chart-svg .line.sampled { opacity: .45; stroke-width: 1.5; }
.chart-svg .line.avg { stroke-width: 3; }
.legend-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; color: inherit; background: none; border: 1px solid transparent; border-radius: var(--fx-r-1); padding: 2px 6px; min-height: 28px; cursor: pointer; }
.legend-btn[hidden] { display: none; }
.legend-btn:hover { border-color: var(--line); }
.legend-btn[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.legend-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.tip .t-avg span { color: #cfcfcf; font-style: italic; }
.chart { margin: 0; padding: 12px 14px 8px; min-width: 0; }
.chart figcaption { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.chart figcaption strong { color: var(--heading); }
.chart figcaption span { color: var(--muted); font-size: .88rem; }
.plot { position: relative; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-svg .grid { stroke: var(--grid); stroke-width: 1; }
.chart-svg .axis { stroke: var(--axis); stroke-width: 1; }
.chart-svg .tick { fill: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.chart-svg .axis-label { fill: var(--muted); font-size: 13px; }
.chart-svg .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .end { stroke: var(--surface); stroke-width: 2; }
.chart-svg .dlabel { fill: var(--ink-2); font-size: 13px; font-weight: 600; }
.chart-svg .dval { fill: var(--muted); font-weight: 400; }
.chart-svg .cross { stroke: var(--line-strong); stroke-width: 1; }
.chart-svg .hover-dot { stroke: var(--surface); stroke-width: 2; }
.legend { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.swatch { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
/* hover tooltip: the kit's tooltip box in both themes */
.tip { position: absolute; top: 0; pointer-events: none; min-width: 130px; z-index: 2; font-size: .8rem; color: var(--fx-text);
  background: rgba(30, 29, 30, .96); border: 1px solid #000; border-radius: var(--fx-r-1); padding: 0 0 5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), var(--fx-shadow-pop); }
.tip .t-head { color: var(--fx-heading); font-weight: 700; padding: 3px 9px; margin-bottom: 4px;
  background: linear-gradient(180deg, #3b3a3b, #2f2e2f); border-bottom: 1px solid #000; }
.tip .t-row { display: flex; align-items: center; gap: 6px; justify-content: space-between; padding: 0 9px; }
.tip .t-row span:first-child { display: flex; align-items: center; gap: 6px; color: #cfcfcf; }
.tip .t-row b { font-variant-numeric: tabular-nums; }
.table-view { font-size: .85rem; margin-top: 4px; }
.table-view summary { color: var(--muted); cursor: pointer; }
.table-view .table-wrap { max-height: 280px; overflow: auto; }

/* timeline */
.tl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0 24px; }
.timeline { list-style: none; padding: 0 0 0 14px; margin: .5rem 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 3px 0 3px 12px; display: flex; gap: 12px; font-size: .92rem; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 10px; width: 10px; height: 10px; border-radius: 1px;
  background: var(--fx-cyan); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgba(0, 0, 0, .4); }
.tl-time { color: var(--muted); min-width: 4.6em; font-variant-numeric: tabular-nums; }
.tl-tech { text-transform: capitalize; }

/* agent cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.agent-card { border-top: 3px solid var(--ac); padding: 14px 16px; min-width: 0; }
.agent-card header { display: flex; gap: 12px; align-items: center; }
.agent-card h3 { margin: 0; font-size: 1.2rem; }
.agent-card h3 a { color: inherit; text-decoration: none; }
.agent-card h3 a:hover { text-decoration: underline; }
.agent-card .model { margin: 0; color: var(--muted); font-size: .88rem; }
.motto { font-style: italic; margin: .7rem 0 .2rem; color: var(--ink-2); }
.role { margin: .4rem 0; font-weight: 600; font-size: .95rem; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px 10px; margin: .7rem 0; font-size: .85rem; }
.kv div { background: var(--well); border-radius: var(--fx-r-1); padding: 4px 8px; box-shadow: var(--well-shadow); }
.kv dt { color: var(--muted); font-size: .82rem; }
.kv dd { margin: 0; font-weight: 700; }
.quotes { list-style: none; padding: 0; margin: .6rem 0; font-size: .92rem; }
.quotes li { border-left: 3px solid var(--ac); padding: 2px 0 2px 10px; margin: .5rem 0; color: var(--ink-2); overflow-wrap: anywhere; }
.q-time, .c-time { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
details.notes { margin-top: .6rem; border-top: 1px solid var(--line); padding-top: .5rem; }
details summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
.prose.small { font-size: .88rem; overflow-wrap: anywhere; }
.prose.small h3, .prose.small h4, .prose.small h5 { font-size: .95rem; margin: .8rem 0 .3rem; }

/* agent pages */
.agent-head { display: flex; gap: 18px; align-items: center; margin: 1rem 0 1.5rem; }
.agent-head h1 { margin: 0; }
.agent-head .model { margin: .2rem 0 0; color: var(--muted); }
.agent-head .motto { margin: .4rem 0 0; }
.agent-run { border-left: 3px solid var(--ac); padding: 4px 18px 12px; margin-bottom: 14px; }
.agent-run h2 { font-size: 1.2rem; margin: .8rem 0 .4rem; }
.team-member a { color: inherit; }

/* bar list */
.bars { margin: 1rem 0; padding: 14px; max-width: 640px; }
.bars ul { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: 6px; }
/* (batch314 A) a bar row: label, track, value; the value takes the width it needs (packs made run to billions), and
   when the row is too narrow (a phone, enlarged text) it wraps under the track, right-aligned */
.bars li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: .9rem; }
.bars li > .bar-label { flex: 0 0 7.5em; min-width: 0; overflow-wrap: anywhere; }
.bars li > .bar-track { flex: 1 1 6rem; }
.bars li > .bar-val { flex: 0 0 auto; margin-left: auto; min-width: 2.5em; }
.bar-track { height: 12px; background: var(--well); box-shadow: var(--well-shadow); border-radius: var(--fx-r-1); padding: 2px; }
.bar { display: block; height: 100%; background: var(--s1); border-radius: 1px; min-width: 2px; }
.packs-bars .bar-val { text-align: right; font-variant-numeric: tabular-nums; }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* incidents */
.incidents { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: 8px; }
.incidents li { border-left: 4px solid var(--fx-orange); padding: 8px 12px; font-size: .95rem; }
.inc-time { display: block; color: var(--muted); font-size: .82rem; font-weight: 600; }

/* chat */
.chat { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: 2px; }
.chat li { display: grid; grid-template-columns: 4.4em 8em 1fr; gap: 8px; padding: 5px 8px; border-radius: var(--fx-r-1); font-size: .92rem; align-items: center; }
.chat li.hl { background: var(--hl); }
.c-text { overflow-wrap: anywhere; }
.chat-full { margin-top: 1rem; }
.chat-full .chat { max-height: 70vh; overflow-y: auto; border-radius: var(--fx-r-1); background: var(--well); box-shadow: var(--well-shadow); padding: 6px; margin-top: .6rem; }
@media (max-width: 640px) {
  .chat li { grid-template-columns: auto 1fr; }
  .chat li .c-text { grid-column: 1 / -1; }
}

/* experiments */
.experiment { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2.5rem; scroll-margin-top: 80px; }
.experiment h2 { margin-top: .2rem; }
.exp-num { color: var(--accent); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.exp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.exp-grid h3:first-child { margin-top: 0; }
@media (max-width: 860px) { .exp-grid { grid-template-columns: 1fr; } }

/* studies */
.study-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; align-items: start; }
.toc { position: sticky; top: 76px; font-size: .9rem; max-height: calc(100vh - 96px); overflow-y: auto; }
.toc p { font-weight: 700; margin: 0 0 .4rem; color: var(--heading); }
.toc ol { padding-left: 1.2em; margin: 0; }
.toc li { margin: .3rem 0; }
.toc a { color: var(--ink-2); }
@media (max-width: 860px) { .study-layout { grid-template-columns: minmax(0, 1fr); } .toc { position: static; max-height: none; } }
.prose li, .prose p { overflow-wrap: anywhere; }
.prose { max-width: 48em; overflow-wrap: break-word; }
.prose h2 { scroll-margin-top: 80px; }
.prose h3 { scroll-margin-top: 80px; }
.prose li { margin: .25rem 0; }
.prose .table-wrap table { font-size: .86rem; }
/* how it was made (/how/): page tabs, and each section's summary paragraph set apart */
.how-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 1.6rem; font-size: .9rem; }
.how-tabs a { padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-2); text-decoration: none; }
.how-tabs a[aria-current=page] { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.prose.how p.summary { font-size: 1.05rem; color: var(--ink-2); border-left: 3px solid var(--accent); padding-left: .8rem; }
.prose.how .run-list h2 { margin-top: 0; }

/* live page: game-GUI panels (always dark) beside the stream */
.live-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.live-head-row h1 { margin-bottom: .4rem; }
.live-head-meta { margin: 0; display: flex; gap: 10px; align-items: center; }
.live-target { margin: 8px 0 16px; padding: 10px 14px; border-left: 3px solid var(--fx-cyan, #8cd3df); background: rgba(128, 128, 128, .08); }
.live-target[hidden] { display: none; }
.live-target .target-clock { display: block; font-variant-numeric: tabular-nums; }
.live-target .target-goal { display: block; overflow-wrap: anywhere; }
.live-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 14px; align-items: stretch; }
@media (max-width: 960px) { .live-top { grid-template-columns: 1fr; } }
.player-wrap { aspect-ratio: 16 / 9; background: #0d0c0d; border: 2px solid #111; border-radius: var(--fx-r-1); overflow: hidden; position: relative;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .10), var(--fx-inset-shadow), var(--fx-shadow-window); }
.player-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
/* The player keeps its column's width (16:9 from it); stretched to a taller chat panel's row it grew wider than its
   column and covered the chat (d16 17:40). */
.player-wrap { align-self: start; }
.vchat-help { margin-top: 8px; }
.vchat-help summary { cursor: pointer; }
.vchat-help .vchat-tips { margin-top: 6px; }
.player-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 16px; color: var(--fx-text); background: repeating-linear-gradient(135deg, #191819 0 14px, #1f1e1f 14px 28px); }
.player-placeholder p { margin: .2rem 0; }
.player-placeholder strong { color: var(--fx-heading); }
.player-placeholder .muted { color: var(--fx-muted); }
.ph-dot { width: 14px; height: 14px; border-radius: 50%; background: #555; margin-bottom: 8px; box-shadow: 0 0 0 3px #2a292a; }
.live-panel.fx-panel, .live-card.fx-panel { min-width: 0; font-size: 15px; padding: 4px 12px 12px; }
.live-card .fx-panel-title { margin-bottom: 6px; }
.live-card h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fx-heading); margin: .8rem 0 .3rem; }

/* chat panel */
.chat-panel { display: flex; flex-direction: column; padding-top: 10px; min-height: 360px; }
.chat-panel .fx-tab-body { flex: 1; display: flex; flex-direction: column; padding: 8px; min-height: 0; }
.vchat-pane, .yt-pane { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.vchat-pane[hidden], .yt-pane[hidden] { display: none; }
.vchat { list-style: none; margin: 0; padding: 6px 8px; flex: 1 1 200px; min-height: 200px; max-height: 420px; overflow-y: auto;
  background: var(--fx-deep); box-shadow: var(--fx-inset-shadow); border-radius: var(--fx-r-1); font-size: .9rem; }
@media (min-width: 961px) { .vchat { max-height: none; } }
.vchat li { padding: 2px 0; overflow-wrap: anywhere; }
.vchat b { color: var(--fx-heading); }
/* where a line was written (live.js renderChat): YouTube red, the site's own orange */
.vchat .c-src { display: inline-block; font-size: 0.68em; font-weight: 700; letter-spacing: 0.04em; padding: 0 4px;
  border-radius: 3px; line-height: 1.5; vertical-align: 1px; color: #fff; }
.vchat .c-src-yt { background: #c4302b; }
.vchat .c-src-site { background: var(--fx-orange, #e39827); color: #1b1b1b; }
/* an agent's or the Operator's reply to a viewer (state.viewer_replies), in the agent's colour, under the line it answers */
.vchat .c-agent { border-left: 3px solid var(--ac, var(--fx-muted, #888)); padding-left: 6px; margin: 1px 0; }
.vchat .c-agent.c-thread { margin-left: 12px; }
.vchat .c-agent.c-hist { opacity: .72; }
.vchat .c-history { font-size: .78em; text-transform: uppercase; letter-spacing: .04em; }
.vchat .c-src-agent { background: var(--ac, #6c7a89); color: #111; }
.vchat .c-agent-name { color: var(--ac, var(--fx-heading)); }
.vchat .c-to { font-size: 0.85em; }
.vchat .c-link, .vchat .c-re, .vchat .c-part { font-size: 0.8em; }
.vchat .c-delivery-replied { font: inherit; font-size: 0.85em; color: var(--good); background: none; border: 0; padding: 0;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.vchat .c-delivery-replied:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vchat li.is-flash { background-color: rgba(var(--fx-orange-rgb), .22); }
/* (d22 batch75 AK6, viewer Aurora) over a reply, a short quote of each line it answers (a button to it); on a line, its
   reply count (a button to the first reply); a reply from the last ten minutes marked new */
.vchat .c-quotes { display: block; }
.vchat .c-quote { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit;
  font-size: 0.8em; color: var(--muted); background: none; border: 0; padding: 0; text-align: left; }
.vchat button.c-quote { cursor: pointer; }
.vchat button.c-quote:hover, .vchat .c-replies:hover { color: var(--ink); text-decoration: underline; }
.vchat .c-replies { font: inherit; font-size: 0.8em; color: var(--muted); background: none; border: 0; padding: 0;
  margin-left: 2px; cursor: pointer; white-space: nowrap; }
.vchat .c-quote:focus-visible, .vchat .c-replies:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vchat .c-agent.c-new { background-color: rgba(var(--fx-orange-rgb), .08); }
/* (d22 batch75 AK8, viewer Aurora site:4249/4250) a reply: a one-line header (who, when, to whom, new, Details), its full
   text below; threaded under its line with no quote of it; Details opens the routing and matching; tighter rows */
.vchat li { padding: 1px 0; line-height: 1.35; }
.vchat .c-agent { margin: 0 0 1px; padding: 1px 0 1px 6px; }
.vchat .c-agent.c-thread { margin-left: 10px; }
.vchat .c-agent + li:not(.c-agent) { margin-top: 3px; }
.vchat .c-head { display: block; font-size: .82em; line-height: 1.3; }
.vchat .c-head .c-time { font-size: 1em; }
.vchat .c-head .c-src { font-size: .82em; }
.vchat .c-agent > .c-text { display: block; }
.vchat .c-details-btn { font: inherit; font-size: .9em; color: var(--muted); background: none; border: 1px solid var(--line);
  border-radius: 3px; padding: 0 4px; margin-left: 4px; line-height: 1.25; cursor: pointer; vertical-align: 1px; }
.vchat .c-details-btn[aria-expanded="true"] { color: var(--ink); border-color: var(--muted); }
.vchat .c-details-btn:hover { color: var(--ink); }
.vchat .c-details-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vchat .c-details { display: block; font-size: .78em; line-height: 1.3; margin: 1px 0 2px; padding: 2px 6px;
  border-radius: 3px; background: rgba(255, 255, 255, .04); }
.vchat .c-details[hidden] { display: none; }
.vchat .c-det-row { display: block; }
.vchat .c-new-tag { font-size: 0.72em; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--fx-orange, #e39827); }
.vchat-filter { display: flex; align-items: center; gap: 6px; padding: 2px 8px; }
.vchat-filter label { display: inline-flex; align-items: center; gap: 6px; }
.vchat-form { display: grid; grid-template-columns: 6.5em 1fr auto; gap: 6px; margin-top: 8px; }
.vchat-form[hidden] { display: none; }
.vchat-form .vchat-viewers { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; }
.vchat .c-src-viewers { background: #5b8fb9; color: #111; }
.vchat .c-src-host { background: var(--fx-yellow, #e8c547); color: #111; }
/* the Operator's announcement (batch293: shift changes, planned stops) */
.vchat .c-src-op { background: var(--fx-orange, #e39827); color: #111; }
.vchat .c-op .c-text { font-weight: 600; }
/* the host link's line shares the replies row (the chat panel stays no taller than the player) */
.vchat-host { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--fx-heading); white-space: nowrap; }
.vchat-host[hidden] { display: none; }
.bp-share { margin-top: 6px; }
.bp-share summary { cursor: pointer; }
.bp-form { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: 6px; }
.bp-form textarea { grid-column: 1 / -1; grid-row: 2; resize: vertical; min-height: 3.5em; font-family: var(--mono, ui-monospace, monospace); font-size: 0.8em; word-break: break-all; }
.bp-form button { grid-row: 1; grid-column: 2; }
.vchat .c-viewers .c-text { opacity: 0.85; }
.chat-panel .small { margin: 6px 0 0; }
.vchat-tips { display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; line-height: 1.35; }
.vchat-tips > div { display: contents; }
.vchat-tips dt { color: var(--fx-heading); font-family: var(--mono, ui-monospace, monospace); font-size: .95em; white-space: nowrap; }
.vchat-tips dd { margin: 0; }
#watching { color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
#watching[hidden] { display: none; }
.yt-chat { flex: 1; width: 100%; min-height: 420px; border: 0; border-radius: var(--fx-r-1); background: #0d0c0d; }

/* run heading, offline notice, status strip, alerts */
.live-run-head h2 { margin: 1.6rem 0 0; }
.live-run-head p { margin: .2rem 0 .8rem; }
.live-next { margin: 0 0 .8rem; font-weight: 600; color: var(--ink-2); }
.live-app:not(.is-live) .live-next { font-size: 1.05rem; color: var(--ink); }
.live-offline:empty { display: none; }
.live-offline { margin: 0 0 1rem; }
.live-app.is-live .live-offline { display: none; }
.live-strip { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; padding: 10px 14px !important; }
.live-strip:empty { display: none; }
.strip-item { display: flex; flex-direction: column; }
.strip-item b { font-size: 1.2rem; color: var(--fx-heading); font-variant-numeric: tabular-nums; }
.strip-research { flex: 1 1 240px; }
.live-research-label { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; margin-bottom: 3px; }
.live-research-label strong { color: var(--fx-heading); }
.live-research-pct { font-weight: 700; font-variant-numeric: tabular-nums; }
.live-alerts { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.live-alerts li { font-size: .9rem; }
.live-app.is-stale .live-dash, .live-app.is-stale .live-strip { opacity: .72; }

/* dashboard grid */
.live-dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.card-agents { grid-column: span 6; }
.card-map { grid-column: span 6; }
.card-research, .card-board { grid-column: span 12; }
.card-chronicle { grid-column: span 12; }
.card-charts { grid-column: span 12; }
.card-plan { grid-column: span 12; }
.card-chat { grid-column: span 12; }
@media (max-width: 960px) { .live-dash > * { grid-column: 1 / -1; } }
.agents-live { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px; }
.agent-live { background: var(--fx-deep); box-shadow: var(--fx-inset-shadow); border-radius: var(--fx-r-1); border-left: 3px solid var(--ac); padding: 8px 10px; min-width: 0; }
.agent-live header { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.agent-live h3 { margin: 0; font-size: 1rem; color: var(--fx-heading); display: flex; gap: 6px; align-items: center; }
.agent-live header p { margin: 0; line-height: 1.3; }
.agent-live .avatar.fx-slot { --fx-slot: 44px; }
.cam-chip { font-size: .8rem; padding: 0 5px; }
.agent-doing { margin: 6px 0 0; font-size: .9rem; overflow-wrap: anywhere; }
.agent-job { margin: 6px 0 0; font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.agent-job .job-from { font-weight: 400; }  /* where the job comes from and its age (d20 batch54 N3) */
/* (d20 batch70 AF3) the plan line beside the focus, stale flags and the agent's current work */
.agent-plan-line { font-weight: 400; }
.agent-stale, .agent-work { list-style: none; margin: 6px 0 0; padding: 0; font-size: .84rem; overflow-wrap: anywhere; }
.agent-stale li, .agent-work li { margin: 2px 0; }
.agent-work li { padding-left: 8px; border-left: 2px solid var(--line-strong); }
.agent-stale .fx-chip { font-size: .75rem; padding: 0 5px; }
.agent-said { list-style: none; margin: 6px 0 0; padding: 0 0 0 8px; border-left: 2px solid var(--ac); font-size: .84rem; color: #cfcfcf; }
.agent-said li { margin: 2px 0; overflow-wrap: anywhere; }
.state { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.state[data-s="acting"]::before { background: var(--fx-green); }
.state[data-s="thinking"]::before { background: var(--fx-cyan); }
.state[data-s="dead"]::before { background: var(--fx-red); }
.state[data-s="offline"] { opacity: .6; }
/* resting between turns, pacing its quota (tools/stream/pacing.py): a calm blue, not offline */
.state[data-s="resting"]::before { background: #6f8fbf; }

/* the map viewer (static/mapview.js): the live map and the run page's time-lapse; the canvas draws the marks, these
   rules style the controls, the legend (.b-X and .o-X are the same colours the canvas uses) and full screen */
.mapview { position: relative; }
/* (d22 batch75 AK3, viewer Aurora) the planet tabs in a row of their own, the layers grouped under labels below them */
.mapview-layers { display: grid; gap: 5px; margin: 0 0 6px; container-type: inline-size; }
.mapview-planets { display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: 5px; border-bottom: 1px solid var(--line); }
/* (AK5) two groups a row (Terrain + Networks, Combat + Team); (d22 batch75 AK7, viewer Aurora: "put category labels
   beside the buttons and tighten the gaps") each label in a narrow column at the left of its buttons at every width, a
   pair side by side where both fit (else the second below the first), tighter gaps and button padding */
.mapview-groups { display: grid; gap: 4px; }
.mapview-pair { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.mapview-gbox { display: grid; grid-template-columns: 3.5rem auto; align-items: center; gap: 0 4px; min-width: 0; }
.mapview-group-label { font-size: .64rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.mapview-group { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-width: 0; }
.mapview-layers .fx-btn.small { padding: 1px 7px; }
/* Pollution or Spores: one width, so what follows stays put across planets */
.mapview-layer[data-layer="cloud"] { min-width: 5.6em; }
.mapview-layer[aria-pressed="false"] { opacity: .55; text-decoration: line-through; text-decoration-thickness: 1px; }
.mapview-layer[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--fx-orange); }
/* a layer the surface shown has none of: its spot kept, greyed */
.mapview-layer:disabled { opacity: .3; cursor: not-allowed; box-shadow: none; }
/* the surface switch (Nauvis, or another surface's cloud): the one shown is pressed */
.mapview-surface[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--fx-orange); font-weight: 700; }
/* narrow: each group a row of its own (one row of buttons where they fit) */
@container (max-width: 34rem) {
  .mapview-gbox { flex: 1 1 100%; grid-template-columns: 3.5rem minmax(0, 1fr); }
}
@media (max-width: 520px) {  /* browsers without container queries */
  .mapview-gbox { flex: 1 1 100%; grid-template-columns: 3.5rem minmax(0, 1fr); }
}
/* (d21 batch68 AD3) the item picker: its sources and consumers on the planet shown */
/* (AK5) narrow and fixed: its longest item name moves nothing; (AK7) "Item: -" (none picked, or none to pick: why in its
   tooltip) whole beside its arrow in any font, an item's name with room */
.mapview-platform { max-width: 11rem; padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--well); color: var(--ink); font: inherit; }
.mapview-item { width: 6.5rem; max-width: 100%; padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--well); color: var(--ink); font: inherit; }
.mm-legend li.mv-item-line { flex-basis: 100%; }
.mapview-stage { position: relative; border-radius: var(--fx-r-1); overflow: hidden; box-shadow: var(--fx-inset-shadow); background: #1b1f1a; }
.mapview-canvas { display: block; width: 100%; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.mapview-canvas:active { cursor: grabbing; }
.mapview-tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.mapview-tools .fx-btn { min-width: 30px; height: 30px; padding: 0 8px; font-size: .9rem; line-height: 1; }
.mapview-tools .fx-btn[data-mv="in"], .mapview-tools .fx-btn[data-mv="out"] { font-size: 1.05rem; }
.mapview-follow { position: absolute; left: 6px; top: 6px; display: flex; align-items: center; gap: 6px; padding: 3px 4px 3px 9px;
  background: rgba(16, 18, 15, .88); border-radius: var(--fx-r-1); color: var(--fx-text); font-size: .85rem; font-weight: 600; }
.mapview-follow[hidden], .mapview-tip[hidden] { display: none; }
/* (d19 batch43 A4) the game tile under the mouse or the last tap, top left (under "Following ..." while it shows) */
.mapview-coords { position: absolute; left: 6px; top: 6px; padding: 3px 8px; background: rgba(16, 18, 15, .88); color: var(--fx-text, #e8e6e1);
  border-radius: var(--fx-r-1); font-size: .8rem; font-variant-numeric: tabular-nums; pointer-events: none; white-space: nowrap; }
.mapview-follow:not([hidden]) ~ .mapview-coords { top: 44px; }
.mapview-coords[hidden] { display: none; }
.mapview-tip { position: absolute; max-width: 216px; padding: 5px 8px; background: rgba(16, 18, 15, .94); color: #e8e6e1;
  border: 1px solid #3a4037; border-radius: var(--fx-r-1); font-size: .82rem; line-height: 1.3; pointer-events: none; z-index: 2; }
.mapview-scale { margin: 6px 0 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.mapview--full { position: fixed; inset: 0; z-index: 1000; background: var(--bg, #121411); padding: 10px; display: flex; flex-direction: column; overflow: auto; }
.mapview--full .mapview-stage { flex: 1 1 auto; min-height: 0; }
.mapview--full .mapview-canvas { height: 100%; touch-action: none; }
.mapview:fullscreen { background: var(--bg, #121411); padding: 10px; }
.b-D { fill: #c8553d; background: #c8553d; } .b-W { fill: #e9dcc0; background: #e9dcc0; } .b-R { fill: #a983f0; background: #a983f0; }
.b-O { fill: #3fa8a3; background: #3fa8a3; } .b-A { fill: #5c8fd6; background: #5c8fd6; }
.b-S { fill: #e08a3c; background: #e08a3c; } .b-M { fill: #a6875a; background: #a6875a; }
.b-E { fill: #f2d34b; background: #f2d34b; }
.b-L { fill: #b9b9b9; background: #b9b9b9; } .b-I { fill: #9fcf6a; background: #9fcf6a; }
.b-B { fill: #8a7d45; background: #8a7d45; } .b-T { fill: #6e6a8e; background: #6e6a8e; }
.b-P { fill: #4a6a8a; background: #4a6a8a; }
.o-i { fill: #7f9db4; background: #7f9db4; } .o-c { fill: #d0703a; background: #d0703a; }
.o-k { fill: #5a5a5a; background: #5a5a5a; } .o-s { fill: #c2ab7a; background: #c2ab7a; }
.o-o { fill: #b04fb5; background: #b04fb5; } .o-u { fill: #6fe05a; background: #6fe05a; }
.o-x { fill: #9a9a9a; background: #9a9a9a; }
.mm-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 0; padding: 0; font-size: .8rem; color: var(--muted); }
.mm-legend li { display: flex; align-items: center; gap: 5px; }
.mm-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; box-shadow: 0 0 0 1px #000; }
.mm-legend i.nest { background: #ff3b30; }
.mm-legend li.ore i { opacity: .55; }
.mm-legend i.mv-terrain { background: linear-gradient(135deg, #20384a 0 45%, #5b4a36 45% 60%, #3b4a32 60%); }
/* (d22 batch97 BG3) the chart: ground, a belt and a machine in the game's map colours */
.mm-legend i.mv-chart { background: linear-gradient(90deg, #37350b 0 40%, #cca047 40% 55%, #006091 55%); }
.mm-legend i.mv-range { background: rgba(120, 200, 255, .35); border-radius: 50%; box-shadow: 0 0 0 1px rgba(120, 200, 255, .8); }
.mm-legend i.mv-cloud { width: 22px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
.mm-legend i.mv-reached { background: transparent; border-radius: 50%; box-shadow: 0 0 0 2px #ff5a44; }
.mm-legend i.mv-ready-e { background: linear-gradient(90deg, #ff3b30 0 50%, #f2c94c 50%); border-radius: 50%; }
.mm-legend i.mv-ready-u { background: transparent; border-radius: 50%; box-shadow: 0 0 0 1.5px #9a9a9a; }
.mm-legend i.mv-fight { background: rgba(224, 78, 58, .25); border-radius: 50%; box-shadow: 0 0 0 1.5px #ff5a44; }
.mm-legend i.mv-group { background: #ff5a44; transform: rotate(45deg) scale(.8); }
.mm-legend i.mv-big { background: #ff7a1a; border-radius: 50%; box-shadow: 0 0 0 2px #1b1f1a, 0 0 0 3.5px #ff7a1a; }
.mm-legend i.mv-vehicle { background: #4fc3f7; border: 1px solid #000; box-shadow: inset 0 0 0 3.5px #4fc3f7, inset 0 0 0 5px #000; }
.map-research { margin: 0 0 6px; color: var(--fx-text); }
.map-research strong { color: var(--fx-heading); }
.cam-lines, ul.platforms { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .88rem; }
.cam-lines li { overflow-wrap: anywhere; }
.space-inset .small { margin: 0 0 4px; }
ul.platforms li { overflow-wrap: anywhere; }
ul.platforms b { color: var(--fx-heading); }
ul.platforms .fx-progress { margin-top: 3px; }

/* homepage: the live show, then a compact way into the rest of the site */
.home-more { margin-top: 2.4rem; }
.home-more h2 { margin-bottom: .3rem; }
.home-more .lede { font-size: 1.02rem; margin-top: 0; }
.home-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.home-card { display: block; padding: 10px 14px; text-decoration: none; color: inherit; background: var(--surface);
  border: 1px solid var(--panel-border); border-radius: var(--radius); box-shadow: var(--panel-shadow); }
.home-card h3 { margin: .2rem 0 .3rem; font-size: 1rem; color: var(--accent); }
.home-card p { margin: 0; font-size: .9rem; }
.home-card:hover h3 { text-decoration: underline; }

/* phones (~400 px): tighter gutters, a shorter chat, compact strip and cards */
@media (max-width: 520px) {
  .wrap:has(.live-app) { padding: 0 10px; }
  .live-head-row h1 { font-size: 1.35rem; }
  .live-top { gap: 10px; }
  .chat-panel { min-height: 0; }
  .vchat { min-height: 140px; max-height: 240px; }
  .yt-chat { min-height: 320px; }
  .vchat-form { grid-template-columns: 5.5em 1fr auto; }
  .live-strip { gap: 8px 16px; }
  .strip-item b { font-size: 1.05rem; }
  .live-panel.fx-panel, .live-card.fx-panel { padding: 4px 8px 10px; font-size: 14px; }
  .live-dash { gap: 10px; }
  .agents-live { grid-template-columns: 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
}

/* board, research, game chat */
.board-counts { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.board-claims, .board-events, .game-chat { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .9rem; }
.board-claims li, .game-chat li { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; overflow-wrap: anywhere; }
.board-claims b, .game-chat b { color: var(--fx-heading); }
.game-chat .tell-summary { font-weight: 600; } /* (batch273) a long tell's summary line above its whole text */
.board-events li { overflow-wrap: anywhere; }
.board-events .fx-chip { font-size: .8rem; padding: 0 5px; }
.board-projects { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .9rem; }
/* (d23 batch119 CB2, viewer Aurora site:4363) a task or request: its title across the card, small badges, owner and
   time on the line under it; no columns, so nothing is squeezed to a word a line on a phone */
.job-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; font-size: .9rem; }
.job { min-width: 0; padding: 5px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.job:first-child { border-top: 0; padding-top: 0; }
.job-title { display: block; color: var(--fx-heading); line-height: 1.3; }
.job-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 2px; font-size: .8rem; color: var(--muted); }
.job-meta .job-badge { font-size: .7rem; padding: 0 5px; line-height: 1.5; height: auto; }
.job-who { display: inline-flex; align-items: center; gap: 4px; }
.job-who .avatar.fx-slot { --fx-slot: 18px; padding: 0; }
/* (CB3) Owner activity: each project owner's watches and wait, apart from the projects' progress */
.owner-activity .project-fact { display: block; margin-top: 3px; color: var(--fx-text); }
.owner-activity .job-badge { font-size: .7rem; padding: 0 5px; line-height: 1.5; height: auto; }
.board-all-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.board-all-head .jobs-all { flex: none; }
.board-projects li { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; overflow-wrap: anywhere; }
/* a project opens to its steps (d15): the summary keeps the portrait-and-text layout, the steps sit under it */
.board-projects > li:has(> details.project) { display: block; }
.board-projects > li > details.project { grid-column: 1 / -1; }
.board-projects details.project > summary { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; cursor: pointer; list-style: none; }
.board-projects details.project > summary::-webkit-details-marker { display: none; }
.board-projects details.project > summary .project-head { display: block; }
.board-projects details.project > summary .project-head::after { content: "▸ steps"; font-size: .75rem; color: var(--fx-muted, #999); }
.board-projects details.project[open] > summary .project-head::after { content: "▾ steps"; }
.board-projects .plan-next { display: block; }
/* (d22 batch75 AK11) a project's status chip and why it is blocked, under its title */
.board-projects .project-status { font-size: .72rem; padding: 0 6px; margin-left: 4px; vertical-align: 1px; }
.board-projects .project-fact { display: block; color: var(--fx-muted, #999); }
.board-projects .project-fact:first-of-type { margin-top: 1px; }
.project-progress .fx-progress { display: block; }
.project-body { margin: 4px 0 2px 32px; font-size: .85rem; }
.project-steps { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 2px; }
.project-steps .step { display: block; }
.project-steps .step-done { color: var(--fx-muted, #9a9a9a); }
.project-steps .step-next { font-weight: 600; }
.project-steps .step-mark { display: inline-block; width: 1.1em; text-align: center; }
.project-steps .step-tag { font-size: .7rem; padding: 0 4px; }
.projects-all { margin-top: 6px; }
.rem-all { margin-top: 6px; }  /* (d20 batch65 AA4) the reminders' Show all and their filters */
.rem-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.rem-filters .fx-btn[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 1px; font-weight: 700; }
/* (d22 batch99 BI3) the full task list's filters and the lists' pages */
.jobs-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.jobs-filters .fx-btn[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 1px; font-weight: 700; }
.list-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.board-all { margin: 8px 0; }
.projects-more h5 { margin: 8px 0 4px; font-size: .8rem; color: var(--fx-muted, #999); }
.board-projects b { color: var(--fx-heading); }
.project-progress { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; margin-top: 3px; }

/* the team plan (viewer Alex, 22:12): goals, one line per agent in two columns on desktop, projects with next step */
.plan-goals { margin: 0; font-weight: 600; color: var(--heading); overflow-wrap: anywhere; border-left: 3px solid var(--accent); padding-left: 8px; }
.plan-lines { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 6px 14px; font-size: .9rem; }
.plan-line { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; overflow-wrap: anywhere; padding: 4px 6px;
  border-left: 3px solid var(--ac); border-radius: var(--fx-r-1); background: var(--fx-deep); box-shadow: var(--fx-inset-shadow);
  scroll-margin: 80px; transition: background-color .4s; }
.plan-line b { color: var(--fx-heading); }
.plan-when { display: block; }
.plan-line.is-flash, .card-plan.is-flash { background-color: rgba(var(--fx-orange-rgb), .22); }
.plan-next { margin: 2px 0 0; overflow-wrap: anywhere; }
/* a shift page's team plan, as the shift left it */
.plan-shift { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 4px; }
.plan-shift li { overflow-wrap: anywhere; }
/* a team agent's portrait: its plan line and job on hover, focus or tap (viewer syndesis, 22:13) */
.avatar[data-agent] { cursor: pointer; }
.avatar[data-agent]:focus-visible { outline: 2px solid var(--fx-orange); outline-offset: 2px; }
.plan-tip { position: fixed; z-index: 30; max-width: min(320px, calc(100vw - 16px)); font-size: .85rem; color: var(--fx-text);
  background: rgba(30, 29, 30, .97); border: 1px solid #000; border-radius: var(--fx-r-1); padding: 0 0 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), var(--fx-shadow-pop); pointer-events: none; }
.plan-tip .t-head { color: var(--fx-heading); font-weight: 700; padding: 3px 9px; margin-bottom: 4px;
  background: linear-gradient(180deg, #3b3a3b, #2f2e2f); border-bottom: 1px solid #000; }
.plan-tip .t-line { padding: 1px 9px; overflow-wrap: anywhere; }
.plan-tip .t-foot { padding: 4px 9px 0; font-size: .78rem; }
.research-recent { margin: 0; padding-left: 1.3em; font-size: .9rem; }
.research-levels { list-style: none; margin: 0; padding: 0; font-size: .9rem; columns: 3 14rem; column-gap: 1rem; }
.research-levels li { break-inside: avoid; display: flex; flex-wrap: wrap; gap: .3em; align-items: baseline; }
.research-levels .rl-level { font-variant-numeric: tabular-nums; }
.research-levels .is-researching .rl-name { font-weight: 600; }
.game-chat { max-height: 360px; overflow-y: auto; }
.live-card .chart { background: var(--fx-deep); box-shadow: var(--fx-inset-shadow); border: 0; }
.live-card .chart figcaption strong { color: var(--fx-heading); }

@media (forced-colors: active) {
  .chart-svg .line { stroke: CanvasText !important; }
  .avatar { forced-color-adjust: none; }
}
@media print {
  .site-header, .site-footer, .theme-toggle { display: none; }
  details { display: block; }
}

/* ---- phones and anchors (390 px checks) ---------------------------------------------------------------------- */
/* the sticky header never covers an anchor's heading */
html { scroll-padding-top: 76px; }
@media (max-width: 640px) {
  /* the header scrolls away on phones (two rows of links would take a fifth of the screen), and every link shows */
  .site-header { position: static; }
  html { scroll-padding-top: 8px; }
  .site-nav { flex-wrap: wrap; justify-content: flex-start; margin-left: -8px; }
  .site-header .site-nav a, .nav-more > summary { padding: 8px 10px; min-height: 36px; display: inline-flex; align-items: center; }
  .theme-toggle { width: 36px; min-width: 36px; height: 36px; }
  /* the Menu button shows the whole list, More's links in it (with no script every link shows) */
  html.js .nav-toggle { display: inline-flex; align-items: center; margin-left: auto; min-height: 36px; }
  html.js .theme-toggle { margin-left: 0; }
  html.js .site-nav { display: none; }
  html.js .site-header.nav-open .site-nav { display: flex; }
  .site-header.nav-open .nav-more > summary { display: none; }
  .site-header.nav-open .nav-more-list, .nav-more-list { position: static; flex-direction: row; flex-wrap: wrap; min-width: 0; padding: 0; background: none; border: 0; box-shadow: none; }
  /* tap targets */
  .jump { gap: 0 4px; }
  .jump a, .shift-nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 6px; }
  .kind-filter .fx-btn, .mapview-tools .fx-btn, .fx-btn.small { min-height: 36px; }
  .vlink { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; margin: -8px 0; }
  .fx-textfield, .hl-controls label, .hl-controls select, .mapview-item, .mapview-platform, .tlapse-controls input[type=range],
  .tlapse-controls .fx-btn { min-height: 36px; }
  /* links and controls the 390 px check found under 36 px */
  main table.compare th button { display: inline-flex; align-items: center; min-height: 36px; }
  details > summary { display: flex; align-items: center; min-height: 36px; }
  .crumbs a, .live-app > p a, .search-results li > a { display: inline-flex; align-items: center; min-height: 36px; }
  table.firsts td.num a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; margin: -8px 0; }
  .firsts-more { margin: .4rem 0 1rem; }
  .hl-controls label, [class*="filters"] label { display: inline-flex; align-items: center; }
  input[type=checkbox] { width: 20px; height: 20px; }
  /* charts: a 640-unit drawing scaled to a phone's width made its text about 7 px; keep it at least 520 px wide,
     scrolling inside its own box, with the direct labels left to the legend and the hover */
  .chart .plot { overflow-x: auto; overscroll-behavior-x: contain; }
  .chart .plot .chart-svg { min-width: 520px; }
  .chart .plot .chart-svg.drawn { min-width: 0; }  /* (batch314 B) site.js draws it at the phone's own width */
  .chart-svg .tick, .chart-svg .axis-label { font-size: 16px; }
  .chart-svg .mark-label { font-size: 15px; }
  .chart-svg .dlabel { display: none; }
}

/* the run's chronicle on the live page (viewer Alex 22:24): the agents' entries and the harness's record */
.chron-entries, .chron-events { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .9rem; }
.chron-entries li { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; overflow-wrap: anywhere;
  border-left: 3px solid var(--ac); padding: 4px 6px; border-radius: var(--fx-r-1); background: var(--fx-deep); box-shadow: var(--fx-inset-shadow); }
.chron-entries b, .chron-title { color: var(--fx-heading); }
.chron-title { font-weight: 600; }
.chron-text { margin: 2px 0 0; }
.chron-events li { overflow-wrap: anywhere; }
.chron-events .fx-chip { font-size: .8rem; padding: 0 5px; }

/* Current harness wait and the agent's own recent explanation, from the stream state. */
.agent-wait { margin: 6px 0 0; font-size: .9rem; overflow-wrap: anywhere; }
.agent-wait-reason { margin: 4px 0 0; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }

/* Polls (static/polls.js): the live page's card under the player and chat, and the /polls/ page */
.polls-card { margin-top: 14px; padding: 10px 14px; }
.polls-card[hidden] { display: none; }
.poll { padding: 4px 0 8px; }
.polls-card .poll + .poll, .polls-page .poll + .poll { border-top: 1px solid var(--line); padding-top: 10px; }
.polls-page .poll { background: var(--surface); border: 1px solid var(--panel-border); box-shadow: var(--panel-shadow);
  padding: 12px 14px; margin: 0 0 14px; }
.polls-page .poll + .poll { border-top: 1px solid var(--panel-border); }
.poll-head { display: flex; align-items: center; gap: 8px; }
.poll-tag { font-size: 0.72em; font-weight: 700; letter-spacing: 0.05em; padding: 1px 6px; background: var(--accent-fill, #ff9f1c);
  color: #141414; }
.poll-q { margin: 6px 0 8px; font-size: 1.1rem; color: var(--heading); }
.poll-ask { display: grid; gap: 6px; }
.poll-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14em, 1fr)); gap: 6px; }
.poll-opts .fx-btn { text-align: left; white-space: normal; height: auto; min-height: 2.2em; padding: 6px 10px; line-height: 1.3; }
.poll-opts .fx-btn.is-mine { outline: 2px solid var(--accent); }
.poll-choice { display: flex; flex-direction: column; gap: 2px; }
.poll-choice .fx-btn { width: 100%; }
.poll-intro { margin: 0 0 10px; color: var(--ink-2); line-height: 1.45; }
.poll-det summary { cursor: pointer; color: var(--muted); }
.poll-det p, .poll-det-text { margin: 2px 0 4px; color: var(--ink-2); line-height: 1.4; }
.poll-det-row { grid-column: 1 / -1; grid-row: 4; }
.poll-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.poll-results li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; }
.poll-split { grid-column: 1 / -1; grid-row: 3; font-size: 0.78em; }
.poll-opt { overflow-wrap: anywhere; }
.poll-results .is-top .poll-opt { font-weight: 700; color: var(--heading); }
.poll-mine { font-size: 0.75em; font-weight: 700; padding: 0 5px; border: 1px solid var(--accent); color: var(--accent); white-space: nowrap; }
.poll-bar { grid-column: 1 / -1; grid-row: 2; height: 8px; background: var(--well); box-shadow: var(--well-shadow); display: flex; }
.poll-bar span { display: block; height: 100%; }
.poll-bar .pb-v { background: var(--accent); }
.poll-bar .pb-a { background: var(--s1); }
.poll-ai { font-size: 0.7em; font-weight: 700; padding: 0 4px; background: var(--s1); color: #fff; letter-spacing: 0.04em; }
.poll-n { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.9em; white-space: nowrap; }
.poll-change { margin-top: 8px; }
.poll-note:empty { display: none; }
.poll-note, .poll-foot { margin: 6px 0 0; }
.poll-comments { list-style: none; margin: 0; padding: 0; }
.poll-comments li { padding: 6px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.poll-chose { font-size: 0.8em; padding: 0 5px; border: 1px solid var(--line-strong); color: var(--ink-2); }
/* d17: the card's one line when no poll is open; /polls/ past polls collapsed to their question, date and winner */
.polls-past-line { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.polls-page .poll-past { background: var(--surface); border: 1px solid var(--panel-border); margin: 0 0 8px; }
.polls-page .poll-past > summary { padding: 8px 14px; font-weight: 400; line-height: 1.4; flex-wrap: wrap; gap: 0 6px; }
.poll-past-q { font-weight: 600; color: var(--heading); }
.polls-page .poll-past .poll { border: 0; box-shadow: none; margin: 0; border-top: 1px solid var(--line); }
.poll-idea-box { margin-top: 24px; max-width: 40rem; }
.poll-idea { display: grid; gap: 6px; }
.poll-idea-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.poll-idea .fx-btn { justify-self: start; }
/* the Ideas page (d29 batch340, viewer Aurora site:5470): two sections, the idea box, the host's tools under each idea */
.ideas-page { max-width: 46rem; }
.idea-box { margin: 18px 0 8px; }
.idea-form { display: grid; gap: 6px; }
.idea-form .fx-btn { justify-self: start; }
.idea-form textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.idea-secs { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; min-width: 0; }
.idea-sec-pick { display: inline-flex; gap: 6px; align-items: baseline; }
.idea-section { margin-top: 22px; }
.idea-list { list-style: none; margin: 8px 0 0; padding: 0; }
.idea { background: var(--surface); border: 1px solid var(--panel-border); padding: 8px 12px; margin: 0 0 8px; min-width: 0; }
.idea.is-highlight { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.idea.is-hidden { opacity: .6; border-style: dashed; }
.idea-head { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.idea-name { font-weight: 700; overflow-wrap: anywhere; }
.idea-text { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.idea-badge { font-size: .78rem; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 3px; white-space: nowrap; }
.idea-badge.is-host, .idea-badge.is-pin { border-color: var(--accent); color: var(--accent); }
.idea-badge.pr-high, .idea-badge.is-off { border-color: var(--bad); color: var(--bad); }
.idea-badge.st-done, .idea-badge.st-doing { border-color: var(--good); color: var(--good); }
.idea-reply { margin: 8px 0 0; padding: 6px 10px; border-left: 3px solid var(--accent); background: var(--hl); }
.idea-reply p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.idea-reply-by { font-weight: 700; }
.idea-tools { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.idea-tools select { max-width: 100%; min-height: 26px; font-size: .9rem; }
.idea-edit { display: grid; gap: 4px; margin-top: 6px; }
.idea-edit textarea { width: 100%; box-sizing: border-box; }
.idea-edit .fx-btn { justify-self: start; }
.idea-host { margin: 8px 0; }
@media (max-width: 520px) { .poll-idea-opts { grid-template-columns: 1fr; } .poll-opts { grid-template-columns: 1fr; } }

/* (d19 batch43 A2) a long text whole: one line with an ellipsis, open for all of it; evidence lines under an item */
.lt { display: block; min-width: 0; }
.lt > summary { cursor: pointer; display: flex; gap: .3em; min-width: 0; list-style: none; font-weight: normal; }
.lt > summary > .fx-muted { flex: none; white-space: nowrap; }
/* (d19 batch46 item 0, on the live state) a list row's text column may shrink below its one-line texts, so they end in
   an ellipsis instead of widening the card */
.board-claims li > span, .job { min-width: 0; }
.lt > summary::-webkit-details-marker { display: none; }
.lt > summary::after { content: "▸"; color: var(--fx-muted, #999); flex: none; }
.lt[open] > summary::after { content: "▾"; }
.lt .lt-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 auto; }
.lt[open] .lt-line { display: none; }
.lt .lt-full { white-space: pre-wrap; overflow-wrap: anywhere; }
.lt-short { display: block; }
.evidence { display: grid; gap: 2px; font-size: .85em; margin-top: 2px; }
.rem-latest { display: grid; gap: 2px; font-size: .85em; margin-top: 4px; }
/* (d19 batch46 item 0) a reminder's state chip with batch41's missed-runs text is longer than the card: it wraps */
.board-reminders .fx-chip { white-space: normal; overflow-wrap: anywhere; max-width: 100%; height: auto; }

/* (d23 batch119 CB4, viewer Aurora site:4349, site:4350) /updates/: the operator's changes by status, then notices */
.upd-counts { display: flex; flex-wrap: wrap; gap: 6px; }
.upd-counts .fx-chip { text-decoration: none; }
.upd-legend { list-style: none; padding: 0; margin: .5rem 0 1rem; display: grid; gap: 4px; color: var(--muted); }
.upd-list, .upd-notices { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0; }
.upd { padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.upd:first-child { border-top: 0; }
.upd-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.upd-title { font-weight: 700; color: var(--heading); text-decoration: none; }
.upd-title:hover { text-decoration: underline; }
.upd .fx-chip, .upd-legend .fx-chip, .upd-notices .fx-chip { font-size: .72rem; padding: 0 6px; line-height: 1.5; height: auto; }
.upd p { margin: 3px 0 0; }
.upd-msgs { margin-top: 4px; font-size: .9rem; }
.upd-flag { color: var(--muted); font-style: italic; }
/* (d26 batch235 UR, viewer Aurora site:5022) an open row's priority, owner and next review; the backlog line */
.upd-review { color: var(--muted); }
.upd-backlog { margin: .25rem 0 0; }
/* (d28 batch322 UL, viewer Aurora site:5411) a row's follow-ups, whatever its status */
.upd-follow-head { margin: 4px 0 0; color: var(--heading); }
.upd-follow { list-style: none; padding: 0 0 0 10px; margin: 2px 0 0; border-left: 3px solid var(--accent); }
.upd-follow li { margin: 2px 0; overflow-wrap: anywhere; }
.upd-fwhat { font-weight: 600; }
.upd-history { margin-top: 2px; font-size: .9rem; }
.upd-history > summary { cursor: pointer; color: var(--muted); }
.upd-history ul { list-style: none; padding: 0 0 0 10px; margin: 4px 0 0; border-left: 3px solid var(--line-strong); }
.upd-history li { margin: 2px 0; overflow-wrap: anywhere; }
.upd-msgs > summary { cursor: pointer; color: var(--muted); }
.upd-msgs blockquote { margin: 6px 0 0; padding: 4px 10px; border-left: 3px solid var(--line-strong); }
.upd-msgs blockquote.upd-reply { border-left-color: var(--accent); }
.upd-msgs blockquote p { margin: 2px 0; }
.upd-notices li { padding: 5px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.upd-notices li:first-child { border-top: 0; }
/* (d24 batch159 QB1, viewer Aurora 11:27-11:28) search, filters and sort (static/updates.js), the recheck's marks */
.upd-tools { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: end; margin: 1rem 0 .5rem; }
.upd-tools label { display: flex; flex-direction: column; gap: .15rem; font-size: .85rem; color: var(--muted); min-width: 0; }
.upd-tools input, .upd-tools select { font: inherit; padding: .3rem .45rem; min-width: 9rem; max-width: 100%; }
.upd-tools .upd-search { flex: 1 1 16rem; max-width: 26rem; }
.upd-tools input[type=search] { width: 100%; min-width: 0; }
.upd-list:empty, .upd-list[hidden] { margin: 0; }
.upd-checked { margin: 0 0 .5rem; }
.upd-shown { margin: .25rem 0 .75rem; }
.upd-tools[hidden], .upd-shown[hidden] { display: none; }
.upd .fx-chip.upd-new { margin-left: 2px; }
.upd-cadence { margin-top: 2px; }
/* /videos/ (site/videos_page.py, batch265): the public three, moments to watch, every shift */
/* /videos/ (site/videos_page.py, batch270): cards with a play button, the run's firsts as game icons, the numbers */
.v-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin: .6rem 0 1.4rem; }
.v-feature { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--fx-r-1); background: var(--surface); box-shadow: var(--panel-shadow); overflow: hidden; }
.v-feature .v-fbody { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.v-feature h3 { margin: 0; font-size: 1.25rem; }
.v-feature p { margin: 0; }
.v-feature .v-links { margin-top: auto; padding-top: .4rem; }
.v-thumb { position: relative; display: block; overflow: hidden; background: #111; border-radius: var(--fx-r-1); }
.v-feature .v-thumb { border-radius: 0; }
.v-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s, filter .25s; }
.thumb-text { display: grid !important; place-items: center; color: var(--fx-muted); font-weight: 700; font-size: 1.3rem; background: #1d1c1d; }
.v-play { position: absolute; right: 9%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 0; border-radius: 50%; background: rgba(0, 0, 0, .62); box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); transition: transform .2s, background .2s; }
.v-play::after { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.v-thumb:hover .v-play, .v-thumb:focus-visible .v-play { background: var(--fx-orange); transform: scale(1.08); }
.v-thumb:hover .v-img { transform: scale(1.03); filter: brightness(1.08); }
.v-len { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .78); color: #fff; font-size: .8rem; font-weight: 700; padding: 0 6px; border-radius: 3px; font-variant-numeric: tabular-nums; }
.v-links { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: .3rem 0 0; }
.v-title { color: var(--ink); font-weight: 600; line-height: 1.35; }
.v-firsts { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: .25rem 0; }
.v-firsts li { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 3px; border-radius: 999px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); font-size: .82rem; line-height: 1.6; max-width: 100%; }
.v-firsts li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-firsts li.v-more { padding-left: 8px; }
.v-nums { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: .2rem 0; font-size: .88rem; color: var(--ink-2); }
.v-nums span { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.v-bad { color: var(--bad); font-weight: 600; }
.v-moments { list-style: none; padding: 0; margin: .4rem 0 1.4rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 8px; }
.v-moments a { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 8px 10px; min-height: 52px; border: 1px solid var(--line); border-radius: var(--fx-r-1); background: var(--surface); text-decoration: none; color: var(--ink); }
.v-moments a:hover { border-color: var(--accent); }
.v-moments .gi { grid-row: span 2; }
.v-m-label { font-weight: 600; line-height: 1.25; }
.v-moments.v-clip li:nth-child(n+13) { display: none; }
.v-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: .4rem 0 .8rem; }
.v-tools input { font: inherit; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: var(--fx-r-1); background: var(--surface); color: var(--ink); width: min(100%, 340px); }
.v-find { display: flex; align-items: center; gap: 8px; flex: 0 1 auto; min-width: 0; }
.v-day[hidden], .v-card[hidden] { display: none; }
.v-dayh { margin: 1.2rem 0 .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); padding-bottom: .2rem; }
.v-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.v-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--fx-r-1); background: var(--surface); overflow: hidden; }
.v-card:target { box-shadow: 0 0 0 2px var(--accent); }
.v-card .v-thumb { border-radius: 0; }
.v-body { padding: 8px 12px 10px; display: flex; flex-direction: column; gap: .15rem; flex: 1; min-width: 0; }
.v-body h3 { margin: 0; font-size: 1.08rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.v-when { margin-left: auto; font-weight: 400; }
.v-body p { margin: 0; }
.v-body .v-links { margin-top: auto; padding-top: .35rem; }
.v-chapters summary { cursor: pointer; color: var(--muted); font-size: .88rem; padding: 2px 0; }
.v-chapters ol { margin: .3rem 0 0; padding-left: 1.4rem; font-size: .88rem; max-height: 16em; overflow-y: auto; }

/* the player page (/videos/shift-N/, static/player.js) */
.pl-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: .8rem 0 .2rem; }
.pl-back { font-weight: 600; display: inline-flex; align-items: center; min-height: 36px; }
.pl-pn { display: flex; gap: 6px; }
.pl-h1 { margin: .2rem 0 .1rem; font-size: 1.7rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.pl-sub { font-size: 1.05rem; font-weight: 600; color: var(--ink-2); }
.pl-meta { margin: 0 0 .7rem; font-size: .92rem; }
.pl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.pl-stage { min-width: 0; }
.pl-box { position: relative; background: #000; border-radius: var(--fx-r-1); overflow: hidden; box-shadow: var(--panel-shadow); }
.pl-box video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.pl-box .video-wrap { margin: 0; }
.pl-big { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 14px; border: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .15)); color: #fff; cursor: pointer; font: inherit; font-size: 1.3rem; font-weight: 700; }
.pl-big-tri { width: 84px; height: 84px; border-radius: 50%; background: var(--fx-orange); position: relative; box-shadow: 0 4px 18px rgba(0, 0, 0, .5); transition: transform .2s; }
.pl-big-tri::after { content: ""; position: absolute; left: 33px; top: 24px; border-style: solid; border-width: 18px 0 18px 28px; border-color: transparent transparent transparent #141414; }
.pl-big:hover .pl-big-tri, .pl-big:focus-visible .pl-big-tri { transform: scale(1.08); }
.pl-big-txt { display: flex; flex-direction: column; text-shadow: 0 1px 3px #000; text-align: left; }
.pl-big-txt small { font-size: .9rem; font-weight: 600; opacity: .85; }
.pl-box.started .pl-big { display: none; }
.pl-endnext { position: absolute; right: 12px; bottom: 56px; display: none; }
.pl-box.ended .pl-endnext { display: inline-flex; }
.pl-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; margin: .5rem 0 .2rem; }
.pl-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-btns button[aria-pressed="true"] { background: var(--fx-orange); color: #141414; }
.pl-clock { font-variant-numeric: tabular-nums; }
#pl-status:empty { display: none; }
.pl-scrub { background: var(--surface); border: 1px solid var(--line); border-radius: var(--fx-r-1); padding: 6px 10px 8px; margin: .3rem 0 1rem; }
.pl-scrub p { margin: .1rem 0 .3rem; }
.pl-lanes { position: relative; cursor: pointer; user-select: none; }
.pl-lane { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; height: 22px; margin-bottom: 3px; }
.pl-lname { font-size: .8rem; color: var(--muted); }
.pl-track { position: relative; height: 100%; background: var(--well); border-radius: 3px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.pl-band { position: absolute; top: 0; bottom: 0; background: var(--s1); }
.pl-band.shot { background: repeating-linear-gradient(45deg, var(--muted), var(--muted) 3px, transparent 3px, transparent 6px); opacity: .7; }
.pl-band.replay { background: var(--bad); }
.pl-mark { position: absolute; top: 3px; bottom: 3px; width: 4px; margin-left: -2px; border-radius: 2px; }
.pl-mark.big { top: 1px; bottom: 1px; width: 6px; margin-left: -3px; }
.pl-tick { position: absolute; top: 5px; bottom: 5px; width: 2px; margin-left: -1px; opacity: .8; }
.pl-voice { position: absolute; top: 6px; bottom: 6px; border-radius: 2px; opacity: .85; }
.pl-playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); pointer-events: none; }
.pl-legend span { margin-right: 10px; white-space: nowrap; }
.pl-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; background: var(--c); }
.pl-tip { position: absolute; z-index: 9; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 4px; padding: 4px 7px; font-size: .82rem; pointer-events: none; max-width: 300px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.pl-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--fx-r-1); padding: 8px 12px 10px; box-shadow: var(--panel-shadow); min-width: 0; }
.pl-card h2 { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; font-weight: 700; }
.pl-card p { margin: .3rem 0 0; }
.pl-onair { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; }
.pl-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.pl-speak { font-size: .92rem; min-height: 2.8em; }
.pl-stats { display: flex; flex-direction: column; gap: 6px; }
.pl-stat { display: grid; grid-template-columns: auto minmax(0, 1fr) 90px; align-items: center; gap: 8px; }
.pl-stat:not([data-col]) { grid-template-columns: minmax(0, 1fr); }
.pl-stat-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pl-stat-label { font-size: .8rem; color: var(--muted); }
.pl-stat-val { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.pl-stat-delta { font-size: .8rem; }
.pl-spark { margin: 0; height: 34px; color: var(--accent); cursor: pointer; }
.pl-spark svg { display: block; width: 100%; height: 34px; background: var(--well); border-radius: 3px; }
.pl-sparkhead { stroke: var(--ink); stroke-width: 1.5; }
.pl-planet { display: inline-block; margin-right: 2px; }
.pl-events { list-style: none; padding: 0; margin: 0; max-height: 300px; overflow-y: auto; font-size: .86rem; }
.pl-events li { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); }
.pl-events li.past { opacity: .62; }
.pl-events li.cur { opacity: 1; background: var(--hl); }
.pl-ev-go { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; text-align: left; font: inherit; color: var(--ink); background: none; border: 0; padding: 5px 2px; min-height: 36px; cursor: pointer; }
.pl-ev-go:hover span:last-child { text-decoration: underline; }
.pl-ev-time { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.pl-ev-tl { font-size: .8rem; flex: none; padding: 4px; min-height: 36px; display: inline-flex; align-items: center; }
.pl-events-static li { padding: 4px 0; gap: 6px; }
.pl-chat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .86rem; max-height: 300px; overflow: hidden; }
.pl-chat li { border-left: 3px solid var(--line); padding-left: 7px; overflow-wrap: anywhere; }
.pl-chat li.viewer { border-left-color: var(--s1); }
.pl-who { font-weight: 700; }
.pl-below h2 { font-size: 1.1rem; margin: 1rem 0 .3rem; }
.pl-av { border-radius: 3px; background: var(--well); }
.pl-chapters h2 { font-size: 1.1rem; margin: .8rem 0 .2rem; }
.pl-chapters ol { columns: 2 300px; column-gap: 24px; padding-left: 1.4rem; font-size: .92rem; }
.pl-chapters li { break-inside: avoid; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 980px) {
  .pl-layout { grid-template-columns: minmax(0, 1fr); }
  .pl-side { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
}
@media (max-width: 600px) {
  .pl-h1 { font-size: 1.35rem; }
  .pl-big-tri { width: 64px; height: 64px; }
  .pl-big-tri::after { left: 25px; top: 18px; border-width: 14px 0 14px 22px; }
  .pl-big { font-size: 1.05rem; }
  .pl-lane { grid-template-columns: 52px minmax(0, 1fr); }
  .pl-btns .fx-btn.small { min-height: 36px; }
}
/* a window too short for the header and the video: the header scrolls away with the page and its nav is one row */
body.watch.pl-tight .site-header { position: static; }
body.watch.pl-tight .site-nav { flex-wrap: nowrap; overflow-x: auto; }
/* the homepage's way into /videos/ (videos_page.home_strip) */
.home-videos { margin: 14px 0 6px; }
.hv-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.hv-head h2 { margin: 0 0 .4rem; font-size: 1.2rem; }
.hv-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hv-list li { min-width: 0; }
.hv-list .v-play { width: 44px; height: 44px; margin-top: -22px; }
.hv-list .v-play::after { left: 17px; top: 13px; border-width: 9px 0 9px 14px; }
.hv-title { display: block; margin-top: 4px; font-size: .9rem; line-height: 1.3; color: var(--ink); text-decoration: none; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hv-title:hover { color: var(--accent); }
@media (max-width: 800px) { .hv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* batch270: the game's icons on the run's pages */
/* (batch314 A) the icon beside the label, apart from the number */
.stat-icon .stat-label, .r-label { display: flex; align-items: center; gap: 6px; }
.stat-label .gi, .r-label .gi { width: 1.4em; height: 1.4em; flex: none; }
.planet-ico { display: inline-flex; margin: 2px 3px 0 0; }
.planet-ico .gi { vertical-align: middle; }
.k-label { display: flex; align-items: center; gap: 6px; }
.ms { display: inline-flex; align-items: center; gap: 8px; }
.bar-label { display: inline-flex; align-items: center; gap: 6px; }
table.long-run .moments li { list-style: none; margin-left: -1.1em; display: flex; align-items: center; gap: 5px; }
.journey { margin: 1.2rem 0 .4rem; }
.journey-list { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: stop; }
.journey-list li { position: relative; flex: 1 1 120px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 10px 8px; border: 1px solid var(--line); border-radius: var(--fx-r-1); background: radial-gradient(circle at 50% 38%, #2a2833 0, #121114 70%); color: #e8e6e3; min-width: 0; }
.journey-list li .muted { color: #b9b4ab; }
.journey-list li a { color: var(--fx-orange); }
.journey-list li + li::before { content: ""; position: absolute; left: -7px; top: 50%; width: 8px; height: 2px; background: var(--accent); }
.j-pic { display: grid; place-items: center; width: 88px; height: 88px; }
.j-pic .gi { width: 88px; height: 88px; }
.latest li { display: flex; align-items: flex-start; gap: 8px; }
.latest li > span { display: flex; flex-direction: column; }
@media (max-width: 600px) { .journey-list li { flex-basis: 40%; } .j-pic, .j-pic .gi { width: 64px; height: 64px; } }
.shift-watch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: .4rem 0 .8rem; }
ol.techs li { display: flex; align-items: center; gap: 6px; }
.strip-item b .gi, .live-research-label .gi { margin-right: 5px; vertical-align: -.25em; }
.space-inset .platforms li .gi { margin-right: 4px; vertical-align: -.25em; }
.lost { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lost a { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 14px; border: 1px solid var(--line); border-radius: var(--fx-r-1); background: var(--surface); text-decoration: none; font-weight: 600; }
@media (max-width: 640px) { table.long-run .fx-chip { min-height: 32px; display: inline-flex; align-items: center; } }
@media (max-width: 640px) {
  .v-links a, .pl-meta a, .pl-pn a, .v-body h3 a, .hv-head a { min-height: 36px; display: inline-flex; align-items: center; }
  .pl-card h2 .muted { font-size: 1em; }
}
@media (max-width: 480px) { .stat, .record, .keytime { min-width: min(100%, 7.5rem); } }

/* Team tests share the live page's panels and viewer chat. */
.team-tests { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:1rem; margin:1rem 0; }
.team-tests[hidden], .live-dash[hidden], .live-strip[hidden], .live-alerts[hidden] { display:none; }
.team-test-chat { padding-left:1.2rem; overflow-wrap:anywhere; }
.team-test-chat li { margin:.6rem 0; }
.team-test-agents { padding-left:1.2rem; overflow-wrap:anywhere; }
.team-test-agents li { margin:.35rem 0; }
.team-test-agents .tt-persona { font-style:italic; }
