:root {
  color-scheme: light dark;
  --bg: #0b0d12;
  --paper: #eef2f7;
  --muted: #9aa4b2;
  --line: #222936;
  --holo: #27e08a;
  --accent: #7c3aed;
  --card: #11151c;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fb;
    --paper: #12161f;
    --muted: #5b6472;
    --line: #dde3ec;
    --holo: #0b7f4f;   /* 4.7:1 on --bg, 5.0:1 on --card — #0f9d63 failed AA (3.3:1) */
    --accent: #6d28d9;
    --card: #ffffff;
  }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; background: var(--bg); color: var(--paper); }
a { color: var(--holo); }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
header { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font-weight: 800; text-decoration: none; color: var(--paper); }
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-mark { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px;
  background: var(--accent); font-size: 13px; }

/* Top nav (every artboard carries it). Buttons are the disabled sections, so they must not look
   like the live link — the active item takes the accent underline the artboards show. */
/* The nav grew from 2 items to 7 (Watch · Pokémon Center · Settings · Windows + 3 "Soon"), which
   at 1280px pushed the account chip into the sign-out button and wrapped "Sign out" onto two
   lines. `min-width: 0` lets the nav be the thing that gives, and the scroller keeps every item
   reachable instead of clipping the tail. */
.top-nav { display: flex; align-items: center; gap: 18px; margin-left: 24px; margin-right: auto;
  min-width: 0; overflow-x: auto; scrollbar-width: none; }
.top-nav::-webkit-scrollbar { display: none; }
.top-nav-item { white-space: nowrap; background: none; border: 0; padding: 18px 0 16px; font: inherit; font-size: 14px;
  color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.top-nav-item.active { color: var(--paper); border-bottom-color: var(--accent); }
.top-nav-item:disabled { color: color-mix(in srgb, var(--muted) 55%, transparent); cursor: default; }
.top-nav-item:not(:disabled):hover { color: var(--paper); }
.top-nav-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Visible "coming soon" marker for disabled nav (#779) — a `title=` tooltip is invisible on touch. */
.soon-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 6px; }
.top-nav-item .soon-badge { margin-left: 6px; }
.account-chip { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-left: 16px; }
/* Never let the sign-out control wrap — a two-line button in a 56px bar reads as a broken header. */
.account-chip > * { white-space: nowrap; }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 999px;
  background: var(--line); color: var(--paper); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.avatar:empty { display: none; }
@media (max-width: 900px) { .top-nav { display: none; } }
button { font: inherit; cursor: pointer; }
.ghost { background: transparent; color: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; }
.hidden { display: none; }
main { padding: 28px 20px; max-width: 720px; margin: 0 auto; }
.loading, .empty { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 14px; }
.card h1 { margin: 0 0 8px; font-size: 20px; }
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0; color: var(--muted); font-size: 12px; text-align: center; }

/* ── Watch board table (B2, #800 — replaces the card grid) ──────────────────────────────────── */
main > h1 { margin: 0 0 16px; font-size: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; }
.chip.active { color: var(--paper); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.chip:focus-visible, .search-field input:focus-visible, .filter-control select:focus-visible, .board-table th.sortable:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip-count { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 11px; opacity: 0.75; }

/* Hero: title + derived summary on the left, search on the right; wraps to a column once the
   search field can no longer sit beside the summary without crowding it. */
main.board-view { max-width: 1240px; }
.board-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.board-hero h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.01em; }
.board-summary { margin: 0; color: var(--muted); font-size: 14px; max-width: 60ch; }
.search-field { flex: 0 0 auto; min-width: 280px; }
.search-field input { width: 100%; background: var(--card); color: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.search-field input::placeholder { color: var(--muted); }

.board-filters { align-items: center; }
.board-filters-spacer { flex: 1 1 auto; }
/* A sibling of `.chips`, not a member of it (#779) — `.chips` goes nowrap+scroll on phone, which
   would carry the window control off-screen with no scrollbar, fade or arrow to say so. Retailer/
   Category/Window (#811) share `.filter-control` — all three are the same "label + <select>" shape. */
.board-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 12px; }
.filter-control { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.filter-control select { background: transparent; color: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font-size: 13px; max-width: 220px; }
/* #794: the zero-drops-ever exclusion, stated rather than silent. */
.hidden-no-drops { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.link-btn { background: none; border: none; padding: 0; color: var(--accent); font-size: inherit; cursor: pointer; text-decoration: underline; }
.link-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.board-count { margin: 0 0 10px; color: var(--muted); font-size: 12px; }

/* Table (#800, landing/admin.html's board is the pattern followed). `.tablewrap` owns the
   horizontal scroll so the PAGE body never scrolls sideways at any width; a bare 9-column table
   would otherwise force one or the other on a phone. Store and Item stay pinned via
   `position: sticky` while the rest of the row scrolls under them — chosen over a stacked/
   condensed-card fallback because it keeps every column's header directly above its own cells at
   every width, so the sortable headers and the strip/restocks alignment never need a second,
   diverging phone-only layout. */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.board-table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 13px; }
/* #886: horizontal padding trimmed from 12px to 6px to make room for the new Price column — at
   1280px/365-day-window (52 weekly Activity cells, the widest combination the #810 harness shoots),
   the table was already at exactly 100% width with zero slack; adding a column with no free space
   to grow into pushed `.tablewrap` into a horizontal scroll the harness's acceptance bar forbids. */
.board-table th, .board-table td { padding: 10px 6px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.board-table thead th { z-index: 2; background: var(--card); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; }
.board-table th.sortable { cursor: pointer; user-select: none; }
.board-table th.sortable:hover { color: var(--paper); }
.board-table th[data-dir="asc"]::after { content: " ▲"; font-size: 9px; }
.board-table th[data-dir="desc"]::after { content: " ▼"; font-size: 9px; }
.board-table tbody tr:last-child td { border-bottom: none; }
.board-table tbody tr[data-key] { cursor: pointer; }
/* Hover and muted styling must stay OPAQUE on the sticky columns: a transparent tint or a row
   opacity lets the cells scrolling underneath show through Store/Item (#808 review). Mix the
   tint into the card colour; de-emphasise muted rows by colour, never by opacity. */
.board-table tbody tr:hover td { background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.board-table tbody tr.muted td, .board-table tbody tr.muted .row-link { color: var(--muted); }
.board-table .col-item { white-space: normal; min-width: 220px; }
.board-table .col-store, .board-table .col-item { position: sticky; background: var(--card); z-index: 1; }
/* Store is FIXED-width, not content-sized, because Item's sticky `left` must equal Store's actual
   rendered width — a content-sized Store ("Pokémon Center" + a badge) grew past the offset and the
   sticky Item cell painted over Store's right edge, covering the ↗ link #785 introduced. The label
   ellipsises inside the fixed box; the badge moved to the Item cell. Keep these two numbers equal. */
.board-table .col-store { left: 0; width: 160px; min-width: 160px; max-width: 160px; box-sizing: border-box; overflow: hidden; }
.board-table .col-store .store-label { display: inline-block; max-width: 92px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.board-table .col-item { left: 160px; }
/* The header cells are sticky on the horizontal axis at Store/Item too — they must out-rank the
   body's sticky columns (z-index: 1 above) or a scrolled row can paint over them. (There is no
   vertical stickiness: `.tablewrap` scrolls only horizontally, the page scrolls vertically.) */
.board-table thead th.col-store, .board-table thead th.col-item { z-index: 3; }
.board-table tbody tr:hover .col-store, .board-table tbody tr:hover .col-item { background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.board-table .num { text-align: right; font-variant-numeric: tabular-nums; }

.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--muted); margin-right: 6px; }
.dot-target { background: #e0323c; }
.dot-walmart { background: #0071ce; }
.dot-bestbuy { background: #0a5eb0; }
.dot-pokemoncenter { background: #f5c400; }
.dot-pbandai { background: var(--accent); }
.badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; margin-left: 6px; }
.badge-muted { color: var(--muted); }
.pill { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.pill-live { background: var(--holo); color: var(--bg); }
.pill-quiet { background: var(--line); color: var(--muted); }
.pill-street { background: color-mix(in srgb, var(--accent) 24%, transparent); color: var(--paper); }
.cell-empty { color: var(--muted); }
.cell-value { font-family: ui-monospace, Menlo, monospace; font-weight: 600; }
.cell-note { display: block; margin-top: 2px; font-size: 11px; font-weight: 400; color: var(--muted); white-space: normal; }
.cell-sub { display: block; font-size: 12px; color: var(--muted); }
/* #811: the Item cell's own retailer dot+label — folded in for the phone breakpoint (below), where
   Store drops out as a separate column. Hidden everywhere Store still has its own column. */
.item-store { display: none; }
/* #785: the retailer is now a small, explicitly marked cell affordance (never the whole row's
   unannounced link, which the card was) — `.row-link` below is what the row itself opens. */
.ext-link { display: inline-block; margin-left: 4px; color: var(--muted); text-decoration: none; }
.ext-link:hover, .ext-link:focus-visible { color: var(--paper); }
.row-link { color: inherit; text-decoration: none; font-weight: 600; }
.row-link:hover, .row-link:focus-visible { text-decoration: underline; }
.strip { display: flex; gap: 2px; min-width: 90px; }
.strip-cell { flex: 1; height: 16px; min-width: 3px; border-radius: 2px; background: var(--line); }
.strip-cell.hit { background: var(--holo); }
.follow-btn.star { border: none; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; padding: 2px 4px; cursor: pointer; }
.follow-btn.star.following { color: var(--holo); }
.follow-btn.star:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ── Item detail page (E1 shell BF5; rebuilt to Item.dc.html's anatomy, #887) ────────────────── */
main.item-view { max-width: 1240px; }
.breadcrumb { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover, .breadcrumb a:focus-visible { color: var(--paper); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--paper); }
.item-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.item-head-main { display: flex; flex-direction: column; gap: 8px; }
.item-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.item-head h1 { margin: 0; font-size: 26px; letter-spacing: -0.01em; }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.item-id { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.item-price { font-size: 13px; }
.item-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.item-follow-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; background: var(--card); color: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.item-follow-btn.following { border-color: var(--accent); }
.item-follow-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.item-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.item-tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.item-tile-heading { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.item-tile-value { font-family: ui-monospace, Menlo, monospace; font-size: 22px; font-weight: 600; }
.item-tile-value-text { font-family: inherit; font-size: 16px; line-height: 1.3; }
.item-tile-caption { font-size: 13px; color: var(--muted); }
.item-columns { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-bottom: 14px; align-items: start; }
.item-side { display: flex; flex-direction: column; gap: 14px; }
.item-section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 18px 0 12px; }
.item-section-head:first-child { margin-top: 0; }
.item-section-head h2 { margin: 0; font-size: 16px; }
.item-section-note { font-size: 12px; color: var(--muted); }
/* Last-30-days strip: a bigger, always-day-granularity sibling of the board table's own .strip —
   binary lit/unlit per day, never a proportional height (there is nothing to be proportional TO,
   a day either saw a drop or it didn't). */
.item-strip { display: flex; align-items: flex-end; gap: 4px; height: 60px; }
.item-strip-col { flex: 1; display: flex; align-items: flex-end; height: 100%; }
.item-strip-bar { width: 100%; height: 6px; background: var(--line); border-radius: 3px; }
.item-strip-bar.hit { height: 28px; background: var(--holo); }
.item-hist { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.item-hist-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.item-hist-bar { width: 100%; background: var(--accent); border-radius: 3px 3px 0 0; }
.item-hist-bar.zero { background: var(--line); }
.item-hist-label { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--muted); }
.item-dow-row { display: grid; grid-template-columns: 36px 1fr 24px; align-items: center; gap: 10px; }
.item-dow-row + .item-dow-row { margin-top: 8px; }
.item-dow-day { font-size: 13px; color: var(--paper); }
.item-dow-track { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.item-dow-fill { display: block; height: 100%; background: var(--holo); border-radius: 999px; }
.item-dow-count { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--muted); text-align: right; }
.item-expect { background: color-mix(in srgb, var(--accent) 10%, var(--card)); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.item-expect-eyebrow { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: color-mix(in srgb, var(--accent) 60%, var(--paper)); margin-bottom: 6px; }
.item-expect p { margin: 0; font-size: 14px; line-height: 1.5; }
.episode-list { list-style: none; margin: 0; padding: 0; }
.episode-row { display: grid; grid-template-columns: 100px 100px 1fr; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.episode-row:first-child { border-top: none; }
.episode-channels { color: var(--muted); font-size: 13px; }

/* ── PKC windows page (E5, #873) ─────────────────────────────────────────────────────────── */
main.pkc-view { max-width: 1240px; }
.pkc-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.pkc-header h1 { margin: 4px 0 6px; font-size: 26px; letter-spacing: -0.02em; }
.pkc-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.pkc-dot { width: 7px; height: 7px; border-radius: 50%; background: #f5c400; display: inline-block; }
.pkc-subhead { margin: 0; color: var(--muted); font-size: 14px; max-width: 70ch; }
.pill-free { background: color-mix(in srgb, var(--holo) 18%, transparent); color: var(--holo); }
.pkc-columns { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; align-items: start; }
.pkc-heatmap-card h2, .pkc-columns .card h2 { margin: 0 0 12px; font-size: 16px; }
/* A heatmap has to read as a MAP: one continuous field your eye scans for density. The first cut
   drew rounded 8px pills separated by cell padding, so it read as scattered lozenges — no shape,
   no comparison, and uneven column widths made it look accidental. Fixed layout equalises the
   columns, border-spacing gives a hairline gutter instead of padding, and every in-range cell is
   painted (zeros included, at the faintest tint) so the grid is unbroken. */
.pkc-heatmap { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 2px; font-size: 13px; }
.pkc-heatmap th, .pkc-heatmap td { padding: 0; text-align: center; }
.pkc-heatmap thead th { padding-bottom: 6px; color: var(--muted); font-weight: 600; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.pkc-heatmap tbody th[scope="row"] { width: 116px; padding-right: 10px; text-align: right; color: var(--muted); font-weight: 400; font-size: 12px; white-space: nowrap; }
/* Zeros are part of the map, not an absence to apologise for — a faint tile, never a dot. */
.pkc-cell { height: 30px; border-radius: 3px; font-family: ui-monospace, Menlo, monospace; font-weight: 600; font-size: 12px; background: rgba(124,58,237,0.07); color: transparent; }
/* Heat colour is set INLINE as a concrete rgba (app.js pkcCellHtml) — see that comment for why
   color-mix()/custom-property backgrounds were removed. This rule owns only the text colour, which
   must follow the theme rather than the fill. */
.pkc-cell-heat { color: var(--paper); }
.pkc-total-col { width: 54px; padding-left: 10px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.pkc-col-totals th, .pkc-col-totals td { padding-top: 8px; font-family: ui-monospace, Menlo, monospace; color: var(--muted); font-weight: 400; font-size: 12px; }
.pkc-col-totals th[scope="row"] { text-transform: uppercase; letter-spacing: 0.04em; font-size: 11px; }
/* ONE grid for the whole list, with each row as `display: contents`. A per-row grid (or flex with
   space-between) sizes its tracks from that row's own text, so the weekday column drifted a few
   pixels row to row as date and time widths changed — visibly ragged (Tori, 2026-08-31). Columns
   can only line up when they belong to the SAME grid. */
.pkc-recent-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr auto minmax(0, auto); column-gap: 14px; align-items: baseline; }
.pkc-recent-row { display: contents; }
.pkc-recent-row > * { padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.pkc-recent-row:first-child > * { border-top: none; }
.pkc-recent-date { font-weight: 600; }
.pkc-recent-weekday, .pkc-recent-time { color: var(--muted); }
.pkc-recent-weekday { justify-self: start; min-width: 34px; }
.pkc-recent-time { font-family: ui-monospace, Menlo, monospace; font-size: 12px; text-align: right; }
.pkc-recent-row:first-child { border-top: none; }
.pkc-recent-date { font-weight: 600; }
.pkc-recent-weekday, .pkc-recent-time { color: var(--muted); }
.pkc-recent-time { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.pkc-source { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
/* ── Settings (W1, #844) ──────────────────────────────────────────────────────────────────── */
.settings-hint { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.settings-row-label { font-size: 14px; }
.settings-row-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.settings-row select { background: var(--card); color: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.danger { color: #e0323c; }
/* A real checkbox styled as a switch — never a fake div toggle, so keyboard/AT operate it for free. */
.switch { appearance: none; flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--line); border: none; position: relative; cursor: pointer; margin: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--card); transition: transform 0.15s ease; }
.switch:checked { background: var(--holo); }
.switch:checked::after { transform: translateX(16px); }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch:disabled { opacity: 0.5; cursor: default; }

/* ── Windows page (E4, #874) ─────────────────────────────────────────────────────────────── */
.windows-header { margin-bottom: 20px; }
.windows-header h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.02em; }
.windows-subhead { margin: 0; color: var(--muted); font-size: 14px; max-width: 60ch; }
.window-row-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.window-retailer { font-weight: 600; flex: 1 1 auto; }
.window-row-body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 6px; }
.window-days { font-weight: 600; }
.window-time { font-family: ui-monospace, Menlo, monospace; color: var(--muted); font-size: 13px; }
.window-caption { margin: 0; color: var(--muted); font-size: 13px; }
.pill-static { background: var(--line); color: var(--paper); }
.pill-measured { background: color-mix(in srgb, var(--holo) 18%, transparent); color: var(--holo); }
.pill-sheet { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--paper); }

/* Bottom tab bar (Phone.dc.html) — phone-only chrome, shown by the media query below. */
.tab-bar { display: none; }

/* Column priority (#811): below tablet width, Store/Item/Status/Restocks/Activity/★ still fit by
   shrinking, not by hiding — Activity (the 365d strip) must stay fully visible at 768px, so its
   per-cell floor has to shrink along with everything else rather than being the thing that forces
   `.tablewrap` to scroll. Only below 640px (next block) does a column actually disappear. Placed
   AFTER the base table rules above (same reason the phone block below is) — an earlier `.strip`/
   `.strip-cell`/`.pill` override here would lose the cascade to those later same-specificity rules. */
@media (max-width: 900px) {
  .board-table { min-width: 0; font-size: 12px; }
  .board-table th, .board-table td { padding: 8px; }
  .board-table thead th { font-size: 10px; }
  /* Store folds into Item from tablet width down (`.item-store`, app.js — dot, label AND the ↗
     link). An 84px Store column clipped its own ↗ for "Pokémon Center"/"P-Bandai" at 768 (#814
     review), and the freed width is what lets the pill and Last live stay on one line. Item is
     then the only sticky column, at left 0. */
  .board-table .col-store { display: none; }
  /* #886: Price is the lowest-priority column — it drops out here, before Item/Status ever would,
     freeing the width Store's fold-in and the pill/Last live one-liner above need. */
  .board-table .col-price { display: none; }
  .item-store { display: flex; align-items: center; gap: 4px; margin-bottom: 2px; font-size: 11px; color: var(--muted); font-weight: 400; }
  .item-store .ext-link { margin-left: 2px; }
  .board-table .col-item { position: sticky; left: 0; min-width: 130px; }
  .strip { min-width: 0; gap: 1px; }
  .strip-cell { min-width: 1.5px; height: 14px; }
  /* Last live shows the date only; the time span is hidden rather than wrapped — a timestamp split
     across four lines ("Sat 08-" / "29" / "2:49 PM" / "ET") is not a shorter timestamp. */
  .board-table .col-lastLive .ll-time { display: none; }
  /* A pill is a label; it never wraps. Smaller, not multi-line. */
  .pill { font-size: 10px; padding: 3px 7px; }
}

/* Phone artboard (B2 acceptance: ≤640px; bottom tab bar). Chips get bigger tap targets and scroll
   horizontally instead of wrapping into a wall. The table (#800) keeps its own `.tablewrap`
   horizontal scroll at every width (the sticky Store/Item columns above), so nothing here needs a
   separate stacked layout — only tap-target and density tweaks for the narrower viewport. */
@media (max-width: 640px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  main { padding: 20px 14px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  /* The board's filter row holds three chips at most now that retailer/category are dropdowns —
     it WRAPS. Scrolling it left "In stock only" off-screen at 375px with production data, with no
     scrollbar or fade to say so (#814 review; the #779 trap again). */
  .board-filters { flex-wrap: wrap; overflow: visible; }
  .chip { padding: 8px 14px; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; flex: none; }
  .board-controls { gap: 12px; }
  .filter-control select { min-height: 44px; }
  .board-hero { flex-direction: column; align-items: stretch; }
  .search-field { min-width: 0; }
  /* On a phone Activity and Last live drop out as well (Store already folded into Item at ≤900):
     History is one tap away for either, and there is no room at 375px for a strip AND a date. */
  .board-table .col-activity, .board-table .col-lastLive { display: none; }
  /* The 375px budget: Item + Status + Restocks + ★ must total ≤ 345px (the wrap's inner width)
     with a one-line pill. Measured after the #814 review fix: 421px scrolled; these bring it under. */
  .board-table th, .board-table td { padding: 8px 6px; }
  .board-table .col-item { min-width: 118px; max-width: 136px; }
  .board-table .col-status { max-width: none; }
  .pill { font-size: 9px; padding: 3px 6px; letter-spacing: 0.02em; }
  .board-table .col-restocks { min-width: 0; }
  .board-table .col-restocks .cell-note { max-width: 58px; }
  .follow-btn.star { min-width: 40px; min-height: 40px; }
  /* The street-date pill is the one label allowed to wrap on a phone: "STREET DATE WED 09-09" on
     one line is ~110px, a third of the viewport, and it is the widest thing in the Status column by
     30px. Live/Sold-out pills stay one line. */
  .pill-street { white-space: normal; max-width: 72px; line-height: 1.25; }
  .board-table .col-following { padding-left: 2px; padding-right: 2px; }

  .tab-bar {
    display: grid;
    /* One column per .tab-bar-item in app.html (Watch, Pokémon Center, Volume, Alerts, My drops) —
       stayed at 4 through #873's PKC tab landing, silently squeezing 5 items into 4 columns; fixed
       then, and again here while adding the Volume item (V5, #1155) touches this same rule. */
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    z-index: 10;
  }
  .tab-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 44px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    background: transparent;
    border: 0;
    text-decoration: none;
  }
  .tab-bar-item.active { color: var(--paper); }
  .tab-bar-item:disabled { opacity: 0.5; cursor: default; }
  .tab-bar-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }
}

/* PKC windows page responsive (placed after the board's own 900px/640px blocks — static.test.js's
   Phone-block pins match the FIRST @media at each breakpoint in file order). */
@media (max-width: 900px) {
  .pkc-columns { grid-template-columns: 1fr; }
  .pkc-heatmap { font-size: 12px; }
  .pkc-heatmap th, .pkc-heatmap td { padding: 6px 4px; }
  .item-columns { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pkc-heatmap { display: block; overflow-x: auto; }
  .episode-row { grid-template-columns: 80px 76px 1fr; gap: 8px; font-size: 13px; }
}

/* ── item day × time matrix (Tori 2026-08-31 — replaces the item histograms) ─────────────────── */
.im-wrap { overflow-x: auto; }
.im-table { table-layout: fixed; border-collapse: separate; border-spacing: 2px; width: 100%; min-width: 380px; }
.im-table th { font-size: 10.5px; font-weight: 600; color: var(--muted); padding: 0 0 4px; }
.im-day { font-size: 11px; font-weight: 700; color: var(--muted); width: 34px; padding-right: 6px; text-align: right; }
.im-cell { position: relative; height: 30px; border-radius: 3px; background: rgba(124, 58, 237, 0.07);
  text-align: center; font: 600 11.5px "JetBrains Mono", monospace; }
.im-cell-heat { color: var(--paper); cursor: default; }
/* Per-cell .im-pop is a hidden CONTENT STORE — the visible popup is #imPopFloat, position:fixed,
   so the scroll-wrap (needed for 52-column year views) can never clip it. */
.im-pop { display: none; }
.im-pop-float { position: fixed; z-index: 60; min-width: 230px; background: var(--card);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35); text-align: left; pointer-events: none; }
.im-pop-float ul, .im-pop ul { margin: 0; padding: 0; list-style: none; }
.im-pop-float li { font: 500 11.5px/1.7 "JetBrains Mono", monospace; color: var(--paper); white-space: nowrap; }
.im-pop-float .im-pop-more { color: var(--muted); }
.im-pop-float.hidden { display: none; }
.im-cell-void { background: transparent; }

/* ── /app#/volume — drop volume vs the release calendar (V4, #1154) ──────────────────────────── */
/* ── Drop volume screen (#/volume) — rebuilt against the real payload 2026-09-06 ───────────── */
.vol-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.vol-tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.vol-tile-h { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vol-tile-n { font-size: 28px; font-weight: 700; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.vol-tile-p { font-size: 16px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; opacity: .9; }
.vol-tile-n small, .vol-tile-p small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: .02em; }
.vol-tile-s { font-size: 12px; color: var(--muted); margin-top: 6px; }
.vol-chart-card h2, .vol-sm-card h2 { margin: 0 0 4px; font-size: 16px; }
.vol-intro { margin: 0 0 12px; font-size: 13px; color: var(--muted); max-width: 68ch; }
.vol-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.vol-metric-btn { background: transparent; color: var(--muted); border: 0; padding: 7px 12px; font-size: 13px; cursor: pointer; font: inherit; }
.vol-metric-btn[aria-pressed="true"] { color: var(--paper); background: color-mix(in srgb, var(--accent) 22%, transparent); }
.vol-metric-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.vol-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 10px; padding: 6px 4px 2px; background: color-mix(in srgb, var(--card) 60%, var(--bg)); }
.vol-chart { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.vol-chart text { fill: var(--muted); font-size: 11px; }
.vol-chart .vol-ax { fill: var(--muted); font-size: 10.5px; }
.vol-chart .vol-grid, .vol-sm-svg .vol-grid { stroke: var(--line); stroke-width: 1; }
.vol-chart .vol-base, .vol-sm-svg .vol-base { stroke: var(--muted); stroke-width: 1; opacity: .5; }
.vol-chart .vol-rel { stroke: var(--paper); stroke-width: 1; stroke-dasharray: 3 3; opacity: .5; }
.vol-chart .vol-rellab { fill: var(--paper); font-size: 10.5px; font-weight: 600; font-family: inherit; }
.vol-chart .vol-era { fill: var(--paper); opacity: .04; }
.vol-chart .vol-eralab { fill: var(--muted); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; }
.vol-chart .vol-lbl, .vol-sm-svg .vol-lbl { fill: var(--paper); font-size: 10.5px; font-weight: 600; }
.vol-sm-svg text { fill: var(--muted); font-size: 11px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.vol-sm-svg .vol-ax { font-size: 10.5px; }
.vol-bar-seg { stroke: none; }
.vol-bar-col:hover .vol-bar-seg { opacity: .8; }
/* Series palette: the validated categorical set the prototype used (blue / orange / aqua — CVD-safe
   as a triple), stepped for the dark ground; light steps below. Both fill (SVG) and background (the
   legend's HTML swatches) on one rule so the key can never go invisible again. */
.vol-seg-target { fill: #3987e5; background: #3987e5; }
.vol-seg-walmart { fill: #d95926; background: #d95926; }
.vol-seg-pokemoncenter { fill: #199e70; background: #199e70; }
.vol-sm-bar { fill: #3987e5; }
.vol-band-archive { background: var(--muted); opacity: .45; }
.vol-band-mixed { background: var(--paper); opacity: .25; }
.vol-band-monitor { background: var(--holo); opacity: .5; }
.vol-hatch-line { stroke: var(--muted); stroke-width: 2; }
.vol-hatch-overlay { pointer-events: none; opacity: .5; }
.vol-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.vol-legend-bands { margin-top: 6px; }
.vol-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.vol-legend-swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid var(--line); }
.vol-details { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.vol-details summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.vol-tablewrap { overflow-x: auto; margin-top: 8px; }
.vol-table { border-collapse: collapse; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-variant-numeric: tabular-nums; min-width: 420px; }
.vol-table th, .vol-table td { padding: 4px 10px; text-align: right; border-bottom: 1px solid var(--line); }
.vol-table th { color: var(--muted); font-weight: 500; }
.vol-table th:first-child, .vol-table td:first-child { text-align: left; }
.vol-sm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vol-sm-panel { background: color-mix(in srgb, var(--card) 60%, var(--bg)); border: 1px solid var(--line); border-radius: 10px; padding: 10px 10px 4px; min-width: 0; }
.vol-sm-t { font-weight: 600; font-size: 13px; line-height: 1.2; }
.vol-sm-m { font-size: 11px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; margin: 2px 0 6px; }
.vol-sm-svg { width: 100%; display: block; }
.vol-note { border-left: 3px solid var(--muted); }
.vol-note-h { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.vol-note p { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.vol-note strong { color: var(--paper); }
@media (prefers-color-scheme: light) {
  .vol-seg-target { fill: #2a78d6; background: #2a78d6; }
  .vol-seg-walmart { fill: #eb6834; background: #eb6834; }
  .vol-seg-pokemoncenter { fill: #1baf7a; background: #1baf7a; }
  .vol-sm-bar { fill: #2a78d6; }
  .vol-chart .vol-era { opacity: .06; }
}
@media (max-width: 820px) { .vol-tiles, .vol-sm-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .vol-tiles, .vol-sm-grid { grid-template-columns: 1fr; } .vol-tile-n { font-size: 24px; } }

/* ── Volume screen: this one screen gets a wide column (the watch table keeps 720px). app.js sets
   body.screen-volume on the #/volume route; everything below is scoped to it. Design canvas:
   "Volume Screen Layout" (2026-09-06). ─────────────────────────────────────────────────────── */
body.screen-volume .wrap, body.screen-volume main { max-width: 1220px; }
body.screen-volume main { padding: 32px 24px 48px; }
body.screen-volume .card { padding: 24px; margin-bottom: 18px; }
body.screen-volume .vol-chart-card h2, body.screen-volume .vol-sm-card h2 { font-size: 18px; margin: 0 0 6px; letter-spacing: -0.01em; }
body.screen-volume .vol-intro { font-size: 14px; margin-bottom: 16px; max-width: 72ch; }
body.screen-volume .vol-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
body.screen-volume .vol-tile { padding: 20px 22px 18px; border-radius: 14px; }
body.screen-volume .vol-tile-h { letter-spacing: .1em; }
body.screen-volume .vol-tile-n { font-size: 40px; letter-spacing: -0.02em; margin-top: 8px; line-height: 1; }
body.screen-volume .vol-tile-p { font-size: 18px; margin-top: 6px; }
body.screen-volume .vol-tile-n small, body.screen-volume .vol-tile-p small { font-size: 12px; margin-left: 8px; }
body.screen-volume .vol-tile-s { font-size: 13px; margin-top: 10px; }
body.screen-volume .vol-toggle { margin-bottom: 14px; }
body.screen-volume .vol-metric-btn { padding: 8px 14px; }
body.screen-volume .vol-scroll { padding: 10px 8px 4px; }
body.screen-volume .vol-legend { font-size: 13px; gap: 18px; margin-top: 12px; }
body.screen-volume .vol-sm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body.screen-volume .vol-sm-panel { padding: 14px 14px 8px; border-radius: 12px; }
body.screen-volume .vol-sm-t { font-size: 14px; }
body.screen-volume .vol-sm-m { font-size: 12px; margin: 4px 0 8px; }
body.screen-volume .vol-note p { font-size: 14px; }
@media (max-width: 900px) {
  body.screen-volume main { padding: 24px 20px 40px; }
  body.screen-volume .vol-tile-n { font-size: 34px; }
  body.screen-volume .vol-sm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body.screen-volume main { padding: 20px 16px 96px; }
  body.screen-volume .card { padding: 16px; }
  body.screen-volume .vol-tiles, body.screen-volume .vol-sm-grid { grid-template-columns: minmax(0, 1fr); }
  body.screen-volume .vol-tile-n { font-size: 32px; }
}
