/* ═══════════════════════════════════════════════════════════════════════
   THE FRESHNESS PILL — its own sheet, because board.css had 36 bytes left.
   ═══════════════════════════════════════════════════════════════════════

   Not a convenience. board.css measured 16,964 code bytes against a 17,000
   cap on 2026-10-30, and this widget is 1,725 — so the guard's own
   instruction applied: *"SPLIT along a seam where changes cluster — one file
   per reason to change — and give the new file its own derived cap."*

   The seam is real rather than arithmetic: everything here is one widget,
   nothing else on the board uses these classes, and when the pill changes
   this is the only sheet that changes with it.

   Every colour is an existing token from board.css, so night mode needs no
   second block here and cannot drift from the one next door.
   NO @layer, AND THAT IS DELIBERATE. The first draft wrapped these rules in
   `@layer board {}` by analogy with the two-space indent they carry in
   board.css. That indent is just indent — board.css declares no layer at all
   — and an unlayered sheet BEATS every layered one, so the wrapper would have
   handed every one of these rules a silent loss to any plain selector. The
   pill would have rendered unstyled with nothing failing.
   ═══════════════════════════════════════════════════════════════════════ */
  /* ── THE FRESHNESS PILL ────────────────────────────────────────────────
     Beside the coach filter, because it qualifies every number the filters
     produce. Same shape as the owner dash's (owner-dash/public/index.html
     :3069) so the two read as one idea, in THIS board's palette rather than
     that one's — every colour below is an existing token, so night mode
     needs no second block and cannot drift from it.

     THE PANEL IS AN OVERLAY (absolute, inside a positioned slot). Opening it
     must not reflow the filter bar and push the whole board down, and a
     `display` rule here would defeat the [hidden] attribute the view uses —
     which is exactly how the owner dash's panel showed permanently on
     2026-10-04. [hidden] is restored explicitly for that reason. */
  .freshslot{position:relative;display:inline-flex;align-items:center}
  .freshslot:empty{display:none}
  .fv-pill{display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:12px;
       font-weight:600;cursor:pointer;padding:6px 11px;border-radius:var(--r-chip);
       border:1px solid var(--line-2);background:var(--surface);color:var(--ink-3)}
  .fv-pill:hover{color:var(--ink);border-color:var(--ink-3)}
  .fv-pill:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
  /* THREE TIERS, THREE LOOKS. A merely aging feed is readable but unmarked;
     only a broken one borrows the colour the board uses for a late client, so
     the alarm means the same thing in both places. */
  /* THE PILL IS THE ONE LINE MOST PEOPLE READ, so its two unhappy states
     are tinted rather than left grey. `watch` is amber and calm; `warn` is
     red and is the only thing on this bar asking to be clicked. */
  .fv-pill.watch{color:var(--fv-warn);border-color:color-mix(in srgb,var(--fv-warn) 45%,transparent);
       background:var(--fv-warn-soft);font-weight:700}
  .fv-pill.warn{color:var(--fv-bad);border-color:var(--fv-bad);background:var(--fv-bad-soft);font-weight:700}
  .fv-caret{opacity:.7;margin-left:2px;font-size:10px}
  .fv-panel{position:absolute;top:100%;left:0;z-index:60;margin-top:6px;
       border:1px solid var(--line-2);border-radius:var(--r-s);padding:6px 12px;
       background:var(--raise);min-width:330px;box-shadow:0 8px 28px rgba(23,21,28,.18)}
  .fv-panel[hidden]{display:none}
  .fv-row{display:flex;align-items:flex-start;gap:9px;padding:6px 0;white-space:nowrap}
  .fv-row+.fv-row{border-top:1px solid var(--line)}
  .fv-lbl{flex:1 1 auto;font-size:12.5px;font-weight:600;color:var(--ink)}
  /* WHOSE MACHINE HAS TO BE WORKING. Five of the ten sources are the coach
     dash, so without this line two rows going amber together read as two
     outages instead of one. */
  .fv-via{display:block;font-size:11px;font-weight:400;color:var(--ink-3);
       margin-top:1px;white-space:normal;max-width:230px}
  .fv-stat{flex:0 0 auto;text-align:right;font-size:11.5px;color:var(--ink-3);padding-left:18px}
  /* ── THE THREE COLOURS HAVE TO BE THREE COLOURS ───────────────────────
     Georgiy, 2026-10-30, on the first live version: *"The colors are really
     bland. I don't know what is green, what is yellow, or what is red."* He
     was right and the cause is worth writing down, because the mistake looks
     like good practice: the dots used `--ok` (#4A6136) and `--warn`
     (#7A6531), which are the board's TEXT colours. Those are deliberately
     desaturated so they read as words on white — and as 8px dots they are
     the same olive twice. Reusing a token is not the same as reusing it FOR
     THE SAME JOB.

     So the dots get their own scale, scoped to this widget, saturated enough
     to be told apart at 9 pixels across a room. Declared on .freshslot so
     the pill and the panel inside it share one definition.

     AND COLOUR IS NOT THE ONLY CARRIER. The age text takes the colour too
     and a bad row gets a tinted background, so the row still reads for
     anyone who cannot separate the hues — and so a glance at the PANEL, not
     just the dot, lands on the row that matters. */
  .freshslot{
    --fv-ok:#1F9D4D; --fv-warn:#E08A00; --fv-bad:#D7342A; --fv-off:#9B94A5;
    --fv-warn-soft:#FDF3E2; --fv-bad-soft:#FDECEA;
  }
  /* ── NO DARK BLOCK, AND THAT IS THE WHOLE POINT ──────────────────────
     I wrote one. lib/__tests__/pipeline-page.test.cjs caught it inside the
     minute: *"NOTHING on this page may read the OS colour setting. Georgiy
     asked for the white scheme three times and got the dark one three times,
     because his machine is in dark mode and a media query outranked the
     request."*

     This page is LIGHT, by decision, and the machine does not get a vote. A
     `@media (prefers-color-scheme: dark)` here would have been invisible to
     me for the same reason it was invisible last time — my own browser is in
     dark mode, so every screenshot I took would have agreed with the bug.
     The test is what has eyes here, not me. */
  /* A DISTINCT CLASS FROM EVERY OTHER DOT ON THIS PAGE. The owner dash had
     exactly this collide once — a shared base rule overrode a status dot's red
     to grey — so these are .fv-dot and nothing else uses the name. */
  .fv-dot{width:9px;height:9px;border-radius:50%;flex:0 0 auto;display:inline-block;
       margin-top:4px;background:var(--fv-off)}
  .fv-pill .fv-dot{margin-top:0}
  .fv-dot.ok{background:var(--fv-ok)}
  /* A RING ON THE TWO THAT MEAN SOMETHING. It is what makes an amber dot read
     as amber beside nine green ones rather than as "a slightly different
     green" — the complaint that produced this block. */
  .fv-dot.warn{background:var(--fv-warn);box-shadow:0 0 0 3px color-mix(in srgb,var(--fv-warn) 22%,transparent)}
  .fv-dot.bad{background:var(--fv-bad);box-shadow:0 0 0 3px color-mix(in srgb,var(--fv-bad) 22%,transparent)}
  .fv-dot.off{background:var(--fv-off)}

  /* ── THE ROW CARRIES ITS OWN STATE, NOT JUST ITS DOT ──────────────────
     Second carrier, for the same complaint: at a glance you should land on
     the row that is wrong without comparing eleven dots to each other. */
  .fv-row.fv-warn .fv-stat{color:var(--fv-warn);font-weight:600}
  .fv-row.fv-bad{background:var(--fv-bad-soft);margin:0 -12px;padding-left:12px;padding-right:12px}
  .fv-row.fv-bad .fv-stat{color:var(--fv-bad);font-weight:600}
  .fv-row.fv-bad .fv-lbl{color:var(--fv-bad)}
