/* Flow Paradox games: One Mine, Two Scoreboards (solo), the room's main screen and the phones. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
/* Layout: one column up to 1120px. Each round reads top-down: the brief, the mine as a strip of
   station tiles, the decision, then the two reports side by side so they can be seen to disagree. */
:root {
  --bg: #f1f4f5; --panel: #ffffff; --panel-2: #e7ecee; --ink: #14202a; --ink-2: #43515d; --muted: #66747e;
  --line: #d2dade; --line-strong: #aebac2;
  --accent: #0b6470; --accent-ink: #ffffff; --accent-soft: #d8e9eb;
  --ledger: #26333e; --ledger-ink: #f1f4f5;
  --good: #0ca30c; --good-ink: #0a5c0a; --warn: #fab219; --warn-ink: #6a4900;
  --serious: #ec835a; --serious-ink: #8b3410; --crit: #d03b3b; --crit-ink: #a31f1f;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --grid: #e2e6e9; --axis: #b8c1c8;
  --font-display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Barlow', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --r: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e161c; --panel: #16212a; --panel-2: #1d2a34; --ink: #e7edf1; --ink-2: #b6c2cb; --muted: #8797a3;
    --line: #2a3945; --line-strong: #3e505e;
    --accent: #52b8c4; --accent-ink: #05262b; --accent-soft: #15343a;
    --ledger: #0a1116; --ledger-ink: #e7edf1;
    --good: #0ca30c; --good-ink: #5fd35f; --warn: #fab219; --warn-ink: #fbc95a;
    --serious: #ec835a; --serious-ink: #f3a686; --crit: #d03b3b; --crit-ink: #ef8a8a;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --grid: #24323d; --axis: #3b4b58;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e161c; --panel: #16212a; --panel-2: #1d2a34; --ink: #e7edf1; --ink-2: #b6c2cb; --muted: #8797a3;
  --line: #2a3945; --line-strong: #3e505e;
  --accent: #52b8c4; --accent-ink: #05262b; --accent-soft: #15343a;
  --ledger: #0a1116; --ledger-ink: #e7edf1;
  --good: #0ca30c; --good-ink: #5fd35f; --warn: #fab219; --warn-ink: #fbc95a;
  --serious: #ec835a; --serious-ink: #f3a686; --crit: #d03b3b; --crit-ink: #ef8a8a;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --grid: #24323d; --axis: #3b4b58;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; padding-block: 0 56px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: .01em; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
p { margin: 0; }
a { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.prose { max-width: 66ch; display: grid; gap: 12px; }
.prose p { color: var(--ink-2); }
.eyebrow { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-size: .95rem; }
.stack { display: grid; gap: 24px; }
.stack-sm { display: grid; gap: 12px; }
.stack > *, .stack-sm > *, .ops > * { min-width: 0; }

/* top bar and round rail */
.top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; padding-block: 18px 12px; }
.brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.brand b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: .01em; }
.brand span { color: var(--muted); font-size: .9rem; }
.luck { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-2); flex-wrap: wrap; }
.luck code { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: .08em; color: var(--ink); }
.luck input { width: 5.5em; padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--panel); }
.rail { display: flex; gap: 2px; overflow-x: auto; border-bottom: 2px solid var(--ink); margin-bottom: 28px; scrollbar-width: thin; }
.rail button { flex: 0 0 auto; border: 0; background: transparent; padding: 10px 14px 9px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; border-radius: var(--r) var(--r) 0 0; }
.rail button b { font-weight: 700; margin-right: 6px; color: var(--muted); }
.rail button[aria-current="true"] { background: var(--ink); color: var(--bg); }
.rail button[aria-current="true"] b { color: var(--bg); opacity: .7; }
.rail button:disabled { color: var(--line-strong); cursor: not-allowed; }
.rail button:disabled b { color: var(--line-strong); }
.rail button:not(:disabled):not([aria-current="true"]):hover { background: var(--panel-2); }

/* buttons */
.btn { border: 1px solid var(--line-strong); background: var(--panel); padding: 9px 16px; border-radius: var(--r); cursor: pointer; font-weight: 500; }
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--accent); padding-inline: 8px; text-decoration: underline; text-underline-offset: 3px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* the mine: a strip of station tiles with stockpiles between them */
.mine { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.mine-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.mine-head b { color: var(--ink); font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; }
.chain-scroll { overflow-x: auto; padding: 16px 14px 14px; }
.chain { display: flex; align-items: stretch; gap: 0; min-width: max-content; }
.tile { width: 122px; flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--bg); padding: 8px 8px 9px; display: grid; gap: 5px; align-content: start; position: relative; }
.tile.named { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tile .nm { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: .84rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .plate { display: flex; align-items: baseline; gap: 5px; }
.tile .plate b { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1; }
.tile .plate small { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.tile .meter { height: 8px; background: var(--panel-2); border-radius: 2px; position: relative; overflow: hidden; }
.tile .meter i { position: absolute; inset: 0 auto 0 0; background: var(--line-strong); width: 0; }
.tile .meter u { position: absolute; inset: 0 auto 0 0; background: var(--s1); width: 0; }
.tile .st { font-size: .8rem; min-height: 1.2em; color: var(--muted); white-space: nowrap; }
.tile[data-state="run"] .st { color: var(--ink-2); }
.tile[data-state="starved"] { border-color: var(--warn); } .tile[data-state="starved"] .st { color: var(--warn-ink); font-weight: 600; }
.tile[data-state="blocked"] { border-color: var(--serious); } .tile[data-state="blocked"] .st { color: var(--serious-ink); font-weight: 600; }
.tile[data-state="down"] { border-color: var(--crit); background: color-mix(in srgb, var(--crit) 10%, var(--bg)); } .tile[data-state="down"] .st { color: var(--crit-ink); font-weight: 600; }
.tile .tag { position: absolute; top: -9px; right: 8px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 1px 6px; border-radius: 3px; }
.tile .step { display: flex; align-items: center; gap: 4px; }
.tile .step button { width: 26px; height: 26px; border: 1px solid var(--line-strong); background: var(--panel); border-radius: 4px; cursor: pointer; font-weight: 600; line-height: 1; }
.tile .step button:disabled { opacity: .35; cursor: not-allowed; }
.tile .pick { font-size: .78rem; display: flex; gap: 5px; align-items: center; color: var(--ink-2); cursor: pointer; }
.tile .fixed { font-size: .75rem; color: var(--muted); }
.gap { width: 62px; flex: 0 0 auto; display: grid; justify-items: center; align-content: center; gap: 4px; padding-inline: 4px; }
.gap .arrow { width: 100%; height: 2px; background: var(--line-strong); position: relative; }
.gap .arrow::after { content: ''; position: absolute; right: 0; top: -3px; border: 4px solid transparent; border-left: 6px solid var(--line-strong); border-right: 0; }
.gap .tank { width: 34px; height: 54px; border: 1px solid var(--line-strong); border-top: 0; border-radius: 0 0 4px 4px; position: relative; background: var(--panel-2); overflow: hidden; }
.gap .tank i { position: absolute; inset: auto 0 0 0; height: 0; background: var(--muted); transition: height .18s linear; }
.gap .tank[data-zone="green"] i { background: var(--good); } .gap .tank[data-zone="yellow"] i { background: var(--warn); } .gap .tank[data-zone="red"] i { background: var(--crit); }
.gap .lv { font-size: .74rem; color: var(--ink-2); text-align: center; line-height: 1.2; }
.gap .gn { font-size: .68rem; color: var(--muted); text-align: center; line-height: 1.15; text-transform: uppercase; letter-spacing: .04em; font-family: var(--font-display); font-weight: 600; }
.gap .zn { font-size: .7rem; font-weight: 600; }
.gap .zn[data-zone="green"] { color: var(--good-ink); } .gap .zn[data-zone="yellow"] { color: var(--warn-ink); } .gap .zn[data-zone="red"] { color: var(--crit-ink); }
.gap select { width: 58px; padding: 2px 2px; font-size: .78rem; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--panel); }
.daybar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 8px 14px 12px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.daybar b { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); letter-spacing: .03em; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: var(--ink-2); }
.legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; border: 2px solid var(--line-strong); border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.legend .l-starved::before { border-color: var(--warn); } .legend .l-blocked::before { border-color: var(--serious); } .legend .l-down::before { border-color: var(--crit); background: color-mix(in srgb, var(--crit) 30%, transparent); }

/* panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.facts div { padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.facts dt { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: .95rem; color: var(--ink-2); }
dl { margin: 0; }
.predict { display: grid; gap: 14px; }
.predict label { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.15; }
.predict .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.predict input[type=range] { flex: 1 1 240px; min-width: 0; accent-color: var(--accent); }
.predict output { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; min-width: 3.2ch; text-align: right; line-height: 1; }
.reveal { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, max-content)); gap: 12px 44px; align-items: end; }
.reveal .big { font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; line-height: .95; }
.reveal small { display: block; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-display); font-weight: 600; }

/* the two reports */
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.board { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.board > header { padding: 10px 14px; border-radius: var(--r) var(--r) 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.board.cost > header { background: var(--ledger); color: var(--ledger-ink); }
.board.flow > header { background: var(--accent); color: var(--accent-ink); }
.board > header h3 { font-size: 1.2rem; }
.board > header span { font-size: .82rem; opacity: .85; }
.rows { display: grid; }
.rw { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); align-items: baseline; }
.rw:last-child { border-bottom: 0; }
.rw .k { color: var(--ink-2); font-size: .92rem; }
.rw .v { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.rw .sub { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); }
.rw .wide { grid-column: 1 / -1; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--ink-2); white-space: nowrap; }
.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.chip.good { border-color: var(--good); color: var(--good-ink); } .chip.good::before { background: var(--good); }
.chip.watch { border-color: var(--warn); color: var(--warn-ink); } .chip.watch::before { background: var(--warn); border-radius: 1px; transform: rotate(45deg); }
.chip.bad { border-color: var(--crit); color: var(--crit-ink); } .chip.bad::before { background: var(--crit); border-radius: 1px; }
.utilgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; margin-top: 6px; }
.utilgrid div { border: 1px solid var(--line); border-radius: 4px; padding: 5px 7px; font-size: .8rem; display: grid; gap: 1px; }
.utilgrid b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.utilgrid .chip { justify-self: start; font-size: .7rem; padding: 0 6px; }
.seg { display: flex; height: 14px; border-radius: 3px; overflow: hidden; gap: 2px; margin: 6px 0 5px; background: var(--panel); }
.seg i { display: block; height: 100%; }
.seg .g-run { background: var(--s1); } .seg .g-starved { background: var(--warn); } .seg .g-blocked { background: var(--serious); } .seg .g-down { background: var(--crit); }
.seg .z-green { background: var(--good); } .seg .z-yellow { background: var(--warn); } .seg .z-red { background: var(--crit); }
.keyline { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .8rem; color: var(--ink-2); }
.keyline span::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; background: var(--muted); }
.keyline .g-run::before { background: var(--s1); } .keyline .g-starved::before, .keyline .z-yellow::before { background: var(--warn); } .keyline .g-blocked::before { background: var(--serious); } .keyline .g-down::before, .keyline .z-red::before { background: var(--crit); } .keyline .z-green::before { background: var(--good); }
.pace { display: grid; grid-template-columns: auto 1fr auto; gap: 3px 8px; align-items: center; font-size: .82rem; margin-top: 6px; }
.pace i { display: block; height: 8px; background: var(--s1); border-radius: 0 4px 4px 0; min-width: 1px; }
.pace span:nth-child(3n) { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.reading { padding: 10px 14px; background: var(--panel-2); font-size: .9rem; color: var(--ink-2); border-radius: 0 0 var(--r) var(--r); }
.reading b { color: var(--ink); }

/* charts */
.chart { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 14px 10px; min-width: 0; }
.chart h3 { margin-bottom: 2px; }
.chart .cap { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart svg text { font-family: var(--font-body); font-size: 11px; fill: var(--muted); }
.chart svg .lbl { fill: var(--ink-2); font-size: 11.5px; }
.chart svg .lbl-strong { fill: var(--ink); font-weight: 600; font-size: 12px; }
.chart svg .halo { paint-order: stroke; stroke: var(--panel); stroke-width: 3px; stroke-linejoin: round; }
.chart details { margin-top: 8px; font-size: .85rem; }
.chart summary { cursor: pointer; color: var(--accent); }
.charts2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.lg { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .85rem; color: var(--ink-2); margin-bottom: 6px; }
.lg span::before { content: ''; display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--muted); margin-right: 6px; vertical-align: 4px; }
.lg .c1::before { border-color: var(--s1); } .lg .c2::before { border-color: var(--s2); } .lg .c3::before { border-color: var(--s3); }
#tip { position: fixed; z-index: 20; pointer-events: none; background: var(--ink); color: var(--bg); padding: 6px 9px; border-radius: 4px; font-size: .82rem; line-height: 1.35; max-width: 240px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
#tip b { font-weight: 600; }
#tip .tk { display: inline-block; width: 12px; border-top: 2px solid; margin-right: 6px; vertical-align: 4px; }

/* tables */
.tblwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; color: var(--muted); vertical-align: bottom; white-space: nowrap; }
th.wrap { white-space: normal; min-width: 9em; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
td.n { white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr.hl td { background: var(--accent-soft); }
.pos { color: var(--good-ink); font-weight: 600; } .neg { color: var(--crit-ink); font-weight: 600; }

/* saving cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.card { border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--panel); padding: 12px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; cursor: pointer; align-items: start; }
.card:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.card input { margin-top: 5px; accent-color: var(--accent); width: 16px; height: 16px; }
.card b { font-weight: 600; }
.card .sv { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; white-space: nowrap; }
.card p { grid-column: 2 / -1; font-size: .88rem; color: var(--ink-2); }
.card .chg { grid-column: 2 / -1; font-size: .82rem; color: var(--muted); }
.target { display: grid; gap: 6px; }
.target .bar { height: 12px; background: var(--panel-2); border-radius: 3px; position: relative; overflow: hidden; }
.target .bar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.target .bar u { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.callout { border-left: 4px solid var(--ink); background: var(--panel); padding: 14px 18px; border-radius: 0 var(--r) var(--r) 0; display: grid; gap: 8px; }
.callout .hd { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.15; }
.callout p { color: var(--ink-2); max-width: 70ch; }
.quote { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.25; max-width: 34ch; }
.quote + small { color: var(--muted); }
.note { font-size: .85rem; color: var(--muted); max-width: 75ch; }

/* ops room */
.ops { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .ops { grid-template-columns: minmax(0, 1fr); } }
.decision { border: 2px solid var(--ink); border-radius: var(--r); background: var(--panel); padding: 16px; display: grid; gap: 12px; }
.decision h3 { font-size: 1.35rem; text-transform: none; letter-spacing: .01em; font-weight: 700; }
.decision .sit { color: var(--ink-2); font-size: .95rem; display: grid; gap: 8px; }
.decision .opts { display: grid; gap: 8px; }
.decision .opt { text-align: left; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--bg); padding: 10px 12px; cursor: pointer; display: grid; gap: 2px; }
.decision .opt:hover { border-color: var(--accent); }
.decision .opt b { font-weight: 600; }
.decision .opt span { font-size: .85rem; color: var(--ink-2); }
.said { display: grid; gap: 6px; font-size: .9rem; }
.said div { padding: 8px 10px; border-radius: 4px; background: var(--panel-2); }
.said b { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; display: block; color: var(--muted); }
.log { display: grid; gap: 6px; font-size: .88rem; max-height: 260px; overflow-y: auto; }
.log div { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 8px; color: var(--ink-2); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.log div b { font-family: var(--font-display); letter-spacing: .04em; color: var(--ink); }
.dots { display: flex; gap: 3px; flex-wrap: wrap; }
.dots i { width: 14px; height: 14px; border-radius: 2px; background: var(--panel-2); border: 1px solid var(--line); }
.dots i.done { background: var(--s1); border-color: var(--s1); } .dots i.dec { border-color: var(--ink); border-width: 2px; }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.three .panel { display: grid; gap: 4px; }
.three .panel.you { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.three .big { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; line-height: 1; }
.three small { color: var(--muted); }

/* fleet availability control */
.avail { display: grid; gap: 6px; max-width: 520px; }
.avail input { width: 100%; accent-color: var(--accent); }
.avail .ticks { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.statement { display: grid; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); }
.statement:first-child { border-top: 0; padding-top: 0; }
.statement q { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.2; quotes: none; }
.statement p { color: var(--ink-2); max-width: 75ch; }
footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); display: grid; gap: 6px; max-width: 80ch; }
@media (max-width: 560px) { h1 { font-size: 2rem; } .reveal .big { font-size: 2.6rem; } .wrap { padding-inline: 16px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- room: lobby, departments, votes ---------- */
.lobby { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .lobby { grid-template-columns: minmax(0, 1fr); } }
.code { font-family: var(--font-display); font-weight: 700; font-size: 5.5rem; letter-spacing: .14em; line-height: 1; }
.joinurl { font-size: 1.05rem; word-break: break-all; color: var(--ink-2); }
.qr { width: 190px; max-width: 100%; background: #ffffff; padding: 8px; border-radius: var(--r); line-height: 0; }
.qr svg, .qr img { width: 100%; height: auto; display: block; }
.seats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.seat { border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; background: var(--bg); display: grid; gap: 2px; min-height: 64px; align-content: start; }
.seat b { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; color: var(--ink-2); }
.seat span { font-size: .92rem; }
.seat.empty span { color: var(--muted); }
.depts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.dept { border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--panel); display: grid; align-content: start; min-width: 0; }
.dept > header { padding: 8px 12px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; align-items: baseline; }
.dept > header b { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: 1.05rem; }
.dept > header span { font-size: .82rem; color: var(--muted); }
.dept .who { padding: 6px 12px 0; font-size: .85rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dept label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 8px; padding: 8px 12px; cursor: pointer; align-items: start; }
.dept label + label { border-top: 1px solid var(--line); }
.dept label input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; }
.dept label b { font-weight: 600; font-size: .95rem; }
.dept label .sv { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.dept label p { grid-column: 2 / -1; font-size: .84rem; color: var(--ink-2); }
.tally { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; font-size: .92rem; }
.tally i { display: block; height: 12px; background: var(--s1); border-radius: 0 4px 4px 0; min-width: 2px; }
.tally span:nth-child(3n) { font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { border: 1px solid var(--line-strong); border-radius: 99px; padding: 2px 10px; font-size: .88rem; background: var(--panel); }
.pill b { font-variant-numeric: tabular-nums; }
.banner { border: 1px solid var(--warn); background: color-mix(in srgb, var(--warn) 14%, var(--panel)); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 8px; }
.banner pre { margin: 0; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; overflow-x: auto; font-size: .82rem; }
.decision .opt .votes { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--accent); }

/* ---------- phones ---------- */
.phone { max-width: 520px; margin: 0 auto; padding-inline: 16px; padding-block: 14px 40px; display: grid; gap: 16px; }
.phone .top { padding-block: 0; }
.phone h1 { font-size: 1.9rem; }
.phone .me { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; font-size: .9rem; color: var(--ink-2); border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.phone .me b { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); text-transform: uppercase; letter-spacing: .04em; }
.field { display: grid; gap: 4px; }
.field label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; color: var(--muted); font-weight: 600; }
.field input[type=text], .field select { padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--panel); font-size: 1.05rem; width: 100%; }
.field input.codein { font-family: var(--font-display); font-size: 2rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }
.bigbtn { width: 100%; padding: 14px 16px; font-size: 1.05rem; text-align: left; display: grid; gap: 2px; }
.bigbtn span { font-size: .88rem; font-weight: 400; opacity: .9; }
.picked { border-color: var(--accent) !important; box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft) !important; }
.kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.kpi div { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; background: var(--panel); display: grid; gap: 2px; }
.kpi small { color: var(--muted); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; font-size: .82rem; }
.kpi b { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.wait { text-align: center; padding: 28px 16px; color: var(--ink-2); }
.wait b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin-bottom: 6px; }

.kpi .chip { justify-self: start; }

/* ---------- version 2: the pace flag, stock in days, the overview ---------- */
.chain-scroll { padding-bottom: 18px; }
.tile .pc { font-size: .74rem; color: var(--muted); min-height: 1.2em; white-space: nowrap; }
.tile .flag { position: absolute; bottom: -10px; left: 8px; background: var(--ink); color: var(--bg); font-family: var(--font-display); font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 1px 6px; border-radius: 3px; white-space: nowrap; }
.gap .dy { font-size: .76rem; font-weight: 600; color: var(--ink); text-align: center; line-height: 1.15; white-space: nowrap; }
.gap .dy small { display: block; font-weight: 400; font-size: .68rem; color: var(--muted); }
.gap .dy.none { font-weight: 400; color: var(--muted); }
.gap .tr { font-size: .66rem; color: var(--muted); white-space: nowrap; line-height: 1.1; }
.legend .l-pace::before { background: var(--ink); border-color: var(--ink); }
.rounds { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.rounds li { padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; display: grid; gap: 3px; align-content: start; }
.rounds li b { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; }
.rounds li span { font-size: .95rem; color: var(--ink-2); }
.reading-list { margin: 0; padding-left: 1.15em; display: grid; gap: 6px; max-width: 78ch; color: var(--ink-2); }
.reading-list b { color: var(--ink); }
.setting { max-width: 66ch; }
details.overview { border-top: 2px solid var(--ink); padding-top: 14px; min-width: 0; }
details.overview > summary { cursor: pointer; font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .04em; text-transform: uppercase; }
details.overview .stack > * { min-width: 0; }

/* ---------- version 3: the flow room's reference level ---------- */
.tile .ld { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.tile .ld.over { color: var(--crit-ink); font-weight: 600; }
.chart .daykey { margin: -2px 0 8px; font-size: .78rem; }

/* ---------- version 5: a button that was pressed too early says why ---------- */
.note.nudge { color: var(--crit-ink); font-weight: 600; }

/* The results board, and the panel where a player names the design that goes on it. */
.board-entry input[type=text] { padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--panel); min-width: 0; flex: 0 1 16em; }
.kpi.wide { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.kpi.wide div { align-content: start; }
td.who { font-weight: 600; white-space: nowrap; max-width: 12em; overflow: hidden; text-overflow: ellipsis; }
td.nw { white-space: nowrap; }
#board-top td:nth-child(3) { min-width: 17em; }
#board-top th, #board-top td, #board-recent th, #board-recent td { padding-inline: 8px; }   /* the design: on a phone the table scrolls sideways rather than squeezing it */
#save-status { color: var(--ink-2); }
