/* ═══════════════════════════════════════════════════════════════════════════
   THE BOARD'S STYLING. Split out of index.html on 2026-10-23.
   ═══════════════════════════════════════════════════════════════════════════

   WHY IT MOVED. The page carries a guard asserting it stays under a derived
   number of CODE bytes — what it was the last time a human read it whole,
   plus what the features since cost. It went red, and the guard's own message
   says what to do: *"SPLIT the page into plain script files in the same
   folder — do not raise the number."*

   The stylesheet was 20,628 of the page's 40,292 code bytes: more than half,
   and the half that is declarative. Jeremy, 2026-10-23, on the split rule the
   four existing modules follow and I could not state: *"size is the trigger,
   responsibility is the cut line. You split along seams where changes
   cluster, one file per reason to change."* Styling is one reason to change.

   AND IT IS CAPPED, LIKE EVERY OTHER SPLIT FILE. *"Yes, board.css gets a cap,
   and derived the same way the 40,000 was derived, not picked... a 20KB
   stylesheet nobody has read whole since last year is exactly the R59 palette
   failure waiting to happen. No file without a number, no number without a
   derivation."* The number and its derivation are in
   lib/__tests__/pipeline-page.test.cjs, beside the page's own.

   NO BUILD STEP. A plain file in the same folder, loaded with a <link>. It
   deploys as one unit with the page and cannot drift from it, which is the
   same property the four <script src> files have.

   THE TESTS FOLLOW IT AUTOMATICALLY. Every scan goes through
   `_source-scan.cjs`'s `cssForPage`, which reads an inline block AND any
   local stylesheet, and THROWS rather than returning empty — so moving this
   file again cannot leave fifteen tests silently asserting nothing.
   ═══════════════════════════════════════════════════════════════════════════ */
  /* ── WHY THIS IS A LIST AND NOT A KANBAN ───────────────────────────────
     The first version gave every step its own column. With 80 clients that
     is ten columns where ONE holds 55 cards and the rest hold nought to
     eleven — a screen of empty space with the answer buried in one tall
     stack. The job here is "who do I chase today", and that is a list
     sorted by how long somebody has been waiting, not a board you drag
     things across. Nothing here is ever dragged. */
  /* ── THE DAY PALETTE, GLARE TAKEN OUT ──────────────────────────────────
     Georgiy, 2026-10-21: *"simple make this a little more dull in color so
     its not as bright"* — the same treatment the night palette got, applied
     to the day one.

     TWO THINGS WERE DOING THE GLARING, and the first matters more than any
     colour choice: the PAGE was pure #FFFFFF across its whole area. A full
     screen of pure white is the brightest thing a monitor can do. The page
     is now a soft off-white and the CARDS stay pure white, which both takes
     the glare out AND gives every card an edge it did not have before —
     white cards on a white page had to be drawn with a border alone.

     Second, the status colours were fully saturated. Each keeps its HUE
     (drift measured below 2.2 degrees against its night counterpart, except
     --ok at 10.3) and gives up a third of its saturation.

     EVERY VALUE BELOW IS MEASURED against the darkest surface it is painted
     on, not just against white — --ink at AAA, everything else at AA:
       ink    16.19 / 13.71     accent  8.36 / 7.08     ok       6.88 / 5.82
       ink-2   7.26 /  6.15     late    6.11 / 5.17     unknown  7.08 / 6.00
       ink-3   5.36 /  4.54     warn    5.62 / 4.77 */
  :root{
    --ground:#F7F6FA; --surface:#FFFFFF; --surface-2:#EDEBF4; --raise:#FFFFFF;
    --ink:#221F2A; --ink-2:#5A5465; --ink-3:#6E6878;
    --line:#E2DFEA; --line-2:#CBC6D8;
    --accent:#5B32AE; --accent-soft:#F1ECFD; --accent-line:#C9B8EE;
    --late:#9C4A32; --late-soft:#FBEFEA;
    --ok:#4A6136; --warn:#7A6531; --ok-soft:#EDF1E7;
    --unknown:#445A75; --unknown-soft:#EAEFF5;
    --shadow:0 1px 2px rgba(23,21,28,.06);
    --body:'Manrope',system-ui,-apple-system,'Segoe UI',sans-serif;
    --mono:'IBM Plex Mono',ui-monospace,Menlo,monospace;
    --r:12px; --r-s:8px; --r-chip:999px;
  }
  /* ── NIGHT IS THE SAME SCHEME, TURNED DOWN ─────────────────────────────
     Georgiy, 2026-10-21: *"keep the day time color scheme too but for night
     time just make the colors a little more soft so its not as bright"*.

     So the hues are UNCHANGED — this is the day palette with the glare taken
     out, not a second design. Two things were doing the glaring:

       · near-white text (#F2EFF7) on a near-black page. On a bright screen in
         a dark room that edge is what makes you squint, so the text tops out
         at a soft off-white instead of white.
       · fully saturated status colours. The orange, green, violet and blue
         were picked to carry on a WHITE page, and the same chroma on a dark
         page reads as neon. Each keeps its hue and gives up some saturation.

     WHAT IS NOT TOUCHED: the gap between --ground and the surfaces. The first
     dark pass had the card and the page almost the same colour so nothing had
     an edge, and softening is the easy way to walk straight back into that.
     The four steps below are deliberately as far apart as they were. */
  /* ── THE PAGE IS LIGHT. FULL STOP. ────────────────────────────────────
     Georgiy, three times: *"keep the day time color scheme"*, *"I wanted it
     to stay with the light color where we had the whites in it"*, *"The white
     background, purple lettering, as we fucking discussed"*.

     This used to sit behind `@media (prefers-color-scheme:dark)`, so the page
     followed the MACHINE'S setting. His machine is in dark mode, so it served
     the dark palette every time no matter what the request was — and I kept
     reading "keep the day scheme" as "leave the light tokens alone" instead
     of "the page should BE light".

     The dark tokens stay, because the softening work is real and correct, but
     they are OPT-IN ONLY now: nothing applies them unless something sets
     data-theme="dark" on the root. No media query. The OS does not get a
     vote on what this page looks like. */
  :root[data-theme="dark"]{
    --ground:#13111A; --surface:#1E1B27; --surface-2:#272333; --raise:#2F2A3B;
    --ink:#E0DCE9; --ink-2:#ADA5BB; --ink-3:#9B94A5;
    --line:#312C3D; --line-2:#413B51;
    --accent:#B4A0E2; --accent-soft:#2B2340; --accent-line:#4F4472;
    --late:#E79B80; --late-soft:#38231B;
    --ok:#A8C07E; --ok-soft:#212A1A;
    --warn:#E4C57F;
    --unknown:#9BB2CE; --unknown-soft:#1B2531;
    --shadow:0 1px 2px rgba(0,0,0,.45);
  }
  *{box-sizing:border-box}
  /* ── [hidden] MUST ACTUALLY HIDE ───────────────────────────────────────
     The browser's own `[hidden]{display:none}` lives in the UA stylesheet, so
     ANY author rule that sets `display` beats it. `.filters{display:flex}` and
     `.board{display:grid}` both did, which meant `el.hidden = true` set the
     attribute, passed every check that reads `.hidden`, and changed nothing on
     screen. Measured in the browser: on the LIST view the board had
     `hidden: true` and `display: grid` and was still painted underneath, and
     the filter chips stayed lit on the board doing nothing when clicked.
     One rule fixes every element on the page, now and later. */
  [hidden]{display:none!important}
  body{background:var(--ground);color:var(--ink);font-family:var(--body);font-size:15px;
       line-height:1.5;margin:0;letter-spacing:-.011em;-webkit-font-smoothing:antialiased}
  /* ── WIDTH ─────────────────────────────────────────────────────────────
     Prose wants a narrow measure; a board wants the screen. The list is one
     line per person and reads fine at 1140, but the board was pinned to the
     same width and left a third of a wide monitor empty while squeezing the
     drawer into a column too narrow to read. So the two have different
     ceilings, and both are clamped rather than fixed. */
  .wrap{max-width:clamp(320px, 100%, 1180px);margin:0 auto;padding-inline:clamp(12px,2.2vw,24px)}
  .wrap.wide{max-width:clamp(320px, 100%, 1760px)}
  h1{font-size:25px;font-weight:800;letter-spacing:-.03em;margin:0;line-height:1.1}
  .eyebrow{font-size:11px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--ink-3)}
  .small{font-size:13.5px;line-height:1.5;color:var(--ink-2)}

  header.top{border-bottom:1px solid var(--line);background:var(--surface)}
  .top-in{padding-block:20px 16px;display:flex;flex-direction:column;gap:14px}
  .titlerow{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}
  /* ── SIGNED IN AS ──────────────────────────────────────────────────────
     Georgiy, 2026-10-22: *"have a little signed in as at the top left that
     can be edited"*, like the meal planner's "THIS COMPUTER IS · Georgiy".
     TOP LEFT, ABOVE THE TITLE, because that is where he asked for it and
     where the meal planner puts the same thing: a tiny label stacked over
     the name, flush with the left edge, always visible. It is the name that
     will be written onto a client's record, and somebody arriving at a
     shared laptop should see whose it is before they tick anything.

     THE NAME IS THE BUTTON, with a pencil — the meal planner's affordance,
     and it keeps a separate "Change" control out of a chip this small. */
  /* align-self, NOT just inline-block. The header is a flex COLUMN, which
     blockifies an inline-block child and stretches it edge to edge — the
     chip rendered 1132px wide in the browser while every unit test was
     green, because this is a seam between two files and neither one is
     wrong on its own. */
  .whoami{align-self:flex-start;display:inline-block;margin-bottom:10px;max-width:100%;
          background:var(--surface-2);border:1px solid var(--line);
          border-radius:10px;padding:5px 11px 6px;font-size:12px}
  .whoami .wl{display:block;font-size:9.5px;font-weight:700;color:var(--ink-3);
              letter-spacing:.07em;text-transform:uppercase;padding-bottom:1px}
  .whoami .wn{font-weight:800;letter-spacing:-.01em;max-width:22ch;
              overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  /* The whole name reads as one control, so the pencil is not a second
     target somebody has to aim at. */
  .whoami .wb{display:flex;align-items:center;gap:6px;max-width:100%;
              font:inherit;font-size:13px;color:var(--ink);cursor:pointer;
              border:0;background:transparent;padding:0;text-align:left}
  .whoami .wb .pen{font-size:11px;color:var(--ink-3)}
  .whoami .wb:hover .wn{color:var(--accent)}
  .whoami .wb:hover .pen{color:var(--accent)}
  .whoami .row{display:flex;align-items:center;gap:6px}
  .whoami button{font:inherit;cursor:pointer}
  .whoami .row button{font-size:11.5px;font-weight:700;
                 border:1px solid var(--line-2);background:transparent;
                 color:var(--ink-3);border-radius:var(--r-chip);padding:3px 9px}
  .whoami .row button:hover{background:var(--ink-3);color:var(--ground);border-color:var(--ink-3)}
  .whoami button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
  .whoami input{font:inherit;font-size:13px;font-weight:700;width:14ch;
                border:1px solid var(--accent);border-radius:var(--r-chip);
                padding:3px 9px;background:var(--surface);color:var(--ink)}

  .statrow{display:flex;flex-wrap:wrap;gap:8px}
  .stat{background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-s);
        padding:7px 12px;display:flex;align-items:baseline;gap:8px}
  .stat .v{font-size:19px;font-weight:800;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
  .stat .k{font-size:12px;color:var(--ink-3);font-weight:600}
  .stat.hot{background:var(--late-soft);border-color:color-mix(in srgb,var(--late) 28%,transparent)}
  .stat.hot .v,.stat.hot .k{color:var(--late)}

  .toolrow{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center}
  .searchbox{display:flex;align-items:center;gap:6px;flex:1 1 260px;max-width:420px}
  #q{flex:1 1 auto;min-width:0;font:inherit;font-size:13.5px;
     padding:7px 12px;border-radius:var(--r-chip);
     border:1px solid var(--line-2);background:var(--surface);color:var(--ink)}
  #q::placeholder{color:var(--ink-3)}
  #q:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent)}
  .qx{font:inherit;font-size:12px;font-weight:700;cursor:pointer;flex:0 0 auto;
      border:1px solid var(--line-2);background:transparent;color:var(--ink-3);
      border-radius:var(--r-chip);padding:6px 11px}
  .qx:hover{background:var(--ink-3);color:var(--ground);border-color:var(--ink-3)}
  /* WHOSE CLIENTS — two dropdowns beside the search. They use the same
     chip radius and border as #q so the row reads as one toolbar rather than
     a control bolted on. */
  .whofilter{display:flex;align-items:center;gap:6px;flex:0 0 auto;flex-wrap:wrap}
  .wholab{font-size:12px;font-weight:700;color:var(--ink-3)}
  .whofilter select{font:inherit;font-size:13px;font-weight:600;cursor:pointer;
       padding:6px 10px;border-radius:var(--r-chip);
       border:1px solid var(--line-2);background:var(--surface);color:var(--ink);
       max-width:170px}
  .whofilter select:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
  /* A FILTER THAT IS ON LOOKS DIFFERENT FROM ONE THAT IS NOT. The selection
     survives a reload, so "all" and "just Greg's" must never look the same. */
  .whofilter select.on{border-color:var(--accent);
       background:color-mix(in srgb,var(--accent) 10%,var(--surface));color:var(--ink)}
  .whofilter select:disabled{opacity:.55;cursor:not-allowed}

  /* THE BANNER. Loud enough that a week-old sticky filter cannot read as an
     empty board, quiet enough not to compete with the client cards. */
  .scopebar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;
       margin-top:10px;padding:8px 12px;border-radius:var(--r-chip);
       background:color-mix(in srgb,var(--accent) 9%,var(--surface));
       border:1px solid color-mix(in srgb,var(--accent) 30%,transparent);
       font-size:13px;color:var(--ink)}
  .scopebar b{font-weight:800}
  .scopebar .warn{color:var(--late);font-weight:700}
  .scopebar button{font:inherit;font-size:12px;font-weight:700;cursor:pointer;
       border:1px solid var(--line-2);background:var(--surface);color:var(--ink-2);
       border-radius:var(--r-chip);padding:5px 11px;margin-left:auto}
  .scopebar button:hover{background:var(--ink);color:var(--ground);border-color:var(--ink)}

  /* WHO IS ON THIS CLIENT, stacked on a board card. Two labelled lines beat
     one middot run at 230px wide — a wrapped "Closer Matt · Coach Tyler"
     reads as four words with no idea which label owns which name. */
  .wc{display:block;line-height:1.35}
  .wc.dim{color:var(--ink-3)}

  .searchnote{font-size:12.5px;color:var(--ink-2);padding-block:10px 12px}
  .searchnote b{color:var(--ink)}
  .seg{display:inline-flex;gap:3px;background:var(--surface);border:1px solid var(--line-2);
       border-radius:var(--r-chip);padding:3px;width:max-content}
  .seg button{font:inherit;font-size:12.5px;font-weight:700;border:0;background:transparent;
              color:var(--ink-3);padding:5px 14px;border-radius:var(--r-chip);cursor:pointer}
  .seg button[aria-pressed="true"]{background:var(--ink);color:var(--ground)}
  .seg button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
  .filters{display:flex;flex-wrap:wrap;gap:6px;padding-block:14px 10px}
  .fchip{font:inherit;font-size:13px;font-weight:600;cursor:pointer;
         border:1px solid var(--line-2);background:var(--surface);color:var(--ink-2);
         border-radius:var(--r-chip);padding:6px 13px;display:inline-flex;align-items:center;gap:7px}
  .fchip:hover{border-color:var(--accent-line);color:var(--ink)}
  .fchip[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--ground)}
  .fchip .n{font-variant-numeric:tabular-nums;opacity:.65;font-weight:700}
  .fchip[aria-pressed="true"] .n{opacity:.8}
  .fchip.quiet{border-style:dashed;color:var(--ink-3)}

  /* ── the list ── */
  .list{border:1px solid var(--line);border-radius:var(--r);overflow:hidden;
        background:var(--surface);box-shadow:var(--shadow)}
  .row{display:grid;grid-template-columns:68px minmax(0,1.1fr) clamp(88px,9vw,118px) minmax(0,2.2fr) auto;
       gap:clamp(8px,1.2vw,16px);align-items:center;width:100%;
       color:var(--ink);border-bottom:1px solid var(--line);
       padding:11px clamp(10px,1.4vw,16px);cursor:pointer}
  .row:last-of-type{border-bottom:0}
  .row:hover{background:var(--surface-2)}
  .row[aria-expanded="true"]{background:var(--accent-soft)}
  .row:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
  .days{font-size:17px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.03em}
  .days small{font-size:10px;font-weight:600;color:var(--ink-3);display:block;
              margin-top:-2px;line-height:1.2;letter-spacing:0}
  .days.late{color:var(--late)} .days.late small{color:var(--late);opacity:.8}
  .days.stopped{color:var(--ink-3)}
  /* ── THE TWO QUICK LINKS ─────────────────────────────────────────────
     Georgiy asked for these and then asked, in the same sentence, that they
     not clutter the card. The whole design is that sentence:

     THE NAME LINK IS INVISIBLE AT REST. It inherits its colour and carries
     no underline, so a card with a GHL contact looks IDENTICAL to one
     without until the pointer is over it. Nothing was added to the layout —
     the name was always there; it just became clickable. A client with no
     contact id renders as plain text, never as a link to nowhere.

     THE TRAINERIZE MARK is the one genuinely new thing on the card, so it is
     the smallest thing that can still be hit: a 15px square, muted until
     hovered, and ABSENT entirely until there is an account to open. It does
     not have a "no account" twin — the Trainerize step pip already says
     whether they are in there, and a second empty marker beside it would be
     exactly the clutter being avoided. The pip answers WHETHER, this answers
     OPEN IT.

     A letter, not an emoji: an emoji's size and baseline move with the
     platform's font, and this sits inline beside a name on three different
     surfaces. */
  .lnk-ghl{color:inherit;text-decoration:none}
  .lnk-ghl:hover,.lnk-ghl:focus-visible{text-decoration:underline;
    text-underline-offset:2px;text-decoration-thickness:1.5px;color:var(--accent)}
  .lnk-ghl:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:3px}
  .lnk-tz{display:inline-flex;align-items:center;justify-content:center;
    width:15px;height:15px;margin-left:6px;
    border:1px solid var(--line-2);border-radius:4px;background:var(--surface-2);
    color:var(--ink-3);font-size:9.5px;font-weight:800;line-height:1;
    letter-spacing:0;text-decoration:none;flex:0 0 auto}
  .lnk-tz:hover,.lnk-tz:focus-visible{border-color:var(--accent);color:var(--accent);
    background:var(--accent-soft)}
  .lnk-tz:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
  /* THE NAME TRUNCATES, THE MARK NEVER DOES — the name is the label, the
     mark is the control. Both live on `.lnk-ghl`/`.lnk-name` rather than on
     the parent, because the parent is now a flex row and `text-overflow`
     applies to the item, not the container. */
  .lnk-ghl,.lnk-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  /* ── ON A TOUCHSCREEN THERE IS NO HOVER, SO THERE IS NO LINK ─────────
     The invisible-at-rest name is elegant with a mouse and completely
     undiscoverable on a tablet: the only thing that says "this is clickable"
     is a state a finger cannot produce. Anyone working this board from an
     iPad would never find it (Jeremy, 2026-10-24).
     `hover: none` is the pointer itself, not the screen width — a laptop at
     900px still has a mouse and keeps the clean version; a 1024px tablet
     does not and gets the underline. A dotted rule rather than a solid one
     so it reads as "there is something here" without turning a column of
     twenty names into twenty blue links. */
  @media (hover:none){
    .lnk-ghl{text-decoration:underline dotted;text-underline-offset:3px;
             text-decoration-color:var(--line-2)}
  }
  .who{min-width:0}
  /* A FLEX ROW, so the Trainerize mark sits beside the name instead of
     inside the text that gets clipped. It was `display:block` with the
     ellipsis here; the ellipsis moved down to the name element itself (see
     .lnk-ghl/.lnk-name above) because a block's text-overflow would clip the
     mark along with the name. Measured before the change: a long name ran
     309px inside a 234px row and took the mark off-screen with it. */
  .who b{display:flex;align-items:baseline;min-width:0;
         font-size:14.5px;font-weight:700;letter-spacing:-.02em}
  .who span{display:block;font-size:12px;color:var(--ink-3);white-space:nowrap;
            overflow:hidden;text-overflow:ellipsis}
  .step{font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
        padding:4px 9px;border-radius:var(--r-chip);white-space:nowrap;text-align:center}
  .step.s-open{background:var(--accent-soft);color:var(--accent)}
  .step.s-quiet{background:var(--surface-2);color:var(--ink-3)}
  .step.s-done{background:var(--ok-soft);color:var(--ok)}
  .why{font-size:13px;color:var(--ink-2);line-height:1.4;min-width:0;
       display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .pips{display:flex;gap:4px}
  .pip{width:17px;height:17px;border-radius:5px;border:1.5px solid var(--line-2);background:var(--surface-2);
       font-size:9px;font-weight:800;display:flex;align-items:center;justify-content:center;
       color:var(--ink-3);flex:0 0 auto}
  .pip.done{background:var(--ok);border-color:var(--ok);color:var(--ground)}
  .pip.done.hand{background:var(--accent);border-color:var(--accent);color:var(--ground)}
  .pip.unknown{border-style:dashed;border-color:var(--unknown);color:var(--unknown);background:var(--unknown-soft)}
  .pip.current{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}

  /* detail opens UNDER the row it belongs to — never in a panel far away */
  .drawer{border-bottom:1px solid var(--line);background:var(--surface-2);padding:4px 16px 16px}
  .dgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,232px),1fr));gap:8px;margin-top:10px}
  .sig{background:var(--raise);border:1px solid var(--line);border-radius:var(--r-s);
       padding:10px 12px;display:flex;gap:9px;align-items:flex-start}
  .sig-m{min-width:0;display:flex;flex-direction:column;gap:2px}
  .sig-n{font-size:13px;font-weight:700;letter-spacing:-.015em}
  .sig-e{font-size:12px;color:var(--ink-3);line-height:1.42;word-break:break-word}
  /* NOT uppercase any more: it now carries a person's NAME, and "DETECTED:
     JESS" shouts a name that should just be read. The colour still encodes
     how much the reading is worth. */
  .tier{font-size:11px;font-weight:700;letter-spacing:.01em;
        color:var(--ink-3);margin-top:2px}
  .tier.t-machine{color:var(--ok)} .tier.t-workflow{color:var(--warn)} .tier.t-claim{color:var(--ink-3)}
  .tier.t-none{color:var(--unknown);font-style:italic}
  .dmeta{font-size:12.5px;color:var(--ink-3);font-family:var(--mono)}

  /* ── THE HAND-TICK CONTROLS ────────────────────────────────────────────
     Three states, each with its reason attached, and none of them optimistic.
     The SAVING bar is here because a write that takes a second with no moving
     part is indistinguishable from a dead page. */
  .tick-row{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;margin-top:7px}
  .tickb{font:inherit;font-size:11.5px;font-weight:700;cursor:pointer;
         border:1px solid var(--accent-line);background:var(--accent-soft);
         color:var(--accent);border-radius:var(--r-chip);padding:4px 11px}
  .tickb:hover:not(:disabled){background:var(--accent);color:#fff;border-color:var(--accent)}
  .tickb:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
  .tickb.undo{border-color:var(--line-2);background:transparent;color:var(--ink-3)}
  .tickb.undo:hover:not(:disabled){background:var(--ink-3);color:var(--ground);border-color:var(--ink-3)}
  .tickb:disabled{cursor:default;opacity:.55}
  .tick-why{font-size:11px;color:var(--ink-3);font-style:italic}
  .tick-ok{font-size:11px;font-weight:700;color:var(--ok)}
  /* FAILURE STYLING, never the success box. An expired cookie once rendered
     "Not saved: signed out" in success green. */
  .tick-err{font-size:11px;font-weight:700;color:var(--late);line-height:1.35;
            background:var(--late-soft);border-radius:6px;padding:4px 7px;flex:1 1 100%}
  .tick-bar{display:block;flex:1 1 60px;height:3px;border-radius:99px;
            background:var(--accent-soft);overflow:hidden;position:relative}  /* ── THE COACH COORDINATOR'S PANEL ─────────────────────────────────────
     Visually apart from the step grid above it, because it IS apart: nothing
     in here can make a client look stuck. Softer surface, no status colours
     on the container, and the count is of the REQUIRED ones only. */
  .ccbox{margin-top:18px;border:1px solid var(--line);border-radius:var(--r);
         background:var(--surface-2);padding:14px 16px 10px}
  .cchead{display:flex;align-items:baseline;gap:10px;font-size:13.5px}
  .cchead b{letter-spacing:-.015em}
  .ccn{font-size:12px;font-weight:700;color:var(--ink-3);font-variant-numeric:tabular-nums}
  .ccnote{margin:4px 0 12px;font-size:11.5px;color:var(--ink-3);line-height:1.45;max-width:58ch}
  .ccrow{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start;padding:9px 0;
         border-top:1px solid var(--line)}
  .ccrow:first-of-type{border-top:0}
  .ccm{min-width:0;display:flex;flex-direction:column;gap:2px;flex:1 1 auto}
  .ccn-name{font-size:12.5px;font-weight:600;line-height:1.35}
  .ccrow.on .ccn-name{color:var(--ink-3);text-decoration:line-through}
  .ccopt{font-size:10.5px;font-weight:700;color:var(--ink-3);letter-spacing:.02em}
  .ccby{font-size:11px;color:var(--ink-3)}
  .ccby.na{font-style:italic}
  /* WHAT A MACHINE SAW, in its own line under the verdict. A derived tick
     with no reason beside it is a number with no source. Quiet ink, because
     it explains rather than claims. */
  .ccwhy{font-size:10.5px;color:var(--ink-3);line-height:1.35}
  /* A check that COULD read itself from a source. Named rather than silently
     left manual, so the next person wiring one finds the intent recorded.
     Still --warn when nothing is wired; once a source IS reading it, the note
     is an explanation rather than a gap, so it stops shouting. */
  .ccauto{font-size:10.5px;color:var(--warn);font-weight:600}
  .ccrow.wired .ccauto{color:var(--ink-3);font-weight:500}
  /* ── HOLD AND DISCARD ──────────────────────────────────────────────
     Set apart from the checklist above it, because both of these take a
     client OFF the live board and neither should read as routine. */
  .cabox{margin-top:12px;padding:12px 14px;border-radius:var(--r-box);
         border:1px solid var(--line);background:var(--surface-2)}
  /* TWO BLOCKS, VISIBLY SEPARATE. They shared one row and the delayed-start
     gate sentence read as if it explained the Discard button beside it.
     A hold says "stop counting, this one is fine"; a discard says "this one
     is gone". Nothing about them is a variation of the other. */
  .cablk{padding-top:10px}
  .cablk + .cablk{margin-top:10px;border-top:1px solid var(--line)}
  .cablk:first-child{padding-top:0}
  .cahd{font-size:10px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;
        color:var(--ink-3);margin-bottom:6px}
  .carow{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
  .cab{font:inherit;font-size:12.5px;font-weight:700;cursor:pointer;
       border:1px solid var(--line-2);background:var(--surface);color:var(--ink);
       border-radius:var(--r-chip);padding:7px 14px}
  .cab:hover{border-color:var(--ink-3)}
  .cab:disabled{opacity:.6;cursor:default}
  .cab.ghost{background:transparent;color:var(--ink-3)}
  /* The one control that ends a client's time on the board reads like it. */
  .cab.danger{color:var(--late);border-color:var(--late)}
  .cab.danger:hover{background:var(--late);color:var(--ground)}
  .cab:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
  .cwhy{font-size:11.5px;color:var(--ink-3);line-height:1.4;flex:1 1 220px}
  .cnow{font-size:12.5px;line-height:1.45;margin-bottom:8px}
  .cnow b{font-weight:800}
  .cnow.hold{color:var(--ink-2)}
  .cnow.off{color:var(--late)}
  .cby{display:block;font-size:11px;color:var(--ink-3);margin-top:2px}
  .cmsg{font-size:12px;font-weight:700;margin-bottom:8px;line-height:1.4}
  .cmsg.good{color:var(--ok)}
  .cmsg.bad{color:var(--late)}
  /* Landed, but not everywhere it should have. Its own colour, because the
     success green over a half-reached write is the lie this board refuses. */
  .cmsg.warn{color:var(--warn)}
  .cform{display:flex;flex-direction:column;gap:8px;width:100%}
  .cform label{display:flex;flex-direction:column;gap:3px;font-size:11px;
               font-weight:700;color:var(--ink-3);letter-spacing:.02em}
  .cform label small{font-weight:600;color:var(--ink-3)}
  .cform input,.cform select{font:inherit;font-size:13px;font-weight:600;
       padding:7px 10px;border:1px solid var(--line-2);border-radius:var(--r-chip);
       background:var(--surface);color:var(--ink)}
  .cform input:focus,.cform select:focus{outline:2px solid var(--accent);outline-offset:1px}
  .chint{font-size:11px;color:var(--ink-3);line-height:1.4;margin:0}
  .cform .cab{align-self:flex-start}
  /* ── A FAILURE MESSAGE MUST NOT EAT THE LABEL ──────────────────────────
     `.tick-row` was `flex:0 0 auto`, so it sized to its CONTENT and could
     not wrap. A one-line "Mark done" fits; the refusal message —
     "Patrick J Morrell has no Coach Coordinator checklist, so there is no
     box to tick…" — is a paragraph, and it stretched the row until `.ccm`
     (flex:1 1 auto, min-width:0) collapsed to a single word per line AND
     the text ran out of the card.

     So the row WRAPS at every width, not only on a phone, and nothing in it
     may exceed the card. The error then drops to its own full-width line,
     which is where a paragraph belongs. Found by Georgiy hitting Undo. */
  .ccrow .tick-row{margin-top:0;flex:0 1 auto;align-self:center;max-width:100%;min-width:0}
  .ccrow .tick-err,.ccrow .tick-why{flex:1 1 100%;max-width:100%;min-width:0}
  @media (max-width:560px){ .ccrow .tick-row{flex:1 1 100%} }

  .tick-bar i{position:absolute;inset:0 auto 0 0;width:40%;border-radius:99px;
              background:var(--accent);animation:slide 1.1s ease-in-out infinite}
  @keyframes slide{0%{left:-40%}100%{left:100%}}
