/* Who's Around v2 - dark-first, one-thumb. Design rules (Shaun's review, 2026-10-20):
   - sections are separated by spacing + thin dividers, not boxed cards
   - one focal point: operational coverage
   - three font weights only: 400 text, 600 emphasis, 800 staffing counts + operational alerts
   - red only for real shortage / emergency states */
:root {
  color-scheme: dark;
  --bg: #0c0e12;
  --bg-2: #12151a;          /* subtle background shift for grouped areas */
  --bg-3: #191d24;          /* inputs, secondary buttons */
  --line: #20252e;          /* thin dividers */
  --line-2: #2c323d;
  --text: #edf0f4;
  --text-2: #aab2bf;
  --muted: #747d8c;
  --ok: #3dbd7d;
  --warn: #e3a043;
  --bad: #e5484d;
  --bad-ink: #ff9c9f;
  --idle: #6b7380;
  --oos: #a98be0;
  --accent: #4b8fe0;        /* focus + links + selection, never status */
  /* chart series (dataviz reference palette, dark steps, validated on --bg-2) */
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --tap: 50px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.45 var(--font); }
body { min-height: 100vh; min-height: 100dvh; overscroll-behavior-y: none; }
b, strong, h1, h2, h3, h4, th { font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }

/* ---------- shell ---------- */
#app { max-width: 560px; margin: 0 auto; padding: 0 18px calc(var(--nav-h) + var(--safe-b) + 28px); }
.top { display: flex; align-items: flex-end; gap: 10px; padding: calc(var(--safe-t) + 14px) 18px 12px; margin: 0 -18px;
  position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .dept { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top h1 { margin: 0; font-size: 21px; }
.hall-pick { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font-weight: 600; font-size: 21px; cursor: pointer; }
.hall-pick svg { width: 18px; height: 18px; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; padding-bottom: 3px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.live.reconnecting i { background: var(--warn); }
.live.offline i { background: var(--bad); }
.viewonly { font-size: 12px; color: var(--text-2); margin-left: 8px; }

/* ---------- sections (replace boxed cards) ---------- */
.card, .section { padding: 20px 0; border-top: 1px solid var(--line); }
.top + .card, .top + .section, .hero + .card, .hero + .section { border-top: 0; }
.card h2, .section-h { margin: 0 0 12px; font-size: 13px; color: var(--muted); font-weight: 600; display: flex; align-items: baseline; gap: 8px; }
.card h2 .right, .section-h .right { margin-left: auto; color: var(--muted); font-weight: 400; font-size: 13px; }
.section-h { margin: 24px 0 8px; }
.shade { background: var(--bg-2); margin: 0 -18px; padding-left: 18px; padding-right: 18px; }

/* ---------- buttons ---------- */
.btn { min-height: var(--tap); border-radius: 12px; border: 0; background: var(--bg-3); color: var(--text); font-weight: 600; font-size: 16px;
  padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: background .15s, transform .06s; }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .45; cursor: default; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn.block { width: 100%; }
.btn.big { min-height: 56px; font-size: 17px; }
.btn.primary { background: var(--text); color: var(--bg); }
.btn.go { background: var(--ok); color: #05210f; }
.btn.danger { background: var(--bad); color: #fff; }
.btn.warn { background: rgba(227, 160, 67, .16); color: #f2c98d; }
.btn.ghost { background: transparent; color: var(--text-2); }
.btn.subtle { background: var(--bg-3); }
.btn.small { min-height: 40px; font-size: 14px; padding: 0 12px; border-radius: 10px; }
.btn.icon { width: var(--tap); padding: 0; }
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-grid .span2 { grid-column: span 2; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 10px; border-top: 1px solid var(--line); }
.quick button, .quick a { min-height: 56px; background: none; border: 0; color: var(--text-2); font-size: 13px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.quick button + button, .quick button + a, .quick a + button { border-left: 1px solid var(--line); }
.quick svg { width: 20px; height: 20px; }
.quick .on { color: var(--warn); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; min-width: 56px; padding: 0 14px; border-radius: 22px; border: 0; background: var(--bg-3); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* ---------- status: dot + muted text (no capsules) ---------- */
.pill, .st { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.pill::before, .st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--idle); flex: none; }
.available::before { background: var(--ok); }
.delayed::before { background: var(--warn); }
.unavailable::before { background: var(--idle); }
.oos::before { background: var(--oos); }
.unclaimed::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.pending::before { background: var(--warn); }
/* one rank badge style for every rank */
.rank { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 24px; border-radius: 6px; flex: none;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: var(--bg-3); color: var(--text-2); }
.tag { font-size: 12px; color: var(--muted); font-weight: 400; }
.tag.test { color: var(--oos); }

/* ---------- coverage hero (the focal point) ---------- */
.hero { padding: 22px 0 20px; }
.hero .state { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero .state i { width: 9px; height: 9px; border-radius: 50%; }
.hero.ok .state { color: var(--ok); } .hero.ok .state i { background: var(--ok); }
.hero.short .state { color: var(--bad); } .hero.short .state i { background: var(--bad); }
.hero .main { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.hero .count { font-size: 64px; line-height: .95; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero.short .count { color: var(--bad); }
.hero .what { font-size: 18px; color: var(--text-2); }
.hero .what span { color: var(--muted); font-size: 15px; }
.hero .sub { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; color: var(--text-2); font-size: 15px; }
.hero .sub b { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.hero .sub .short b, .hero .sub .short { color: var(--bad-ink); }
.hero .duty { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.hero .duty svg { width: 16px; height: 16px; color: var(--muted); }
.hero .duty.empty { color: var(--warn); }
.hero .duty button { margin-left: auto; }
.hero .note { margin-top: 12px; font-size: 14px; color: var(--bad-ink); }

/* ---------- your status ---------- */
.me .who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.me .who .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--idle); }
.me.available .who .dot { background: var(--ok); } .me.delayed .who .dot { background: var(--warn); } .me.oos .who .dot { background: var(--oos); }
.me .label { font-size: 19px; font-weight: 600; }
.me .detail { font-size: 14px; color: var(--text-2); }

/* ---------- banners (inline, quiet) ---------- */
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; font-size: 14px; color: var(--text-2); border-top: 1px solid var(--line); }
.banner svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.banner.warn svg { color: var(--warn); }
.banner.bad { color: var(--bad-ink); }
.banner b { color: var(--text); }
.banner .btn { margin-left: auto; }

/* ---------- staffing check (operational alert: the one red block) ---------- */
.alert-card { background: #2a1416; margin: 0 -18px; padding: 18px; border-bottom: 1px solid #4a2023; }
.alert-card .kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bad-ink); }
.alert-card .who { font-size: 20px; font-weight: 800; line-height: 1.25; margin-top: 4px; }
.alert-card .meta { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.alert-card .note { margin-top: 6px; font-weight: 600; }
.tally { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px; }
.tally div { text-align: left; }
.tally b { display: block; font-size: 30px; line-height: 1.05; font-weight: 800; font-variant-numeric: tabular-nums; }
.tally span { font-size: 12px; color: var(--text-2); }
.tally .t-resp b { color: var(--ok); } .tally .t-del b { color: var(--warn); } .tally .t-cant b { color: var(--text-2); } .tally .t-none b { color: var(--muted); }
.eta-row { margin-top: 8px; font-size: 13px; color: var(--text-2); }
.answer { margin-top: 16px; }
.answer .lbl { font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.groups { margin-top: 14px; display: grid; gap: 10px; }
.group h4 { margin: 0 0 2px; font-size: 12px; color: var(--muted); font-weight: 600; }
.group ul { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--text); }
.group li { display: inline; }
.group li + li::before { content: ", "; color: var(--muted); }
.group li .eta { color: var(--ok); margin-left: 4px; font-variant-numeric: tabular-nums; }
.mine { display: inline-flex; gap: 6px; align-items: center; color: #9be3bd; }
.mine svg { width: 16px; height: 16px; }
.alert-foot { display: flex; margin-top: 12px; }
.alert-foot .btn { padding: 0; min-height: 40px; }
.alert-foot .end { margin-left: auto; color: var(--bad-ink); }

/* ---------- forecast ---------- */
.heat { display: grid; grid-template-columns: 34px repeat(24, 1fr); gap: 2px; align-items: center; }
.heat .d { font-size: 11px; color: var(--muted); line-height: 1; }
.heat .c { aspect-ratio: 1; width: 100%; border: 0; padding: 0; border-radius: 2px; cursor: pointer; background: #1d4d36; }
.heat .c.tight { background: #6b5124; }
.heat .c.gap { background: var(--bad); }
.heat .c.pad { background: transparent; cursor: default; }
.heat .c.now { box-shadow: inset 0 0 0 1.5px var(--text); }
.heat .c.sel { box-shadow: 0 0 0 2px var(--text); position: relative; z-index: 1; }
.heat .ax { font-size: 10px; color: var(--muted); grid-column: span 6; padding-top: 4px; }
.fc-key { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.fc-key span { display: inline-flex; align-items: center; gap: 6px; }
.fc-key i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.fc-detail { margin-top: 14px; padding: 12px 14px; background: var(--bg-2); border-radius: 10px; font-size: 14px; color: var(--text-2); min-height: 48px; }
.fc-detail .crew { display: flex; gap: 18px; margin: 2px 0 4px; }
.fc-detail .crew b { font-size: 22px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.fc-detail .crew .short b { color: var(--bad); }
.fc-detail .when { color: var(--text); font-weight: 600; }
.gaps { margin: 0; padding: 0; list-style: none; }
.gaps li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.gaps li:first-child { border-top: 0; }
.gaps li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); flex: none; transform: translateY(-1px); }
.gaps li span { margin-left: auto; color: var(--bad-ink); white-space: nowrap; }

/* ---------- roster ---------- */
.roster { list-style: none; margin: 0; padding: 0; }
.roster li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); min-height: 60px; }
.roster li:first-child { border-top: 0; }
.roster .name { font-size: 16px; }
.roster li.me .name { font-weight: 600; }
.roster .sub { font-size: 13px; color: var(--muted); margin-top: 1px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.roster .sub svg { width: 13px; height: 13px; }
.roster .st { margin-left: auto; justify-content: flex-end; min-width: 96px; }
.roster li.unclaimed .name { color: var(--text-2); }
.more { width: 40px; height: 44px; border: 0; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; margin-right: -8px; }
.more svg { width: 20px; height: 20px; }
.linkbtn { border: 0; background: none; color: var(--accent); font-size: 14px; font-weight: 600; padding: 10px 0 10px 8px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; flex: none; }
.linkbtn svg { width: 16px; height: 16px; }
.search { width: 100%; min-height: 46px; border-radius: 10px; border: 0; background: var(--bg-3); padding: 0 14px 0 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23747d8c' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center; }

/* ---------- forms ---------- */
.field { display: block; margin-top: 14px; }
.field > span { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; min-height: var(--tap); border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); padding: 0 14px; font-size: 17px; }
textarea.input { padding: 12px 14px; min-height: 84px; resize: vertical; }
.input:focus, .search:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.pin { letter-spacing: .5em; font-size: 24px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
.err { color: var(--bad-ink); font-size: 14px; margin-top: 10px; min-height: 1em; }
.radio { display: flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 6px 0; border-top: 1px solid var(--line); cursor: pointer; }
.radio:first-of-type { border-top: 0; }
.radio input { width: 20px; height: 20px; accent-color: var(--ok); }
.radio .grow small { display: block; color: var(--muted); font-size: 12px; }
.switch { display: flex; align-items: center; gap: 12px; min-height: var(--tap); cursor: pointer; }
.switch input { appearance: none; width: 48px; height: 28px; border-radius: 14px; background: var(--bg-3); position: relative; flex: none; cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text-2); transition: transform .15s; }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(20px); background: #fff; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper output { min-width: 40px; text-align: center; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg-2); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { min-height: 40px; border: 0; background: none; border-radius: 8px; font-weight: 600; color: var(--muted); cursor: pointer; font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--bg-3); color: var(--text); }
.copy { display: flex; gap: 8px; margin-top: 10px; }
.copy input { flex: 1; min-width: 0; font-size: 13px; }

/* ---------- lists / tables / stats ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.list > li:first-child { border-top: 0; }
.list > li > svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); padding: 0 6px 8px; }
.table td { padding: 10px 6px; border-top: 1px solid var(--line); vertical-align: middle; }
.table td.r, .table th.r { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.click { cursor: pointer; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .v.word { font-size: 18px; font-weight: 600; letter-spacing: 0; }
.stat .s { font-size: 12px; color: var(--muted); }

/* ---------- charts ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--muted); font-size: 11px; }
.chart .tip { position: absolute; pointer-events: none; background: #0c0e12f2; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px;
  font-size: 12px; min-width: 140px; transform: translate(-50%, -100%); white-space: nowrap; z-index: 3; }
.chart .tip .r { display: flex; align-items: center; gap: 6px; }
.chart .tip i { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-2); margin: 0 0 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.legend i.sq { width: 10px; height: 10px; border-radius: 2px; }

/* ---------- bottom nav: five equal items ---------- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--bg); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.nav .in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); height: var(--nav-h); }
.nav a, .nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px;
  background: none; border: 0; cursor: pointer; position: relative; }
.nav svg { width: 22px; height: 22px; }
.nav .on { color: var(--text); }
.nav .badge { position: absolute; top: 10px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }

/* ---------- sheets + toasts ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 60; opacity: 0; transition: opacity .18s; }
.scrim.on { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-width: 560px; margin: 0 auto; background: var(--bg-2);
  border-radius: 18px 18px 0 0; padding: 10px 18px calc(var(--safe-b) + 18px); max-height: 86vh; overflow: auto; transform: translateY(100%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.sheet.on { transform: none; }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 0 auto 14px; }
.sheet h3 { margin: 0 0 4px; font-size: 19px; }
.sheet .lead { color: var(--text-2); margin: 0 0 14px; font-size: 15px; }
.sheet .actions { display: grid; gap: 8px; margin-top: 16px; }
.sheet .menu { gap: 0; }
.sheet .menu .btn { justify-content: flex-start; background: none; border-radius: 0; border-top: 1px solid var(--line); font-weight: 400; }
.sheet .menu .btn:first-child { border-top: 0; }
.sheet .menu .btn.sel { color: var(--text); font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); transform: translateX(-50%) translateY(16px); z-index: 80;
  background: var(--text); color: var(--bg); font-weight: 600; border-radius: 12px; padding: 11px 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  opacity: 0; transition: opacity .2s, transform .2s; max-width: calc(100vw - 28px); font-size: 15px; pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%); }
.toast.bad { background: var(--bad); color: #fff; }
/* A sheet owns the bottom of the screen: toasts move to the top so they never cover it. */
body.sheet-open .toast { bottom: auto; top: calc(var(--safe-t) + 12px); transform: translateX(-50%) translateY(-16px); }
body.sheet-open .toast.on { transform: translateX(-50%); }

/* ---------- auth ---------- */
.auth { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; }
.auth .card { border-top: 0; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.brand .logo { width: 46px; height: 46px; border-radius: 12px; background: var(--bad); display: grid; place-items: center; }
.brand .logo svg { width: 28px; height: 28px; color: #fff; }
.brand b { font-size: 22px; display: block; }
.brand span { color: var(--muted); font-size: 14px; }
.ios-steps { counter-reset: s; list-style: none; padding: 0; margin: 8px 0 0; }
.ios-steps li { counter-increment: s; display: flex; gap: 12px; align-items: center; padding: 9px 0; font-size: 15px; }
.ios-steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: var(--bg-3); display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; }
.ios-steps svg { width: 18px; height: 18px; vertical-align: -4px; color: var(--accent); }
.skeleton { height: 120px; border-radius: 10px; background: linear-gradient(90deg, var(--bg-2) 0, var(--bg-3) 50%, var(--bg-2) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; margin-top: 16px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- print + capture ---------- */
@media print {
  .nav, .top .live, .no-print { display: none !important; }
  body, .card { background: #fff !important; color: #111 !important; }
  #app { max-width: none; padding: 0; }
}
.capture .nav, .capture .top { position: static; }
.capture .toast { display: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* review pass 2 */
.heat { grid-template-columns: 46px repeat(24, 1fr); }
.heat .d { white-space: nowrap; font-size: 11px; }
.roster .sub { display: block; }
.roster .sub svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }
.quick button, .quick a { justify-content: flex-start; padding: 10px 2px 8px; font-size: 12px; line-height: 1.2; text-align: center; gap: 6px; }
.stats-top { padding: 18px 0 16px; }
.top + .seg { margin-top: 16px; }
