/* foodprices dashboard.
   Palette: the validated dataviz reference instance. Store -> categorical slot
   is fixed in routes.py, so filtering never repaints a series. */

:root {
  color-scheme: light;

  --plane: #f9f9f7;
  --surface: #fcfcfb;
  --surface-2: #f2f1ed;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --hair: rgba(11, 11, 11, 0.10);

  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;
  --series-6: #008300;

  --good: #0ca30c;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
  --good-text: #006300;
  --critical-text: #a82c2c;

  --good-wash: #e8f6e8;
  --warn-wash: #fdf3dd;
  --crit-wash: #fbeaea;
  --neutral-wash: #f0efec;

  --radius: 10px;
  --gap: 1rem;
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --plane: #0d0d0d;
    --surface: #1a1a19;
    --surface-2: #222220;
    --ink: #ffffff;
    --ink-2: #c3c2b7;
    --muted: #898781;
    --grid: #2c2c2a;
    --axis: #383835;
    --hair: rgba(255, 255, 255, 0.10);

    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #c98500;
    --series-5: #d55181;
    --series-6: #008300;

    --good-text: #0ca30c;
    --critical-text: #e46b6b;

    --good-wash: #16240f;
    --warn-wash: #2a2110;
    --crit-wash: #2a1414;
    --neutral-wash: #262624;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --plane: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #222220;
  --ink: #ffffff;
  --ink-2: #c3c2b7;
  --muted: #898781;
  --grid: #2c2c2a;
  --axis: #383835;
  --hair: rgba(255, 255, 255, 0.10);

  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;
  --series-5: #d55181;
  --series-6: #008300;

  --good-text: #0ca30c;
  --critical-text: #e46b6b;

  --good-wash: #16240f;
  --warn-wash: #2a2110;
  --crit-wash: #2a1414;
  --neutral-wash: #262624;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--plane);
  -webkit-text-size-adjust: 100%;
}

.wrap { width: min(1180px, 100% - 2rem); margin-inline: auto; }

a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible + span,
.plot:focus-visible {
  outline: 2px solid var(--series-1);
  outline-offset: 2px;
  border-radius: 4px;
}

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: -9999px; top: 0; padding: .6rem 1rem;
  background: var(--surface); z-index: 20;
}
.skip:focus { left: .5rem; top: .5rem; }

.muted { color: var(--muted); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- top bar ---------- */

.topbar { background: var(--surface); border-bottom: 1px solid var(--hair); }
.topbar-in {
  display: flex; align-items: center; gap: 1rem;
  min-height: 56px; flex-wrap: wrap;
}
.brand { text-decoration: none; display: flex; align-items: baseline; gap: .5rem; }
.brand strong { font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-sub { color: var(--muted); font-size: .8rem; }
.topnav { display: flex; gap: .9rem; margin-left: auto; font-size: .88rem; }
.topnav a { color: var(--ink-2); text-decoration: none; padding: .25rem 0; }
.topnav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--series-1); }
.theme-btn {
  font: inherit; font-size: .8rem; color: var(--ink-2); cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--hair);
  border-radius: 999px; padding: .25rem .7rem;
}

/* ---------- coverage strip ---------- */

.coverage { background: var(--surface-2); border-bottom: 1px solid var(--hair); }
.coverage-warn { background: var(--warn-wash); }
.coverage-in { padding: .7rem 0; display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; }
.coverage-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.coverage-count { font-size: .9rem; }
.coverage-note { color: var(--ink-2); font-size: .82rem; }
.coverage-list { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.cov {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .76rem; padding: .15rem .5rem;
  border: 1px solid var(--hair); border-radius: 999px; background: var(--surface);
}
.cov-when { color: var(--muted); }
.coverage-more { font-size: .8rem; color: var(--ink-2); margin-left: auto; }

.ico { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor;
       stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* status colour, always beside its own glyph and word */
.st-ok, .r-ok { color: var(--good-text); }
.st-stale, .r-partial, .st-degraded { color: var(--serious); }
.st-failing, .r-failed { color: var(--critical-text); }
.st-running, .r-running { color: var(--series-1); }
.st-never { color: var(--muted); }

/* ---------- filters ---------- */

.filters {
  display: flex; flex-wrap: wrap; gap: 1.4rem;
  padding: 1rem 0 .8rem; align-items: flex-start;
}
.filter-group { display: flex; flex-direction: column; gap: .4rem; }
.filter-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip > span:last-child, .chip-store {
  display: inline-flex; align-items: center; gap: .35rem;
}
.chip > span:last-child {
  padding: .25rem .65rem; border-radius: 999px; font-size: .82rem;
  border: 1px solid var(--hair); background: var(--surface); color: var(--ink-2);
}
.chip-store { position: relative; }
.chip-store .key { position: absolute; left: .55rem; top: 50%; translate: 0 -50%; z-index: 1; }
.chip-store > span:last-child { padding-left: 1.5rem; }
.chip input:checked ~ span:last-child { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chip input:focus-visible ~ span:last-child { outline: 2px solid var(--series-1); outline-offset: 2px; }
.filter-hint { margin: .1rem 0 0; font-size: .74rem; color: var(--muted); }

.key { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; background: var(--muted); }
.s1 { background: var(--series-1); } .s2 { background: var(--series-2); }
.s3 { background: var(--series-3); } .s4 { background: var(--series-4); }
.s5 { background: var(--series-5); } .s6 { background: var(--series-6); }

/* ---------- sections ---------- */

section { margin-bottom: 2rem; }
.section-head {
  display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap;
  margin-bottom: .7rem;
}
.section-head h1 { font-size: 1.25rem; margin: 0; letter-spacing: -0.01em; }
.section-head h2 { font-size: 1.05rem; margin: 0; letter-spacing: -0.01em; }
.section-meta { color: var(--muted); font-size: .8rem; margin-left: auto; }

.hero-line { display: flex; align-items: baseline; gap: .55rem; margin: 0 0 .9rem; flex-wrap: wrap; }
.hero { font-size: 3rem; font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.hero-cap { color: var(--ink-2); font-size: .95rem; }
.hero-unit { color: var(--ink-2); font-size: 1rem; }

.notice {
  background: var(--surface); border: 1px solid var(--hair);
  border-left: 3px solid var(--axis);
  border-radius: var(--radius); padding: .8rem 1rem; font-size: .9rem; color: var(--ink-2);
}
.notice strong { color: var(--ink); }

.empty {
  background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center;
}
.empty-sm { padding: 1.2rem; text-align: left; }
.empty h1 { font-size: 1.2rem; margin: 0 0 .5rem; }
.empty p { color: var(--ink-2); max-width: 52ch; margin: 0 auto .9rem; }
.empty pre {
  display: inline-block; text-align: left; background: var(--surface-2);
  padding: .7rem 1rem; border-radius: 8px; margin: 0; font-size: .85rem;
}
.empty-note { font-size: .85rem; }

/* ---------- badges ---------- */

.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .55rem; border-radius: 999px;
  font-size: .78rem; font-weight: 500; white-space: nowrap;
  border: 1px solid transparent;
}
.badge-sm { font-size: .72rem; padding: .12rem .45rem; }
.badge.v-stock_up { background: var(--good); color: #fff; }
.badge.v-good { background: var(--good-wash); color: var(--good-text); border-color: var(--good); }
.badge.v-normal { background: var(--neutral-wash); color: var(--ink-2); border-color: var(--axis); }
.badge.v-expensive { background: var(--crit-wash); color: var(--critical-text); border-color: var(--critical); }
.badge.v-unscored, .badge.v-none { background: var(--surface-2); color: var(--muted); border-color: var(--hair); }
.badge.is-stale { opacity: .62; }

.badge.st-ok { background: var(--good-wash); color: var(--good-text); border-color: var(--good); }
.badge.st-stale, .badge.st-degraded { background: var(--warn-wash); color: var(--serious); border-color: var(--serious); }
.badge.st-failing { background: var(--crit-wash); color: var(--critical-text); border-color: var(--critical); }
.badge.st-running { background: var(--surface-2); color: var(--series-1); border-color: var(--hair); }
.badge.st-never { background: var(--surface-2); color: var(--muted); border-color: var(--hair); }

.conf {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .74rem; color: var(--ink-2); white-space: nowrap;
}
.conf-bars { display: inline-flex; align-items: flex-end; gap: 1px; height: 10px; }
.conf-bars i { width: 3px; background: var(--axis); border-radius: 1px; }
.conf-bars i:nth-child(1) { height: 4px; }
.conf-bars i:nth-child(2) { height: 7px; }
.conf-bars i:nth-child(3) { height: 10px; }
.c-low .conf-bars i:nth-child(1) { background: var(--ink-2); }
.c-medium .conf-bars i:nth-child(-n+2) { background: var(--ink-2); }
.c-high .conf-bars i { background: var(--ink-2); }

.tag {
  font-size: .72rem; color: var(--ink-2); background: var(--surface-2);
  border-radius: 999px; padding: .1rem .5rem; white-space: nowrap;
}
.tag-warn { background: var(--warn-wash); color: var(--serious); }
.promo {
  display: inline-flex; align-items: center; gap: .2rem;
  font-size: .72rem; color: var(--serious);
}
.store-chip { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.brand { color: var(--muted); font-size: .78rem; margin-left: .35rem; }

.trend { display: inline-flex; vertical-align: middle; }
.t-down { color: var(--good-text); }
.t-up { color: var(--critical-text); }
.t-flat, .t-none { color: var(--muted); }

.spark { vertical-align: middle; overflow: visible; }
/* The sparkline is the cheapest price across stores, not one store's series -
   so it wears a neutral ink, never a categorical slot colour. */
.spark polyline { fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-end { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
.spark-empty { color: var(--muted); }

.delta.good { color: var(--good-text); }
.delta.bad { color: var(--ink-2); }

/* ---------- stock-up cards ---------- */

.cards { list-style: none; margin: 0; padding: 0;
  display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--hair);
  border-left: 3px solid var(--axis);
  border-radius: var(--radius); padding: .9rem 1rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.card > .badge { align-self: flex-start; }
.card.v-stock_up { border-left-color: var(--good); }
.card.v-good { border-left-color: var(--good); }
.card-title { font-weight: 600; text-decoration: none; display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; }
.card-title:hover { text-decoration: underline; }
.card-en { font-weight: 400; font-size: .78rem; color: var(--muted); }
.card-price { margin: 0; display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.price { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.unit { color: var(--ink-2); font-size: .8rem; }
.at { color: var(--muted); font-size: .8rem; }
.card-delta { margin: 0; font-size: .85rem; color: var(--ink-2); }
.card-why { margin: 0; font-size: .84rem; color: var(--ink-2); }
.card-foot { margin: .2rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.buy { font-size: .78rem; font-weight: 600; background: var(--good-wash); color: var(--good-text);
       border-radius: 999px; padding: .12rem .55rem; }

/* ---------- tables ---------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--hair); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
thead th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 600; padding: .6rem .7rem;
  border-bottom: 1px solid var(--grid); white-space: nowrap;
}
thead th.num { text-align: right; }
tbody th, tbody td { padding: .55rem .7rem; border-bottom: 1px solid var(--grid); vertical-align: middle; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { text-align: left; font-weight: 500; }
tbody tr:hover { background: var(--surface-2); }
tr.is-best { background: var(--good-wash); }
tr.is-best:hover { background: var(--good-wash); }
.staples-table .price { font-size: 1rem; }
.row-cat { display: block; font-size: .72rem; color: var(--muted); }
.hist-table td, .hist-table th { white-space: nowrap; }
.run-status { font-size: .78rem; }
.run-error { color: var(--critical-text); }

/* ---------- item page ---------- */

.crumbs { font-size: .8rem; color: var(--muted); padding: .9rem 0 0; }
.crumbs a { color: var(--ink-2); }
.item-head { padding: .6rem 0 1.1rem; }
.item-head h1 { margin: 0; font-size: 1.6rem; letter-spacing: -0.02em; }
.item-sub { margin: .25rem 0 0; color: var(--ink-2); font-size: .86rem; }

.recommend {
  background: var(--surface); border: 1px solid var(--hair);
  border-left: 3px solid var(--axis); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; display: flex; flex-wrap: wrap; gap: 1.5rem;
}
.recommend.v-stock_up, .recommend.v-good { border-left-color: var(--good); }
.recommend.v-expensive { border-left-color: var(--critical); }
.rec-main { flex: 1 1 200px; }
.rec-price { margin: 0; display: flex; align-items: baseline; gap: .4rem; }
.rec-where { margin: .3rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .88rem; }
.rec-side { flex: 2 1 320px; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.rec-buy, .rec-why, .rec-delta { margin: 0; flex-basis: 100%; font-size: .88rem; color: var(--ink-2); }
.rec-buy strong { color: var(--ink); }

.facts, .store-facts { margin: 0; display: grid; gap: .3rem .9rem; }
.facts { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.facts > div, .store-facts > div { display: flex; justify-content: space-between; gap: .5rem;
  border-bottom: 1px solid var(--grid); padding: .3rem 0; font-size: .84rem; }
.facts dt, .store-facts dt { color: var(--muted); }
.facts dd, .store-facts dd { margin: 0; font-variant-numeric: tabular-nums; }

.store-grid { list-style: none; margin: 0; padding: 0;
  display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.store-card { background: var(--surface); border: 1px solid var(--hair); border-left: 3px solid var(--axis);
  border-radius: var(--radius); padding: .9rem 1rem; }
.store-card.st-ok { border-left-color: var(--good); }
.store-card.st-stale, .store-card.st-degraded { border-left-color: var(--serious); }
.store-card.st-failing { border-left-color: var(--critical); }
.store-card-head { display: flex; justify-content: space-between; gap: .5rem; align-items: center; flex-wrap: wrap; }
.store-detail { font-size: .85rem; color: var(--ink-2); margin: .5rem 0 .7rem; }
.store-error { margin: .6rem 0 0; font-size: .78rem; overflow-wrap: anywhere; }
.store-link { font-size: .78rem; color: var(--muted); display: inline-flex; align-items: center; gap: .25rem; margin-top: .6rem; }

.offers-note { font-size: .8rem; color: var(--muted); margin: .6rem 0 0; max-width: 72ch; }

/* ---------- chart ---------- */

.range { display: flex; gap: .25rem; margin-left: auto; }
.range-opt {
  font-size: .78rem; text-decoration: none; color: var(--ink-2);
  border: 1px solid var(--hair); background: var(--surface);
  border-radius: 999px; padding: .18rem .6rem;
}
.range-opt[aria-current="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }

.chart { margin: 0; background: var(--surface); border: 1px solid var(--hair);
  border-radius: var(--radius); padding: .9rem 1rem 1rem; }
.chart-cap { color: var(--ink-2); font-size: .82rem; margin-bottom: .6rem; }
.legend { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-bottom: .5rem; }
.legend-item {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem;
  color: var(--ink-2); background: none; border: 0; padding: .15rem .1rem;
  cursor: pointer; font-family: inherit;
}
.legend-item[aria-pressed="false"] { opacity: .4; text-decoration: line-through; }
.legend-key { width: 14px; height: 2px; border-radius: 1px; background: var(--muted); flex: none; }
.legend-item .s1 { background: var(--series-1); } .legend-item .s2 { background: var(--series-2); }
.legend-item .s3 { background: var(--series-3); } .legend-item .s4 { background: var(--series-4); }
.legend-item .s5 { background: var(--series-5); } .legend-item .s6 { background: var(--series-6); }

.plot-wrap { position: relative; }
.plot { display: block; width: 100%; height: 320px; touch-action: pan-y; }
.plot .grid-line { stroke: var(--grid); stroke-width: 1; }
.plot .axis-line { stroke: var(--axis); stroke-width: 1; }
.plot .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.plot .end-label { fill: var(--ink-2); font-size: 11px; font-weight: 600; }
/* Halo keeps the baseline caption legible where series cross it, without
   drawing a box (which would add data-weight ink). */
.plot .baseline-note {
  fill: var(--muted); font-size: 10px;
  paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round;
}
.plot .baseline-rule { stroke: var(--axis); stroke-width: 1; }
.plot .series-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.plot .series-dot { stroke: var(--surface); stroke-width: 2; }
.plot .crosshair { stroke: var(--axis); stroke-width: 1; }
.plot .s1 { stroke: var(--series-1); } .plot .s2 { stroke: var(--series-2); }
.plot .s3 { stroke: var(--series-3); } .plot .s4 { stroke: var(--series-4); }
.plot .s5 { stroke: var(--series-5); } .plot .s6 { stroke: var(--series-6); }
.plot .series-dot.s1 { fill: var(--series-1); } .plot .series-dot.s2 { fill: var(--series-2); }
.plot .series-dot.s3 { fill: var(--series-3); } .plot .series-dot.s4 { fill: var(--series-4); }
.plot .series-dot.s5 { fill: var(--series-5); } .plot .series-dot.s6 { fill: var(--series-6); }
.plot .hidden { display: none; }

.tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: var(--surface); border: 1px solid var(--hair);
  border-radius: 8px; padding: .5rem .6rem; font-size: .8rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .14); min-width: 148px;
}
.tip-date { color: var(--muted); font-size: .74rem; margin-bottom: .3rem; }
.tip-row { display: flex; align-items: baseline; gap: .4rem; }
.tip-row + .tip-row { margin-top: .15rem; }
.tip-key { width: 12px; height: 2px; border-radius: 1px; flex: none; }
.tip-key.s1 { background: var(--series-1); } .tip-key.s2 { background: var(--series-2); }
.tip-key.s3 { background: var(--series-3); } .tip-key.s4 { background: var(--series-4); }
.tip-key.s5 { background: var(--series-5); } .tip-key.s6 { background: var(--series-6); }
.tip-val { font-weight: 600; font-variant-numeric: tabular-nums; margin-left: auto; }
.tip-name { color: var(--ink-2); }

.chart-missing { display: flex; align-items: center; gap: .35rem; font-size: .8rem;
  color: var(--serious); margin: .6rem 0 0; }
.table-view { margin-top: .8rem; font-size: .85rem; }
.table-view summary { cursor: pointer; color: var(--ink-2); }
.table-view .table-scroll { margin-top: .6rem; max-height: 420px; overflow-y: auto; }

/* ---------- misc ---------- */

.foot { padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: .8rem; max-width: 70ch; }
.htmx-request { opacity: .55; transition: opacity .12s ease; }

@media (max-width: 720px) {
  .section-meta { margin-left: 0; flex-basis: 100%; }
  .hero { font-size: 2.4rem; }

  /* Tables become stacked records; each cell keeps its header as a label. */
  .staples-table, .offers-table, .runs-table,
  .staples-table thead, .offers-table thead, .runs-table thead,
  .staples-table tbody, .offers-table tbody, .runs-table tbody,
  .staples-table tr, .offers-table tr, .runs-table tr,
  .staples-table th, .offers-table th, .runs-table th,
  .staples-table td, .offers-table td, .runs-table td { display: block; width: auto; }
  .staples-table thead, .offers-table thead, .runs-table thead { display: none; }
  .staples-table tr, .offers-table tr, .runs-table tr {
    border-bottom: 1px solid var(--grid); padding: .5rem .2rem;
  }
  .staples-table td, .offers-table td, .runs-table td,
  .staples-table tbody th, .offers-table tbody th, .runs-table tbody th {
    border: 0; padding: .2rem .7rem; display: flex; gap: .6rem;
    align-items: baseline; justify-content: flex-start; text-align: left;
  }
  .staples-table td::before, .offers-table td::before, .runs-table td::before {
    content: attr(data-label); color: var(--muted); font-size: .72rem;
    text-transform: uppercase; letter-spacing: .05em; flex: none;
    min-width: 7rem;
  }
  .staples-table tbody th { font-size: 1rem; padding-top: .4rem; }
  .row-cat { display: inline; }
  .plot { height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
