/* HEI Schools — Customer OS — the whole stylesheet.
   Lifted verbatim out of app/index.html at v8.96 and NOT otherwise edited. The shell is served
   no-store because it carries the login gate, so everything inside it was re-downloaded on
   every page load; this file is versioned in its href and cached for a year instead.
   Same directory as index.html, so every relative url() in here still resolves.
   See docs/SPEC-shell-split.md. */
  /* ═══════════════════════════════════════════════════════════
     HEI Schools · dashboard design guide
     realigned to the heischools.com brand:
     forest green primary · charcoal ink · earthy accents · no navy
     fonts: Plus Jakarta Sans (≈ Noyh Heavy) + Inter (≈ Proxima Nova)
     ═══════════════════════════════════════════════════════════ */

  :root {
    /* ── brand · forest green (actions + brand ONLY, never a data state) */
    --forest:       #01503B;
    --forest-deep:  #00321D;
    --forest-soft:  #1F6E59;
    --forest-wash:  rgba(1,80,59,0.08);
    /* the terracotta counterpart to --forest-wash. Both are a column tint rather than a
       fill, and the pair was written two different ways until the week view needed the second. */
    --terracotta-wash: rgba(219,124,73,0.06);
    --forest-line:  rgba(1,80,59,0.22);

    /* ── ink · charcoal-slate ramp (#373F41) */
    --ink:     #373F41;
    --ink-70:  rgba(55,63,65,0.70);
    --ink-50:  rgba(55,63,65,0.50);
    /* used in 28 places and declared in none until now, so every one of them fell back to
       inherit — muted text rendered at full ink instead. */
    --ink-40:  rgba(55,63,65,0.40);
    --ink-30:  rgba(55,63,65,0.30);
    --ink-18:  rgba(55,63,65,0.18);

    /* ── accents · earthy (data + decoration) */
    --terracotta:      #db7c49;
    --terracotta-deep: #b94929;
    /* the palest step of the risk pigment. Only the Unknown bar in the adoption band chart uses
       it: an unassessed account sits inside the at-risk band without having earned the band's
       full colour, and the three rows there need to be told apart at a glance. */
    --terracotta-pale: #e8a882;
    --amber:           #fcb42b;
    --amber-soft:      #ffe7b0;
    --amber-deep:      #946100;
    --coral:           #ef6b51;
    --sage:            #6e8e5c;   /* the data "healthy" green */
    --sage-deep:       #4e6b3e;
    --sage-mid:        #b9cda6;   /* intermediate sage step (heat ramp h2) */
    --sage-soft:       #e3ead9;
    --warm-grey:       #9a8c7a;   /* unknown / no-data */
    --plum:            #6b4f7a;
    --slate:           #5f7488;   /* tier 4 chip — muted blue-grey, distinct from t1-t3 */
    --sand:            #e6ddcb;   /* "total / full reach" behind active fills */

    /* ── surfaces */
    --cream:  #fcf6ed;   /* page background */
    --paper:  #ffffff;   /* cards */
    --mute:   #f8f6f1;   /* tracks, table heads, fills */
    --cool:   #f8fafc;   /* cool alt surface (toolbars/headers) */
    --dark:   #31312f;   /* dark callout / banner surface */
    /* the surface the app speaks to you on — the passing pill and the update bar, and
       nothing else. These two float over live content rather than sitting on the page, and
       dimming and softening what is under them is what makes them read as above it.

       The alpha is the whole design of this. It shipped at 0.93, which let 7% of the
       backdrop through — and blurring 7% of an image is invisible, so the blur was on,
       unblocked, and doing nothing anybody could see. There is a real tension behind that
       mistake: on a CREAM page a translucent dark pill gets LIGHTER as alpha drops, so
       "darker" and "you can see through it" pull against each other and darkness had won.

       Resolved by darkening the backdrop instead of the surface: the base is nearly black
       at 0.86, and brightness(0.82) in the filter dims what shows through before it is
       composited. The pill lands around #29 — a step darker than the --dark it replaced —
       while 14% of a blurred, dimmed page still reads underneath it. This is the only blur
       in the product and it stays that way; see the note on .updbar. */
    --notice: rgba(14,14,12,0.86);
    --notice-filter: blur(16px) saturate(1.1) brightness(0.82);

    /* ── lines + shadows · charcoal-tinted (no navy) */
    --hairline:        rgba(55,63,65,0.10);
    --hairline-strong: rgba(55,63,65,0.18);
    --shadow-card: 0 1px 2px rgba(49,49,47,0.04), 0 4px 16px rgba(49,49,47,0.06);
    --shadow-pop:  0 8px 24px rgba(49,49,47,0.12), 0 2px 6px rgba(49,49,47,0.07);

    /* ── type */
    --display: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
    --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono:    "Inter", ui-monospace, monospace;

    /* ── radii · 10px is the workhorse. only 3: small inset, default, pill */
    --r-sm: 6px;   /* small controls + insets only (score bars, copy buttons) */
    --r-md: 10px;  /* the default — cards, chips containers, buttons, inputs */
    --r-lg: 10px;  /* kept as an alias of --r-md so existing markup stays consistent */
    --r-pill: 999px;

    /* ── spacing scale · use these, never ad-hoc margins */
    --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
    --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;

    --ease: cubic-bezier(0.3, 0, 0.2, 1);   /* calm standard easing (was a bounce-ish curve) */
    /* things arriving and leaving decelerate — most of the distance is covered early, so
       the end of the movement is a settle rather than a stop. No overshoot anywhere. */
    --ease-out: cubic-bezier(0.165, 0.84, 0.44, 1);
    --dur-fast: .14s;
    --dur: .2s;
    --dur-slow: .28s;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  html, body { margin: 0; padding: 0; }

  body {
    font-family: var(--sans);
    font-weight: 400;
    color: var(--ink);
    background: var(--cream);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  a { color: inherit; }

  /* ── scroll progress */
  .progress {
    position: fixed; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--forest), var(--sage));
    transform: scaleX(0); transform-origin: 0 50%;
    z-index: 60;
  }
  /* live refetch in flight — the data on screen is still valid, so dim rather than
     blank it, and block clicks that would race the re-render. The drawer is dimmed too:
     a click on Save mid-flight would write a note the in-flight read has already missed,
     so it would not appear until the next refresh. */
  body.is-refreshing { cursor: progress; }
  body.is-refreshing .panel,
  body.is-refreshing .drawer { opacity: .55; pointer-events: none; transition: opacity .18s ease; }
  @media (prefers-reduced-motion: reduce) { body.is-refreshing .panel, body.is-refreshing .drawer { transition: none; } }

  /* ── passing messages: one pill, one place ───────────────────────────────────
     Everything the app says in passing renders here — a save confirmation, a load in
     flight, a refresh that failed. This used to be two systems in opposite corners:
     toasts at the bottom of the window, the refresh banner at the top. Saving a note
     and reloading the page therefore spoke from different places, and neither was
     where anyone was looking. One place now, top centre.

     One element, not a stack. It was a flex column of two — the loader, then the toast —
     and an item that is off is only opacity: 0, so it keeps its row. That pinned every
     confirmation in the app 46px below every load (38px pill + 8px gap) whether or not
     the load was on screen: "Refreshing data…" and the "Up to date" that ends it arrived
     one row apart, which reads as two different notification systems rather than one
     message being replaced by its outcome. See notifShow() for how the slot is shared.

     It clears the sticky appbar (brand row + tab bar ≈ 108px) so it sits over the
     content it is talking about, not on top of the search field. */
  .notif {
    position: fixed; top: 124px; left: 0; right: 0; z-index: 95;
    display: flex; justify-content: center;
    pointer-events: none;
  }
  .notif-item {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--notice); color: var(--cream);
    -webkit-backdrop-filter: var(--notice-filter); backdrop-filter: var(--notice-filter);
    font: 500 13px var(--sans); padding: 11px 18px; border-radius: var(--r-pill);
    box-shadow: var(--shadow-pop); max-width: min(560px, 90vw);
    opacity: 0; transform: translateY(-8px);
    transition: opacity .18s var(--ease), transform .18s var(--ease);
  }
  .notif-item.on { opacity: 1; transform: translateY(0); }
  .notif-item .ic { flex: none; font-weight: 700; }
  .notif-item .ic.ok  { color: var(--sage); }
  .notif-item .ic.bad { color: var(--terracotta); }
  /* the refresh spinner. Indeterminate on purpose, and this is the one case where that is
     right: a refresh runs against a page that already works, so how far along it is changes
     nothing anyone would do. The cold start reports a real percentage (see .boot) because
     there the number is the only thing on screen. */
  .notif-item .sp {
    width: 12px; height: 12px; border-radius: 50%; flex: none;
    border: 2px solid rgba(247,245,239,0.28); border-top-color: var(--sage);
    animation: notif-spin .7s linear infinite;
  }
  @keyframes notif-spin { to { transform: rotate(360deg); } }
  /* hairline at the very top edge, paired with the pill — it is what makes a load read
     as "working" rather than "stuck", and it stays visible if the window is short */
  .load-track {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 95;
    background: rgba(1,80,59,0.14); overflow: hidden;
    opacity: 0; pointer-events: none; transition: opacity .18s var(--ease);
  }
  .load-track.on { opacity: 1; }
  .load-track i {
    display: block; height: 100%; width: 34%; border-radius: var(--r-pill);
    background: linear-gradient(90deg, var(--forest), var(--sage));
    animation: notif-slide 1.15s var(--ease) infinite;
  }
  @keyframes notif-slide { 0% { transform: translateX(-105%); } 100% { transform: translateX(400%); } }
  @media (prefers-reduced-motion: reduce) {
    .load-track i { animation: none; width: 100%; }
    .notif-item { transition: none; }
    .notif-item .sp { animation: none; border-top-color: var(--sage); }
  }

  /* ── cold start ──────────────────────────────────────────────────────────────
     A first load and a refresh are not the same event, and treating them as one is
     what left a dark pill floating in the middle of an empty cream page. A refresh
     has content behind it to dim and speak over; that is the case the pill is right
     for, and it keeps it. A cold start has nothing behind it, so the pill sat in a
     void — and since the only other thing that shape says is "something failed", an
     ordinary two-second load read as an error.

     This is the cold start only. It stays inside the content column under the appbar
     rather than covering the window, because opening the app should be one continuous
     surface, not a splash that cuts to a dashboard.

     It is a ledger, not a spinner. The four rows are the four things this book is made
     of, and each figure is written in the moment its query lands, so the wait produces
     information instead of reassurance: by the time the dashboard appears, the size of
     the book has already been read. Nothing here is invented — a set that fails leaves
     its row unfilled rather than showing a plausible number.

     The bar is determinate and real: DATA.load reports each of its twenty queries as
     it returns. It starts at 6% so it never reads as stuck, and holds at 92% while the
     first page is built, running to the end only once the dashboard is genuinely ready.
     A bar that sits full while the screen is still blank has told its one lie. */
  .boot { width: 100%; max-width: 322px; margin: min(15vh, 132px) auto 0; }
  .boot-h {
    font: 600 17px/1.35 var(--display); color: var(--ink);
    letter-spacing: -.012em; text-align: center;
  }
  /* the total. 3px rather than a hairline because it is the one thing on the page that
     answers "how much longer", and a 2px rule read as decoration. */
  .boot-rule {
    position: relative; height: 3px; border-radius: var(--r-pill);
    background: rgba(1,80,59,0.12); margin: 20px 0 2px; overflow: hidden;
  }
  /* scaleX, not width — width is a layout property and this animates constantly */
  .boot-rule i {
    display: block; height: 100%; width: 100%; border-radius: inherit;
    background: var(--forest); transform: scaleX(.06); transform-origin: left center;
    transition: transform .5s var(--ease-out);
  }
  /* A determinate bar has one weakness: between two queries landing it is perfectly still,
     and still reads as stalled. The sheen says the app is alive without touching the bar's
     position, which stays the truth. It stops the moment the load is done. */
  .boot-rule::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 44%;
    background: linear-gradient(90deg, transparent, rgba(1,80,59,0.24), transparent);
    animation: bootSheen 1.5s var(--ease) infinite;
  }
  .boot-rule.done::after { animation: none; opacity: 0; }
  @keyframes bootSheen { from { transform: translateX(-115%); } to { transform: translateX(340%); } }

  .boot-row {
    position: relative;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 11px 0 10px; border-bottom: 1px solid var(--hairline);
    font: 400 13px var(--sans); color: var(--ink-50);
    opacity: .5; transition: opacity .34s var(--ease-out), color .34s var(--ease-out);
  }
  .boot-row.in { opacity: 1; color: var(--ink-70); }
  /* Each row is a group of queries, not one — so the ruled line under it is its own
     progress bar, drawn as that group arrives. Four honest sub-bars filling at four
     different rates is what keeps something moving at almost every moment of the load,
     and it costs no chrome: the line was already there. */
  .boot-row em {
    position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
    background: var(--forest); opacity: .6; border-radius: var(--r-pill);
    transform: scaleX(0); transform-origin: left center;
    transition: transform .55s var(--ease-out);
  }
  /* the figure and the blank it replaces share one slot, so nothing shifts sideways
     when the number lands */
  .boot-v { position: relative; display: flex; align-items: center; justify-content: flex-end;
    min-width: 58px; height: 18px; }
  .boot-v b {
    font: 600 13.5px var(--sans); color: var(--ink); font-variant-numeric: tabular-nums;
    opacity: 0; transform: translateY(5px);
    transition: opacity .32s var(--ease-out), transform .32s var(--ease-out);
  }
  .boot-row.in .boot-v b { opacity: 1; transform: none; }
  .boot-v i {
    position: absolute; right: 0; width: 26px; height: 2px; border-radius: var(--r-pill);
    background: var(--ink-18); transition: opacity .2s var(--ease-out);
  }
  .boot-row.in .boot-v i { opacity: 0; animation: none; }
  /* only for a load that has genuinely gone long — silence is the right answer at 2s */
  .boot-slow {
    margin-top: 18px; text-align: center; font-size: 12px; line-height: 1.55;
    color: var(--ink-30); opacity: 0; transition: opacity .5s var(--ease-out);
  }
  .boot-slow.on { opacity: 1; }
  /* the block fades, the rows arrive one after another. Separate properties on purpose:
     a `both`-filled animation touching opacity would lock the rows at full and override
     the half-lit resting state that says "this one has not arrived yet". */
  @keyframes bootIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes bootRowIn { from { transform: translateY(9px); } to { transform: none; } }
  @keyframes bootWait { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
  @keyframes bootRise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
  .boot { animation: bootIn .34s var(--ease-out) both; }
  @media (prefers-reduced-motion: no-preference) {
    .boot-row { animation: bootRowIn .44s var(--ease-out) both; }
    .boot-rows .boot-row:nth-child(1) { animation-delay: .05s; }
    .boot-rows .boot-row:nth-child(2) { animation-delay: .11s; }
    .boot-rows .boot-row:nth-child(3) { animation-delay: .17s; }
    .boot-rows .boot-row:nth-child(4) { animation-delay: .23s; }
    /* the first half second has nothing landing yet — this is what fills it */
    .boot-row:not(.in) .boot-v i { animation: bootWait 2.4s var(--ease) infinite; }
  }
  .boot.out { opacity: 0; transform: translateY(-6px); animation: none;
    transition: opacity .2s var(--ease-out), transform .2s var(--ease-out); }
  /* the tab bar is live markup from the first paint, so without this a click during the
     load lands on a switchTab that has nothing to render */
  body.is-booting .tabbar { opacity: .45; pointer-events: none; transition: opacity .2s var(--ease); }
  /* The first page is built while it is still out of sight, so the handoff below is never
     competing with layout work — that is the whole reason it holds instead of just
     rendering. Absolute so an invisible panel does not give the page a scrollbar. */
  body.boot-hold .app-main { position: relative; }
  body.boot-hold .app-main > .panel:not([hidden]) {
    position: absolute; top: 0; left: 0; right: 0; visibility: hidden;
  }
  @media (prefers-reduced-motion: no-preference) {
    body.booted .app-main > .panel:not([hidden]) { animation: bootRise .4s var(--ease-out) both; }
  }
  @media (prefers-reduced-motion: reduce) {
    .boot, .boot.out, .boot-row, .boot-rule::after { animation: none; }
    .boot-rule::after { display: none; }
    .boot.out, .boot-rule i, .boot-row, .boot-row em, .boot-v b, .boot-v i, .boot-slow { transition: none; }
    .boot-v b, .boot-row { transform: none; }
  }

  /* deferred-refresh chip — shown instead of auto-refreshing when there is unsaved text
     in the drawer. Sits in the appbar next to the sync cell so it is findable, not modal. */
  .newdata-chip {
    display: none; align-items: center; gap: 7px; cursor: pointer;
    font: 600 11.5px var(--sans); color: var(--forest);
    background: rgba(110,142,92,0.13); border: 1px solid rgba(1,80,59,0.20);
    padding: 6px 12px; border-radius: var(--r-pill); white-space: nowrap;
    transition: background .16s var(--ease);
  }
  .newdata-chip.on { display: inline-flex; }
  .newdata-chip:hover { background: rgba(110,142,92,0.22); }
  .newdata-chip svg { width: 13px; height: 13px; flex: none; }

  /* ── top bar */
  .topbar {
    max-width: 1340px; margin: 0 auto;
    padding: 22px 40px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    border-bottom: 1px solid var(--hairline);
  }
  .topbar .product {
    font-family: var(--display); font-weight: 800; font-size: 14px;
    letter-spacing: -0.01em; color: var(--ink);
  }
  .topbar .meta { font-size: 12px; color: var(--ink-50); display: flex; align-items: center; gap: 8px; }
  .topbar .meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(110,142,92,.18); }
  @media (max-width: 720px) { .topbar { padding: 16px 18px 12px; flex-wrap: wrap; gap: 12px; } }

  /* ── layout shell */
  .shell {
    position: relative;
    display: grid; grid-template-columns: 232px minmax(0, 1fr);
    gap: 60px; max-width: 1340px; margin: 0 auto; padding: 48px 40px 120px;
  }
  .shell.toc-collapsed { grid-template-columns: 1fr; gap: 0; max-width: 1180px; }
  .shell.toc-collapsed aside.toc { display: none; }
  /* HEI logo lockup in the top bar */
  .topbar .left { display: flex; align-items: center; gap: 12px; }
  .hei-logo { width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--forest); color: var(--cream); font: 800 13px var(--display); letter-spacing: 0.02em; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
  /* persistent vertical divider with a sticky toggle centered on it */
  .rail { position: absolute; top: 0; bottom: 0; left: 232px; width: 1px; background: var(--hairline-strong); z-index: 5; }
  .rail-toggle { position: sticky; top: 88px; margin-left: -13px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--hairline-strong); background: var(--paper); color: var(--ink-50); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-card); transition: color .15s var(--ease), border-color .15s var(--ease), margin-left .2s var(--ease); }
  .rail-toggle:hover { color: var(--forest); border-color: var(--forest-soft); }
  .rail-toggle svg { width: 13px; height: 13px; transition: transform .2s var(--ease); }
  .shell.toc-collapsed .rail { left: 0; background: transparent; }
  .shell.toc-collapsed .rail-toggle { margin-left: 6px; }
  .shell.toc-collapsed .rail-toggle svg { transform: rotate(180deg); }
  @media (max-width: 1024px) { .rail { display: none; } }

  /* ── sidebar */
  aside.toc { position: sticky; top: 32px; align-self: start; font-family: var(--display); font-size: 13px; }
  aside.toc .lockup {
    display: flex; gap: 12px; align-items: center;
    padding-bottom: 22px; border-bottom: 1px solid var(--hairline); margin-bottom: 20px;
  }
  aside.toc .lockup .mark {
    width: 40px; height: 40px; border-radius: var(--r-md); flex-shrink: 0;
    background: var(--forest); color: var(--cream);
    font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 0.02em;
    display: inline-flex; align-items: center; justify-content: center;
  }
  aside.toc .lockup .ttl { font-weight: 800; font-size: 13.5px; line-height: 1.15; color: var(--ink); letter-spacing: -0.01em; }
  aside.toc .lockup .ttl small { display: block; font-weight: 600; font-size: 11px; color: var(--ink-50); margin-top: 2px; letter-spacing: 0; }
  aside.toc nav { display: flex; flex-direction: column; }
  aside.toc a {
    display: flex; gap: 12px; align-items: baseline; text-decoration: none;
    color: var(--ink-50); padding: 7px 12px;
    border-left: 1px solid var(--ink-18); transition: all .18s var(--ease); line-height: 1.3;
  }
  aside.toc a:hover { color: var(--ink); border-left-color: var(--sage); }
  aside.toc a.active { color: var(--forest); border-left-color: var(--forest); background: linear-gradient(90deg, var(--forest-wash), transparent); font-weight: 600; }
  aside.toc a .n { color: var(--warm-grey); font-size: 11px; min-width: 20px; font-variant-numeric: tabular-nums; }
  aside.toc a.active .n { color: var(--forest-soft); }

  main { min-width: 0; }

  /* ── hero */
  .hero { padding: 8px 0 56px; max-width: 880px; }
  .hero .eyebrow { font-family: var(--display); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--forest-soft); margin-bottom: 18px; }
  .hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(42px, 7vw, 78px); line-height: 0.98; letter-spacing: -0.025em; color: var(--forest); margin: 0 0 20px; }
  .hero h1 .alt { color: var(--ink); }
  .hero p { font-size: 18px; line-height: 1.55; color: var(--ink-70); max-width: 640px; margin: 0; }

  /* ── sections */
  section.block { padding: 64px 0; border-top: 1px solid var(--hairline); scroll-margin-top: 28px; }
  section.block:first-of-type { border-top: 0; padding-top: 16px; }
  .sec-tag { font-family: var(--display); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest-soft); margin-bottom: 12px; }
  h2.sec-title { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.5vw, 50px); color: var(--forest); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 14px; }
  h2.sec-title .alt { color: var(--ink); }
  .sec-sub { color: var(--ink-70); font-size: 16px; max-width: 700px; margin: 0 0 36px; line-height: 1.55; }
  h3 { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 20px; letter-spacing: -0.01em; margin: 40px 0 14px; }
  h3:first-of-type { margin-top: 0; }
  h4 { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 15px; margin: 22px 0 8px; }
  p { line-height: 1.6; }
  .hint { color: var(--ink-50); font-size: 12px; margin-top: 14px; line-height: 1.55; }
  .hint code, code.tok { font-family: var(--mono); font-size: 11.5px; background: var(--mute); border: 1px solid var(--hairline); border-radius: 5px; padding: 1px 6px; color: var(--forest-soft); }
  .kbd { font-family: var(--mono); font-size: 12px; background: var(--mute); border: 1px solid var(--hairline-strong); border-radius: 5px; padding: 2px 7px; color: var(--ink); }

  /* demo frame -- every live example sits on this */
  .demo {
    background: var(--cream); border: 1px solid var(--hairline);
    border-radius: var(--r-lg); padding: 28px; margin-top: 8px;
  }
  .demo.paper { background: var(--paper); }
  .demo + .hint { margin-top: 12px; }
  .row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
  .stack { display: flex; flex-direction: column; gap: 14px; }

  /* ── quick start grid */
  .qs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  @media (max-width: 880px) { .qs-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 560px) { .qs-grid { grid-template-columns: 1fr; } }
  .qs-card { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 18px 18px 20px; box-shadow: var(--shadow-card); }
  .qs-card .qsn { font-family: var(--display); font-weight: 800; font-size: 13px; color: var(--forest-soft); margin-bottom: 8px; }
  .qs-card h6 { font-family: var(--display); font-weight: 700; font-size: 14px; margin: 0 0 6px; color: var(--ink); }
  .qs-card p { font-size: 12.5px; color: var(--ink-70); margin: 0; line-height: 1.5; }

  /* ── color swatches */
  .color-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  @media (max-width: 880px) { .color-grid { grid-template-columns: repeat(2, 1fr); } }
  .swatch { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-card); transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
  .swatch:hover { box-shadow: var(--shadow-pop); border-color: var(--hairline-strong); }
  .swatch .chip { height: 84px; display: flex; align-items: flex-end; padding: 10px; }
  .swatch .chip .role { font-family: var(--display); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.92); }
  .swatch .meta { padding: 12px 14px 16px; }
  .swatch .meta .name { font-family: var(--display); font-weight: 700; font-size: 13.5px; color: var(--ink); }
  .swatch .meta .hex { font-family: var(--mono); color: var(--ink-50); font-size: 11.5px; margin-top: 3px; }
  .swatch .meta .use { color: var(--ink-50); font-size: 11.5px; margin-top: 8px; line-height: 1.5; }

  /* ink ramp */
  .ramp { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .ramp .step { height: 64px; border-radius: var(--r-sm); display: flex; align-items: flex-end; padding: 8px; font-family: var(--mono); font-size: 11px; color: var(--cream); }
  .ramp .step.dk { color: var(--ink); }

  /* ── typography specimens */
  .type-scale > div { padding: 14px 0; border-bottom: 1px solid var(--hairline); display: flex; align-items: baseline; gap: 20px; }
  .type-scale > div:last-child { border-bottom: 0; }
  .type-scale .tag { font-family: var(--mono); font-size: 11px; color: var(--ink-50); min-width: 132px; flex-shrink: 0; }
  .type-scale .smp { color: var(--ink); }
  .ds { font-family: var(--display); }
  .sn { font-family: var(--sans); }

  /* ── spacing scale */
  .space-row { display: flex; align-items: center; gap: 16px; padding: 7px 0; }
  .space-row .lab { font-family: var(--mono); font-size: 11.5px; color: var(--ink-50); min-width: 120px; }
  .space-row .bar { height: 14px; background: var(--forest); border-radius: 3px; }
  .radii-row { display: flex; gap: 16px; flex-wrap: wrap; }
  .radii-row .rdemo { width: 84px; }
  .radii-row .box { height: 56px; background: var(--paper); border: 1px solid var(--hairline-strong); }
  .radii-row .cap { font-family: var(--mono); font-size: 11px; color: var(--ink-50); margin-top: 6px; }

  /* ── elevation */
  .elev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  @media (max-width: 720px) { .elev-grid { grid-template-columns: 1fr; } }
  .elev { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 22px; font-size: 12.5px; color: var(--ink-70); }
  .elev.e1 { box-shadow: none; }
  .elev.e2 { box-shadow: var(--shadow-card); }
  .elev.e3 { box-shadow: var(--shadow-pop); }
  .elev b { font-family: var(--display); display: block; color: var(--ink); margin-bottom: 4px; }

  /* ── buttons */
  /* main buttons — one shared height (40px) + radius (10px) */
  .btn, .btn-primary, .btn-secondary, .btn-cta, .btn-ghost, .btn-danger {
    height: 40px; display: inline-flex; align-items: center; justify-content: center;
    box-sizing: border-box; border-radius: var(--r-md); padding: 0 18px; white-space: nowrap;
    cursor: pointer; border: 1px solid transparent; transition: all .15s var(--ease);
    font: 600 13px var(--sans);
  }
  .btn-primary { background: var(--forest); color: var(--cream); }
  .btn-primary:hover { background: var(--forest-deep); }
  .btn-secondary { background: var(--paper); color: var(--forest); border-color: var(--hairline-strong); }
  .btn-secondary:hover { border-color: var(--forest); }
  .btn-cta { background: var(--forest); color: var(--cream); border: 3px solid var(--forest); font: 700 12px var(--display); text-transform: uppercase; letter-spacing: 0.04em; }
  .btn-cta:hover { background: var(--forest-deep); border-color: var(--forest-deep); }
  .btn-ghost { background: transparent; color: var(--ink); border: 3px solid var(--ink); font: 700 12px var(--display); text-transform: uppercase; letter-spacing: 0.04em; }
  .btn-ghost:hover { background: var(--ink); color: var(--cream); }
  .btn-danger { background: var(--paper); color: var(--terracotta-deep); border-color: rgba(185,73,41,.4); }
  .btn-danger:hover { background: var(--terracotta-deep); color: var(--cream); border-color: var(--terracotta-deep); }
  /* small inline buttons — consistent height (30px) + radius (6px) with each other */
  .btn-row, .copy-btn {
    height: 30px; display: inline-flex; align-items: center; box-sizing: border-box;
    border-radius: var(--r-sm); padding: 0 12px; cursor: pointer; transition: all .15s var(--ease);
    border: 1px solid var(--hairline-strong); background: var(--paper);
  }
  .btn-row { font: 600 11.5px var(--sans); color: var(--forest); }
  .btn-row:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
  .copy-btn { font: 500 11px var(--sans); color: var(--ink-50); padding: 0 10px; }
  .copy-btn:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }

  /* ── KPI strip */
  .kpi-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
  @media (max-width: 760px) { .kpi-strip { grid-template-columns: 1fr 1fr; } }
  .kpi { padding: 22px 24px; border-right: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 8px; min-height: 124px; justify-content: space-between; }
  .kpi:last-child { border-right: 0; }
  .kpi .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-50); font-weight: 600; }
  .kpi .value-row { display: flex; align-items: baseline; gap: 10px; }
  .kpi .value { font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--ink); line-height: 1.05; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
  .kpi .value.alert { color: var(--terracotta-deep); }
  .kpi .delta { font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--mute); color: var(--ink-50); }
  .kpi .delta.up { color: var(--terracotta-deep); background: rgba(185,73,41,0.10); }
  .kpi .delta.down { color: var(--sage-deep); background: var(--sage-soft); }
  .kpi .sub { font-size: 12px; color: var(--ink-50); line-height: 1.4; }
  .kpi.is-clickable { cursor: pointer; }
  /* six-cell variant -- the Overview scoreboard; falls to 3-up then 2-up with tidy inner rules */
  .kpi-strip.k6 { grid-template-columns: repeat(6, 1fr); }
  @media (max-width: 1180px) {
    .kpi-strip.k6 { grid-template-columns: repeat(3, 1fr); }
    .kpi-strip.k6 .kpi:nth-child(3n) { border-right: 0; }
    .kpi-strip.k6 .kpi:nth-child(-n+3) { border-bottom: 1px solid var(--hairline); }
  }
  @media (max-width: 720px) {
    .kpi-strip.k6 { grid-template-columns: repeat(2, 1fr); }
    .kpi-strip.k6 .kpi { border-right: 1px solid var(--hairline); }
    .kpi-strip.k6 .kpi:nth-child(2n) { border-right: 0; }
    .kpi-strip.k6 .kpi:nth-child(-n+4) { border-bottom: 1px solid var(--hairline); }
  }
  /* five-cell variant -- the Onboarding scoreboard; falls to 3-up then 2-up */
  .kpi-strip.k5 { grid-template-columns: repeat(5, 1fr); }
  @media (max-width: 1180px) {
    .kpi-strip.k5 { grid-template-columns: repeat(3, 1fr); }
    .kpi-strip.k5 .kpi:nth-child(3n) { border-right: 0; }
    .kpi-strip.k5 .kpi:nth-child(-n+3) { border-bottom: 1px solid var(--hairline); }
  }
  @media (max-width: 720px) {
    .kpi-strip.k5 { grid-template-columns: repeat(2, 1fr); }
    .kpi-strip.k5 .kpi { border-right: 1px solid var(--hairline); }
    .kpi-strip.k5 .kpi:nth-child(2n) { border-right: 0; }
    .kpi-strip.k5 .kpi:nth-child(-n+4) { border-bottom: 1px solid var(--hairline); }
  }
  /* onboarding tables — radar style, matching BoB / churn radar */
  .queue-card .onb-lm { border: 0; border-radius: 0; box-shadow: none; }   /* card chrome comes from the queue-card */
  .onb-lm .acct-name { display: block; }
  .onb-lm .acct-sub { display: block; font-size: 11.5px; color: var(--ink-50); font-weight: 400; margin-top: 3px; white-space: normal; line-height: 1.35; }
  .onb-lm table.radar td:first-child { white-space: normal; }
  .rec-badge { white-space: nowrap; }
  .mix-cell { min-width: 120px; }
  .mix-cell .stack-bar { height: 11px; }
  /* the "why now" column on the Radar contact queue — a sentence, so it wraps and stays quiet */
  .why-cell { color: var(--ink-50); font-size: 12px; white-space: normal; line-height: 1.4; min-width: 130px; }
  /* a count chip that opens the full list behaves like one */
  .count-chip[data-drill] { cursor: pointer; transition: filter .15s var(--ease); }
  .count-chip[data-drill]:hover { filter: brightness(0.96); }
  /* ── Churn Radar queue tables (.rq) ──
     Six of these sit side by side and get scanned against each other, so a row has to be
     the same height in every one. Two things broke that: a long account name wrapping onto
     a second line, and a chip column (tier, state) standing taller than plain text. Fixed
     layout pins the columns, the name column truncates on one line, and the row height is
     stated outright so no chip can push it. Scoped to .rq, not .onb-lm — the Onboarding
     tab reuses the same table class with seven auto-width columns. */
  .onb-lm table.radar.rq { table-layout: fixed; }
  .onb-lm table.radar.rq th, .onb-lm table.radar.rq td { width: 104px; }
  /* the last column is where the badge lands in every one of these queues, and a state chip
     ("↗ Onboarding") is wider than a money figure — 104px clipped it */
  .onb-lm table.radar.rq th:last-child, .onb-lm table.radar.rq td:last-child { width: 148px; }
  .onb-lm table.radar.rq th:first-child,
  .onb-lm table.radar.rq td:first-child { width: auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .onb-lm table.radar.rq.rq-why th:last-child,
  .onb-lm table.radar.rq.rq-why td:last-child { width: 156px; }
  .onb-lm table.radar.rq tbody td { height: 46px; padding-top: 6px; padding-bottom: 6px; }
  .onb-lm table.radar.rq .acct-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* drillable bar-list rows — pointer + subtle lift on hover */
  .hbar-fill[data-drill] { cursor: pointer; }
  .hbar-row:hover .hbar-fill[data-drill] { filter: brightness(1.04); }
  /* onboarding breakdown charts — tighter label/value columns so the bars get more width */
  #panel-onboarding .grid-4 .hbars.pct .hbar-row { grid-template-columns: 92px 1fr 60px; gap: 10px; }
  #panel-onboarding .grid-4 .hbar-track { height: 16px; }

  /* stat variants — one family: vlabel → big (ink) → signed colored change → one optional viz, last line pinned to the card foot */
  .stat-variants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  @media (max-width: 760px) { .stat-variants { grid-template-columns: 1fr; } }
  .stat-v { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; min-height: 164px; }
  .stat-v .vlabel { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-50); font-weight: 600; }
  .stat-v .big { font-family: var(--display); font-weight: 800; font-size: 38px; color: var(--ink); letter-spacing: -0.025em; margin-top: 8px; line-height: 1; font-variant-numeric: tabular-nums; }
  .stat-v .trend-row { display: flex; align-items: baseline; gap: 7px; margin-top: 10px; font-size: 12.5px; }
  .stat-v .chg { font-weight: 700; font-variant-numeric: tabular-nums; }
  .stat-v .chg.good { color: var(--sage-deep); }
  .stat-v .chg.bad  { color: var(--terracotta-deep); }
  .stat-v .chg.flat { color: var(--ink-50); }
  .stat-v .trend-ctx { color: var(--ink-50); }
  .stat-v .lbl { color: var(--ink-70); font-size: 13px; margin-top: 6px; }
  .stat-v .foot { color: var(--ink-50); font-size: 11px; margin-top: auto; padding-top: 12px; line-height: 1.5; }
  .stat-v .spark { display: flex; gap: 3px; align-items: flex-end; height: 30px; margin-top: auto; padding-top: 14px; }
  .stat-v .spark span { flex: 1; background: var(--sage); border-radius: 2px 2px 0 0; opacity: 0.45; }
  .stat-v .spark span.hi { opacity: 1; }
  .stat-v .ring-wrap { display: flex; align-items: center; gap: 16px; margin-top: 6px; }

  /* ── pills / badges / chips */
  .pill { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px var(--sans); padding: 4px 10px 4px 9px; border-radius: var(--r-pill); white-space: nowrap; }
  .pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
  .pill.healthy { background: rgba(110,142,92,0.14); color: var(--sage-deep); }
  .pill.watch   { background: rgba(252,180,43,0.20); color: var(--amber-deep); }
  .pill.risk    { background: rgba(219,124,73,0.16); color: var(--terracotta-deep); }
  .pill.critical{ background: rgba(185,73,41,0.14); color: var(--terracotta-deep); }
  .pill.unknown { background: rgba(154,140,122,0.18); color: var(--warm-grey); }
  .pill.progress{ background: rgba(1,80,59,0.10); color: var(--forest); }

  .risk-pill { display: inline-flex; align-items: center; gap: 5px; font: 700 10px var(--sans); padding: 0 11px; border-radius: var(--r-pill); text-transform: uppercase; letter-spacing: 0.03em; }
  .risk-pill.high { background: var(--terracotta-deep); color: var(--cream); }
  .risk-pill.med  { background: var(--amber); color: var(--amber-deep); }
  .risk-pill.low  { background: var(--sage-soft); color: var(--sage-deep); }

  .count-chip { background: var(--mute); color: var(--forest); font-family: var(--display); font-weight: 700; font-size: 16px; padding: 5px 12px; border-radius: var(--r-md); font-variant-numeric: tabular-nums; }
  .count-chip.crit { background: rgba(185,73,41,0.10); color: var(--terracotta-deep); }

  .rec-badge { display: inline-flex; align-items: center; gap: 5px; font: 600 11px var(--sans); padding: 3px 8px; border-radius: var(--r-sm); }
  .rec-badge.fresh { background: var(--sage-soft); color: var(--sage-deep); }
  .rec-badge.fading { background: rgba(252,180,43,.18); color: var(--amber-deep); }
  .rec-badge.cold { background: rgba(154,140,122,.18); color: var(--warm-grey); }
  /* overdue days — same badge family, because it is an age too. Deliberately NOT .risk-pill,
     which stays reserved for the loud manual CSM risk override. */
  .rec-badge.overdue { background: rgba(239,107,81,.16); color: var(--terracotta-deep); }

  /* account value tier — ordinal, NOT a health state. dark = top tier. */
  .tier-chip { display: inline-flex; align-items: center; gap: 7px; font: 700 10.5px var(--sans); letter-spacing: 0.03em; text-transform: uppercase; padding: 0 14px 0 12px; height: 26px; box-sizing: border-box; border-radius: var(--r-pill); white-space: nowrap; border: 1px solid transparent; }
  .tier-chip .tno { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 5px; font-family: var(--display); font-weight: 800; font-size: 10px; line-height: 1; flex-shrink: 0; }
  .tier-chip.t1 { background: rgba(49,49,47,0.06); color: var(--ink); border-color: rgba(49,49,47,0.14); }
  .tier-chip.t1 .tno { background: var(--dark); color: var(--cream); }
  .tier-chip.t2 { background: rgba(107,79,122,0.10); color: var(--plum); border-color: rgba(107,79,122,0.22); }
  .tier-chip.t2 .tno { background: var(--plum); color: var(--cream); }
  .tier-chip.t3 { background: rgba(154,140,122,0.14); color: var(--warm-grey); border-color: rgba(154,140,122,0.26); }
  .tier-chip.t3 .tno { background: var(--warm-grey); color: var(--cream); }
  .tier-chip.t4 { background: rgba(95,116,136,0.12); color: var(--slate); border-color: rgba(95,116,136,0.24); }
  .tier-chip.t4 .tno { background: var(--slate); color: var(--cream); }
  .tier-chip.t5 { background: rgba(55,63,65,0.05); color: var(--ink-50); border-color: var(--hairline-strong); }
  .tier-chip.t5 .tno { background: var(--ink-50); color: var(--cream); }
  /* compact — marker only, for dense table cells */
  .tier-chip.compact { padding: 0; gap: 0; height: auto; border: none; background: none !important; }
  .tier-chip.compact .tno { width: 21px; height: 21px; border-radius: 6px; font-size: 11px; }

  /* editable sentiment chip */
  .sent-cell { position: relative; display: inline-block; }
  .sent-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 10px; border-radius: var(--r-pill); font: 600 11.5px var(--sans); cursor: pointer; border: 1px solid transparent; transition: border-color .15s var(--ease); user-select: none; }
  .sent-chip .dot { width: 7px; height: 7px; border-radius: 50%; }
  .sent-chip .chev { width: 9px; height: 9px; opacity: .6; transition: transform .18s var(--ease); }
  .sent-cell.open .sent-chip .chev { transform: rotate(180deg); }
  .sent-chip.positive  { background: rgba(110,142,92,0.14); color: var(--sage-deep); }
  .sent-chip.positive .dot { background: var(--sage); }
  .sent-chip.neutral   { background: rgba(107,79,122,0.14); color: var(--plum); }
  .sent-chip.neutral .dot { background: var(--plum); }
  .sent-chip.concerned { background: rgba(252,180,43,0.18); color: var(--amber-deep); }
  .sent-chip.concerned .dot { background: var(--amber); }
  .sent-chip.at_risk   { background: rgba(185,73,41,0.14); color: var(--terracotta-deep); }
  .sent-chip.at_risk .dot { background: var(--terracotta-deep); }
  .sent-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 25; background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-md); box-shadow: var(--shadow-pop); min-width: 210px; padding: 6px; display: none; }
  .sent-cell.open .sent-menu { display: block; }
  .sent-opt { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: start; padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; }
  .sent-opt:hover { background: var(--mute); }
  .sent-opt .sw { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; }
  .sent-opt .lbl { font: 600 12.5px var(--sans); color: var(--ink); }
  .sent-opt .ds2 { font-size: 11px; color: var(--ink-50); line-height: 1.4; }

  /* ── editable-select chip · reusable (es-*) · current value → dropdown → branded confirm
        modeled on .sent-* but generic: reads label/colour/field from data-attributes */
  .es-cell { position: relative; display: block; }
  .es-chip { display: flex; width: 100%; box-sizing: border-box; height: 36px; padding: 0 12px; justify-content: space-between; align-items: center; gap: 8px; border-radius: var(--r-md); font: 600 12px var(--sans); color: var(--ink); background: var(--paper); cursor: pointer; border: 1px solid var(--hairline-strong); transition: border-color .15s var(--ease); user-select: none; white-space: nowrap; }
  .es-chip:hover { border-color: var(--forest-soft); }
  .es-chip .es-grp { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
  .es-chip .es-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  .es-chip .es-lbl { overflow: hidden; text-overflow: ellipsis; }
  .es-chip .es-chev { width: 11px; height: 11px; opacity: .55; transition: transform .18s var(--ease); flex-shrink: 0; }
  .es-cell.open .es-chip, .es-cell.confirming .es-chip { border-color: var(--forest-soft); }
  .es-cell.open .es-chip .es-chev { transform: rotate(180deg); }
  .es-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-md); box-shadow: var(--shadow-pop); min-width: 248px; padding: 6px; display: none; }
  .es-cell.open .es-menu { display: block; }
  .es-opt { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: start; padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; }
  .es-opt:hover { background: var(--mute); }
  .es-opt.is-current { background: var(--forest-wash); }
  .es-opt .es-sw { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; }
  /* an icon mark, where a list gives its steps one each (the product ladders, v63). It sits in
     the swatch's place and takes its colour from the stroke, so no rule about background
     applies to it — and the row's grid column widens for it, because a 15px glyph in a 10px
     track would be clipped on the left by the gap. */
  .es-ico { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .es-ico svg { width: 100%; height: 100%; display: block; }
  .es-opt .es-sw.es-ico { width: 15px; height: 15px; border-radius: 0; margin-top: 1px; background: none; }
  .es-cell.es-icons .es-opt { grid-template-columns: 15px 1fr; }
  .es-chip .es-dot.es-ico { width: 14px; height: 14px; border-radius: 0; background: none; }
  .es-opt .es-ol { font: 600 12.5px var(--sans); color: var(--ink); }
  .es-opt .es-od { font-size: 11px; color: var(--ink-50); line-height: 1.4; }
  /* an option that draws itself. Adoption, tier and lifecycle answer with the chip the rest
     of the app already uses for them, and a chip carries its own colour, so there is no
     swatch column to keep -- the row is the chip, with the description under it. The gap
     above the description is the swatch's old top margin, spent on the line that reads. */
  /* the description sits beside the chip, not under it. Stacked, four options cost eight lines
     and the menu ran the height of the panel it opens over; beside it the row is the height of
     the chip. */
  .es-opt-chip { grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
  /* ...and every row's grey text starts at the same x, set by the widest chip. Each option is
     its own grid, so `auto` alone measures one row and the descriptions come out ragged —
     PENDING ACTIVATION pushing its own text 70px further right than ACTIVE does. Subgrid is
     what makes four separate rows share one column measurement while each keeps its own box
     for the hover. Guarded, because without it the declaration would be dropped and the rows
     would collapse to one column: no subgrid, no alignment, and the layout above still holds. */
  @supports (grid-template-columns: subgrid) {
    .es-cell.es-chips.open .es-menu { display: grid; grid-template-columns: auto 1fr; align-content: start; }
    .es-cell.es-chips .es-opt-chip { grid-column: 1 / -1; grid-template-columns: subgrid; }
  }
  .es-opt-chip .es-od { margin-top: 0; }
  /* a chips-only cell menu: no description column, so it stops being a 248px box with the
     chips pushed against one wall of it and becomes exactly as wide as its longest chip. */
  .es-cell.es-bare .es-menu { min-width: 0; width: max-content; max-width: min(340px, 90vw); }
  .es-cell.es-bare .es-opt-chip { grid-template-columns: auto; gap: 0; }
  /* exactly as wide as its longest row and not a pixel more. A fixed width has to be set for
     the widest menu of the set, which leaves every other one — and every row of that one but
     the longest — trailing empty paper to the right. max-content also keeps the definitions on
     one line, which is the height this layout was for; the cap is there so a description
     nobody has written yet cannot push a menu off the panel. */
  .es-cell.es-chips .es-menu { width: max-content; max-width: min(460px, 92vw); }
  /* a menu that wide, hanging from the right-hand field of a row, would run off the panel.
     It hangs from its right edge there instead — the same thing the Columns menu does for the
     same reason, and only for the chip menus, since they are the only ones wide enough to care.

     `:last-child` is standing in for "the right-hand column", and the two are only the same
     thing when the row HAS two fields. A .field-row is `1fr 1fr` whatever it holds, so a row
     carrying one field puts it in the LEFT column while it is still both first and last child
     — and Lifecycle / status is exactly that row. Its 364px menu was hanging off the right
     edge of a 224px field in the left half of a 560px panel, which put 98px of it outside the
     drawer with the whole chip column of the menu clipped away: reported 2026-08-24 as a
     dropdown cut in half. `:not(:first-child)` is the difference between the two readings. */
  .field-row .field:last-child:not(:first-child) .es-cell.es-chips .es-menu { left: auto; right: 0; }
  /* the closed control shows the same chip, so what you picked and what you see are one
     object. It sits in a 36px field, which is taller than any of the three chips, so they
     keep their own heights and the field centres them. */
  .es-chip .es-cw { display: inline-flex; align-items: center; min-width: 0; }
  .es-chip .es-cw > * { max-width: 100%; }
  /* owner field carries an identity avatar instead of a status swatch -- in chip and menu */
  .es-cell[data-field="CS owner"] .es-opt { grid-template-columns: 22px 1fr; }
  .es-cell[data-field="CS owner"] .es-opt .owner-avatar { margin-top: 1px; }
  /* long lists (every country) scroll and filter rather than running off the screen */
  .es-menu.es-long { max-height: 328px; overflow-y: auto; overscroll-behavior: contain; }
  .es-menu.es-long .es-find-wrap { position: sticky; top: -6px; z-index: 1; background: var(--paper); padding: 6px 4px 7px; margin: -6px -4px 2px; border-bottom: 1px solid var(--hairline); }
  .es-menu.es-long .es-find { width: 100%; box-sizing: border-box; font: 500 12.5px var(--sans); color: var(--ink); background: var(--cream); border: 1px solid var(--hairline-strong); border-radius: var(--r-sm); padding: 6px 9px; outline: none; }
  .es-menu.es-long .es-find:focus { border-color: var(--forest-soft); box-shadow: 0 0 0 3px var(--forest-wash); }
  .es-menu .es-opt[hidden] { display: none; }
  .es-menu .es-none { padding: 10px; font-size: 12px; color: var(--ink-50); }
  /* a country reads by its flag, the same artwork the book table and the drawer header use */
  .es-opt .cflag { margin-top: 2px; }
  .es-cell[data-field="Country"] .es-opt { grid-template-columns: 18px 1fr; }
  /* Both popovers are BUILT INSIDE a table cell, and table.radar's cells are white-space:
     nowrap. Painting them in fixed coordinates changes where they land, never what they
     inherit — so the confirmation sentence came out on one unbreakable line and ran straight
     out of its own box. Any popover that can open from a table resets this. */
  .es-menu, .es-confirm { white-space: normal; }
  .es-menu { max-width: 300px; }
  /* branded confirmation popover (built by JS on a real change) */
  .es-confirm { position: absolute; top: calc(100% + 6px); left: 0; z-index: 35; min-width: 248px; max-width: 280px; background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-md); box-shadow: var(--shadow-pop); padding: 13px 13px 12px; }
  .es-confirm .es-ctxt { font: 500 12.5px var(--sans); color: var(--ink-70); line-height: 1.5; margin-bottom: 12px; text-wrap: balance; }
  /* a person's name wraps as a whole or not at all, and the arrow travels with the value it
     points at — a line that opens with a bare → reads as a fragment */
  .es-confirm .es-ctxt b, .es-confirm .es-to { white-space: nowrap; }
  .es-confirm .es-ctxt b { font-weight: 700; }
  .es-confirm .es-arrow { display: inline-block; margin: 0 4px; color: var(--ink-30); font-weight: 600; }
  /* ── the date the lifecycle change is being made ON ─────────────────────────
     Sits between the question and the buttons, so it reads as part of the same
     sentence rather than as a second form. The calendar inside it is the app's
     own drawn one, redrawing this block alone — a drawer repaint would take the
     popover, and the half-typed reason with it. */
  .es-confirm.has-esd { min-width: 300px; max-width: 320px; }
  .es-confirm .esd { margin: 0 0 12px; padding: 11px 11px 10px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--mute); }
  .es-confirm .esd-row { display: flex; align-items: center; gap: 10px; }
  /* the second date sits under the first with its labels aligned, so a pause reads as one
     question with two halves rather than as two questions */
  .es-confirm .esd-row2 { margin-top: 8px; }
  .es-confirm .esd-row .esd-k { width: 124px; }   /* RESTART EXPECTED on one line */
  .es-confirm .esd-k { flex-shrink: 0; font: 600 10.5px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-50); }
  .es-confirm .esd-row .pick { flex: 1; background: var(--paper); }
  .es-confirm .esd-why { display: block; width: 100%; box-sizing: border-box; margin-top: 9px; resize: vertical;
      background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-md);
      padding: 7px 10px; font: 500 12px/1.5 var(--sans); color: var(--ink); outline: none; }
  .es-confirm .esd-why:focus { border-color: var(--forest); box-shadow: 0 0 0 3px var(--forest-wash); }
  .es-confirm .esd-why::placeholder { color: var(--ink-30); }
  /* what the date will do, in the words the charts will use */
  .es-confirm .esd-prev { margin-top: 9px; font: 500 11px/1.45 var(--sans); color: var(--ink-50); }
  .es-confirm .es-cbtns { display: flex; gap: 8px; justify-content: flex-end; }
  .es-confirm .btn { height: 32px; padding: 0 14px; font-size: 12px; }
  /* compact editable trigger (tables/widgets) — chip stays pristine; caret fades in on row hover, chip darkens a touch on direct hover (Linear-style) */
  .es-cell.es-float { display: inline-block; }
  .es-trigger { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; border-radius: var(--r-pill); padding: 1px 2px; }
  .es-trigger > :not(.es-caret) { transition: filter .15s var(--ease); }
  .es-trigger:hover > :not(.es-caret), .es-cell.es-float.open .es-trigger > :not(.es-caret) { filter: brightness(0.95); }
  .es-caret { width: 11px; height: 11px; opacity: 0; color: var(--ink-50); flex-shrink: 0; transition: opacity .12s var(--ease), transform .18s var(--ease); }
  tr.acct-row:hover .es-caret, .wl-row:hover .es-caret, .es-cell.es-float.open .es-caret { opacity: .5; }
  .es-cell.es-float.open .es-caret { transform: rotate(180deg); }
  /* the touch reveal for this one lives with the rest, in the `touch` block at the foot */
  /* float popovers are positioned by JS in fixed coords so the table's scroll container can't clip them */
  .es-cell.es-float .es-menu, .es-cell.es-float .es-confirm { position: fixed; top: auto; left: auto; }
  /* max-content, not the maximum: floated out to the viewport there is nothing to shrink to fit,
     so without this every question gets a 280px box. A short one ("Change tier from Tier 1 →
     Tier 3?") now sits on one line in a small box; only a long one grows and wraps. Float only —
     in the drawer the popover fits its field, and 280px would push it out through the edge. */
  .es-cell.es-float .es-confirm { width: max-content; }

  /* shared chip height — all chips line up; number-only count chips are exempt */
  .pill, .risk-pill, .rec-badge, .sent-chip { height: 26px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; }

  /* ── tables */
  .table-wrap { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
  table.radar { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
  table.radar thead th { text-align: left; font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-50); padding: 13px 12px; background: var(--mute); border-bottom: 1px solid var(--hairline); white-space: nowrap; cursor: pointer; }
  table.radar thead th.num { text-align: right; }
  table.radar thead th .arr { color: var(--forest); font-size: 10px; margin-left: 3px; }
  table.radar tbody td { padding: 12px 12px; border-top: 1px solid var(--hairline); font-size: 13px; vertical-align: middle; white-space: nowrap; }
  /* account column carries name + ID, give it room + a little extra start padding; let it absorb slack */
  table.radar th:first-child, table.radar td:first-child { padding-left: 16px; }
  table.radar th:last-child, table.radar td:last-child { padding-right: 16px; }
  table.radar th:first-child, table.radar td:first-child { width: 100%; min-width: 180px; }
  table.radar tbody tr:first-child td { border-top: 0; }
  table.radar tbody tr { transition: background var(--dur-fast) var(--ease); cursor: pointer; }
  table.radar tbody tr:hover { background: var(--mute); }
  table.radar td.num { text-align: right; font-weight: 600; }
  .account .name { font-weight: 600; color: var(--ink); font-size: 13px; line-height: 1.2; }
  .account .sub { font-size: 11px; color: var(--ink-50); line-height: 1.2; margin-top: 1px; }

  .score-cell { display: flex; flex-direction: column; gap: 5px; min-width: 78px; }
  .score-cell .score-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 62px; }
  .score-cell .score-num { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
  /* delta vs previous snapshot -- a small contained pill tight to the number, not a loose figure */
  .score-cell .score-d { font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; padding: 2px 6px; border-radius: var(--r-pill); }
  .score-cell .score-d.up   { color: var(--sage-deep); background: var(--sage-soft); }        /* health rose -- good */
  .score-cell .score-d.down { color: var(--terracotta-deep); background: rgba(185,73,41,0.12); } /* health dropped -- bad */
  .score-cell .score-d.flat { color: var(--ink-40); background: var(--mute); }
  .score-cell .score-bar { width: 62px; height: 4px; background: var(--mute); border-radius: 2px; overflow: hidden; }
  .score-cell .score-fill { height: 100%; border-radius: 2px; }
  /* low-confidence score → hollow dashed track (a filled grey bar read like a rendering glitch) */
  .score-cell .score-bar.hollow { height: 5px; background: transparent; border: 1px dashed var(--hairline-strong); box-sizing: border-box; overflow: visible; }

  /* churn-risk reason -- freeform comment column (7th); reserve a real width so it can't
     collapse to one word per line, and top-align the row's cells when it wraps.
     Scoped by POSITION, so any .radar table anywhere with a 7th column inherits a 230px
     floor whether it wants one or not — which is how the Onboarding panel's Progress
     column ended up 230px wide around 104px of bar. Left as a position rule rather than
     re-scoped, because working out which tables have quietly depended on it is a bigger
     change than this is worth; a column that does not want it says so with .col-tight. */
  table.radar th:nth-child(7):not(.col-tight), table.radar td:nth-child(7):not(.col-tight) { width: 230px; min-width: 230px; white-space: normal; }
  .churn-reason { font-size: 12px; color: var(--ink-50); line-height: 1.4; }
  .churn-reason.none { color: var(--ink-30); }

  /* lifecycle chip */
  .lc { display: inline-flex; align-items: center; gap: 6px; height: 22px; box-sizing: border-box; padding: 0 9px; border-radius: var(--r-pill); font: 700 10px var(--sans); text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }
  .lc .lcd { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
  /* the dot became an icon (see _LCICO): same slot, same colour, one more piece of meaning.
     Slightly wider than the dot it replaced, so the chip's left padding gives a pixel back. */
  .lc .lcico { width: 11px; height: 11px; flex: none; margin-left: -1px; }
  .lc.active .lcico { fill: currentColor; stroke-width: 1.2; }   /* play reads as a solid mark */
  .lc.active     { background: var(--sage-soft); color: var(--sage-deep); }
  .lc.onboarding { background: var(--forest-wash); color: var(--forest); }
  .lc.paused     { background: rgba(154,140,122,0.18); color: var(--warm-grey); }
  .lc.churned    { background: rgba(185,73,41,0.14); color: var(--terracotta-deep); }
  /* pending activation — outlined, not filled: signed but nothing collected yet */
  .lc.pending    { background: transparent; color: var(--plum); box-shadow: inset 0 0 0 1.5px rgba(107,79,122,0.34); }

  .trend { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .trend.up { color: var(--sage-deep); }
  .trend.down { color: var(--terracotta-deep); }
  .trend.flat { color: var(--ink-30); }

  .renewal .days { font-weight: 600; font-size: 13px; }
  .renewal .days.imminent { color: var(--terracotta-deep); }
  .renewal .days.soon { color: var(--terracotta); }
  .renewal .date { font-size: 11px; color: var(--ink-50); }

  .owner-cell { display: flex; align-items: center; gap: 8px; }
  /* two people on one deal — they wrap rather than widen the column past its neighbours */
  .owner-cell.multi { gap: 6px 12px; flex-wrap: wrap; }
  .owner-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--forest); color: var(--cream); font: 700 10.5px var(--sans); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
  /* ONE ring, on every face in the app — the owner column and its picker, the account menu,
     Settings, and the activity feed. A photo has no edge of its own: a pale wall or a light
     shirt runs straight out into cream and the circle stops reading as a person. The paper
     border is the gap, the hairline the stroke. Initials get it too, so a team where some
     have uploaded a picture and some have not still lines up. Any new avatar joins this
     selector rather than restating the border — that is how .af-av came to have no ring. */
  .owner-avatar, .af-av { border: 1.5px solid var(--paper); box-shadow: 0 0 0 1px var(--hairline-strong); }
  .owner-avatar.t2 { background: var(--terracotta); }
  /* nobody assigned: the dashed edge IS the statement, so it does not also take the ring */
  .owner-avatar.unassigned { background: transparent; border: 1.5px dashed var(--ink-30); color: var(--ink-30); box-shadow: none; }
  .owner-avatar.xs { width: 20px; height: 20px; font-size: 8.5px; border-width: 1px; }
  /* the photo variant. Same circle, same sizes — a roster where some people have uploaded
     a picture and some have not still lines up, because only the fill changes. The tinted
     background stays underneath as what shows while the image decodes. */
  .owner-avatar.has-img, .af-av.has-img { background-size: cover; background-position: center; }
  .owner-name { font-size: 12.5px; font-weight: 600; color: var(--ink-70); white-space: nowrap; }
  .owner-name.none { color: var(--ink-30); font-weight: 500; }
  /* two-line metric cell (renewal, payment) — colored primary over a grey date */
  .twoline { display: inline-flex; flex-direction: column; gap: 1px; line-height: 1.25; }
  .twoline .primary { font-weight: 700; font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
  .twoline .primary.bad { color: var(--terracotta-deep); }
  .twoline .primary.warn { color: var(--terracotta); }
  .twoline .primary.ok { color: var(--sage-deep); }
  .twoline .date { font-size: 11px; color: var(--ink-50); font-variant-numeric: tabular-nums; }
  /* single-value recency cell (last activity, last touch) — colored by threshold */
  .dval { font-size: 12.5px; font-weight: 600; color: var(--ink-70); font-variant-numeric: tabular-nums; }
  .dval.bad  { color: var(--terracotta-deep); font-weight: 700; }
  .dval.warn { color: var(--terracotta); }
  .dval.ok   { color: var(--sage-deep); }
  .dval.none { color: var(--ink-30); font-weight: 500; }
  /* not reported — an engagement figure Mighty did not measure. Deliberately the same ink as
     .dval.none: an absence looks like an absence wherever it appears. A measured 0 keeps the
     table's own ink, which is the whole point of drawing them differently. */
  .nr { color: var(--ink-30); font-weight: 500; cursor: help; }
  .dstat-v.is-nr { color: var(--ink-30); }
  /* country cell — flag + code, no chip frame */
  .cnty { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-70); white-space: nowrap; }
  .cnty .cflag { margin: 0; }
  .cnty.none { color: var(--ink-30); font-weight: 500; }

  /* queue table */
  .queue-card { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
  /* ── letting a confirm out of its card ──
     overflow:hidden is what keeps the card's rounded corners clipping its contents, and it
     was also cutting the "Delete this task?" popover in half — it opens near the right edge
     and below the last row, so on a short card it lost both its buttons. A popover you cannot
     answer is worse than no popover: the row still looks armed and there is nothing to click.
     The card opens up only while a confirm is actually showing (.has-confirm, set by the same
     render that draws it), so the corners keep clipping the other 99% of the time. */
  .queue-card.has-confirm, .ws-card.has-confirm { overflow: visible; }
  .queue-card.has-confirm .ws-tasklist, .queue-card.has-confirm .ws-list { overflow: visible; }
  .queue-card .qhead { padding: 18px 20px 14px; border-bottom: 1px solid var(--hairline); display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
  .queue-card .qhead .title { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
  .queue-card .qhead .title .icon { width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta-deep); }
  .queue-card .qhead .sub { font-size: 12px; color: var(--ink-50); margin-top: 3px; }
  table.queue { width: 100%; border-collapse: collapse; }
  table.queue td { padding: 11px 16px; border-top: 1px solid var(--hairline); font-size: 13px; }
  table.queue tr:first-child td { border-top: 0; }
  table.queue tr:hover { background: var(--mute); }

  /* ── charts */
  .chart-card { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--shadow-card); }
  .chart-card .chead { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
  .chart-card .ctitle { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink); }
  .chart-card .cmeta { font-size: 12px; color: var(--ink-50); }
  /* chart-head control row + its toggle. Same component as .qf-pill (paper, hairline,
     forest when on) at the size a card head can carry — the 34px filter pill would out-weigh
     the 14px title sitting next to it. */
  .chart-card .chead-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -8px 0 12px; }
  .chart-card .ct-note { font-size: 11.5px; color: var(--ink-30); min-width: 0; }
  /* the (i) beside a card title — for a chart whose reading key needs a sentence, not the
     three words a .cmeta can hold. Hover/focus shows it through the shared chip tooltip. */
  .chelp { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin-left: 6px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-30); cursor: help; vertical-align: -2px; transition: color .15s var(--ease); }
  .chelp:hover, .chelp:focus-visible { color: var(--forest); }
  .chelp svg { width: 14px; height: 14px; display: block; }
  /* scatter: the vertical engagement guides sit under the y grid, and a label needs a paper
     outline to survive crossing a bubble */
  .viz .grid-line.faint { opacity: .7; }
  .viz .bub-lab { fill: var(--ink-70); pointer-events: none; paint-order: stroke; stroke: var(--paper); stroke-width: 2.6px; stroke-linejoin: round; }
  .viz .axis-t.cap { fill: var(--ink-50); }
  /* stacked-bar row label. The fill lives here, not inline, so a drillable one can be recoloured
     on hover by a plain rule — see the [data-drill] hover under #panel-overview. */
  .viz text.rowlab { fill: var(--ink-70); transition: fill .15s var(--ease); }
  .cq-tog { display: inline-flex; align-items: center; height: 26px; background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-pill); padding: 0 12px; font: 600 11.5px var(--sans); color: var(--ink-50); cursor: pointer; transition: all .15s var(--ease); white-space: nowrap; }
  .cq-tog:hover { border-color: var(--forest-soft); color: var(--forest); }
  .cq-tog.active { background: var(--forest); color: var(--cream); border-color: var(--forest); }
  .charts-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  @media (max-width: 820px) { .charts-2 { grid-template-columns: 1fr; } }
  .charts-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  @media (max-width: 900px) { .charts-3 { grid-template-columns: 1fr; } }

  .chart-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); }
  .chart-legend .lg { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink-50); font-weight: 500; }
  .chart-legend .sw { width: 12px; height: 12px; border-radius: 3px; }
  .chart-legend.bare { margin-top: 14px; padding-top: 0; border-top: 0; }
  /* a legend of chips rather than swatches. Tighter gap because each key already carries its
     own padding, and a size down for the same reason the chart's row labels are: six of them
     at their native height is a second chart under the chart. */
  /* a trend legend that doubles as a filter — click a key to show only that band, click it
     again to bring the rest back. Worn by both stacked trends: the health mix (grade badges)
     and the adoption mix (reading chips). The chip inside is the ordinary one, so a reading
     still looks like itself; this wrapper only carries the affordance and the off state.
     Greyscale as well as fade, so "hidden" survives being read at a glance on a colour chart. */
  .mix-key { display: inline-flex; cursor: pointer; border-radius: 999px; transition: opacity .15s var(--ease), filter .15s var(--ease); }
  .mix-key:hover { filter: brightness(0.96); }
  .mix-key.off { opacity: .35; filter: grayscale(1); }
  .mix-key:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
  .d-section .d-head:focus-visible { outline: 2px solid var(--forest); outline-offset: -2px; }
  .chart-legend.chips { gap: 5px; }
  .chart-legend.chips .hs2-vchip.adopt { height: 20px; font-size: 9px; padding: 0 8px; gap: 5px; }

  svg.viz { width: 100%; height: auto; display: block; overflow: visible; }
  .viz text { font-variant-numeric: tabular-nums; }
  .viz .grid-line { stroke: var(--hairline); stroke-width: 1; }
  .viz .axis { stroke: var(--hairline-strong); stroke-width: 1; }
  .viz .axis-t { fill: var(--ink-50); font: 10px var(--sans); }
  .viz .axis-t.x { text-anchor: middle; }
  .viz .axis-t.y { text-anchor: end; }
  .viz .vlabel { fill: var(--ink-70); font: 600 10px var(--sans); text-anchor: middle; }
  /* a value label that sits at the end of a bar crosses the vertical grid lines once the bar
     gets long. Same paper outline the scatter labels use, rather than a second set of rules
     about where a gridline may be drawn. */
  .viz .halo { paint-order: stroke; stroke: var(--paper); stroke-width: 2.8px; stroke-linejoin: round; }
  .viz .ref-line { stroke: var(--ink); stroke-width: 1.25; stroke-dasharray: 4 3; opacity: .55; }

  /* donut legend list (beside donutBig) */
  .dleg { flex: 1; min-width: 150px; display: grid; gap: 2px; align-content: center; }
  .dl-row { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 8px; }
  .dl-row[data-drill] { cursor: pointer; transition: background .15s var(--ease); }
  .dl-row[data-drill]:hover { background: var(--mute); }
  .dl-sw { width: 11px; height: 11px; border-radius: 3px; flex: 0 0 auto; }
  .dl-nm { font-size: 13px; color: var(--ink-70); }
  .dl-v { margin-left: auto; font: 800 14px var(--display); color: var(--ink); font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 6px; }
  .dl-pct { font: 600 11px var(--sans); color: var(--ink-50); }
  /* overview live charts: design-guide affordances (crisp small type, soft grid, hover-pop, drill cursor) */
  #panel-overview .viz .axis-t, #panel-overview .viz .vlabel { font-size: 6.5px; }
  #panel-overview .viz .grid-line { stroke: rgba(55,63,65,0.09); }
  #panel-overview svg [data-k] { transition: opacity .15s var(--ease), filter .15s var(--ease); }
  #panel-overview svg:has([data-k]:hover) [data-k]:not(:hover) { opacity: .55; }
  #panel-overview svg:has([data-k]:hover) .pt:not(:hover) { opacity: 1; }   /* dots never fade */
  #panel-overview svg [data-k]:hover { filter: brightness(1.06); }
  #panel-overview svg [data-drill] { cursor: pointer; }
  /* a stacked-bar row label that drills. Brightness does nothing to dark text, so a drillable
     label says so by turning forest on hover — the same colour a drillable card title takes. */
  #panel-overview svg text.rowlab[data-drill]:hover { fill: var(--forest); }
  /* row-1 chart cards: flex column so the chart body centres and fills the equal-height card */
  .chart-card.ov3 { display: flex; flex-direction: column; }
  .chart-card.ov3 .ov3-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
  /* the "this history is short" line under a thin series — a caption, not a warning: the
     chart is correct, it just has less of an axis filled than it looks like it should */
  .chart-card.ov3 .ov3-note { margin-top: 10px; font: 500 11px/1.4 var(--sans); color: var(--ink-50); }
  .chart-card.ov3 .ov3-donut { display: flex; align-items: center; justify-content: space-around; gap: 18px; flex-wrap: wrap; }
  /* a grade legend is a row of the real grade chips — same object as the tables, so it inherits
     .state-badge and needs no legend-specific type of its own. The chip already carries its name;
     the row only has to make room for the count that follows it. */
  .dleg .dl-row .state-badge { flex: 0 0 auto; }
  .viz .ref-t { fill: var(--ink-50); font: 600 9.5px var(--sans); }
  .viz .avg-line { stroke: var(--ink); stroke-width: 1.25; stroke-dasharray: 4 3; opacity: .55; }
  .bar-tooltip { position: absolute; transform: translate(-50%,-100%); background: var(--dark); color: var(--cream); padding: 7px 11px; border-radius: var(--r-sm); font-size: 11.5px; box-shadow: var(--shadow-pop); white-space: nowrap; pointer-events: none; }
  .bar-tooltip .v { font-family: var(--display); font-weight: 700; font-size: 14px; }

  /* hbars */
  .hbars { display: flex; flex-direction: column; gap: 12px; }
  .hbar-row { display: grid; grid-template-columns: 120px 1fr 76px; gap: 12px; align-items: center; font-size: 12.5px; }
  .hbar-row .lab { color: var(--ink-70); display: flex; align-items: center; gap: 7px; }
  .hbar-row .lab { min-width: 0; white-space: nowrap; }
  .hbar-row .lab .sw { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 10px; }
  .hbar-track { height: 14px; background: var(--mute); border-radius: 4px; overflow: hidden; }
  .hbar-fill { height: 100%; border-radius: 4px; transition: width .45s var(--ease); }
  .hbar-row .val { text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
  /* score-breakdown variant: weight + weighted points moved right of the bar, in aligned columns */
  .hbars-calc { gap: 14px; }
  .hbars-calc .hbar-row { grid-template-columns: 96px 1fr 166px; }
  .hbars-calc .hbar-row .val .hb-calc { display: inline-grid; grid-template-columns: 24px 30px 44px 50px; column-gap: 6px; align-items: baseline; white-space: nowrap; }
  .hbars-calc .hbar-row .val .hb-sc { text-align: right; color: var(--ink-60); font-weight: 500; }
  .hbars-calc .hbar-row .val .hb-d { text-align: left; font-weight: 600; font-size: 10.5px; letter-spacing: -.01em; }
  .hbars-calc .hbar-row .val .hb-d.up { color: var(--sage-deep); }
  .hbars-calc .hbar-row .val .hb-d.down { color: var(--terracotta-deep); }
  .hbars-calc .hbar-row .val .hb-w { text-align: right; color: var(--ink-30); font-weight: 400; letter-spacing: .01em; }
  .hbars-calc .hbar-row .val .hb-pt { text-align: right; color: var(--ink-40); font-weight: 500; }
  .hbars-calc .hbar-row .val .hb-pt .hb-n { color: var(--ink); font-weight: 700; margin: 0 2px; }
  .hbars-calc .hbar-row.hbar-total { border-top: 1px solid var(--hairline); margin-top: 7px; padding-top: 11px; }
  .hbars-calc .hbar-row.hbar-total .hb-tot-lab { text-align: right; color: var(--ink); font-weight: 700; letter-spacing: .01em; }
  .hbars-calc .hbar-row.hbar-total .hb-pt.hb-tot { color: var(--ink-40); font-weight: 500; }
  .hbars-calc .hbar-row.hbar-total .hb-pt.hb-tot .hb-n { color: var(--ink); font-weight: 800; font-size: 13.5px; }
  .hbar-row .val .hbar-pct { color: var(--ink-50); font-weight: 600; font-size: 11px; margin-left: 6px; }
  .hbars.pct .hbar-row { grid-template-columns: 130px 1fr 104px; }

  /* ranked list ("Top 5") — rank · name over a share bar · two stacked values.
     A bar list ranks one number; this ranks two that belong together (MRR and the ARR it
     implies, revenue and the accounts behind it), which is why the value cell stacks and
     the name carries a sub-line. Rows are clickable wherever there is something to open. */
  .toprank { display: flex; flex-direction: column; gap: 4px; }
  .tr-row { display: grid; grid-template-columns: 15px 1fr auto; gap: 10px; align-items: center; padding: 7px 8px; margin: 0 -8px; border-radius: var(--r-sm); }
  .tr-row.is-clickable { cursor: pointer; transition: background .14s var(--ease); }
  .tr-row.is-clickable:hover, .tr-row.is-clickable:focus-visible { background: var(--mute); outline: none; }
  .tr-rank { font-size: 10.5px; font-weight: 700; color: var(--ink-30); text-align: center; font-variant-numeric: tabular-nums; }
  .tr-main { min-width: 0; }
  .tr-nm { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tr-nm .cnty { font-size: inherit; font-weight: inherit; color: inherit; }
  .tr-bar { display: block; height: 5px; margin-top: 6px; background: var(--mute); border-radius: 3px; overflow: hidden; }
  .tr-row.is-clickable:hover .tr-bar { background: var(--sand); }
  .tr-fill { display: block; height: 100%; border-radius: 3px; transition: width .45s var(--ease); }
  .tr-sub { display: block; margin-top: 5px; font-size: 10.5px; color: var(--ink-50); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tr-v { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .tr-v .tr-v1 { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
  .tr-v .tr-v2 { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; color: var(--ink-50); }
  .tr-v .tr-u { font-weight: 500; color: var(--ink-30); margin-left: 2px; }

  /* stacked bar */
  .stack-bar { height: 20px; background: var(--mute); border-radius: 5px; overflow: hidden; display: flex; }
  .stack-bar span { height: 100%; transition: width .45s var(--ease); }
  .stack-seg.healthy { background: var(--sage); }
  .stack-seg.slip { background: var(--amber); }
  .stack-seg.risk { background: var(--terracotta); }
  .stack-seg.unknown { background: var(--warm-grey); }
  /* a segment brightens under the cursor so it is obvious which band the hover is answering
     for — three abutting blocks of colour otherwise give no feedback that a hover landed */
  .stack-bar:hover .stack-seg { opacity: .62; transition: opacity .12s var(--ease), width .45s var(--ease); }
  .stack-bar .stack-seg:hover { opacity: 1; }
  /* the written-out counts under a bar. Dotted rule = there is more here on hover, the same
     cue the app uses on any term that carries a definition. */
  .rec-cap { text-transform: none; letter-spacing: 0; font: 500 11.5px var(--sans); color: inherit;
             border-bottom: 1px dotted var(--ink-30); cursor: help; }
  .rec-cap:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; border-radius: 2px; }

  /* platform-engagement panel — sub-label + active-members bullet + depth footer */
  .pe-sub { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 22px; }
  .pe-cap { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-50); margin-bottom: 8px; }
  .pe-block { margin-top: 38px; }
  /* horizontal bullet — active vs total reach, with a cohort target marker */
  .pe-bullet { position: relative; }
  .bullet-track { height: 20px; background: var(--sand); border-radius: 5px; overflow: hidden; }
  .bullet-fill { height: 100%; background: var(--sage); border-radius: 5px 0 0 5px; transition: width .45s var(--ease); }
  .bullet-target { position: absolute; top: -4px; height: 28px; width: 2px; background: var(--ink); }
  .bullet-target span { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 9.5px var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-50); }
  /* snapshot histogram — slim "total reach" tracks with a sage "active" fill; scales to many bars (see health trend) */
  .snaph { display: flex; align-items: flex-end; justify-content: flex-end; gap: 5px; height: 74px; }
  .snaph .sb { width: 16px; flex: 0 0 16px; height: 100%; display: flex; align-items: flex-end; background: var(--sand); border-radius: 3px 3px 0 0; cursor: default; }
  .snaph .sb .sf { width: 100%; background: var(--sage); border-radius: 3px 3px 0 0; min-height: 3px; transition: height .45s var(--ease); }
  .snaph .sb:hover .sf { background: var(--sage-deep); }

  /* column bars */
  .colbars { display: flex; gap: 10px; align-items: flex-end; height: 120px; border-bottom: 1px solid var(--hairline-strong); }
  .colbar { flex: 1; background: var(--sage); border-radius: 2px 2px 0 0; position: relative; min-height: 4px; }
  .colbar .cv { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font: 600 10.5px var(--sans); color: var(--ink-70); }
  .colbar .cx { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font: 500 10px var(--sans); color: var(--ink-50); white-space: nowrap; }

  /* heat grid */
  /* ── recency map ──
     Fixed-size cells that wrap, not columns that stretch. A contact is a contact: the cell is
     the same size whether the school has six or a hundred and six, and the block simply gets
     taller. The old grid gave each cell 1/13th of the panel, which drew six contacts as six
     64px slabs with half a row of cream after them. Each cell is a real button — it opens the
     contact, and it is reachable from the keyboard, because every other list of people in this
     product is. */
  .rm-grid { display: flex; flex-wrap: wrap; gap: 5px; }
  .rm-cell { width: 16px; height: 16px; border-radius: 3px; border: 0; padding: 0; cursor: pointer;
             transition: transform .12s var(--ease), box-shadow .12s var(--ease); }
  .rm-cell:hover { transform: scale(1.18); box-shadow: 0 1px 4px rgba(49,49,47,0.22); }
  .rm-cell:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; transform: scale(1.18); }

  /* progress / score bar */
  .pbar { height: 10px; background: var(--mute); border-radius: 5px; overflow: hidden; }
  .pbar .fill { height: 100%; border-radius: 5px; }

  /* signal breakdown */
  .signal-row { display: grid; grid-template-columns: 150px 1fr 56px; gap: 12px; align-items: center; padding: 9px 0; font-size: 12.5px; }
  .signal-row + .signal-row { border-top: 1px solid var(--hairline); }
  .signal-row .nm { color: var(--ink); font-weight: 600; }
  .signal-row .nm small { display: block; font-size: 10.5px; color: var(--ink-50); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
  .signal-row .sbar { height: 10px; background: var(--mute); border-radius: 3px; overflow: hidden; }
  .signal-row .sbar .sf { height: 100%; border-radius: 3px; }
  .signal-row .sv { text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

  /* payment dot strip */
  .pay-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; max-width: 360px; }
  .pay-cell { text-align: center; padding: 10px 4px; border-radius: 6px; background: var(--mute); }
  .pay-cell .m { font-size: 10px; color: var(--ink-50); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }
  .pay-cell .sd { width: 16px; height: 16px; border-radius: 50%; margin: 0 auto; }
  .pay-cell.on .sd { background: var(--sage); }
  .pay-cell.late .sd { background: var(--amber); }
  .pay-cell.over .sd { background: var(--terracotta-deep); }
  .pay-cell.unk .sd { background: var(--warm-grey); }

  /* bullet chart */
  .bullet { position: relative; height: 26px; border-radius: 5px; overflow: hidden; display: flex; }
  .bullet .band { height: 100%; }
  .bullet .measure { position: absolute; top: 7px; left: 0; height: 12px; background: var(--ink); border-radius: 3px; }
  .bullet .target { position: absolute; top: 2px; width: 3px; height: 22px; background: var(--forest); border-radius: 2px; }

  /* trend chip */
  .tchip { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 8px 12px; box-shadow: var(--shadow-card); }
  .tchip .tn { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
  .tchip .td { font-size: 11.5px; font-weight: 600; }
  .tchip .td.up { color: var(--sage-deep); }
  .tchip .td.down { color: var(--terracotta-deep); }

  /* ── cards / containers */
  .ctx { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
  .ctx-toggle { display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-50); background: transparent; border: 1px solid var(--hairline-strong); border-radius: var(--r-pill); padding: 6px 12px; cursor: pointer; transition: all .18s var(--ease); }
  .ctx-toggle:hover, .ctx-toggle.on { color: var(--forest); border-color: var(--forest-soft); background: var(--forest-wash); }
  .ctx-toggle .chev { transition: transform .25s var(--ease); }
  .ctx-toggle.on .chev { transform: rotate(180deg); }
  .ctx-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; }
  @media (max-width: 820px) { .ctx-grid { grid-template-columns: 1fr; } }
  .ctx-block { padding: 20px 22px; border-right: 1px solid var(--hairline); }
  .ctx-block:last-child { border-right: 0; }
  .ctx-block .ctx-h { font: 700 11px var(--display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-50); margin-bottom: 12px; }
  .ctx-block p { font-size: 12.5px; color: var(--ink-70); margin: 0; line-height: 1.55; }

  .editorial { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
  .editorial .ehead { padding: 16px 22px; border-bottom: 1px solid var(--hairline); background: var(--cool); display: flex; align-items: center; justify-content: space-between; }
  .editorial .ehead .et { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink); }
  .editorial .ebody { padding: 18px 22px; }
  .editorial .item { padding: 12px 0; border-top: 1px solid var(--hairline); }
  .editorial .item:first-child { border-top: 0; }
  .editorial .item .ti { font-weight: 600; font-size: 13px; color: var(--ink); }
  .editorial .item .ds3 { font-size: 12px; color: var(--ink-70); margin-top: 3px; line-height: 1.5; }
  .editorial .item .src { font-size: 11px; color: var(--ink-50); margin-top: 5px; }

  /* callouts — HEI brand: icon disc + warm surfaces, dark = footer treatment */
  .callout { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); align-items: flex-start; background: var(--forest-wash); border: 1px solid var(--forest-line); }
  .callout .cic { width: 30px; height: 30px; border-radius: var(--r-sm); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--forest); color: var(--cream); }
  .callout .cic svg { width: 16px; height: 16px; }
  .callout .body { font-size: 13px; color: var(--ink); line-height: 1.55; align-self: center; }
  .callout .body strong { font-weight: 700; color: var(--forest); }
  .callout.warm { background: rgba(219,124,73,0.12); border-color: rgba(219,124,73,0.28); }
  .callout.warm .cic { background: var(--terracotta); }
  .callout.warm .body strong { color: var(--terracotta-deep); }
  .callout.note { background: rgba(252,180,43,0.14); border-color: rgba(252,180,43,0.45); }
  .callout.note .cic { background: var(--amber); color: var(--amber-deep); }
  .callout.note .body strong { color: var(--amber-deep); }
  .callout.dark { background: var(--dark); border-color: transparent; }
  .callout.dark .cic { background: var(--amber); color: var(--dark); }
  .callout.dark .body { color: var(--cream); }
  .callout.dark .body strong { color: var(--amber); }

  /* ── drawer */
  .drawer-demo { background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); max-width: 540px; overflow: hidden; }
  .drawer-head { padding: 20px 24px 16px; border-bottom: 1px solid var(--hairline); }
  .drawer-head .eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-50); font-weight: 600; }
  .drawer-head .nm { font-family: var(--display); font-weight: 800; font-size: 21px; color: var(--ink); letter-spacing: -0.02em; margin-top: 5px; }
  .drawer-head .mt { font-size: 12.5px; color: var(--ink-70); margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }
  /* drawer header — status chips row + one grey meta line (country/MRR as outline chips) */
  .hdr-chips { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
  .hdr-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-size: 12px; color: var(--ink-50); line-height: 1.4; }
  .hdr-meta .sep { color: var(--ink-30); }
  .hdr-meta .id { color: var(--ink-70); font-variant-numeric: tabular-nums; }
  .gchip { display: inline-flex; align-items: center; height: 26px; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--hairline-strong); border-radius: var(--r-pill); font: 600 11.5px var(--sans); color: var(--ink-70); }
  .gchip .u { color: var(--ink-30); font-weight: 500; }
  .cflag { display: inline-flex; width: 18px; height: 13px; margin: 0 7px 0 -2px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(55,63,65,.12); flex-shrink: 0; }
  .cflag svg { width: 100%; height: 100%; display: block; }
  .gchip.val { background: var(--forest-wash); border-color: transparent; padding: 0 13px; }
  .gchip.val .cur { color: var(--forest); font-weight: 700; margin-right: 1px; }
  .gchip.val .amt { color: var(--ink); font-weight: 800; font-size: 12.5px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
  .gchip.val .u { color: var(--ink-40); font-weight: 600; }
  .drawer-hero { margin: 18px 24px 0; padding: 18px 20px; background: linear-gradient(135deg, var(--cream), var(--paper)); border: 1px solid var(--hairline); border-radius: var(--r-md); display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
  .drawer-hero .num { font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1; letter-spacing: -0.03em; color: var(--forest); text-align: center; }
  .drawer-hero .out { font-size: 11px; color: var(--ink-50); text-align: center; margin-top: 3px; }
  .d-section { margin: 18px 24px; background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; }
  .d-section .d-head { padding: 12px 18px; background: var(--mute); border-bottom: 1px solid var(--hairline); font: 700 11px var(--display); text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; user-select: none; transition: color .15s var(--ease); }
  .d-section .d-head:hover { color: var(--forest); }
  .d-section .d-head::after { content: ""; flex-shrink: 0; width: 7px; height: 7px; border-right: 2px solid var(--ink-30); border-bottom: 2px solid var(--ink-30); transform: rotate(-135deg); position: relative; top: 2px; transition: transform .2s var(--ease), border-color .15s var(--ease); }
  .d-section .d-head:hover::after { border-color: var(--forest); }
  .d-section.collapsed .d-head { border-bottom-color: transparent; }
  .d-section.collapsed .d-head::after { transform: rotate(45deg); top: -2px; }
  .d-section.collapsed .d-body { display: none; }
  .d-section .d-body { padding: 16px 18px; }
  .contact-block { display: flex; gap: 12px; align-items: flex-start; }
  /* 52px, not 38: the block beside it is two lines — a 21px display name over a chip row —
     and an avatar two-thirds of that height read as a thumbnail parked next to a heading
     rather than as the person the heading names. At 52 the circle spans the pair. It wears
     the same ring every other avatar in the app does (paper border over a hairline shadow,
     see .owner-avatar), at the 2px weight .owner-avatar.prof uses at this size. */
  .contact-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--terracotta); color: var(--cream); font: 700 17px var(--sans); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--hairline-strong); }
  .crow { display: grid; grid-template-columns: 18px 76px 1fr; gap: 10px; padding: 7px 0; font-size: 12px; align-items: center; }
  .crow .ic { color: var(--ink-50); display: inline-flex; }
  .crow .label { color: var(--ink-50); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
  .crow .value { color: var(--ink); }

  /* ── nav demos */
  .tabs-demo { display: flex; gap: 4px; border-bottom: 1px solid var(--hairline); }
  .tab-btn { border: 0; background: transparent; font: 600 14px var(--sans); color: var(--ink-50); padding: 11px 16px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .15s var(--ease); }
  .tab-btn:hover { color: var(--ink-70); }
  .tab-btn.active { color: var(--forest); border-bottom-color: var(--forest); }

  .sync-cell { position: relative; display: inline-block; }
  .sync-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-pill); font: 500 12.5px var(--sans); color: var(--ink-70); cursor: pointer; transition: all .18s var(--ease); }
  .sync-btn:hover { border-color: var(--forest-soft); color: var(--forest); }
  .sync-btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(110,142,92,.18); }
  .sync-btn .chev { transition: transform .25s var(--ease); }
  .sync-cell.open .sync-btn .chev { transform: rotate(180deg); }
  /* 390, not 340: each row now carries a cadence line under the name, and the panel sizing
     itself to the longest source name is what keeps every timestamp on the same right edge */
  /* 390 floor, 560 ceiling. An absolutely positioned box shrink-to-fits, so without the
     ceiling a busy night's counts would stretch the whole dropdown to their own length —
     a panel that changes width with the news. With it, the counts wrap instead. */
  .sync-panel { position: absolute; top: calc(100% + 8px); left: 0; min-width: 390px; max-width: min(560px, calc(100vw - 24px)); background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-md); box-shadow: var(--shadow-pop); z-index: 20; display: none; overflow: hidden; }
  .sync-cell.open .sync-panel { display: block; }
  /* One hairline between any two things: the header owns the divider above the first row,
     each row owns the one below it, and the footer owns none — a border-top there would
     double up against the last row's border-bottom. */
  .sync-panel .sh { font: 600 10.5px var(--sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-50); padding: 12px 16px 9px; border-bottom: 1px solid var(--hairline); }
  .sync-panel .sf { padding: 11px 16px 13px; font-size: 11px; color: var(--ink-50); line-height: 1.55; }

  .toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
  .search-input { flex: 0 0 260px; background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-md); padding: 9px 13px; font: 500 13px var(--sans); color: var(--ink); outline: none; }
  .search-input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px var(--forest-wash); }
  .filter-trigger { background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-md); padding: 9px 13px; font: 500 13px var(--sans); color: var(--ink); cursor: pointer; display: flex; align-items: center; gap: 8px; }
  .filter-trigger:hover { border-color: var(--forest-soft); }
  .filter-trigger .cp { background: var(--forest); color: var(--cream); border-radius: 999px; padding: 1px 7px; font: 700 10.5px var(--sans); }

  /* ── feedback */
  /* the Design Guide shows the real .notif-item, not a copy of it — see section 08 */
  .bulk-bar { background: var(--forest); color: var(--cream); border-radius: var(--r-md); padding: 10px 16px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-pop); }
  .bulk-bar .cnt { font-weight: 700; font-size: 13px; background: rgba(255,255,255,0.15); padding: 4px 10px; border-radius: var(--r-pill); }
  .bulk-bar .bb { background: transparent; color: var(--cream); border: 1px solid rgba(255,255,255,0.3); border-radius: var(--r-md); padding: 7px 12px; font: 500 12.5px var(--sans); cursor: pointer; }
  .bulk-bar .bb:hover { background: rgba(255,255,255,0.12); }
  .tip-demo { display: inline-block; background: var(--dark); color: var(--cream); padding: 7px 11px; border-radius: var(--r-sm); font-size: 12px; box-shadow: var(--shadow-pop); }
  .empty { padding: 48px 20px; text-align: center; color: var(--ink-50); font-size: 13px; }
  .empty .et2 { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 6px; }

  /* ── icons */
  .icon-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
  @media (max-width: 720px) { .icon-grid { grid-template-columns: repeat(3, 1fr); } }
  .icon-cell { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 16px 8px 12px; text-align: center; box-shadow: var(--shadow-card); }
  .icon-cell svg { color: var(--forest); }
  .icon-cell .in { font-family: var(--mono); font-size: 10.5px; color: var(--ink-50); margin-top: 8px; }

  /* ── motion */
  .ease-track { height: 14px; background: var(--mute); border-radius: 7px; position: relative; overflow: hidden; }
  .ease-dot { position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--forest); animation: glide 2.4s var(--ease) infinite alternate; }
  @keyframes glide { to { left: calc(100% - 12px); } }

  /* ── tokens block */
  .tokens { background: var(--dark); border-radius: var(--r-md); padding: 26px 28px; font-family: var(--mono); font-size: 13px; line-height: 1.85; color: rgba(252,246,237,0.85); overflow-x: auto; }
  .tokens .c { color: rgba(252,246,237,0.4); }
  .tokens .k { color: #9fd6c4; }
  .tokens .v { color: var(--amber); }

  /* ── do / don't */
  .dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  @media (max-width: 720px) { .dd-grid { grid-template-columns: 1fr; } }
  .dd { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 20px 22px; box-shadow: var(--shadow-card); }
  .dd.do { border-top: 3px solid var(--sage); }
  .dd.dont { border-top: 3px solid var(--terracotta-deep); }
  .dd h4 { margin-top: 0; display: flex; align-items: center; gap: 8px; }
  .dd ul { margin: 0; padding-left: 0; list-style: none; }
  .dd li { font-size: 12.5px; color: var(--ink-70); line-height: 1.5; padding: 7px 0 7px 22px; position: relative; border-top: 1px solid var(--hairline); }
  .dd li:first-child { border-top: 0; }
  .dd li::before { position: absolute; left: 0; top: 7px; font-weight: 700; }
  .dd.do li::before { content: "✓"; color: var(--sage-deep); }
  .dd.dont li::before { content: "✕"; color: var(--terracotta-deep); }

  /* ── footer */
  footer { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--ink-50); flex-wrap: wrap; }
  footer .fn { font-family: var(--display); font-weight: 800; color: var(--ink); }

  /* ════ customer table — filters, tree, sort ════ */
  /* book-of-business toolbar (row 1) */
  .bob { background: var(--cream); border: 1px solid var(--hairline); border-radius: var(--r-md) var(--r-md) 0 0; border-bottom: 0; padding: 16px 18px 14px; }
  .bob-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
  .bob-top .bt { font: 700 11px var(--display); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-50); }
  .bob-top .bh { font-size: 12px; color: var(--ink-50); }
  /* ONE continuous wrapping line: search, the filter dropdowns, the state pills, then the
     table's own controls. It used to be two blocks — filters in one row, state pills in a
     second with the tools pinned right — and every `margin-left:auto` in it bought a hole:
     as soon as a filter grew a chip the first row broke early and left half a line of cream
     with a lone button floating at the far right of it.
     Now it reflows like text. Nothing is anchored to an edge, the gap is the same
     everywhere, and a group that no longer fits simply continues on the next line where the
     previous one stopped. `.fb-gap` marks the seams between the three groups: it is a
     zero-height spacer, so it separates them mid-line and disappears when a line breaks
     there, which a border or a divider could not do. */
  .bob-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 6px; }
  .fb-gap { flex: 0 0 14px; height: 0; }
  .bob-search { flex: 0 0 190px; min-width: 190px; position: relative; }
  /* the result count rides at the end of the flow, not pinned to a corner */
  .bob-row .count-text { white-space: nowrap; font-size: 12.5px; color: var(--ink-50); margin-left: 2px; }
  .bob-row .count-text b { color: var(--forest); font-weight: 700; }
  .bob-search input { width: 100%; height: 34px; background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-pill); padding: 0 14px 0 34px; font: 500 13px var(--sans); color: var(--ink); outline: none; }
  .bob-search input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px var(--forest-wash); }
  .bob-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-50); width: 14px; height: 14px; }
  .fdrop { display: inline-flex; align-items: center; gap: 7px; height: 34px; background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-pill); padding: 0 11px 0 13px; font: 600 12px var(--sans); color: var(--ink); cursor: pointer; transition: border-color .15s var(--ease); }
  .fdrop:hover { border-color: var(--forest-soft); }
  .fdrop .all { background: var(--forest); color: var(--cream); border-radius: var(--r-pill); padding: 1px 8px; font: 700 11px var(--sans); max-width: 82px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fdrop .chev { width: 12px; height: 12px; color: var(--ink-50); }
  .fdrop-wrap[data-dd="lifecycle"] .fdrop .all { max-width: 152px; }
  /* Clear all — the one destructive-ish control in the row, so it says so: terracotta text
     inside a terracotta hairline pill, the same outline language the pending-activation chip
     uses. As grey borderless text it read as a label rather than a button, and sat in the
     row's only empty corner looking like a caption. */
  .bob .reset { height: 34px; box-sizing: border-box; padding: 0 14px; display: inline-flex; align-items: center;
    background: transparent; border: 1px solid rgba(185,73,41,0.45); border-radius: var(--r-pill);
    color: var(--terracotta-deep); font: 600 12px var(--sans); cursor: pointer;
    transition: background .15s var(--ease), border-color .15s var(--ease); }
  .bob .reset:hover { background: rgba(185,73,41,0.09); border-color: var(--terracotta-deep); }

  /* ── multi-select filter (tier / adoption / lifecycle) ──
     The button carries the chosen chips rather than a word for them, so the toolbar and the
     rows underneath speak the same language. */
  .fdrop.mf { padding-right: 9px; }
  .mf-sel { display: inline-flex; align-items: center; gap: 4px; }
  /* the previews shrink to fit a 34px control without redrawing any of them */
  /* tiers preview as bare number squares, so the padding around each one only widens the
     gap the flex gap already draws — 1px keeps two of them reading as a pair, not a list */
  .mf-sel .tier-chip.compact { height: 20px; padding: 0 1px; }
  .mf-sel .lc { height: 20px; padding: 0 8px; }
  .mf-sel .hs2-vchip { height: 20px; font-size: 10.5px; padding: 0 8px; }
  .mf-sel .schip { height: 20px; font-size: 9.5px; padding: 0 8px; gap: 4px; }
  .mf-sel .schip .cico { width: 10px; height: 10px; }
  /* Access, role, activity and size are text in the table, so they are text here. A label in
     the menu sits at the weight of the chips beside it in the other menus; the preview on the
     button is a step down and grey, because it is a reminder of what you picked rather than a
     thing to read — the same job .mf-more does at the end of a row of chips. */
  .mf-txt { font: 600 12px var(--sans); color: var(--ink); white-space: nowrap; }
  .mf-txt.mini { font: 700 11px var(--sans); color: var(--ink-70); }
  .mf-sel .mf-txt.mini + .mf-txt.mini::before { content: "·"; color: var(--ink-30); margin-right: 4px; }
  .mf-more { font: 700 11px var(--sans); color: var(--ink-50); }
  .mf-menu { min-width: 236px; max-height: 360px; padding: 6px; }
  .mf-head { position: sticky; top: -6px; z-index: 2; display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    font: 700 10px var(--display); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-50);
    padding: 7px 10px; background: var(--paper); border-bottom: 1px solid var(--hairline); margin-bottom: 2px; }
  .mf-clear { background: transparent; border: 0; padding: 0; font: 600 10.5px var(--sans); text-transform: none; letter-spacing: .01em; color: var(--forest); cursor: pointer; }
  .mf-clear:hover:not([disabled]) { text-decoration: underline; }
  .mf-clear[disabled] { color: var(--ink-30); cursor: default; }
  .mf-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; border: 0;
    padding: 6px 10px; border-radius: var(--r-sm); cursor: pointer; transition: background var(--dur-fast) var(--ease); }
  .mf-item:hover { background: var(--mute); }
  .mf-item.on .cbx { background: var(--forest); border-color: var(--forest); }
  .mf-item.on .cbx svg { opacity: 1; }
  /* A way out that is not "click somewhere else". Picking several chips keeps the menu open
     on purpose, so the menu needs its own end — the footer the Columns menu used to carry:
     full bleed, hairline above, sticky so a long list never hides it. */
  .mf-done { position: sticky; bottom: -6px; width: calc(100% + 12px); margin: 4px -6px -6px; padding: 9px 10px;
    display: flex; align-items: center; justify-content: center; background: var(--paper); border: 0;
    border-top: 1px solid var(--hairline); color: var(--forest); font: 600 11.5px var(--sans); cursor: pointer;
    transition: background var(--dur-fast) var(--ease); }
  .mf-done:hover { background: var(--forest-wash); }
  .bob .count-text { font-size: 12.5px; color: var(--ink-50); }   /* no auto margin: it rides the flow */
  .bob .count-text b { color: var(--forest); font-weight: 700; }
  /* matches the filters could not place. A quiet link rather than a pill: it is a footnote on
     the count beside it, not a fifteenth control on a toolbar that already wraps. */
  .bob .count-more { margin-left: 6px; padding: 0; border: 0; background: none; cursor: pointer;
    font: 600 12.5px var(--sans); color: var(--ink-40); border-bottom: 1px dashed var(--ink-30); }
  .bob .count-more:hover { color: var(--forest); border-bottom-color: var(--forest); }
  .bob .count-more[aria-disabled="true"] { cursor: help; border-bottom-style: dotted; }
  .bob .count-more[aria-disabled="true"]:hover { color: var(--ink-40); border-bottom-color: var(--ink-30); }
  /* quick-filter pills (row 2) */
  /* kept for the design guide's static example of the old two-row toolbar */
  .qf-row { background: var(--cream); border: 1px solid var(--hairline); border-top: 0; border-bottom: 0; padding: 0 18px 14px; display: flex; gap: 8px; flex-wrap: wrap; }
  .qf-row .qf-pills { display: flex; gap: 8px; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; }
  .qf-pill { display: inline-flex; align-items: center; height: 34px; background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-pill); padding: 0 14px; font: 600 12.5px var(--sans); color: var(--ink-70); cursor: pointer; transition: all .15s var(--ease); white-space: nowrap; }
  .qf-pill:hover { border-color: var(--forest-soft); color: var(--forest); }
  .qf-pill.active { background: var(--forest); color: var(--cream); border-color: var(--forest); }
  /* a glyph on a pill sits inside the same padding the label has, so the chip grows by the
     icon rather than by a gap — and it inherits currentColor, so it turns cream when active */
  .qf-pill.has-ico { padding-left: 11px; gap: 6px; }
  .qf-pill.has-ico svg { width: 14px; height: 14px; flex: none; opacity: .9; }
  /* scope chips */
  .scope-row { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--hairline); margin-bottom: 16px; }
  .scope-chip { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; font: 600 13px var(--sans); color: var(--ink-50); padding: 9px 13px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .15s var(--ease); }
  .scope-chip:hover { color: var(--ink-70); }
  .scope-chip.active { color: var(--forest); border-bottom-color: var(--forest); }
  .scope-chip .sc-ic { width: 15px; height: 15px; flex-shrink: 0; opacity: .65; }
  .scope-chip.active .sc-ic { opacity: 1; }
  .scope-chip .sc-n { font: 700 10.5px var(--sans); font-variant-numeric: tabular-nums; background: var(--mute); color: var(--ink-50); padding: 1px 7px; border-radius: var(--r-pill); transition: all .15s var(--ease); }
  .scope-chip.active .sc-n { background: var(--forest-wash); color: var(--forest); }

  /* model-state badge (matches v4 model_state) */
  .state-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; box-sizing: border-box; padding: 0 10px; border-radius: var(--r-pill); font: 600 11.5px var(--sans); white-space: nowrap; }
  .state-badge .sdot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
  .state-badge .sico { width: 13px; height: 13px; flex: none; margin: 0 -1px 0 -1px; }
  .state-badge.h3 { background: rgba(78,107,62,0.16); color: var(--sage-deep); }
  .state-badge.h2 { background: rgba(110,142,92,0.16); color: var(--sage-deep); }
  .state-badge.a1 { background: rgba(252,180,43,0.20); color: var(--amber-deep); }
  .state-badge.a0 { background: rgba(185,73,41,0.14); color: var(--terracotta-deep); }
  .state-badge.unk { background: rgba(154,140,122,0.18); color: var(--warm-grey); }
  .state-badge.prog { background: var(--forest-wash); color: var(--forest); }
  .state-badge.ob { background: rgba(107,79,122,0.14); color: var(--plum); }
  .state-badge.ch { background: rgba(154,140,122,0.22); color: var(--warm-grey); }
  .state-badge.pa { background: transparent; color: var(--plum); box-shadow: inset 0 0 0 1.5px rgba(107,79,122,0.34); }

  /* ── CONTACT chips ──────────────────────────────────────────────────────────────────
     Deliberately scoped to the two chips that describe a PERSON — how recently they were
     on Mighty (.rec-badge: active / slipping / dormant) and whether they still have an
     account (.schip.deact). Account- and school-level chips — state, lifecycle, tier,
     churn risk, adoption — are NOT touched and keep their own established styling; a
     contact is a different kind of subject and does not need to borrow their vocabulary.

     Type follows .lc's ramp: uppercase 10px/700 is the most compact form that still reads
     as a label rather than as data, which matters because these sit in dense table cells
     in the Contacts tab and in a tight row under the name in the contact drawer.

     TWO INTENSITIES:
       tinted (default) — a state that is simply true. Active, slipping.
       .is-alert        — a state to act on. Solid fill, cream text.
     Rationed on purpose: a contact list of 20 rows where every chip is solid is a wall of
     colour with nothing standing out. Dormant and deactivated earn it; active does not. */
  .schip {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    height: 24px; box-sizing: border-box; padding: 0 10px;
    border-radius: var(--r-pill);
    font: 700 10px var(--sans); text-transform: uppercase; letter-spacing: 0.03em;
  }
  .schip .cico { width: 11px; height: 11px; flex: none; margin-left: -1px; }
  /* the three recency bands. .rec-badge is left alone on purpose — it is also worn by
     account-level badges (overdue payment, quiet accounts, onboarding) and this vocabulary
     is scoped to contacts. */
  .schip.rec-fresh  { background: var(--sage-soft); color: var(--sage-deep); }
  .schip.rec-fading { background: rgba(252,180,43,.18); color: var(--amber-deep); }
  .schip.rec-cold   { background: rgba(154,140,122,.18); color: var(--warm-grey); }
  /* the alert intensity — each chip keeps its own colour rather than collapsing to one red */
  .schip.is-alert { color: var(--cream) !important; }
  .schip.rec-cold.is-alert, .schip.deact.is-alert { background: var(--terracotta-deep); }
  /* the deactivated chip: its own family, because it is a fact about the person rather than
     about the school's paperwork, and it has to sit beside a recency badge without being
     mistaken for one */
  .schip.deact { background: rgba(154,140,122,0.20); color: var(--warm-grey); }
  .schip.main  { background: rgba(1,80,59,0.10); color: var(--forest); }
  .schip.main .cico { fill: currentColor; stroke-width: 1.2; }

  /* contact drawer head — photo, name, then the chips on a line of their own. The chips
     were previously inline with a "· School · Account" line, which meant their left edge
     moved with the length of the school name and they wrapped mid-row on a long one. On
     their own row they start where the name starts, so the eye drops straight down. */
  .chd { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
  .chd-t { min-width: 0; }
  .chd-t .nm { margin-top: 0; }
  .chd-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 7px; }
  /* the avatar holds the initials, and the Mighty photo covers them when there is one.
     Stacked rather than branched: if the image 404s it removes itself and the initials are
     already underneath, so a broken photo degrades to the fallback with no flash of empty. */
  .contact-avatar { position: relative; overflow: hidden; flex: none; }
  .contact-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

  /* expand chevron + tree */
  .xchev { width: 16px; height: 16px; flex-shrink: 0; color: var(--ink-50); transition: transform .2s var(--ease); cursor: pointer; }
  tr.open .xchev, .xchev.open { transform: rotate(90deg); color: var(--forest); }
  .acct-cell { display: flex; align-items: center; gap: 8px; }
  .acct-cell .acct-name { font-weight: 600; color: var(--ink); }
  /* The Schools and Contacts scopes name their row in a bare <td>, not the accounts scope's
     .acct-cell, so the weight above never reached them and the first column read at exactly
     the weight of every field beside it. In all three scopes that column is the row's
     identity — what you scan down to find the row — and the rest of the table describes it. */
  .book-main td[data-col="school"] .acct-name,
  .book-main td[data-col="contact"] .acct-name { font-weight: 600; color: var(--ink); }
  /* whole row opens the drawer -- the name tints forest on row hover, no underline, no separate target */
  .book-main tr.acct-row:hover .acct-name,
  .lm-body tr.acct-row:hover .acct-name { color: var(--forest); }
  tr.sub-row > td { padding: 0 !important; background: var(--mute); }
  .subcell { padding: 8px 16px 14px 30px; }
  .tree-tag { display: inline-block; background: var(--forest-wash); color: var(--forest); font: 700 9px var(--display); text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: var(--r-sm); margin-left: 6px; vertical-align: 1px; }
  /* schools level — aligned columns + header */
  .tree-school-h, .tree-school-row { display: grid; grid-template-columns: 18px 220px 84px 150px 78px 78px; gap: 14px; align-items: center; justify-content: start; }
  .tree-school-h { font: 600 9.5px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-50); padding: 4px 10px 6px; }
  .tree-school-row { padding: 9px 10px; border-radius: var(--r-sm); font-size: 12.5px; cursor: pointer; }
  .tree-school-row:hover { background: var(--paper); }
  .tree-school-row .ts-name { font-weight: 600; color: var(--ink); }
  .tree-school-h .r, .tree-school-row .r { text-align: right; font-variant-numeric: tabular-nums; }
  /* members level — nested under a school, aligned mini-table */
  .tree-mem { margin: 2px 0 10px 28px; border-left: 2px solid var(--hairline-strong); padding-left: 16px; }
  .tree-mem-h, .tree-mem-row { display: grid; grid-template-columns: 190px 130px 64px 58px 58px 62px; gap: 12px; align-items: center; justify-content: start; }
  .tree-mem-h { font: 600 9.5px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-50); padding: 5px 8px; }
  .tree-mem-h .r, .tree-mem-row .r { text-align: right; font-variant-numeric: tabular-nums; }
  .tree-mem-row { padding: 8px; font-size: 12.5px; border-top: 1px solid var(--hairline); cursor: pointer; border-radius: var(--r-sm); }
  .tree-mem-row:hover { background: var(--paper); }
  .tree-mem-row .tc-name { font-weight: 600; color: var(--ink); }
  .tree-mem-row .muted { color: var(--ink-50); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tree-mem-row .num { text-align: right; color: var(--ink); font-weight: 600; }
  .tree-mem-row .num.zero { color: var(--ink-30); font-weight: 500; }
  .lastv { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
  .lastv.fresh { color: var(--sage-deep); } .lastv.fading { color: var(--amber-deep); } .lastv.cold { color: var(--terracotta-deep); }
  /* someone we hold who is not on the Mighty roster the recency mix counts. Deliberately
     quiet and not a threshold colour: "Not on Mighty" is the absence of a reading, not a
     bad one, and it used to render as the same bare em dash as a missing value. */
  .lastv.off-roster, td.off-roster, span.off-roster { color: var(--ink-30); font-weight: 500; font-size: 11px; letter-spacing: .01em; }
  /* the same quiet, on a cell that still holds a number. The smaller, lighter setting above
     is for the WORDS; applied to "47d ago" it left a column of right-aligned figures set in
     two sizes and two weights, which reads as broken rather than as quiet. */
  .lastv.off-num { color: var(--ink-30); }
  /* margin-right: auto keeps it beside the count rather than flung to the far edge — .d-head
     is a space-between flex row whose last item is the collapse chevron */
  .roster-note { color: var(--ink-40); font-weight: 500; text-transform: none; letter-spacing: 0; cursor: help; margin-right: auto; margin-left: -4px; }
  /* sort indicator in headers -- a single refined chevron-arrow, not stacked triangles.
     label + indicator sit in one inline-flex row so they never wrap to a second line. */
  th.sortable { white-space: nowrap; }
  table.radar thead th .th-in { display: inline-flex; align-items: center; gap: 5px; }
  table.radar thead th.num .th-in { flex-direction: row; }
  th.sortable .sort-ind { position: relative; flex-shrink: 0; width: 11px; height: 14px; }
  th.sortable .sort-ind svg { position: absolute; inset: 0; width: 11px; height: 14px; transition: opacity .12s var(--ease); }
  /* neutral: a faint symmetric double-chevron, shown only on hover as a sortability hint */
  th.sortable .sort-ind .si-neutral { opacity: 0; color: var(--ink-30); }
  th.sortable:hover .sort-ind .si-neutral { opacity: .5; }
  /* active: one balanced, vertically-centred arrow (stem + head) in forest; asc flips it up */
  th.sortable .sort-ind .si-active { opacity: 0; color: var(--forest); transform-origin: center; }
  th.sorted-asc .sort-ind .si-active { opacity: 1; transform: rotate(180deg); }
  th.sorted-desc .sort-ind .si-active { opacity: 1; }
  th.sorted-asc .sort-ind .si-neutral, th.sorted-desc .sort-ind .si-neutral,
  th.sorted-asc:hover .sort-ind .si-neutral, th.sorted-desc:hover .sort-ind .si-neutral { opacity: 0; }
  table.radar thead th.sorted-desc, table.radar thead th.sorted-asc { color: var(--forest); }

  /* ════ tabs with icons + docs menu ════ */
  .tabbar { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid var(--hairline); flex-wrap: wrap; }
  .tabi { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; font: 600 13.5px var(--sans); color: var(--ink-50); padding: 11px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .15s var(--ease); }
  .tabi svg { width: 16px; height: 16px; opacity: .7; }
  .tabi:hover { color: var(--ink-70); }
  .tabi.active { color: var(--forest); border-bottom-color: var(--forest); }
  .tabi.active svg { opacity: 1; }
  .tabbar .spring { flex: 1; }
  .menu-drop { position: relative; }
  .menu-drop > .tabi.docs { border: 0; }
  .menu-drop.open > .tabi.docs { color: var(--forest); }
  .menu-drop.open > .tabi.docs .schev { transform: rotate(180deg); }
  .menu-drop > .tabi.docs .schev { transition: transform .18s var(--ease); }
  .menu-panel { position: absolute; top: calc(100% + 6px); right: 0; min-width: 200px; background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-md); box-shadow: var(--shadow-pop); padding: 6px; z-index: 20; display: none; }
  .menu-drop.open .menu-panel { display: block; }
  .menu-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); font: 500 13px var(--sans); color: var(--ink); cursor: pointer; }
  .menu-item:hover { background: var(--mute); }
  .menu-item svg { width: 15px; height: 15px; color: var(--ink-50); }

  /* ── account menu (appbar, far right) ──────────────────────────────────────
     Reuses .menu-drop / .menu-panel wholesale so it opens, closes and shadows
     exactly like the Docs menu — one dropdown behaviour in the product, not two.
     The avatar is .owner-avatar, the same component the CS-owner column uses, so
     "you" and "the owner of this account" render identically — including the photo,
     when there is one. Initials remain the fallback, and are what everyone had until
     Settings grew somewhere to put a picture. */
  /* .appbar-right had no rule at all — it worked only because it held one visible child.
     Adding the avatar made that assumption visible: the two stacked. */
  .appbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
  .user-cell { flex-shrink: 0; }
  .user-btn { display: flex; align-items: center; padding: 2px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; transition: box-shadow .15s var(--ease); }
  .user-btn:hover { box-shadow: 0 0 0 3px var(--forest-wash); }
  .user-btn:focus { outline: none; }
  .user-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--forest-wash); }
  .menu-drop.open .user-btn { box-shadow: 0 0 0 3px var(--forest-wash); }
  .owner-avatar.user-av { width: 30px; height: 30px; font-size: 11px; }
  .user-panel { min-width: 262px; padding: 0; }
  .um-head { display: flex; align-items: center; gap: 11px; padding: 14px 14px 12px; }
  .um-id { min-width: 0; }
  .um-name { font: 700 13.5px var(--sans); color: var(--ink); line-height: 1.25; }
  .um-title { font: 600 11.5px var(--sans); color: var(--forest-soft); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 178px; }
  .um-mail { font-size: 11.5px; color: var(--ink-50); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 178px; }
  .um-role { padding: 0 14px 13px; }
  .um-pill { display: inline-block; font: 700 10px var(--sans); text-transform: uppercase; letter-spacing: .07em; padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
  .um-pill.w { background: var(--forest-wash); color: var(--forest); }
  .um-pill.r { background: var(--mute); color: var(--ink-50); }
  .um-rnote { display: block; font-size: 11px; color: var(--ink-50); line-height: 1.45; margin-top: 5px; }
  .um-sep { height: 1px; background: var(--hairline); }
  .um-body { padding: 6px; }
  /* The hairline splits this menu by what the rows are FOR, not by what they are. Above it:
     the two anybody opens on purpose — Monitor, which carries live content, and Health Score,
     which is what you go and read the moment a grade on the Book of business surprises you.
     Below it: reference, in the order it is usually wanted. Without the rule those two sat at
     the head of a run of seven and read as the first two documents in it. */
  .menu-sep { height: 1px; background: var(--hairline); margin: 5px 2px; }
  .menu-item.danger { color: var(--terracotta-deep); }
  .menu-item.danger svg { color: var(--terracotta-deep); }
  .menu-item.danger:hover { background: rgba(185,73,41,.07); }

  /* ── settings sheet ── */
  .set-scrim { position: fixed; inset: 0; background: rgba(49,49,47,0.34); opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease); z-index: 97; }
  .set-scrim.on { opacity: 1; pointer-events: auto; }
  .set-modal { position: fixed; left: 50%; top: 12vh; transform: translate(-50%, -8px); width: min(460px, 94vw); background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); z-index: 98; overflow: hidden; }
  .set-modal.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
  .set-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; border-bottom: 1px solid var(--hairline); }
  .set-head h2 { font: 800 16px var(--display); color: var(--ink); margin: 0; letter-spacing: -0.01em; }
  .set-x { border: 0; background: transparent; cursor: pointer; color: var(--ink-30); padding: 4px; border-radius: var(--r-sm); line-height: 0; }
  .set-x:hover { background: var(--mute); color: var(--ink-70); }
  .set-body { padding: 6px 20px 20px; max-height: 66vh; overflow-y: auto; }
  .set-row { padding: 15px 0; border-bottom: 1px solid var(--hairline); }
  .set-row:last-child { border-bottom: 0; }
  .set-lab { font: 600 13px var(--sans); color: var(--ink); }
  .set-help { font-size: 11.5px; color: var(--ink-50); line-height: 1.5; margin-top: 3px; }
  .set-ctl { margin-top: 9px; }
  .set-ctl select { font: 500 13px var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-sm); padding: 7px 9px; width: 100%; cursor: pointer; }
  .set-ctl select:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--forest-wash); }
  .set-btn { font: 600 12.5px var(--sans); color: var(--ink-70); background: transparent; border: 1px solid var(--hairline-strong); border-radius: var(--r-sm); padding: 8px 13px; cursor: pointer; }
  .set-btn:hover { border-color: var(--terracotta); color: var(--terracotta-deep); }
  .set-btn.sm { padding: 6px 11px; font-size: 12px; }
  /* forest = the action, never a data colour (see the design guide) — so the one button
     that commits a change is filled, and it is the only filled button in the sheet. */
  .set-btn.primary { background: var(--forest); border-color: var(--forest); color: var(--cream); }
  .set-btn.primary:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: var(--cream); }
  /* Nothing to save reads as a quiet outline button, not as a faded forest one — a
     washed-out forest lands on sage, which is a data colour on every other surface here
     and would have "healthy" quietly meaning "disabled". */
  .set-btn.primary:disabled { background: transparent; border-color: var(--hairline-strong); color: var(--ink-30); }
  .set-btn:disabled { cursor: default; }
  .set-btn:disabled:hover { border-color: var(--hairline-strong); color: var(--ink-30); }
  .set-note { font-size: 11.5px; color: var(--ink-50); line-height: 1.5; }

  /* ── profile block ── */
  .set-prof { display: flex; align-items: center; gap: 15px; margin-top: 13px; }
  .prof-av { position: relative; border: 0; background: transparent; padding: 0; line-height: 0; cursor: pointer; border-radius: 50%; flex-shrink: 0; }
  .prof-av:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--forest-wash); }
  .owner-avatar.prof { width: 66px; height: 66px; font-size: 21px; border-width: 2px; }
  .prof-cam { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--forest); color: var(--cream); display: flex; align-items: center; justify-content: center; border: 2px solid var(--paper); transition: background .15s var(--ease); }
  .prof-av:hover .prof-cam { background: var(--forest-deep); }
  .prof-cam svg { width: 12px; height: 12px; }
  .prof-side { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
  .prof-btns { display: flex; gap: 7px; }
  .set-field { display: block; margin-top: 12px; }
  .set-field > span { display: block; font: 600 11.5px var(--sans); color: var(--ink-70); margin-bottom: 5px; }
  .set-field input { width: 100%; font: 500 13px var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-sm); padding: 8px 10px; }
  .set-field input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px var(--forest-wash); }
  .set-field input:disabled { background: var(--mute); color: var(--ink-50); }
  .set-actions { display: flex; align-items: center; gap: 11px; margin-top: 13px; }
  .set-ok { font-size: 11.5px; font-weight: 600; color: var(--sage-deep); opacity: 0; transition: opacity var(--dur) var(--ease); }
  .set-ok.on { opacity: 1; }

  /* Facts in the page's own type rather than a grey monospace debug block. Same content,
     read as part of the product instead of as something pasted out of a console. */
  .set-facts { margin-top: 10px; }
  .set-fact { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--hairline); }
  .set-fact:last-child { border-bottom: 0; padding-bottom: 0; }
  .set-fact .sf-k { font: 500 12.5px var(--sans); color: var(--ink-50); white-space: nowrap; }
  .set-fact .sf-v { font: 600 12.5px var(--sans); color: var(--ink); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  @media (max-width: 720px) { .set-modal { top: 6vh; } }

  /* ════ drawer extras ════ */
  .crumbs { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-50); flex-wrap: wrap; margin-bottom: 8px; }
  .crumbs .crumb { display: inline-flex; align-items: center; gap: 5px; background: transparent; border: 0; padding: 0; font: 500 12px var(--sans); color: var(--forest); cursor: pointer; }
  .crumbs .crumb-ic { width: 13px; height: 13px; flex-shrink: 0; opacity: .85; }
  .crumbs .crumb:hover { text-decoration: underline; }
  .crumbs .crumb.here { color: var(--ink); font-weight: 600; cursor: default; }
  .crumbs .crumb.here:hover { text-decoration: none; }
  .crumbs .sep { color: var(--ink-30); }

  /* drawer nav row — back to the drawer this was opened from + close */
  .drawer-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
  .dnav-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-70); cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease); }
  .dnav-btn:hover { background: var(--mute); color: var(--forest); }
  .dnav-btn:active { background: var(--forest-wash); }
  .dnav-btn svg { width: 21px; height: 21px; }
  .drawer-nav .back { margin-left: -8px; }
  .drawer-nav .close { margin-right: -8px; }
  .dnav-right { display: flex; align-items: center; gap: 2px; }
  .dnav-btn.share svg { width: 19px; height: 19px; }   /* the chain reads heavier than the cross at the same box */
  .dnav-btn.share.ok { color: var(--sage-deep); }
  /* KV grid + provenance dot */
  .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 28px; align-items: start; }
  .kv .kv-k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-50); font-weight: 600; display: flex; align-items: center; gap: 6px; }
  .kv .kv-v { font-size: 13px; color: var(--ink); font-weight: 600; margin-top: 3px; font-variant-numeric: tabular-nums; }
  /* A row that takes the whole width instead of half of it. An email address is 30-odd
     characters and a 1fr column is not, so it was the one value in the grid that regularly
     wrapped or ran out of room -- and it is the first thing anybody opens this section for. */
  .kv .kv-wide { grid-column: 1 / -1; }
  /* v8.41. Holds a row in the right-hand column when the left one is deliberately empty —
     Products & access stacks the two grants under each other on the right, against the one
     count on the left, and auto-flow would otherwise wrap the second grant back to column 1
     and put it under the number it is meant to be read against. */
  .kv .kv-col2 { grid-column: 2; }
  /* The Highlights divider, borrowed to cluster this grid. Its own 15px margins sit on top
     of the grid's 13px gap and read as a gap in the section rather than a seam in it. */
  .kv > .hl-line { grid-column: 1 / -1; margin: 3px 0; }
  /* Reach values are the only things in the drawer you act ON rather than read: forest on
     hover, which is this system's colour for an action and for nothing else. */
  .kv-v a.kvl { color: inherit; text-decoration: none; border-bottom: 1px solid var(--hairline); transition: color .12s var(--ease), border-color .12s var(--ease); }
  .kv-v a.kvl:hover { color: var(--forest); border-bottom-color: var(--forest-line); }
  .srcdot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
  .srcdot.mighty { background: var(--sage); } .srcdot.bill { background: var(--amber); } .srcdot.crm { background: var(--terracotta); } .srcdot.master { background: var(--warm-grey); } .srcdot.notes { background: var(--plum); } .srcdot.model { background: var(--ink-50); }
  .src-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
  .src-legend .sl { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-50); }
  /* highlights -- plain grey divider between clusters (no header label) */
  .hl-line { border-top: 1px solid var(--hairline); margin: 15px 0; }
  /* provenance on hover -- source + sync time, no dots cluttering the values */
  .kv-row[data-src] { position: relative; }
  .kv-row[data-src]::after { content: attr(data-src); position: absolute; left: 0; bottom: calc(100% + 7px); background: var(--dark); color: var(--cream); font: 500 11px var(--sans); letter-spacing: .01em; text-transform: none; padding: 7px 10px; border-radius: var(--r-sm); white-space: nowrap; box-shadow: var(--shadow-pop); opacity: 0; pointer-events: none; transform: translateY(3px); transition: opacity .12s var(--ease), transform .12s var(--ease); z-index: 40; }
  .kv-row[data-src]:hover::after { opacity: 1; transform: translateY(0); }

  /* ── firmographics: the .field + control shape Inputs already uses, so an editable fact
     looks like something you can edit. Values are real form controls -- .es-chip for the
     three pickers, the standard .field text input for everything else -- which also means
     they inherit the system's type (13px/500, not the KV grid's 13px/600 display weight). */
  .fg-field { position: relative; }
  .fg-field .fg-in { font-variant-numeric: tabular-nums; }
  .fg-field .fg-in::-webkit-outer-spin-button,
  .fg-field .fg-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  .fg-field .fg-in[inputmode=numeric],
  .fg-field .fg-in[inputmode=decimal] { -moz-appearance: textfield; }
  .fg-field .fg-in::placeholder { color: var(--ink-30); }
  /* the one derived word a label may carry (the day length under Open hours). Its own colour,
     so it stays quiet when .is-dirty turns the field name terracotta -- it describes what is
     stored, not what is being typed. */
  .fg-field > label .fg-lab-note { color: var(--ink-30); font-weight: 500; }
  .fg-field > label .fg-lab-note::before { content: " · "; }
  /* a currency mark inside the field, not a suffix on the label -- so the number keeps
     reading as a number and the label keeps reading as a name */
  .fg-unit { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font: 500 13px var(--sans); color: var(--ink-50); pointer-events: none; }
  .fg-inwrap.has-unit .fg-in { padding-left: 24px; }
  /* ── an age range is two ages (v8.45). One field, two boxes: the youngest child and the
     oldest, typed rather than picked off a list. The dash between them is the whole label —
     "From 2 – To 6" needs no words, and the row already says what the numbers are.
     Left-aligned, not centred: every other value in this panel starts on the left edge of its
     box, and two centred numbers put the only two figures in the section on a line of their
     own — the eye stops looking down the column and starts hunting each row. */
  .fg-range { display: flex; align-items: center; gap: 7px; }
  .fg-range .fg-rng { flex: 1 1 0; min-width: 0; text-align: left; }
  .fg-rng-sep { flex: 0 0 auto; font: 500 13px var(--sans); color: var(--ink-30); }
  /* a link field is still a field -- the input holds the address, and the glyph on the right
     is the way out to it. Padding keeps typed text clear of the button. */
  .fg-linkwrap { position: relative; }
  .fg-linkwrap .fg-in { padding-right: 34px; }
  .fg-open { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: var(--r-sm); color: var(--ink-50); background: none; border: 0; padding: 0; cursor: pointer; transition: color .13s var(--ease), background .13s var(--ease); }
  .fg-open:hover { color: var(--forest); background: var(--mute); }
  .fg-open svg { width: 14px; height: 14px; }
  .fg-open.is-empty { color: var(--ink-30); cursor: default; pointer-events: none; }
  /* the country chip carries a flag where the other chips carry a status dot */
  .es-chip .cflag { flex-shrink: 0; }
  .es-chip .es-lbl.is-unset { color: var(--ink-30); font-weight: 500; }
  /* Provenance is a hover on the LABEL only. Hung off the whole field it fired whenever the
     pointer crossed the control -- so it appeared while you were reaching for the input and
     covered the field above. The label is the part that asks "where did this come from". */
  .fg-field > label[data-src] { position: relative; display: inline-block; cursor: help; }
  .fg-field > label[data-src]::after { content: attr(data-src); position: absolute; left: 0; bottom: calc(100% + 4px); background: var(--dark); color: var(--cream); font: 500 11px var(--sans); letter-spacing: .01em; text-transform: none; padding: 7px 10px; border-radius: var(--r-sm); white-space: nowrap; box-shadow: var(--shadow-pop); opacity: 0; pointer-events: none; transform: translateY(3px); transition: opacity .12s var(--ease), transform .12s var(--ease); z-index: 40; }
  .fg-field > label[data-src]:hover::after { opacity: 1; transform: translateY(0); }

  /* ── an edit you have not committed says so.
     Terracotta, chosen deliberately over amber. The system reserves terracotta for broken or
     at risk, and by that reading a half-typed value should be amber -- it is waiting, not
     wrong. Overruled on purpose: losing an edit is the failure this exists to prevent, and the
     louder colour is the one people actually stop for. Documented here so the next person does
     not "correct" it back. */
  .fg-inwrap { position: relative; }
  .fg-field.is-dirty .fg-in { border-color: var(--terracotta-deep); box-shadow: 0 0 0 3px rgba(185,73,41,0.18); }
  .fg-field.is-dirty > label { color: var(--terracotta-deep); }
  .fg-save { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: none; align-items: center; height: 24px; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: var(--forest); color: var(--cream); font: 600 11.5px var(--sans); cursor: pointer; }
  .fg-save:hover { background: var(--forest-soft); }
  .fg-field.is-dirty .fg-save { display: inline-flex; }
  /* the way out to a link and the way to save a change never need to share the row */
  .fg-field.is-dirty .fg-open { display: none; }
  /* the Save button is absolute inside .fg-inwrap, so the room for it comes out of the input
     it sits over. The range has no button — it commits through the confirm alone — so it needs
     no room and its boxes keep the full width. */
  .fg-field.is-dirty .fg-in:not(.fg-rng) { padding-right: 58px; }

  /* let highlights + inputs render menus/tooltips beyond the section frame */
  .d-section.unclip { overflow: visible; }
  .d-section.unclip .d-head { border-radius: var(--r-md) var(--r-md) 0 0; }
  /* reason uses the composer shell -- remove the default .field input border so it isn't a box-in-a-box */
  .field .composer input[type=text] { border: 0; background: transparent; border-radius: 0; padding: 3px 0; box-shadow: none; cursor: text; }
  .field .composer input[type=text]:focus { border: 0; box-shadow: none; }
  /* account health — ring gauge + key stats */
  .ahx { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
  .ahx-ring { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
  .ahx-ring svg { width: 46px; height: 46px; display: block; }
  .ahx-num { font: 800 42px var(--display); line-height: 1; letter-spacing: -0.025em; white-space: nowrap; transform: translateY(1px); }
  .ahx-num small { font-size: 18px; font-weight: 700; color: rgba(55,63,65,0.45); margin-left: 3px; }
  .ahx-trend { flex: 1; min-width: 200px; }
  .ahx-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; }
  .ahx-stat { padding-left: 16px; border-left: 1px solid var(--hairline); }
  .ahx-stat:first-child { border-left: 0; padding-left: 0; }
  .ahx-stat .l { font: 700 11px var(--display); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-50); }
  .ahx-stat .v { font: 700 15px var(--sans); margin-top: 5px; font-variant-numeric: tabular-nums; color: var(--ink); }
  .ahx-stat .v.good { color: var(--sage-deep); }
  .ahx-stat .v.warn { color: var(--amber-deep); }
  .ahx-stat .v.bad { color: var(--terracotta-deep); }
  .ahx-stat .v.none { color: var(--ink-30); font-weight: 500; }
  /* touchpoints mini timeline at the foot of Account health */
  .ahx-tl { margin-top: 20px; }
  .ahx-tl-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
  .ahx-tl-lab { font: 700 11px var(--display); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-50); }
  .ahx-tl .tp-track { height: 40px; }
  /* health trend mini bars */
  .htrend-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
  .htrend-head .htl { font: 700 11px var(--display); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-50); }
  .htrend-head .htd { font-size: 12px; font-weight: 600; }
  .htrend-head .htd.up { color: var(--sage-deep); } .htrend-head .htd.down { color: var(--terracotta-deep); } .htrend-head .htd.flat { color: var(--ink-50); font-weight: 500; }
  /* the per-bucket "what drove it" line that used to sit here was removed — on most accounts
     nothing moves between snapshots, so it read "adoption — · payment — · engagement —" and said
     nothing. Score breakdown, two sections down, carries each bucket's score and points. */
  .htrend-bars { display: flex; align-items: flex-end; justify-content: flex-end; gap: 4px; height: 44px; border-bottom: 1px solid var(--hairline); }
  .htrend-bars .htb { width: 12px; flex: 0 0 12px; border-radius: 2px 2px 0 0; min-height: 4px; }
  .htrend-bars .htb.htb-stack { display: flex; flex-direction: column-reverse; overflow: hidden; }
  .htrend-bars .htb .hseg { width: 100%; min-height: 0; }
  .htrend-bars .htb.empty { background: transparent !important; }
  /* compact health-score trend sparkline — book "Health trend" column; same bar visual as the drawer at a smaller size,
     reads old→new left-to-right. inline-flex so it hugs the bar cluster; a baseline rule (::after) grounds the bars
     instead of leaving them floating in the cell. */
  .radar td[data-col="trend"] { vertical-align: middle; }
  .spark-bars { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 28px; padding: 0 5px; position: relative; }
  .spark-bars::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hairline-strong); }
  .spark-bars .htb { width: 6px; flex: 0 0 6px; border-radius: 1.5px 1.5px 0 0; min-height: 3px; transition: filter .15s var(--ease), opacity .15s var(--ease); }
  .spark-bars .htb.htb-stack { display: flex; flex-direction: column-reverse; overflow: hidden; }
  .spark-bars .htb .hseg { width: 100%; min-height: 0; }
  .spark-bars .htb.empty { background: transparent !important; }
  .spark-bars:hover .htb:not(:hover):not(.empty) { opacity: .5; }
  .spark-bars .htb:hover { filter: brightness(1.1); }
  .radar td[data-col="recmix"], .radar td[data-col="platform"], .radar td[data-col="timeline"] { vertical-align: middle; }
  /* recency-mix bar — slimmer so it doesn't dominate the row */
  .recmix-cell { max-width: 132px; }
  /* platform-activity mini bars — book "Platform activity" column; single-colour active-users sparkline, grounded on a baseline */
  .act-bars { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 26px; padding: 0 5px; position: relative; }
  .act-bars::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hairline-strong); }
  .act-bars .htb { width: 6px; flex: 0 0 6px; border-radius: 1.5px 1.5px 0 0; min-height: 3px; transition: filter .15s var(--ease), opacity .15s var(--ease); }
  .act-bars:hover .htb:not(:hover) { opacity: .5; }
  .act-bars .htb:hover { filter: brightness(1.1); }
  /* engagement mini timeline — book "Engagement timeline" column; touchpoint dots on a 90-day track: colour = type, size = weight, opacity fades with age, latest haloed */
  .tp-track { position: relative; height: 34px; width: 100%; isolation: isolate; }
  .tp-track::after { content: ""; position: absolute; left: 2%; right: 2%; top: 50%; height: 2px; transform: translateY(-50%); border-radius: 2px; background: linear-gradient(90deg, rgba(154,140,122,0) 0%, rgba(154,140,122,.16) 55%, rgba(154,140,122,.42) 100%); z-index: 0; }
  .tp-dot { position: absolute; top: 50%; border-radius: 50%; border: 0.75px solid var(--paper); box-shadow: 0 1px 2px rgba(55,63,65,.1); transition: transform .22s var(--ease), box-shadow .14s var(--ease), opacity .16s var(--ease); cursor: pointer; }
  .tp-dot.now { box-shadow: 0 0 0 0.75px var(--paper), 0 1px 4px rgba(55,63,65,.22); }
  /* a meeting carries a slightly heavier rim and a deeper shadow than the dots around it —
     enough to find at a glance down a column of 80 rows, not enough to become a second
     signal competing with size and colour */
  .tp-dot.met { border-width: 1.25px; box-shadow: 0 1px 3px rgba(55,63,65,.18); }
  .tp-dot.met.now { box-shadow: 0 0 0 1.25px var(--paper), 0 1px 5px rgba(55,63,65,.26); }
  /* idea 6 — reveal on hover: calm at rest, dots ripple up in a stagger when the row is hovered */
  .acct-row:hover .tp-dot { transform: scale(1.12); transition-delay: calc(var(--tpi,0) * .03s); }
  /* idea 7 — focus + context: the hovered touch pops, the rest dim back */
  .tp-track:hover .tp-dot:not(:hover) { opacity: .4; }
  .acct-row:hover .tp-dot:hover, .tp-dot:hover { transform: scale(1.5); transition-delay: 0s; box-shadow: 0 2px 6px rgba(55,63,65,.22); z-index: 99; opacity: 1; }
  /* health score breakdown */
  .hb-card { padding: 0; }
  .hb-row.parked .hb-name, .hb-row.parked .hb-val { opacity: .65; }
  .hb-head { font: 700 11px var(--display); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-50); margin-bottom: 16px; }
  .hb-row { display: grid; grid-template-columns: 158px 1fr 54px 58px; gap: 12px; align-items: center; padding: 8px 0; }
  .hb-name { font-size: 12.5px; color: var(--ink); font-weight: 600; white-space: nowrap; }
  .hb-name span { color: var(--ink-30); font-weight: 500; font-size: 10px; margin-left: 6px; }
  .hb-track { height: 10px; background: var(--mute); border-radius: 3px; overflow: hidden; }
  .hb-fill { height: 100%; border-radius: 3px; }
  .hb-val { text-align: right; font: 700 12.5px var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
  .hb-val span { color: var(--ink-30); font-weight: 500; font-size: 10px; }
  .hb-pts { text-align: right; font: 700 11.5px var(--sans); color: var(--sage-deep); }
  .hb-pts.parked { color: var(--ink-50); font-weight: 600; }
  .hb-note { font-size: 11px; font-style: italic; color: var(--ink-50); padding: 0 0 9px 144px; margin-top: -4px; }
  @media (max-width: 600px) { .hb-note { padding-left: 0; } }
  .hb-foot { font-size: 11.5px; color: var(--ink-50); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); line-height: 1.5; }
  /* timeline */
  .timeline { position: relative; padding-left: 20px; }
  .timeline::before { content: ""; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 2px; background: var(--hairline-strong); }
  .tl-item { position: relative; padding: 0 0 16px; }
  .tl-item:last-child { padding-bottom: 0; }
  .tl-item .tl-dot { position: absolute; left: -19px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--forest); border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--hairline-strong); }
  .tl-item.warn .tl-dot { background: var(--amber); }
  .tl-item.risk .tl-dot { background: var(--terracotta-deep); }
  .tl-item .tl-date { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-50); font-weight: 600; }
  .tl-item .tl-subj { font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 2px; }
  .tl-item .tl-sum { font-size: 12px; color: var(--ink-70); margin-top: 3px; line-height: 1.5; }

  /* recent touchpoints — calm, typed, clickable list */
  .tp-item { display: grid; grid-template-columns: 18px 1fr auto; column-gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--hairline); border-radius: 6px; }
  .tp-item:first-child { border-top: 0; }
  /* flash when jumped to from a timeline dot */
  .tp-item.tp-flash { animation: tpFlash 1.6s var(--ease); }
  @keyframes tpFlash { 0%, 20% { background: var(--forest-wash); } 100% { background: transparent; } }
  .tp-item.clickable { cursor: pointer; }
  .tp-icon { margin-top: 2px; color: var(--ink-30); }
  .tp-icon svg { width: 14px; height: 14px; display: block; }
  .tp-item.email .tp-icon { color: var(--forest-soft); }
  .tp-item.meeting .tp-icon { color: var(--plum); }
  .tp-item.call .tp-icon { color: var(--terracotta-deep); }
  .tp-item.note .tp-icon { color: var(--amber-deep); }
  /* A meeting note is typed here, so the row is a note row and would inherit the amber
     every typed note wears. Its icon takes the category's own slate instead, which is the
     colour of its pill and of its option in the composer -- one category, one colour,
     wherever it turns up. Filtered to Meetings the column then reads two calendars in two
     colours: slate for the ones written here, plum for the ones HubSpot logged. */
  .tp-item .tp-icon.ic-meeting_note { color: var(--slate); }
  .tp-date { font-size: 11px; color: var(--ink-50); font-weight: 500; }
  .tp-subj { font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 2px; }
  .tp-item.canceled .tp-subj { color: var(--ink-50); font-weight: 500; }
  .tp-chev { width: 14px; height: 14px; color: var(--ink-30); margin-top: 18px; opacity: 0; transition: opacity .15s var(--ease), transform .18s var(--ease); }
  .tp-item.clickable:hover .tp-chev { opacity: 1; }
  .tp-item.open .tp-chev { opacity: 1; transform: rotate(180deg); }
  .tp-subj { overflow-wrap: anywhere; }
  .tp-body { display: none; grid-column: 2 / -1; margin-top: 10px; padding: 14px 16px; background: var(--mute); border-radius: var(--r-sm); font-size: 12.5px; color: var(--ink-70); line-height: 1.65; cursor: auto; overflow-wrap: anywhere; }
  .tp-item.open .tp-body { display: block; }
  /* read like a message, not like a data field: a real paragraph rhythm and a measure that
     stops at ~85 characters, which is where a line of prose gets hard to track back from */
  .tp-body p { margin: 0 0 9px 0; max-width: 62em; }
  .tp-body p:last-child { margin-bottom: 0; }
  /* An address is the one thing in a note you act ON rather than read, so it wears the
     vocabulary the drawer's reach values already use — inherited ink, a hairline under it,
     forest on hover, this system's colour for an action and for nothing else. Nothing new
     was invented for it. The address is shortened on screen and kept whole in the href, so
     a note that is one sentence and one link does not read as mostly link. */
  .tp-link { color: inherit; text-decoration: none; border-bottom: 1px solid var(--hairline-strong); transition: color .12s var(--ease), border-color .12s var(--ease); overflow-wrap: anywhere; }
  .tp-link:hover { color: var(--forest); border-bottom-color: var(--forest-line); }
  /* the thread being replied to — present, but out of the way until asked for */
  .tp-qwrap { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--hairline); }
  .tp-qbtn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; font: 600 11.5px var(--sans); color: var(--ink-50); }
  .tp-qbtn:hover { color: var(--forest); }
  .tp-qbtn svg { width: 13px; height: 13px; }
  .tp-quote, .tp-qwrap .qhide { display: none; }
  .tp-qwrap.open .tp-quote { display: block; margin-top: 10px; padding-left: 11px; border-left: 2px solid var(--hairline-strong); color: var(--ink-50); }
  .tp-qwrap.open .qhide { display: inline; }
  .tp-qwrap.open .qshow { display: none; }
  .tp-all { margin-top: 14px; }
  /* notes */
  .note-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
  .note-tab { border: 1px solid var(--hairline-strong); background: var(--paper); border-radius: var(--r-pill); padding: 5px 12px; font: 600 11.5px var(--sans); color: var(--ink-70); cursor: pointer; transition: all .15s var(--ease); }
  .note-tab:hover { border-color: var(--forest-soft); }
  .note-tab.active { background: var(--forest); color: var(--cream); border-color: var(--forest); }
  .note-item { padding: 12px 14px; background: var(--mute); border-radius: var(--r-sm); margin-bottom: 8px; }
  .note-item .nm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
  .note-item .nm-who { font: 600 12px var(--sans); color: var(--ink); }
  .note-item .nm-when { font-size: 11px; color: var(--ink-50); font-variant-numeric: tabular-nums; }
  .note-item .nm-body { font-size: 12.5px; color: var(--ink-70); line-height: 1.5; }
  /* composer — one add-row pattern shared by notes + tasks */
  .composer { display: flex; align-items: flex-start; gap: 9px; border: 1px solid var(--hairline-strong); border-radius: var(--r-sm); padding: 8px 8px 8px 11px; background: var(--paper); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
  .composer:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px var(--forest-wash); }
  .composer .cmp-ic { width: 16px; height: 16px; flex-shrink: 0; color: var(--ink-50); margin-top: 4px; transition: color .15s var(--ease); }
  .composer:focus-within .cmp-ic { color: var(--forest); }
  .composer textarea, .composer input { flex: 1; border: 0; background: transparent; outline: none; padding: 3px 0; font: 400 13px var(--sans); color: var(--ink); resize: none; line-height: 1.5; }
  .composer textarea { min-height: 24px; }
  .composer textarea::placeholder, .composer input::placeholder { color: var(--ink-50); }
  .composer .cmp-btn { flex-shrink: 0; align-self: flex-end; height: 30px; padding: 0 15px; border-radius: var(--r-sm); border: 1px solid var(--hairline-strong); background: var(--paper); color: var(--forest); font: 600 12px var(--sans); cursor: pointer; opacity: 0; transform: scale(.96); transition: all .15s var(--ease); }
  .composer .cmp-btn:hover { border-color: var(--forest); }
  .composer:focus-within .cmp-btn { opacity: 1; transform: scale(1); }
  /* editable fields */
  .field { margin-bottom: 12px; }
  .field > label { display: block; font: 600 10.5px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-50); margin-bottom: 5px; }
  .sel { position: relative; }
  /* --r-md, not --r-sm: the token comment, the design guide and DESIGN.md all say inputs take
     the 10px default, and --r-sm is reserved for score bars and copy buttons. At 6px these sat
     next to 10px .es-chip selects with visibly different corners -- most obviously in
     Firmographics, where a chip and an input share every row. */
  .sel select, .field input[type=text], .field textarea { width: 100%; box-sizing: border-box; appearance: none; background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-md); padding: 9px 32px 9px 12px; font: 500 13px var(--sans); color: var(--ink); outline: none; cursor: pointer; }
  .field input[type=text], .field textarea { padding-right: 12px; cursor: text; }
  .sel select:focus, .field input:focus, .field textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px var(--forest-wash); }
  .sel .schev { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; color: var(--ink-50); pointer-events: none; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
  .field-row .field { margin-bottom: 0; }

  /* ── stage dates: the fold at the foot of Inputs (v67) ──────────────────────
     A rule and a grey word, not a second section head. What is behind it is corrected
     a few times a year, and it should not compete with the six controls above it that
     get changed every week. Inside, the rows read as a list — label left, control right,
     one line each — because five dates about one customer are a sequence, and stacking
     each label over its own field would turn a sequence into five little forms. */
  .stg { border-top: 1px solid var(--hairline); margin-top: 14px; padding-top: 10px; }
  /* Exactly the FIELD LABEL style — the one ADOPTION, CS OWNER and LIFECYCLE / STATUS wear
     three lines above it — and deliberately not the section head's, which is the display
     face at 700/11px. A fold inside a section that wore the head style would announce
     itself as a seventh section; wearing the label style makes it the last label in a
     column of labels, which is what it is. */
  .stg-tog { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 2px 0; cursor: pointer;
             font: 600 10.5px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-50); transition: color .15s var(--ease); }
  .stg-tog:hover { color: var(--forest); }
  .stg-cv { flex-shrink: 0; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); position: relative; left: 1px; transition: transform .2s var(--ease); }
  .stg.open .stg-cv { transform: rotate(45deg); top: -2px; }
  .stg-body { margin-top: 12px; }
  .stg-row + .stg-row { margin-top: 8px; }
  /* A date chip stretched across the whole panel is 300px of paper to say "1 Dec 2025".
     The five of them get a column of their own width instead, so they line up down the
     fold and the space to the right of them stays empty rather than being filled by a
     control that had nothing to put in it. The reason is a sentence and does take the width. */
  .stg-row .field { margin-bottom: 0; display: grid; grid-template-columns: 136px 152px; align-items: center; gap: 12px; }
  .stg-why .field { margin-bottom: 0; display: grid; grid-template-columns: 136px 1fr; align-items: center; gap: 12px; }
  .stg-row .field .pick { width: 100%; }
  .stg-row .field > label, .stg-why .field > label { margin-bottom: 0; text-transform: none; letter-spacing: 0; font: 500 12px var(--sans); color: var(--ink-50); }
  /* The stage the account is in right now. Without it, five dates read as five equally live
     claims about one customer. Weight and ink, and no mark of its own: ::after on one of
     these labels is already spoken for — it is the provenance tooltip every fg-field label
     carries, and a dot put there does not appear at all, it just takes "Customer masterfile ·
     churned_at" off the hover. Bold against ink-50 is the whole difference and it is enough. */
  .stg-row.is-now .field > label { color: var(--ink); font-weight: 700; }
  .stg-why { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--hairline); }
  .pick.is-ro { cursor: default; background: var(--mute); color: var(--ink-50); }

  /* ── a churn date this account is missing (v7.2) ────────────────────────────
     The one state where this fold stops being a quiet reference and becomes a
     question. It opens by itself, the toggle wears the reason, and the Churned
     row is the only one lit — because the ask is for one date, not for six. */
  .stg.needs .stg-tog { color: var(--terracotta-deep); }
  .stg-flag { margin-left: 9px; padding: 2px 8px; border-radius: var(--r-pill); background: rgba(185,73,41,.10);
              color: var(--terracotta-deep); font: 700 9.5px var(--sans); letter-spacing: .06em; }
  /* the field being asked for, and nothing else on the row */
  .stg-row.is-wanted .field > label { color: var(--terracotta-deep); font-weight: 700; }
  .stg-row.is-wanted > .field .pick { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(219,124,73,.13); }
  .stg-row.is-wanted > .field .pick .pick-val.empty { color: var(--terracotta-deep); font-weight: 600; }

  /* ── Paused → Restart expected, one line ────────────────────────────────────
     One date and its answer. The second picker has no label of its own — at this
     width there is nowhere to put one, and the arrow plus its placeholder say
     what it is. It takes the space left over rather than a matching 152px, so
     the five labels and the first five controls still line up down the fold. */
  .stg-row.stg-pair { display: grid; grid-template-columns: 136px 152px auto minmax(0,1fr); align-items: center; gap: 12px; }
  .stg-row.stg-pair > .field { display: contents; }
  .stg-arrow { color: var(--ink-30); font: 500 13px var(--sans); text-align: center; }
  .stg-row.stg-pair > .pick { width: 100%; }

  /* ── the reason gets two lines ─────────────────────────────────────────────
     A churn reason is a sentence about a customer leaving, and one line of it is
     a sentence you cannot read. Same control otherwise: ⏎ commits, Escape puts
     back, the dirty mark and the confirm popover are unchanged. */
  .stg-why .field { align-items: start; }
  .stg-why .field > label { margin-top: 8px; }
  /* a textarea in a .field now takes the same paper, hairline, radius, type and focus ring
     as an input in a .field -- it was falling through to browser chrome, which is a
     monospace face and a square grey box sitting in a row of rounded ones. */
  textarea.fg-in.fg-multi { resize: vertical; min-height: 56px; line-height: 1.5; font-size: 12.5px; }

  /* ── "Not set" starts where a date starts ──────────────────────────────────
     `.empty` near the top of this stylesheet is an empty-STATE PANEL — 48px of
     padding and centred text — and `.pick-val.empty` was quietly inheriting the
     lot. The padding is swallowed by the chip's fixed height so nothing looked
     broken, but the centring pushed "Not set" 20px right of where a real date
     begins, and a column of date fields did not line up down its own left edge.
     Reset here rather than renaming the state class, which the note composer and
     both task pickers use as well. */
  .pick .pick-val.empty { padding: 0; text-align: left; }
  /* Same vertical rhythm as the touchpoint rows next to it (.tp-item, 13/14) -- a task row
     carries two lines now, title plus byline, exactly as a note does, and at 7px it read as a
     denser list of a different kind of thing sitting beside a calmer one. */
  .task-line { display: flex; align-items: center; gap: 10px; padding: 13px 0 14px; font-size: 12.5px; color: var(--ink); border-top: 1px solid var(--hairline); }
  .task-line input { accent-color: var(--forest); width: 15px; height: 15px; flex-shrink: 0; }
  .task-line .tk-text { flex: 1; }
  .task-line .tk-when { flex-shrink: 0; font-size: 11px; color: var(--ink-50); font-variant-numeric: tabular-nums; }
  .task-line.done .tk-text { text-decoration: line-through; color: var(--ink-50); }
  /* Strike the task, not the account it sits on. text-decoration propagates to every
     descendant and a child cannot switch it off — text-decoration:none on the inner span
     does nothing. An atomic inline box is the one thing the line does not cross, so the
     two sub-lines are inline-block. Set unconditionally, not only when done, so ticking a
     box cannot shift the layout. They still dim, which is enough to read as completed. */
  .task-line .tk-det, .task-line .tk-meta { display: inline-block; width: 100%; }
  .nt-sub { font: 600 10.5px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-50); margin: 22px 0 9px; }
  .composer.task-cmp { margin-top: 8px; padding-top: 5px; padding-bottom: 5px; align-items: center; }
  .composer.task-cmp .cmp-ic { margin-top: 0; }
  .composer.task-cmp .cmp-btn { align-self: center; height: 28px; }
  /* overflow handling for long note / task lists */
  .more-notes { display: none; }
  .more-notes.open { display: block; }
  /* legacy drawer note/task expander — kept in sync with the canonical .lw-more pill */
  .show-all { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 16px; border: 0; background: transparent; border-radius: var(--r-pill); font: 600 12px var(--sans); color: var(--ink-50); cursor: pointer; padding: 6px 14px; transition: color .15s var(--ease), background .15s var(--ease); }
  .show-all:hover { color: var(--forest); background: var(--forest-wash); }
  .show-all svg { width: 13px; height: 13px; transition: transform .18s var(--ease); }
  .show-all.open svg { transform: rotate(180deg); }
  .done-group { display: none; }
  .done-group.open { display: block; }
  .wb-foot { font-size: 11px; color: var(--ink-50); margin-top: 10px; line-height: 1.5; }

  /* ══════════════════════════════════════════════════════════════════════
     notes · tasks · onboarding
     One composer, one timeline, one note object. What was here before: a Save
     button at opacity 0 until focus, a note list that did not exist (notes were
     written in one section and shown in another, mixed with 4,000 ingested
     emails), a second composer in Inputs for adoption notes, and no way to edit
     or delete anything ever written.
     ══════════════════════════════════════════════════════════════════════ */

  /* ── composer ── the button is rendered at rest. That is the whole point of it. */
  .cmp2 { border: 1px solid var(--hairline-strong); border-radius: var(--r-md); background: var(--paper); overflow: hidden; transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
  .cmp2:hover { border-color: var(--ink-30); }
  /* open: overflow has to be visible or the category menu is clipped by the box it
     hangs off, so the foot re-rounds its own bottom corners to keep the shape */
  .cmp2.open { border-color: var(--forest); box-shadow: 0 0 0 3px var(--forest-wash); overflow: visible; }
  .cmp2.open:hover { border-color: var(--forest); }
  /* Sticky because the box above it can now be most of the window tall: Save and Cancel
     have to stay reachable without scrolling to the end of what you are writing. Bounded by
     .cmp2, so on a composer that already fits it does nothing at all. The notes section
     carries .unclip (overflow: visible), which is what lets this engage inside the drawer. */
  .cmp2.open .cmp2-foot { border-radius: 0 0 var(--r-md) var(--r-md); position: sticky; bottom: 0; z-index: 4; }
  .cmp2-bar { display: flex; align-items: center; gap: 11px; padding: 8px 8px 8px 12px; cursor: text; }
  .cmp2-ic { width: 16px; height: 16px; flex-shrink: 0; color: var(--ink-50); }
  .cmp2.open .cmp2-ic { color: var(--forest); }
  .cmp2-ph { flex: 1; font: 400 13px var(--sans); color: var(--ink-50); }
  /* the title IS the first line — no "New note" eyebrow above it, because a box that
     just opened under a "Log a note" button does not need to announce itself */
  .cmp2-bar .cmp2-title { flex: 1; }
  .cmp2-edit { font: 600 10.5px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-30); flex-shrink: 0; }
  .cmp2-body { padding: 2px 12px 10px; }
  .cmp2-title { border: 0; outline: none; background: transparent; font: 700 14px var(--sans); color: var(--ink); padding: 3px 0; width: 100%; }
  .cmp2-title::placeholder { color: var(--ink-30); font-weight: 500; }
  /* `resize: vertical` stays — the drag grip is a real control and somebody who wants a
     particular height should get to set one. What changed in v8.91 is that it is no longer
     the ONLY way to make the box bigger: taGrow() writes an inline height from the content
     on every keystroke, and a height arrived at by dragging overrides it from then on.
     overflow-y is written by the same function — hidden while the box fits its text, auto
     once it has hit the cap — because a scrollbar inside a box that is not scrolling is
     the thing that made a three-line window look like a bug. It stays `auto` in the
     stylesheet so that a box taGrow has not reached yet degrades to exactly what shipped
     before this change rather than to clipped text with no way to scroll it. */
  .cmp2-text { display: block; width: 100%; border: 0; outline: none; background: transparent; resize: vertical; font: 400 13px var(--sans); line-height: 1.6; color: var(--ink); min-height: 58px; padding: 0; overflow-y: auto; }
  .cmp2-text::placeholder { color: var(--ink-30); }
  /* asymmetric on purpose. What sits on the left is a chip — its own border plus its own
     padding already hold the glyph off the edge, so an outer 10px reads as an indent against
     the icon column of the bar above it. The right side ends in a filled button, which has
     no such inset and needs the full 10. */
  .cmp2-foot { display: flex; align-items: center; gap: 8px; padding: 9px 10px 9px 6px; border-top: 1px solid var(--hairline); background: var(--mute); flex-wrap: wrap; }
  /* The school picker's footer is two buttons and nothing else, left-aligned. It carried a
     grey hint that counted the matches, which is a number the list itself is showing, and in
     a 560px panel it took enough width to wrap the two buttons onto separate lines — so a
     line of text nobody needed was what made a pair of buttons read as two unrelated ones. */
  .cmp2-foot.cmp2-foot-1 { flex-wrap: nowrap; justify-content: flex-start; padding-left: 10px; }
  .cmp2-sp { flex: 1; }
  .cmp2-hint { font-size: 11px; color: var(--ink-30); margin-right: 2px; }
  /* school picker — the list under the attach composer, and the row controls beside a
     school in the drawer. Built from the tokens the rest of the drawer uses: no new colour,
     no new radius, and forest stays on the actions only. */
  .sp-list { position: relative; margin-top: 8px; border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; max-height: 240px; overflow-y: auto; background: var(--paper); }
  .sp-row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-bottom: 1px solid var(--hairline); cursor: pointer; transition: background var(--dur-fast) var(--ease); }
  .sp-row:last-child { border-bottom: 0; }
  .sp-row:hover { background: var(--mute); }
  .sp-main { flex: 1; min-width: 0; }
  .sp-name { font: 600 13px var(--sans); color: var(--ink); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sp-sub { font: 400 11.5px var(--sans); color: var(--ink-50); display: block; margin-top: 1px; }
  /* "already under another account" is the one thing in this list that can go wrong quietly,
     so it is the one thing that gets a colour — amber, the same warning amber as elsewhere. */
  .sp-row.taken .sp-sub { color: var(--amber-deep); }
  .sp-tag { flex-shrink: 0; font: 600 10px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--forest); background: var(--forest-wash); border-radius: 999px; padding: 3px 8px; }
  .sp-empty { padding: 12px; font: 400 12.5px var(--sans); color: var(--ink-50); }
  .sp-confirm { padding: 11px; background: var(--mute); border-top: 1px solid var(--hairline); font: 400 12.5px var(--sans); color: var(--ink-70); line-height: 1.55; }
  .sp-confirm .sp-cbtns { display: flex; gap: 8px; margin-top: 9px; }
  .sp-fields { display: flex; gap: 8px; margin-top: 8px; }
  .sp-fields input { flex: 1; min-width: 0; height: 32px; border: 1px solid var(--hairline-strong); border-radius: var(--r-sm); background: var(--paper); padding: 0 9px; font: 400 12.5px var(--sans); color: var(--ink); outline: none; }
  .sp-fields input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px var(--forest-wash); }
  /* the per-school controls live in the row and stay out of the way until it is hovered —
     a table of schools is read far more often than it is edited */
  /* One ⋯ after the school name, and the actions live in its menu. They were two labelled
     buttons floating at the right edge of the row, which put them on top of the recency bar
     and the activity figure — the two things the row is read for — every time the pointer
     crossed it. A rename or a detach happens a few times a year; those numbers are read every
     time the panel is opened, and the rare thing does not get to sit on the common one. */
  .sch-cell { display: flex; align-items: center; min-width: 0; }
  .sch-nm { min-width: 0; }
  /* Zero-width in the flow, drawn in the gutter beside the name. A 20px button plus a gap on
     every row widened the School column by the same amount, and it took it from Recency mix —
     so a control that is invisible until you hover was permanently shrinking the bar the
     column exists to show. It only appears on hover, which is exactly when overlapping a few
     pixels of empty gutter costs nothing. */
  .sch-menu { flex-shrink: 0; width: 0; overflow: visible; }
  .sch-menu .sch-dots { margin-left: 4px; }
  .sch-dots { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px;
    padding: 0; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink-30);
    cursor: pointer; opacity: 0; transition: opacity var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
  .sch-dots svg { width: 15px; height: 15px; }
  tr:hover .sch-dots, .sch-menu.open .sch-dots, .sch-dots:focus-visible { opacity: 1; }
  .sch-dots:hover, .sch-menu.open .sch-dots { color: var(--forest); background: var(--forest-wash); }
  .sch-menu .fdrop-menu { left: auto; right: 0; min-width: 196px; }
  /* The compact secondary: paper fill, forest text, hairline-strong border, hover moves the
     border to forest — the system's secondary at 28px instead of 40px, keeping the radius, as
     the design guide requires of a compact variant. A row action with a label is this rather
     than bare text: a word with no edge is not a button, and these sit beside each other. */
  .btn-s { height: 28px; padding: 0 12px; border-radius: var(--r-md); border: 1px solid var(--hairline-strong);
    background: var(--paper); color: var(--forest); font: 600 12px var(--sans); cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
  .btn-s:hover { border-color: var(--forest); background: var(--forest-wash); }
  .btn-s[disabled] { opacity: .45; cursor: default; }
  /* the drawer's overflow menu: right-aligned under its own button, and it must sit above
     the drawer header that pins on scroll. No position or shadow of its own — it is the
     .fdrop-menu the filter bar uses, so it inherits the fit measurement with it. */
  .dnav-menu { position: relative; display: inline-flex; }
  .dnav-menu .fdrop-menu { left: auto; right: 0; min-width: 208px; }
  .dnav-menu .dnav-btn svg { width: 18px; height: 18px; }
  /* a section-header action: invisible until the section is hovered, and it never takes the
     click that collapses the section */
  .d-head .sec-act { margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; padding: 0; border: 0; border-radius: var(--r-sm); background: transparent;
    color: var(--ink-30); cursor: pointer; opacity: 0; transition: opacity var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
  .d-head .sec-act svg { width: 14px; height: 14px; }
  .d-section:hover .d-head .sec-act, .d-head .sec-act:focus-visible { opacity: 1; }
  .d-head .sec-act:hover { color: var(--forest); background: var(--forest-wash); }
  /* An editable key fact: nothing at rest, a pencil on hover. A block of eight facts cannot
     announce that one of them is editable eight times, and the one that is says so when the
     pointer is on it — the same rule the editable table cells follow. */
  .kv-row.kv-edit { cursor: pointer; border-radius: var(--r-sm); }
  .kv-row.kv-edit:hover { background: var(--mute); }
  .kv-row.kv-edit .kv-v { display: flex; align-items: center; gap: 6px; }
  .kv-pen { width: 12px; height: 12px; color: var(--ink-30); opacity: 0; flex-shrink: 0; transition: opacity var(--dur-fast) var(--ease); }
  .kv-pen svg { width: 12px; height: 12px; }
  .kv-row.kv-edit:hover .kv-pen { opacity: 1; }
  .sch-rename { position: relative; }
  .sch-rename input { width: 100%; height: 30px; border: 1px solid var(--forest); border-radius: var(--r-sm); background: var(--paper); padding: 0 8px; font: 600 13px var(--sans); color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--forest-wash); }
  /* Matching — the scope with no table. Grouped cards rather than rows, because each group
     is a different kind of wrong and the sentence saying which is the useful part. */
  .mx-panel { padding: 2px 0 8px; }
  .mx-group { margin-bottom: 26px; }
  .mx-h { display: flex; align-items: baseline; gap: 9px; }
  .mx-t { font: 700 13px var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
  .mx-n { font: 600 11.5px var(--sans); color: var(--ink-50); background: var(--mute); border-radius: 999px; padding: 1px 8px; }
  .mx-why { font: 400 12.5px var(--sans); color: var(--ink-50); line-height: 1.6; margin: 5px 0 11px; max-width: 760px; }
  .mx-list { border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; background: var(--paper); }
  .mx-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--hairline); cursor: pointer; transition: background var(--dur-fast) var(--ease); }
  .mx-row:last-child { border-bottom: 0; }
  .mx-row:hover { background: var(--mute); }
  .mx-row.dup { cursor: default; }
  .mx-main, .mx-dup-1 { flex: 1; min-width: 0; }
  .mx-nm { display: block; font: 600 13px var(--sans); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mx-sub { display: block; font: 400 11.5px var(--sans); color: var(--ink-50); margin-top: 2px; }
  .mx-vs { flex-shrink: 0; font: 600 10.5px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-30); }
  .mx-go { flex-shrink: 0; width: 15px; height: 15px; color: var(--ink-30); }
  .mx-acts { flex-shrink: 0; display: inline-flex; gap: 4px; }
  .mx-foot { font: 400 12.5px var(--sans); color: var(--ink-50); line-height: 1.6; max-width: 760px; }
  .mx-link { border: 0; background: transparent; padding: 0; font: 600 12.5px var(--sans); color: var(--forest); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
  .mx-clear { padding: 30px 0; }
  .mx-side { flex: 1; min-width: 0; text-align: left; border: 0; background: transparent; padding: 4px 6px; margin: -4px -6px; border-radius: var(--r-sm); cursor: pointer; font: inherit; }
  .mx-side:hover { background: var(--forest-wash); }
  .mx-side:hover .mx-nm { color: var(--forest); }
  .mx-merge { flex-basis: 100%; margin-top: 10px; padding: 11px 12px; border: 1px solid var(--hairline-strong); border-radius: var(--r-md); background: var(--mute); }
  .mx-merge-q { font: 500 12.5px var(--sans); color: var(--ink-70); line-height: 1.55; margin-bottom: 10px; }
  .mx-merge-b { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; }
  .mx-mb { height: auto; text-align: left; padding: 8px 11px; line-height: 1.4; }
  .mx-mb b { color: var(--ink); }
  .mx-mb-s { display: block; font: 400 11px var(--sans); color: var(--ink-50); margin-top: 2px; }
  .mx-row.dup { flex-wrap: wrap; }
  /* the strip above the table: a heading, the questions, then the standing counts. The
     counts are deliberately quieter than the questions — one is a number that is true until
     somebody fixes it, the other is a thing waiting on an answer this week. */
  .hx-strip { margin-bottom: 14px; }
  .hx-head { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-50); margin-bottom: 8px; }
  .hx-gaps { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 9px 12px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--mute); }
  .hx-lbl { font: 600 12px var(--sans); color: var(--ink-70); }
  .hx-sep { color: var(--ink-30); }
  /* the questions the weekly sync could not answer for itself */
  .rv-card { border: 1px solid var(--hairline-strong); border-radius: var(--r-md); background: var(--paper); padding: 13px 14px; margin-bottom: 10px; }
  .rv-q { font: 600 13.5px var(--sans); color: var(--ink); line-height: 1.5; }
  .rv-ev { font: 400 12px var(--sans); color: var(--ink-50); margin-top: 5px; line-height: 1.55; }
  .rv-btns { display: flex; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
  .btn-f { height: 32px; padding: 0 15px; border-radius: var(--r-md); border: 1px solid var(--forest); background: var(--forest); color: var(--cream); font: 600 12.5px var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; transition: background var(--dur-fast) var(--ease); }
  .btn-f svg { width: 13px; height: 13px; }
  .btn-f:hover { background: var(--forest-deep); border-color: var(--forest-deep); }
  .btn-f[disabled] { opacity: .45; cursor: default; }
  .btn-g { height: 32px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--hairline-strong); background: var(--paper); color: var(--ink-70); font: 600 12.5px var(--sans); cursor: pointer; }
  .btn-g:hover { border-color: var(--ink-30); }
  .pick { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 9px; border: 1px solid var(--hairline-strong); border-radius: var(--r-md); background: var(--paper); font: 600 12px var(--sans); color: var(--ink); cursor: pointer; }
  .pick:hover { border-color: var(--forest); }
  .pick .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  /* the generic `.pick svg` below hard-sets ink-30, which would flatten a category's own
     colour the moment the dot became a glyph -- this puts the inheritance back */
  .pick .ci { display: flex; flex-shrink: 0; color: inherit; }
  .pick .ci svg { width: 14px; height: 14px; color: inherit; }
  .pick svg { width: 13px; height: 13px; color: var(--ink-30); flex-shrink: 0; }
  .pick .cv { width: 11px; height: 11px; }
  .pick .pick-val { font: 600 12px var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .pick .pick-val.empty { color: var(--ink-30); font-weight: 500; }

  /* ── date picker ──
     <input type="date"> renders a picker that is browser chrome: a blue-and-white OS panel
     with its own type, its own Clear/Today links and its own idea of a highlight colour.
     None of it is reachable from CSS — there is no pseudo-element for the calendar popup —
     so the only way to have a date field that looks like the rest of this app is to draw
     one. This is that: same paper, same hairlines, same forest, Monday-first. */
  .dp { position: absolute; top: calc(100% + 6px); left: 0; z-index: 45; width: 238px; padding: 10px; background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-md); box-shadow: var(--shadow-pop); cursor: default; }
  .dp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
  .dp-mon { font: 700 12.5px var(--sans); color: var(--ink); }
  .dp-nav { display: flex; gap: 2px; }
  .dp-nav button { width: 24px; height: 24px; border: 0; background: transparent; border-radius: var(--r-sm); color: var(--ink-50); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
  .dp-nav button:hover { background: var(--mute); color: var(--forest); }
  .dp-nav svg { width: 13px; height: 13px; }
  .dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
  .dp-dow { font: 700 9.5px var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-30); text-align: center; padding-bottom: 5px; }
  .dp-d { height: 28px; border: 0; background: transparent; border-radius: var(--r-sm); font: 500 12px var(--sans); color: var(--ink); cursor: pointer; padding: 0; font-variant-numeric: tabular-nums; }
  .dp-d:hover { background: var(--mute); }
  .dp-d.out { color: var(--ink-30); }
  .dp-d.today { box-shadow: inset 0 0 0 1px var(--hairline-strong); font-weight: 700; }
  .dp-d.sel { background: var(--forest); color: var(--cream); font-weight: 700; }
  .dp-d.sel:hover { background: var(--forest-deep); }
  .dp-foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--hairline); }
  .dp-foot button { border: 0; background: transparent; font: 600 11.5px var(--sans); color: var(--forest); cursor: pointer; padding: 4px 8px; border-radius: var(--r-sm); }
  .dp-foot button:hover { background: var(--forest-wash); }
  .cat-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-md); box-shadow: var(--shadow-pop); min-width: 262px; padding: 6px; max-height: 340px; overflow: auto; }
  .cat-menu .grp { font: 700 9.5px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-30); padding: 8px 10px 4px; }
  .cat-opt { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: center; padding: 7px 10px; border-radius: var(--r-sm); cursor: pointer; }
  .cat-opt:hover { background: var(--mute); }
  .cat-opt.is-current { background: var(--forest-wash); }
  /* Was a column of coloured dots. A dot only distinguishes categories from each other,
     and only for somebody who already knows the code -- eight of them read as a palette.
     The glyph is the one each category is drawn with in the list itself, so the menu and
     the timeline teach each other. `.ci` carries the colour; the svg inherits it. */
  .cat-opt .ci { display: block; color: inherit; }
  .cat-opt .ci svg { width: 15px; height: 15px; display: block; }
  .cat-opt .ol { font: 600 12.5px var(--sans); color: var(--ink); }

  /* ── note category pill ── */
  .nt-cat { display: inline-flex; align-items: center; height: 17px; padding: 0 7px; border-radius: var(--r-pill); font: 700 9.5px var(--sans); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
  .nt-cat.c-general  { background: var(--mute); color: var(--ink-50); border: 1px solid var(--hairline); }
  .nt-cat.c-adoption { background: rgba(252,180,43,0.18); color: var(--amber-deep); }
  .nt-cat.c-meetingnote { background: rgba(95,116,136,0.13); color: var(--slate); }
  .nt-cat.c-pinned   { background: rgba(107,79,122,0.13); color: var(--plum); }
  /* the same plum at a lower claim: an outline where the current one is filled. Filled vs
     outline is the app's own way of saying "this one" vs "one of these" (the header chips
     do it), so the row reads as related to the card above it without competing with it. */
  .nt-cat.c-waspinned{ background: transparent; color: var(--plum); border: 1px solid rgba(107,79,122,0.38); }
  .nt-cat.c-onb      { background: var(--forest-wash); color: var(--forest); }

  /* ── row actions ── revealed on hover, and only ever on rows written in the app.
     An ingested HubSpot email gets none of these; it is not ours to rewrite. */
  .row-act { display: flex; gap: 1px; opacity: 0; transition: opacity var(--dur-fast) var(--ease); }
  .tp-item:hover .row-act, .task-line:hover .row-act, .pin-card:hover .row-act,
  .row-act:focus-within { opacity: 1; }
  /* revealed on a touch screen by the `touch` block at the foot of this stylesheet, which
     is where every hover-only control in the app is answered in one place */
  .act-btn { width: 26px; height: 26px; border: 0; background: transparent; border-radius: var(--r-sm); color: var(--ink-30); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
  .act-btn svg { width: 14px; height: 14px; }
  .act-btn:hover { background: var(--mute); color: var(--forest); }
  .act-btn.del:hover { background: rgba(219,124,73,0.12); color: var(--terracotta-deep); }
  /* One control column, one width, on every row — with or without actions, with or
     without a chevron. Otherwise each row sizes its own third column and the icons walk
     left and right down the list. */
  .tp-act { display: flex; align-items: center; justify-content: flex-end; gap: 2px; min-width: 78px; margin-top: -1px; }
  .tp-item .tp-chev, .tp-act .chev-slot { margin-top: 0; width: 14px; height: 14px; flex-shrink: 0; }
  /* the disclosure is a real button so it can be tabbed to; it looks exactly like the svg
     it replaced, and sizes to the same 14px slot the chev-slot placeholder holds open */
  .tp-chev-btn { border: 0; background: transparent; padding: 0; margin: 0; cursor: pointer; display: flex; align-items: center; flex-shrink: 0; color: inherit; border-radius: 3px; }
  .tp-chev-btn:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
  .tp-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; row-gap: 4px; }
  .tp-item.tp-ingested .tp-date { color: var(--ink-30); }
  /* No cursor of its own. It sat on `cursor: help` -- a question-mark pointer promising a
     tooltip the browser then took most of a second to show, so the promise arrived before
     the answer did. The word is inside a clickable row, so it takes the row's cursor now,
     and the dotted underline carries the affordance on its own. The tooltip is the app's
     own [data-tip], which opens on the hover rather than after the OS delay. */
  .tp-edited { font-size: 10.5px; color: var(--ink-30); border-bottom: 1px dotted var(--ink-18); }
  .tp-edited:hover { color: var(--ink-50); border-bottom-color: var(--ink-30); }
  /* The list breathes: the pill and the date need room above the line they label.
     Both homes of this list are named here on purpose. The Workspace was setting its own
     padding and inheriting the base 2px under the byline, so the same row read tighter there
     than in the drawer — the two have to be one rule or they drift again the next time
     either is touched. */
  .d-body .tp-list .tp-item, .ws-list .tp-item { padding: 13px 0 14px; column-gap: 12px; }
  .d-body .tp-list .tp-subj, .ws-list .tp-subj { margin-top: 6px; line-height: 1.45; }
  .d-body .tp-list .tp-item .tp-body, .ws-list .tp-item .tp-body { margin-top: 8px; }

  /* ── timeline filters ── */
  /* 6px down, 20px across: the chips inside a family sit at the gap they always did, and the
     two families are held apart by a gap three times that. A gap survives the wrap -- which
     is the whole reason the divider it replaces had to go. */
  .tl-filters { display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap; margin: 16px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--hairline); }
  .tl-grp { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  /* --chip is the colour of the rows this chip filters to, set per chip by tlFilterHtml.
     At rest only the glyph carries it -- the label stays ink, or eight coloured words would
     read as eight states. It reaches the border and the label on hover, and fills the chip
     when it is the one in force. Scoped to this row: .qf-pill is shared with the Book of
     Business and the Workspace, and those strips filter on things with no colour of their own. */
  .tl-filters .qf-pill.has-ico svg { color: var(--chip, currentColor); }
  /* the family cue the plum stroke used to carry, moved off colour entirely: a source is
     where a row came in from, a category is how somebody filed it, and the second group sits
     a shade back from the page so the two read apart before either is coloured.
     It states its background BEFORE the active rule below, not after: the two selectors weigh
     the same, so the later one wins -- and with this second it kept its resting fill while
     active, which is a cream label on a near-white chip. An invisible one. */
  .tl-filters .qf-pill.is-cat { background: var(--mute); }
  .tl-filters .qf-pill:hover { border-color: var(--chip, var(--forest-soft)); color: var(--chip, var(--forest)); }
  .tl-filters .qf-pill.active { background: var(--chip, var(--forest)); border-color: var(--chip, var(--forest)); color: var(--cream); }
  .tl-filters .qf-pill.active svg { color: inherit; }
  .tl-filters + .tp-list { margin-top: 2px; }
  .tk-add { margin-top: 16px; }
  .tl-filters .qf-pill { height: 28px; padding: 0 11px; font-size: 11.5px; }

  /* ── pinned callout ── sits above every section, on every lifecycle. A pinned
     note is the standing fact about an account; burying it in a timeline is how
     it stops being one. */
  .pin-card { margin: 14px 24px 0; border: 1px solid rgba(107,79,122,0.26); background: rgba(107,79,122,0.05); border-radius: var(--r-md); padding: 12px 14px 13px; display: grid; grid-template-columns: 16px 1fr auto; column-gap: 12px; align-items: start; }
  .pin-card + .pin-card { margin-top: 8px; }
  .pin-card.clickable { cursor: pointer; }
  .pin-card .pi { color: var(--plum); margin-top: 2px; }
  .pin-card .pi svg { width: 15px; height: 15px; display: block; }
  /* the meta line goes ABOVE the words, like every timeline row — the words are the
     content and should not be introduced by their own footnote */
  .pin-card .pm { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-50); }
  .pin-card .pm .plab { font: 700 9.5px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--plum); background: rgba(107,79,122,0.13); border-radius: var(--r-pill); height: 17px; display: inline-flex; align-items: center; padding: 0 7px; }
  .pin-card .pt { font: 600 13px var(--sans); color: var(--ink); line-height: 1.45; margin-top: 6px; overflow-wrap: anywhere; }
  .pin-card .pin-body { display: none; margin-top: 8px; font-size: 12.5px; line-height: 1.6; color: var(--ink-70); white-space: pre-wrap; overflow-wrap: anywhere; }
  .pin-card.open .pin-body { display: block; }
  .pin-card .tp-chev { width: 14px; height: 14px; color: var(--ink-30); opacity: 0; transition: opacity var(--dur-fast) var(--ease), transform var(--dur) var(--ease); }
  .pin-card.clickable:hover .tp-chev { opacity: 1; }
  .pin-card.open .tp-chev { opacity: 1; transform: rotate(180deg); }
  /* same card, amber. Sits inside a d-body rather than in the drawer's own margin, so it
     resets the horizontal offset the pinned one carries. */
  .pin-card.adopt { margin: 15px 0 0; border-color: rgba(148,97,0,0.24); background: rgba(252,180,43,0.09); }
  .pin-card.adopt .pi { color: var(--amber-deep); }
  .pin-card.adopt .pm .plab { color: var(--amber-deep); background: rgba(252,180,43,0.20); }

  /* ── open task callout ── the same card again, in the task colour, for a task nobody has
     ticked yet. A task is the one thing on an account that is asking to be done, and it only
     existed in the Tasks section — five sections down, which on a phone is a long way past
     where anyone stops scrolling. What people did instead was pin a note saying the same
     thing as the task, so the account carried the reminder twice and neither copy knew about
     the other. This is that reminder, where it was already being put by hand. */
  .pin-card.task { align-items: center; border-color: var(--forest-line); background: var(--forest-wash); }
  .pin-card.task .pi { margin-top: 0; }
  .pin-card.task .tkc-box { accent-color: var(--forest); width: 15px; height: 15px; display: block; margin: 0; cursor: pointer; }
  .pin-card.task .pm .plab { color: var(--forest); background: rgba(1,80,59,0.11); }
  .pin-card.task .tkc-who { color: var(--ink-50); font-weight: 500; }
  .pin-card.task .pt { margin-top: 5px; }
  /* the chevron points at the Tasks section, which is where the card goes — not down into
     a body it does not have. Faint but always drawn, unlike the pinned card's: that one
     says "there is more text under this", which the words themselves already hint at, and
     this one says "this card leads somewhere", which nothing else on it says. */
  .pin-card.task .tp-chev { opacity: .45; transform: rotate(-90deg); }
  .pin-card.task:hover .tp-chev { opacity: 1; }
  /* late is a state worth seeing from the top of the account, not a colour on one word */
  .pin-card.task.over { border-color: rgba(185,73,41,0.26); background: rgba(219,124,73,0.07); }
  .pin-card.task.over .pm .plab { color: var(--terracotta-deep); background: rgba(219,124,73,0.15); }
  /* The rest of them, when there are more open than the two the top of an account can carry.
     The same .lw-more pill every "Show all N entries" expander in the app uses — it is the
     one shape here for "there is more of this list than you are being shown" — without the
     band and the rule above it, which belong to the foot of a list this pill is not the foot
     of. It carries its fill at rest rather than on hover: this one is aimed at a phone, and
     a phone never hovers. The chevron points right because this pill travels rather than
     opens — it scrolls to the Tasks section, and nothing appears here when it is pressed. */
  .pin-more-row { display: flex; justify-content: center; margin: 10px 24px 0; }
  .pin-more-row .lw-more { padding: 4px; color: var(--forest); }
  .pin-more-row .lw-more-in { padding: 6px 14px; border-radius: var(--r-pill); background: var(--forest-wash); }
  .pin-more-row .lw-more:hover .lw-more-in { background: rgba(1,80,59,0.14); }
  .pin-more-row .lw-chev { transform: rotate(-90deg); }

  /* ── onboarding checklist ──
     The tick is an ICON, not a control: no filled disc, no ring, nothing that
     invites a click. The milestone is ticked by logging its note, never here. */
  .obc-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 11px; }
  .obc-meta { display: flex; align-items: baseline; gap: 7px; }
  .obc-n { font: 800 16px var(--display); color: var(--ink); letter-spacing: -.02em; }
  .obc-of { font: 500 12px var(--sans); color: var(--ink-50); }
  .obc-day { font: 600 11px var(--sans); color: var(--ink-70); background: var(--mute); border: 1px solid var(--hairline); border-radius: var(--r-pill); padding: 3px 10px; white-space: nowrap; }
  .obc-bar { display: flex; gap: 4px; }
  .obc-seg { flex: 1; height: 6px; border-radius: 3px; background: var(--ink-18); }
  .obc-seg.done { background: var(--forest); }
  /* A step booked for a day that has not arrived: something is arranged, nothing has
     happened. Amber, which is already this app's colour for a date that is coming up
     (.tk-due.soon) -- so a milestone waiting on a date and a task waiting on a date read
     the same way. */
  .obc-seg.sched { background: var(--amber-soft); }
  .obc-list { margin-top: 10px; }
  .obc-row { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; column-gap: 11px; padding: 9px 0; border-top: 1px solid var(--hairline); }
  .obc-list .obc-row:first-child { border-top: 0; }
  .obc-tick { display: flex; align-items: center; justify-content: center; color: var(--ink-30); }
  .obc-tick svg { width: 15px; height: 15px; display: block; }
  .obc-row.done .obc-tick { color: var(--forest); }
  .obc-row.sched .obc-tick { color: var(--amber-deep); }
  .obc-row.sched .obc-when { color: var(--amber-deep); }
  .obc-lab { font: 600 12.5px var(--sans); color: var(--ink); }
  .obc-row.todo .obc-lab { font-weight: 500; color: var(--ink-70); }
  .obc-sub { font-size: 11px; color: var(--ink-50); margin-top: 2px; overflow-wrap: anywhere; }
  .obc-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
  .obc-when { font: 600 11.5px var(--sans); color: var(--ink-70); font-variant-numeric: tabular-nums; }
  .obc-who { font-size: 11px; color: var(--ink-50); }
  .obc-log { height: 25px; padding: 0 12px; border: 1px solid var(--hairline-strong); background: var(--paper); border-radius: var(--r-pill); font: 600 11px var(--sans); color: var(--forest); cursor: pointer; }
  .obc-log:hover { border-color: var(--forest); background: var(--forest-wash); }
  /* "Scheduled", beside the date it is scheduled for -- and beside the count at the top,
     where it says how many of the four are booked rather than behind us. */
  .obc-tag { font: 700 9.5px var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--amber-deep); background: rgba(252,180,43,0.18); border-radius: var(--r-pill); padding: 2px 8px; white-space: nowrap; }

  /* ── milestone progress, book level (the Onboarding panel table) ── */
  .obm { display: inline-flex; gap: 3px; vertical-align: middle; }
  .obm i { width: 12px; height: 5px; border-radius: 2px; background: var(--ink-18); display: block; }
  .obm i.on { background: var(--forest); }
  .obm i.sched { background: var(--amber-soft); }
  .obm-n { font: 700 11px var(--sans); color: var(--ink-70); margin-left: 8px; font-variant-numeric: tabular-nums; }
  /* A table with room to spare shares it out across every column, so `width: 1%` on the
     narrow one is not enough on its own — something has to volunteer to take the slack.
     The account name is the column that can always use more, so it takes all of it and
     every other column falls back to its contents. */
  table.radar td.col-tight, table.radar th.col-tight { width: 132px; min-width: 132px; max-width: 132px; white-space: nowrap; }
  .obm-next { font-size: 11.5px; color: var(--ink-70); }
  .obm-next.stuck { color: var(--terracotta-deep); font-weight: 600; }
  /* the day the next step is booked for, under its name -- the column answers "what is
     next" and, when somebody has already arranged it, "when" */
  .obm-next .nx-when { display: block; font: 500 10.5px var(--sans); color: var(--amber-deep); font-variant-numeric: tabular-nums; margin-top: 1px; }

  /* ── task rows: a due date, not the date it was typed ──
     The chip is shared with the Book of Business task cell (.tkm), which is the same row at
     table scale — one set of colours, so -4d cannot mean red in one place and grey in another. */
  .task-line .tk-due, .tkm .tk-due, .pin-card.task .tk-due { font: 700 11.5px var(--sans); font-variant-numeric: tabular-nums; flex-shrink: 0; }
  .task-line .tk-due.over, .tkm .tk-due.over, .pin-card.task .tk-due.over { color: var(--terracotta-deep); }
  .task-line .tk-due.soon, .tkm .tk-due.soon, .pin-card.task .tk-due.soon { color: var(--amber-deep); }
  .task-line .tk-due.ok,   .tkm .tk-due.ok,   .pin-card.task .tk-due.ok   { color: var(--sage-deep); }
  .task-line .tk-due.none, .tkm .tk-due.none, .pin-card.task .tk-due.none { color: var(--ink-30); font-weight: 500; }
  /* where an imported task came from — a second line under the title, quieter than it */
  .task-line .tk-det { display: inline-block; width: 100%; font-size: 11px; color: var(--ink-50); margin-top: 2px; }
  .task-line.done .tk-det { color: var(--ink-30); }
  /* when it was added, who by, and the due date spelled out — the same grey byline a note
     carries. The chip on the right is relative (+4d), which answers "how urgent" and not
     "which day"; both questions get asked, so both get answered. */
  /* inline-block, per the note on .tk-det above — a block here would take the strikethrough
     from a finished task and read as if the date it was added had been retracted */
  .task-line .tk-meta { font-size: 11px; color: var(--ink-50); margin-top: 5px; line-height: 1.45; }
  .task-line.done .tk-meta { color: var(--ink-30); }
  /* A rule task has to be tellable from a typed one at a glance, in a list of fifty. Plain
     grey small-caps in the byline was legible only once you were reading that row. A quiet
     pill in the accent the rest of the app uses for system-generated things reads at the
     speed you scan a column, without competing with the title above it. */
  .task-line .tk-auto { color: var(--forest); background: var(--forest-08, rgba(45,90,61,.08));
    border-radius: 4px; padding: 1px 5px; font-variant: all-small-caps; letter-spacing: .05em;
    font-weight: 600; }
  .task-line.done .tk-auto { color: var(--ink-40); background: var(--ink-06, rgba(55,63,65,.06)); }
  .ws-autoc { color: var(--forest); font-weight: 600; cursor: help; }
  /* Worked examples on the Read Me page. Deliberately shaped like the task row they are
     quoting — title, grey detail line, byline — so the page shows the thing rather than
     describing it. */
  .tr-eg { margin-top: 12px; border-top: 1px solid var(--hairline); }
  .tr-eg-row { padding: 11px 0 12px; border-bottom: 1px solid var(--hairline); }
  .tr-eg-t { font-size: 13px; font-weight: 600; color: var(--ink); }
  .tr-eg-d { font-size: 12px; color: var(--ink-70); line-height: 1.55; margin-top: 3px; }
  .tr-eg-m { font-size: 11px; color: var(--ink-40); margin-top: 5px;
             font-variant: all-small-caps; letter-spacing: .04em; }
  /* Payment watch: "Since May 26" and "2 unpaid" are each read as one word. Left to wrap in
     a narrow queue column they split across two lines and take the row from 39px to 55px. */
  .queue td .od-since, .queue td .od-run { white-space: nowrap; }
  /* Two lines per row now, so the checkbox, the chip and the buttons align to the title
     rather than floating to the middle of the block. Both homes of the task row are named
     here for the same reason the touchpoint row names both of its own — the Workspace was
     setting its own column gap, and one pixel of drift is how a shared component stops
     being shared. */
  #dsec-tasks .task-line, .ws-tasklist .task-line { align-items: flex-start; }
  #dsec-tasks .task-line input, .ws-tasklist .task-line input { margin-top: 1px; }
  /* a finished task is not late. Its due date keeps the number and drops the alarm. */
  .task-line.done .tk-due { color: var(--ink-30) !important; font-weight: 500; }
  .task-line .tk-text { min-width: 0; }
  /* the task composer is the note composer's shape: the title gets the full width and
     the date and the button drop to their own row, so a long task has room to be long.
     These only apply once it is open — the textarea is what needs the room and the top
     alignment. Collapsed, it is the same one-line bar as the note composer, to the pixel;
     scoping this to .open was the fix for a taller resting box sitting above a shorter one. */
  .cmp2.cmp-task.open .cmp2-bar { padding: 14px 12px 14px; align-items: flex-start; }
  .cmp2.cmp-task.open .cmp2-ic { margin-top: 2px; }
  .cmp2.cmp-task.open .cmp2-title { font: 400 13px var(--sans); padding: 0; line-height: 1.5; }
  .task-line .row-act { min-width: 54px; justify-content: flex-end; }
  /* the first task sits straight under the section head — the rule above it was drawing a
     second line a few pixels below the one the head already has */
  .d-body > .task-line:first-child { border-top: 0; }
  /* mini table inside drawer */
  .mini-table { width: 100%; border-collapse: collapse; font-size: 12px; }
  .mini-table th { text-align: left; font: 600 10px var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-50); padding: 6px 8px; border-bottom: 1px solid var(--hairline); }
  .mini-table th.r, .mini-table td.r { text-align: right; }
  .mini-table td { padding: 8px; border-bottom: 1px solid var(--hairline); font-variant-numeric: tabular-nums; }
  .mini-table tr:last-child td { border-bottom: 0; }
  .mini-table tbody tr { cursor: pointer; }
  .mini-table tbody tr:hover { background: var(--mute); }
  .opp-table td { vertical-align: middle; }
  .opp-table td:first-child { color: var(--ink); line-height: 1.4; padding-right: 12px; }
  .opp-table .opp-status { color: var(--ink-50); }
  .opp-table td.r { font-weight: 700; color: var(--ink); white-space: nowrap; }
  .opp-table .amt-empty { color: var(--ink-30); font-weight: 500; }
  .tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
  .tag-list .t { background: var(--mute); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 4px 9px; font-size: 11.5px; color: var(--ink-70); }
  .use-stat { background: var(--mute); border-radius: var(--r-sm); padding: 12px 14px; }
  .use-stat .us-l { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-50); font-weight: 600; }
  .use-stat .us-v { font: 800 22px var(--display); color: var(--ink); margin-top: 8px; font-variant-numeric: tabular-nums; }
  .use-stat .us-d { font-size: 11.5px; font-weight: 600; margin-top: 7px; }

  /* shared interactive chart tooltip.
     width: max-content is load-bearing. A fixed box with only `left` set shrink-to-fits into
     whatever is left of the viewport, so a wrapping tip raised near the right edge collapsed
     to a narrow column of fragments — and it collapsed before placeTip could measure it, so
     the clamp then centred the wrong width. Sizing to content first makes the measurement
     honest and the clamp correct. It changes nothing for the nowrap variants. */
  .viz-tip { position: fixed; pointer-events: none; width: max-content; background: var(--dark); color: var(--cream); padding: 8px 11px; border-radius: var(--r-sm); font-size: 11.5px; line-height: 1.4; box-shadow: var(--shadow-pop); opacity: 0; transform: translate(-50%, -120%); transition: opacity .12s var(--ease), left .12s var(--ease), top .12s var(--ease); z-index: 80; white-space: nowrap; }
  .viz-tip.on { opacity: 1; }
  .viz-tip.below { transform: translate(-50%, 0); }   /* flips below the cursor near the top edge */
  .viz-tip .vt-k { color: rgba(252,246,237,0.6); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
  .viz-tip .vt-v { font: 700 14px var(--display); margin-top: 1px; }
  /* chip variant: a readable wrapping sentence, not a chart label/value pair */
  .viz-tip.chip { white-space: normal; max-width: 264px; }
  .viz-tip.chip .vt-k { color: var(--cream); font: 500 11.5px/1.45 var(--sans); text-transform: none; letter-spacing: 0; }
  .viz-tip.chip .vt-v { display: none; }
  .viz .pt { cursor: pointer; transition: r .12s var(--ease); }
  /* `.bar`, not `rect.bar`: a stacked segment whose far end is rounded has to be a path, so
     the class is the mark and the element is an implementation detail. The xhair and snap
     rules further down stay on rect.bar — those charts draw rects only. */
  .viz .bar { cursor: pointer; transition: filter .12s var(--ease); }
  .viz .bar:hover { filter: brightness(1.06); }
  .hover-dot { transition: opacity .12s var(--ease); }

  /* ═══ canonical micro-label · ONE style for every small grey title ═══ */
  .kpi .label,
  .ctx-block .ctx-h,
  .drawer-head .eyebrow,
  .bob-top .bt,
  .kv .kv-k,
  .hb-head,
  .use-stat .us-l,
  .ahx-stat .l,
  .d-section .d-head,
  table.radar thead th,
  .mini-table th,
  .tree-school-h,
  .tree-mem-h,
  .users-table th {
    font-family: var(--display);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ink-50);
    white-space: nowrap;
  }

  /* ═══════════════════════════════════════════════════════════
     MOTION SYSTEM · additions
     one easing (--ease) · two hover durations (.15s / .18s) ·
     entrance .4–.9s. ONE lift recipe, ONE shared tooltip (above),
     ONE focus+dim rule. Entrance is gated to BOTH
     (prefers-reduced-motion: no-preference) AND html.js, and the
     hidden initial state is scoped under a container the
     IntersectionObserver marks .drawn -- so the static resting
     state is always correct with no motion and no JS.
     ═══════════════════════════════════════════════════════════ */

  /* — hover-lift · the single recipe, reused on card-like surfaces — */
  .chart-card, .stat-v, .queue-card, .qs-card, .icon-cell, .ctx, .editorial {
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  }
  /* minimal, smooth hover -- a whisper of lift + a soft shadow, no jump */
  .chart-card:hover, .stat-v:hover, .queue-card:hover, .qs-card:hover,
  .icon-cell:hover, .ctx:hover, .editorial:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-pop);
  }
  /* kpi cells are welded into one overflow-hidden strip -- tint, never lift */
  .kpi { transition: background .15s var(--ease); }
  .kpi:hover { background: var(--mute); }
  /* icon glyphs nudge up in scale with their cell */
  .icon-cell svg { transition: transform var(--dur) var(--ease), color var(--dur-fast) var(--ease); }
  .icon-cell:hover svg { transform: scale(1.04); }
  /* the editable sentiment chip is the one interactive chip -- gentle border on hover */
  .sent-chip:hover { border-color: var(--hairline-strong); }

  /* — focus + context · hover a mark to lift it, dim its siblings — */
  .viz .bar { transition: filter .12s var(--ease), opacity .15s var(--ease); }
  .viz .pt { transition: r .12s var(--ease), opacity .15s var(--ease); }
  .viz.focus .bar:not(:hover) { opacity: .3; }
  /* stacked segments (stackTrendChart's rects, stacked100's paths) answer the pointer the
     same way a bar does: the one under the cursor brightens and its siblings step back, so
     the band the tooltip is naming is the band the eye lands on. */
  .viz .barx { transition: opacity .12s var(--ease); }
  .viz .barx:hover { filter: brightness(1.06); }
  .viz.focus .barx:not(:hover) { opacity: .28; }
  /* bars dim, dots do not — see the crosshair block below for why */

  /* — entrance keyframes (inert until referenced below) — */
  @keyframes viz-rise { from { transform: scaleY(0); } }
  @keyframes viz-grow { from { transform: scaleX(0); } }
  @keyframes viz-fade { from { opacity: 0; } }
  @keyframes viz-pop  { from { opacity: 0; transform: scale(.8); } }
  @keyframes viz-draw-line { from { stroke-dashoffset: 2000; } to { stroke-dashoffset: 0; } }   /* line draws in from a long offset to its visible resting offset 0 */
  @keyframes hero-up  { from { opacity: 0; transform: translateY(10px); } }

  @media (prefers-reduced-motion: no-preference) {

    /* first-paint hero settle (above the fold, so it runs on load) */
    html.js .hero .eyebrow { animation: hero-up .5s var(--ease) both; }
    html.js .hero h1       { animation: hero-up .55s var(--ease) .05s both; }
    html.js .hero p        { animation: hero-up .55s var(--ease) .12s both; }

    /* vertical bars rise from baseline when the card is .drawn -- resting state stays visible (origin only); the collapsed start lives in the keyframe so a missed reveal never hides a bar */
    html.js .chart-card .viz .bar { transform-box: fill-box; transform-origin: 50% 100%; }
    html.js .chart-card .colbar,
    html.js .chart-card .snaph .sf,
    html.js .drawer-demo .snaph .sf,
    html.js .drawer-demo .htrend-bars .htb { transform-origin: 50% 100%; }

    html.js .chart-card.drawn .viz .bar,
    html.js .chart-card.drawn .colbar,
    html.js .chart-card.drawn .snaph .sf,
    html.js .drawer-demo.drawn .snaph .sf,
    html.js .drawer-demo.drawn .htrend-bars .htb { animation: viz-rise .45s var(--ease) both; }

    /* left-to-right stagger so each chart visibly draws in */
    html.js .chart-card.drawn .viz rect.bar:nth-of-type(2){ animation-delay:.05s; }
    html.js .chart-card.drawn .viz rect.bar:nth-of-type(3){ animation-delay:.10s; }
    html.js .chart-card.drawn .viz rect.bar:nth-of-type(4){ animation-delay:.15s; }
    html.js .chart-card.drawn .viz rect.bar:nth-of-type(5){ animation-delay:.20s; }
    html.js .chart-card.drawn .viz rect.bar:nth-of-type(6){ animation-delay:.25s; }
    html.js .chart-card.drawn .colbar:nth-child(2){ animation-delay:.04s; }
    html.js .chart-card.drawn .colbar:nth-child(3){ animation-delay:.08s; }
    html.js .chart-card.drawn .colbar:nth-child(4){ animation-delay:.12s; }
    html.js .chart-card.drawn .colbar:nth-child(5){ animation-delay:.16s; }
    html.js .chart-card.drawn .colbar:nth-child(6){ animation-delay:.20s; }
    html.js .chart-card.drawn .colbar:nth-child(7){ animation-delay:.24s; }
    html.js .chart-card.drawn .colbar:nth-child(8){ animation-delay:.28s; }
    /* the dense snapshot/health-trend series get a calm two-step shimmer */
    html.js .drawer-demo.drawn .htrend-bars .htb:nth-child(even),
    html.js .drawer-demo.drawn .snaph .sf:nth-child(even) { animation-delay:.05s; }

    /* horizontal fills wipe in from the left */
    html.js .chart-card .hbar-fill,
    html.js .chart-card .tr-fill,
    html.js .chart-card .signal-row .sf,
    html.js .chart-card .pbar .fill,
    html.js .chart-card .bullet .measure,
    html.js .chart-card .stack-bar,
    html.js .drawer-demo .stack-bar,
    html.js .drawer-demo .hb-fill,
    html.js .drawer-demo .bullet-fill,
    html.js .table-wrap .score-fill { transform-origin: left center; }

    html.js .chart-card.drawn .hbar-fill,
    html.js .chart-card.drawn .tr-fill,
    html.js .chart-card.drawn .signal-row .sf,
    html.js .chart-card.drawn .pbar .fill,
    html.js .chart-card.drawn .bullet .measure,
    html.js .chart-card.drawn .stack-bar,
    html.js .drawer-demo.drawn .stack-bar,
    html.js .drawer-demo.drawn .hb-fill,
    html.js .drawer-demo.drawn .bullet-fill,
    html.js .table-wrap.drawn .score-fill { animation: viz-grow .5s var(--ease) both; }

    html.js .chart-card.drawn .hbar-row:nth-child(2) .hbar-fill,
    html.js .chart-card.drawn .tr-row:nth-child(2) .tr-fill,
    html.js .chart-card.drawn .signal-row:nth-child(2) .sf,
    html.js .drawer-demo.drawn .hb-row:nth-child(2) .hb-fill { animation-delay:.06s; }
    html.js .chart-card.drawn .hbar-row:nth-child(3) .hbar-fill,
    html.js .chart-card.drawn .tr-row:nth-child(3) .tr-fill,
    html.js .chart-card.drawn .signal-row:nth-child(3) .sf,
    html.js .drawer-demo.drawn .hb-row:nth-child(3) .hb-fill { animation-delay:.12s; }
    html.js .chart-card.drawn .tr-row:nth-child(4) .tr-fill { animation-delay:.18s; }
    html.js .chart-card.drawn .tr-row:nth-child(5) .tr-fill { animation-delay:.24s; }
    html.js .chart-card.drawn .signal-row:nth-child(4) .sf { animation-delay:.18s; }

    /* heat grid fades in as a left-to-right column wipe (12-col grid) */

    /* line draws its stroke, area fades under it, points pop on top */
    html.js .chart-card .line-draw { stroke-dasharray: 2000; }
    html.js .chart-card.drawn .line-draw { animation: viz-draw-line .9s var(--ease) both; }
    html.js .chart-card.drawn .area-fill { animation: viz-fade .6s var(--ease) .3s both; }
    html.js .chart-card .viz .pt { transform-box: fill-box; transform-origin: 50% 50%; }
    html.js .chart-card.drawn .viz .pt { animation: viz-pop .4s var(--ease) .35s both; }
    html.js .chart-card.drawn .viz .pt:nth-of-type(2){ animation-delay:.40s; }
    html.js .chart-card.drawn .viz .pt:nth-of-type(3){ animation-delay:.45s; }
    html.js .chart-card.drawn .viz .pt:nth-of-type(4){ animation-delay:.50s; }
    html.js .chart-card.drawn .viz .pt:nth-of-type(5){ animation-delay:.55s; }
    html.js .chart-card.drawn .viz .pt:nth-of-type(6){ animation-delay:.60s; }

    /* donut pops, gauge + drawer ring sweep their arc in */
    html.js .chart-card.drawn .donut-in { transform-box: fill-box; transform-origin: 50% 50%; animation: viz-pop .55s var(--ease) both; }
    html.js .chart-card.drawn .gauge-arc { animation: viz-fade .8s var(--ease) both; }
    html.js .drawer-demo.drawn .ring-arc { animation: viz-fade .8s var(--ease) both; }
  }

  /* ═══════════════════════════════════════════════════════════
     MOTION SYSTEM · upgrades · count-up, crosshair tooltip,
     interactive legends, stronger hover. Same --ease, same shared
     .viz-tip, same focus/dim language -- just turned up a notch.
     Count-up + entrance stay gated on reduced-motion; the rest is
     user-driven (allowed under reduce, minus hover transforms).
     ═══════════════════════════════════════════════════════════ */

  /* — Tableau crosshair + snap · cursor-tracking guide on line/area, vertical-bar, scatter — */
  .viz.xhair .xhair-capture { fill: transparent; pointer-events: all; cursor: crosshair; }
  .viz.xhair rect.bar, .viz.xhair .pt, .viz.xhair text { pointer-events: none; }  /* the capture rect owns the pointer; the SVG snaps to the nearest mark */
  .xhair-line { stroke: var(--ink-50); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; pointer-events: none; transition: opacity .12s var(--ease); }
  .viz.snapping .xhair-line { opacity: .5; }
  .viz.snapping rect.bar:not(.snap) { opacity: .3; }
  /* Dots never fade. Bars still do — a bar chart is a wall of solid shapes and dimming the
     rest of it is what lets one read as picked out. A line's points are already small,
     spaced and outlined, and washing them to a third turns a dozen crisp dots into grey
     smudges in order to emphasise one that is already growing and thickening. Emphasis by
     addition, not by subtraction. Applies to every line and area chart, the design guide
     included — the guide had carried its own opacity:1 exception since it was written,
     which was the tell that the default was wrong rather than that the guide was special. */
  .viz.snapping .pt:not(.snap) { opacity: 1; }
  .viz rect.bar.snap { filter: brightness(1.12) saturate(1.05); }
  .viz .pt.snap { stroke-width: 3; }
  /* a month whose accounts can be opened says so under the pointer */
  .viz.mom.drillable .xhair-capture { cursor: pointer; }
  .viz-tip .vt-d { color: rgba(252,246,237,0.55); font-size: 10.5px; margin-top: 3px; font-variant-numeric: tabular-nums; }

  /* — interactive legends · hover previews, click locks; the colour IS the category — */
  .lg.lg-int { cursor: pointer; border-radius: var(--r-sm); padding: 2px 7px; margin: -2px -1px; transition: background .15s var(--ease), color .15s var(--ease); }
  .lg.lg-int:hover { background: var(--mute); color: var(--ink); }
  .lg.lg-int.lg-lock { background: var(--forest-wash); color: var(--forest); }
  .donut-in circle { transition: opacity .18s var(--ease); }
  .lg-dim { opacity: .2 !important; }   /* dimmed siblings while a category is hovered/locked */

  /* — stronger hover · spotlights on dense marks — */
  .colbar { transition: filter .15s var(--ease), opacity .15s var(--ease); }
  .colbars:hover .colbar:not(:hover) { opacity: .5; }
  .colbar:hover { filter: brightness(1.08); }
  .htrend-bars .htb { transition: filter .15s var(--ease), opacity .15s var(--ease); }
  .htrend-bars:hover .htb:not(:hover):not(.empty) { opacity: .5; }
  .htrend-bars .htb:hover { filter: brightness(1.1); }
  .snaph:hover .sb:not(:hover) .sf { opacity: .55; }

  /* — row spotlights · table / mini / opp / tree — */
  table.radar tbody tr:hover td { color: var(--ink); }
  .mini-table tbody:hover tr:not(:hover) { opacity: .5; transition: opacity .15s var(--ease); }
  .tree-mem:hover .tree-mem-row:not(:hover) { opacity: .5; }
  .subcell:hover .tree-school-row:not(:hover) { opacity: .55; }
  .tree-school-row, .tree-mem-row { transition: background .12s var(--ease), opacity .15s var(--ease); }

  /* — animated chevrons + expanders — */
  .d-section:not(.collapsed) .d-head:hover::after { transform: rotate(-135deg) scale(1.18); }
  .d-section.collapsed .d-head:hover::after { transform: rotate(45deg) scale(1.18); }
  th.sortable:hover { color: var(--ink); }
  th.sortable:hover .sort-ind i { opacity: .55; }
  tr:hover .xchev, .tree-school-row:hover .xchev { color: var(--forest-soft); }

  /* — press / active states on buttons + chips — */
  .scope-chip, .fdrop, .show-all, .crumbs .crumb, .filter-trigger, .bulk-bar .bb, .sent-chip {
    transition: transform .12s var(--ease), border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
  }
  .scope-chip:active, .fdrop:active, .show-all:active, .crumbs .crumb:active,
  .filter-trigger:active, .bulk-bar .bb:active, .sent-chip:active { transform: translateY(1px); }
  .dnav-btn:active { transform: scale(.92); }

  /* killswitch · neutralise hover/press TRANSFORMS for reduced-motion users (shadow + colour stay) */
  @media (prefers-reduced-motion: reduce) {
    .chart-card:hover, .stat-v:hover, .queue-card:hover, .qs-card:hover,
    .icon-cell:hover, .ctx:hover, .editorial:hover { transform: none; }
    .icon-cell:hover svg { transform: none; }
    .d-section:not(.collapsed) .d-head:hover::after { transform: rotate(-135deg); }
    .d-section.collapsed .d-head:hover::after { transform: rotate(45deg); }
    .show-all:not(.open):hover svg { transform: none; }
    .show-all.open:hover svg { transform: rotate(180deg); }
    .scope-chip:active, .fdrop:active, .show-all:active, .crumbs .crumb:active,
    .filter-trigger:active, .bulk-bar .bb:active, .sent-chip:active, .es-chip:active, .dnav-btn:active { transform: none; }
  }

  @media (max-width: 1024px) {
    .shell { grid-template-columns: 1fr; gap: 24px; padding: 28px 20px 80px; }
    aside.toc { display: none; }
  }

/* ═══ v5 dashboard-shell overrides (app chrome on top of the design system) ═══ */
  /* app bar */
  .appbar { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--hairline); box-shadow: var(--shadow-card); }
  .appbar-in { max-width: 1480px; margin: 0 auto; padding: 0 36px; }
  .appbar > .appbar-in:first-child { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 14px; }
  /* the wordmark is the "home" affordance every web app has — clicking it returns to Overview */
  .brand { display: flex; align-items: center; gap: 12px; cursor: pointer; border-radius: var(--r-md); padding: 4px 8px; margin-left: -8px; transition: background .15s var(--ease); }
  .brand:hover { background: var(--mute); }
  .brand:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
  .brand-tt .product { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); line-height: 1.1; }
  .brand-tt .brand-sub { font-size: 11.5px; color: var(--ink-50); margin-top: 1px; }
  .tabbar { padding-bottom: 0; border-bottom: 0; justify-content: center; flex-wrap: wrap; }
  /* real HEI Schools wordmark */
  .hei-logo-img { height: 34px; width: auto; display: block; border-radius: 8px; border: 1px solid var(--hairline); flex-shrink: 0; }
  @media (max-width: 720px) { .appbar-in { padding: 0 16px; } .tabi { padding: 10px 10px; font-size: 12.5px; } }

  /* keyboard focus ring -- kill the UA blue box on click, keep it for keyboard nav */
  .tabi:focus, .tabi.docs:focus, .sync-btn:focus, .menu-item:focus, .gsearch input:focus { outline: none; }
  .tabi:focus-visible, .tabi.docs:focus-visible, .sync-btn:focus-visible { outline: none; border-radius: 6px 6px 0 0; box-shadow: 0 0 0 3px var(--forest-wash); }
  /* a11y: a consistent forest focus ring on the custom (non-native-button) interactive surfaces */
  .wl-row:focus-visible, table.radar thead th.sortable:focus-visible, .cmdk-row:focus-visible,
  .scope-chip:focus-visible, .qf-pill:focus-visible, .cq-tog:focus-visible, .fdrop:focus-visible, .howto-btn:focus-visible,
  .lw-more:focus-visible, .reset:focus-visible, .menu-item:focus-visible,
  .wk-more:focus-visible, .wk-chgbtn:focus-visible { outline: 2px solid var(--forest); outline-offset: -2px; }
  .wk-arrow:focus { outline: none; }
  .wk-arrow:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--forest-wash); }
  .menu-item:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--forest-wash); }

  /* global search -- jump-to-entity navigator */
  .gsearch { flex: 1; display: flex; justify-content: center; }
  .gsearch-in { position: relative; width: 100%; max-width: 420px; }
  .gsearch .gs-mag { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--ink-50); pointer-events: none; }
  .gsearch input { width: 100%; background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-pill); padding: 9px 14px 9px 37px; font: 500 13px var(--sans); color: var(--ink); outline: none; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
  .gsearch input::placeholder { color: var(--ink-30); }
  .gsearch input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px var(--forest-wash); }
  .gsearch .gs-kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 10.5px var(--mono); color: var(--ink-50); background: var(--mute); border: 1px solid var(--hairline-strong); border-radius: 5px; padding: 2px 6px; cursor: pointer; transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
  .gsearch .gs-kbd:hover { color: var(--forest); border-color: var(--forest-soft); }
  .gsearch-in:focus-within .gs-kbd { display: none; }
  .gsearch-results { position: absolute; top: calc(100% + 8px); left: 0; width: 100%; background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-md); box-shadow: var(--shadow-pop); z-index: 60; display: none; overflow: hidden; max-height: 60vh; overflow-y: auto; }
  .gsearch-results.on { display: block; }
  .gs-row { display: flex; align-items: center; gap: 10px; padding: 9px 13px; cursor: pointer; border-bottom: 1px solid var(--hairline); }
  .gs-row:last-child { border-bottom: 0; }
  .gs-row.active, .gs-row:hover { background: var(--forest-wash); }
  .gs-ic { display: inline-flex; color: var(--ink-50); flex: none; }
  .gs-ic svg { width: 15px; height: 15px; }
  .gs-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
  .gs-nm { font: 600 13px var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gs-sub { font-size: 11px; color: var(--ink-50); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
  .gs-ty { font: 600 9.5px var(--sans); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-30); flex: none; }
  .gs-empty { padding: 12px 14px; font-size: 12.5px; color: var(--ink-50); }
  @media (max-width: 880px) { .gsearch { display: none; } }

  /* anchor the sync dropdown to the right edge so it can't get clipped by the viewport */
  .sync-panel { left: auto; right: 0; }
  /* sync status reads as freshness, not a button -- drop the pill, keep a quiet ghost-hover + chevron affordance */
  .sync-btn { background: transparent; border: 0; border-radius: var(--r-sm); padding: 6px 9px; gap: 8px; color: var(--ink-50); }
  .sync-btn:hover { background: var(--forest-wash); border-color: transparent; color: var(--forest); }
  .sync-btn .dot { margin-right: 6px; }
  .sync-btn .chev { color: var(--ink-30); }
  .sync-btn:hover .chev { color: var(--forest); }

  /* ── design guide page (embedded showcase under Docs) ── */
  #panel-designguide section[id] { scroll-margin-top: 116px; }
  #panel-designguide .block:first-of-type { padding-top: 8px; }
  .dg-toc { position: sticky; top: 116px; z-index: 30; border: 1px solid var(--hairline-strong); border-radius: var(--r-md); background: var(--paper); margin: 6px 0 36px; overflow: hidden; box-shadow: var(--shadow-card); }
  .dg-toc-sum { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; font: 700 13.5px var(--display); color: var(--ink); list-style: none; user-select: none; }
  .dg-toc-sum::-webkit-details-marker { display: none; }
  .dg-toc-ic { width: 16px; height: 16px; color: var(--forest); flex-shrink: 0; }
  .dg-toc-count { margin-left: auto; font: 500 11.5px var(--sans); color: var(--ink-50); }
  .dg-toc-chev { width: 15px; height: 15px; color: var(--ink-50); transition: transform .2s var(--ease); flex-shrink: 0; }
  .dg-toc[open] .dg-toc-chev { transform: rotate(180deg); }
  .dg-toc[open] .dg-toc-sum { border-bottom: 1px solid var(--hairline); }
  .dg-toc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px; padding: 10px; }
  .dg-toc-link { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: var(--r-sm); font: 500 12.5px var(--sans); color: var(--ink-70); text-decoration: none; transition: background .15s var(--ease), color .15s var(--ease); }
  .dg-toc-link:hover { background: var(--forest-wash); color: var(--forest); }
  .dg-toc-n { font: 700 10.5px var(--sans); color: var(--ink-30); min-width: 18px; text-align: right; }
  .dg-toc-link:hover .dg-toc-n { color: var(--forest); }

  /* ── design-guide: proposed-viz preview mockups (NOT wired into the live UI — visual review only) ── */
  .pv-flag { display:inline-flex; align-items:center; gap:6px; padding:4px 11px; border-radius:var(--r-pill); background:rgba(252,180,43,.16); color:#946100; font:700 10.5px var(--sans); letter-spacing:.04em; text-transform:uppercase; }
  .pv-cap { font:600 11px var(--display); text-transform:uppercase; letter-spacing:.06em; color:var(--ink-50); margin:2px 0 10px; }
  .pv-stk { display:flex; align-items:flex-end; gap:8px; height:90px; }
  .pv-xrow { display:flex; gap:8px; margin-top:7px; }
  .pv-xrow span { flex:0 0 auto; width:36px; text-align:center; font:600 9px var(--sans); color:var(--ink-40); }
  .pv-subrow { display:grid; grid-template-columns:132px 1fr 44px; align-items:center; gap:12px; padding:10px 0; border-top:1px solid var(--hairline); }
  .pv-subrow:first-of-type { border-top:0; }
  .pv-sublab { display:flex; align-items:center; gap:8px; font:600 12.5px var(--sans); color:var(--ink); }
  .pv-sublab small { font:500 10px var(--sans); color:var(--ink-50); }
  .pv-swatch { width:9px; height:9px; border-radius:2px; flex:none; }
  .pv-subval { text-align:right; font:700 14px var(--display); color:var(--ink); font-variant-numeric:tabular-nums; }
  .pv-subval.mute { color:var(--ink-30); font-weight:600; font-size:12px; }
  .pv-spark { display:block; width:100%; height:26px; }
  .pv-wf-row { display:grid; grid-template-columns:104px 1fr 46px; align-items:center; gap:10px; padding:7px 0; }
  .pv-wf-lab { display:flex; align-items:center; gap:7px; font:600 12px var(--sans); color:var(--ink-70); }
  .pv-wf-track { position:relative; height:16px; background:var(--mute); border-radius:4px; }
  .pv-wf-track::before { content:""; position:absolute; left:50%; top:-3px; bottom:-3px; width:1px; background:var(--hairline-strong); }
  .pv-wf-bar { position:absolute; top:2px; height:12px; border-radius:3px; }
  .pv-wf-val { text-align:right; font:700 12px var(--display); font-variant-numeric:tabular-nums; }
  .pv-wf-val.down { color:var(--terracotta-deep); } .pv-wf-val.flat { color:var(--ink-40); }
  .pv-wf-ends { display:flex; justify-content:space-between; align-items:baseline; margin-top:10px; padding-top:10px; border-top:1px solid var(--hairline); font:600 11px var(--sans); color:var(--ink-50); }
  .pv-wf-ends b { font:800 16px var(--display); color:var(--ink); font-variant-numeric:tabular-nums; }
  .pv-tbl { width:100%; border-collapse:collapse; }
  .pv-tbl th { text-align:left; font:700 10px var(--sans); text-transform:uppercase; letter-spacing:.06em; color:var(--ink-50); padding:0 10px 9px; border-bottom:1px solid var(--hairline); }
  .pv-tbl th.r, .pv-tbl td.r { text-align:right; }
  .pv-tbl td { padding:12px 10px; border-bottom:1px solid var(--hairline); font:600 12.5px var(--sans); color:var(--ink); }
  .pv-tbl tr:last-child td { border-bottom:0; }
  .pv-sc { display:inline-flex; align-items:center; gap:9px; }
  .pv-sc-num { font:700 13px var(--display); font-variant-numeric:tabular-nums; min-width:20px; }
  .pv-sc-bar { width:48px; height:4px; background:var(--mute); border-radius:2px; overflow:hidden; }
  .pv-sc-fill { height:100%; border-radius:2px; }
  .pv-traj { font-weight:800; }
  .pv-traj.up { color:var(--sage-deep); } .pv-traj.down { color:var(--terracotta-deep); } .pv-traj.flat { color:var(--ink-30); }
  .pv-mv-row { display:grid; grid-template-columns:20px 1fr auto; align-items:center; gap:13px; padding:11px 2px; border-top:1px solid var(--hairline); }
  .pv-mv-row:first-of-type { border-top:0; }
  .pv-mv-rank { font:800 12px var(--display); color:var(--ink-30); text-align:right; }
  .pv-mv-nm { font:700 13px var(--sans); color:var(--ink); }
  .pv-mv-why { font:500 11.5px var(--sans); color:var(--ink-50); margin-top:2px; }
  .pv-mv-d { display:inline-flex; align-items:center; padding:3px 10px; border-radius:var(--r-pill); font:700 12px var(--display); font-variant-numeric:tabular-nums; }
  .pv-mv-d.down { color:var(--terracotta-deep); background:rgba(185,73,41,.12); }
  .pv-mv-d.up { color:var(--sage-deep); background:var(--sage-soft); }
  .pv-roll-row { display:grid; grid-template-columns:118px 1fr 96px; align-items:center; gap:12px; padding:9px 0; border-top:1px solid var(--hairline); }
  .pv-roll-row:first-of-type { border-top:0; }
  .pv-roll-lab { display:flex; align-items:center; gap:7px; font:600 12.5px var(--sans); color:var(--ink); }
  .pv-roll-track { height:8px; background:var(--mute); border-radius:4px; overflow:hidden; }
  .pv-roll-fill { height:100%; border-radius:4px; }
  .pv-roll-n { text-align:right; font:600 11.5px var(--sans); color:var(--ink-70); font-variant-numeric:tabular-nums; }
  .pv-tl { position:relative; height:76px; margin:4px 0 2px; }
  .pv-tl-axis { position:absolute; left:2%; right:2%; top:38px; height:1px; background:var(--hairline-strong); }
  .pv-tl-tick { position:absolute; top:46px; transform:translateX(-50%); font:600 10px var(--sans); color:var(--ink-40); }
  .pv-tl-dot { position:absolute; top:38px; width:15px; height:15px; border-radius:50%; transform:translate(-50%,-50%); border:2px solid var(--paper); box-shadow:0 1px 3px rgba(55,63,65,.16); }
  .pv-tl-lab { position:absolute; transform:translateX(-50%); font:600 9.5px var(--sans); color:var(--ink-50); white-space:nowrap; }
  /* engagement-timeline concepts (preview shelf, not shipped) */
  .pv-et-row { display:grid; grid-template-columns:158px 1fr; align-items:center; gap:16px; padding:13px 0; border-top:1px solid var(--hairline); }
  .pv-et-row:first-of-type { border-top:0; }
  .pv-et-nm { font:600 12.5px var(--sans); color:var(--ink); }
  .pv-et-nm small { display:block; font:500 10.5px var(--sans); color:var(--ink-50); margin-top:3px; line-height:1.45; }
  .pv-et-strip { display:block; width:100%; height:auto; }

  /* ── notifications page (flow-node docs under Docs) ── */
  #panel-notifications section[id] { scroll-margin-top: 116px; }
  #panel-notifications .block { margin-bottom: 40px; }
  #panel-notifications .block:first-of-type { padding-top: 8px; }
  /* meta pill row (system · schedule · channel) */
  .flow-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
  .flow-tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; background: var(--mute); border: 1px solid var(--hairline); border-radius: var(--r-pill); font: 500 11.5px var(--sans); color: var(--ink-70); }
  .flow-tag b { font-weight: 700; color: var(--ink); }
  .flow-tag .fdot { width: 7px; height: 7px; border-radius: 50%; background: var(--forest); flex-shrink: 0; }
  .flow-tag.sch .fdot { background: var(--amber); }
  .flow-tag.ch  .fdot { background: var(--slate); }
  /* the flow chart itself */
  .flow-wrap { overflow-x: auto; padding: 6px 2px 2px; margin-top: 16px; }
  .flow { display: flex; flex-direction: column; align-items: center; gap: 0; min-width: 260px; }
  .flow-node { width: 100%; max-width: 470px; background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-md); box-shadow: var(--shadow-card); padding: 12px 16px; text-align: left; }
  .flow-kind { font: 700 9.5px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-50); margin-bottom: 4px; }
  .flow-body { font: 500 13px/1.45 var(--sans); color: var(--ink); }
  .flow-body b { font-weight: 700; }
  .flow-sub { font: 400 11.5px/1.5 var(--sans); color: var(--ink-70); margin-top: 5px; }
  /* type tints — label + wash only, never a side-stripe */
  .flow-node.trigger  { background: var(--forest-wash); border-color: var(--forest-line); }
  .flow-node.trigger  .flow-kind { color: var(--forest-soft); }
  .flow-node.decision { background: rgba(252,180,43,0.10); border-color: rgba(252,180,43,0.42); }
  .flow-node.decision .flow-kind { color: var(--amber-deep); }
  .flow-node.output   { background: rgba(95,116,136,0.09); border-color: rgba(95,116,136,0.32); }
  .flow-node.output   .flow-kind { color: var(--slate); }
  .flow-node.skip     { background: var(--mute); border: 1px dashed var(--hairline-strong); box-shadow: none; }
  .flow-node.skip     .flow-kind { color: var(--warm-grey); }
  .flow-node.skip     .flow-body { color: var(--ink-70); }
  /* embedded "no → skip" branch inside a decision node */
  .flow-skip { display: flex; align-items: flex-start; gap: 9px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hairline); font: 500 11.5px/1.45 var(--sans); color: var(--ink-70); }
  .flow-skip + .flow-skip { margin-top: 8px; padding-top: 8px; }
  .flow-x { flex-shrink: 0; font: 700 9px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--warm-grey); background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-pill); padding: 3px 8px; white-space: nowrap; }
  /* vertical connector, optional condition label */
  .flow-arrow { position: relative; width: 2px; height: 28px; background: var(--hairline-strong); margin: 5px 0; flex-shrink: 0; }
  .flow-arrow::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translate(-50%,1px) rotate(45deg); width: 7px; height: 7px; border-right: 2px solid var(--hairline-strong); border-bottom: 2px solid var(--hairline-strong); }
  .flow-arrow .lbl { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font: 700 9px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--sage-deep); white-space: nowrap; }
  /* parallel output fan-out */
  .flow-fan { display: grid; grid-template-columns: repeat(auto-fit, minmax(184px, 1fr)); gap: 11px; width: 100%; max-width: 640px; }
  .flow-fan .flow-node { max-width: none; }
  @media (max-width: 560px){ .flow-fan { grid-template-columns: 1fr; } }
  /* Every row used to open with the same sage dot, which said only "a source" — six times
     over. The mark says which one, so the list is readable without being read. Monochrome
     on purpose: a logo is recognised by its silhouette, and four brand palettes inside a
     390px dropdown would be the only saturated colour anywhere in the app chrome. */
  .src-line { display: grid; grid-template-columns: 17px 1fr auto; gap: 11px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--hairline); font-size: 12.5px; }
  .src-line .src-ic { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; color: var(--ink-50); }
  .src-line .src-ic svg { width: 100%; height: 100%; display: block; }
  .src-line .src-name { white-space: nowrap; color: var(--ink); font-weight: 500; }
  /* how the feed arrives. "Synced 3 Aug" reads as a fault until you know that source is a
     spreadsheet somebody exports by hand once a week. */
  .src-line .src-cad { display: block; margin-top: 2px; font-size: 10.5px; color: var(--ink-30); white-space: nowrap; }
  /* what the last run actually brought in. Without min-width:0 this cell cannot shrink
     below its content, so a busy night's counts push the panel wide enough to clip the
     timestamp off its own right edge — the counts wrap to a second line instead. */
  .src-line .src-body { min-width: 0; }
  .src-line .src-num { display: block; margin-top: 3px; font-size: 10.5px; line-height: 1.5; color: var(--ink-30); }
  .src-line .src-num .src-pill { white-space: nowrap; }
  .src-line .src-num .src-sep { margin: 0 5px; color: var(--ink-30); }
  .src-line .src-num .src-win { color: var(--ink-30); }
  .src-line .src-num b { font-weight: 700; color: var(--ink-70); font-variant-numeric: tabular-nums; }
  .src-line .st { color: var(--ink-50); font-size: 11.5px; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; align-self: start; padding-top: 1px; }
  /* listed but not wired to anything yet — pending, which is not the same as broken */
  .src-line.is-pending .src-ic, .src-line.is-pending .st { color: var(--ink-30); }
  /* the last automatic run ended in an error: the time is still true, but it is the time
     something failed, and a row that looks identical to a good one hides that */
  .src-line.is-bad .src-ic { color: var(--terracotta); }
  .src-line.is-bad .src-cad { color: var(--terracotta-deep); }
  /* linked sources -> their spreadsheet / gdoc / dashboard */
  .src-line .src-a { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); text-decoration: none; transition: color .15s var(--ease); }
  .src-line .src-a:hover { color: var(--forest); }
  .src-line .src-a:hover .src-name { color: var(--forest); }
  .src-line .src-ext { width: 12px; height: 12px; color: var(--ink-30); transition: color .15s var(--ease); }
  .src-line .src-a:hover .src-ext { color: var(--forest); }

  /* main + panels */
  .app-main { max-width: 1480px; margin: 0 auto; padding: 28px 36px 96px; }
  @media (max-width: 720px) { .app-main { padding: 20px 16px 72px; } }
  .panel[hidden] { display: none; }
  .panel-head { margin-bottom: 22px; }
  .panel-head h1 { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
  .panel-head .ph-sub { font-size: 13.5px; color: var(--ink-70); margin-top: 6px; max-width: 760px; line-height: 1.5; }
  .sec-h { font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--ink); letter-spacing: -0.01em; margin: 34px 0 14px; }
  .sec-h:first-child { margin-top: 0; }

  /* grid helpers used by the dashboard */
  .grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
  @media (max-width: 1100px) { .grid-6 { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 620px) { .grid-6 { grid-template-columns: 1fr 1fr; } }
  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  @media (max-width: 900px){ .grid-4 { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  /* the change log (migration 107). The two summary cards are .chart-card in a .grid-2, so
     they already share the page's card chrome, type ramp and equal columns; only the pieces
     that do not exist elsewhere are styled here. */
  /* --ink-70, not --ink-50: these notes are not a subtitle, they are the definition a reader
     needs before trusting the number, and --ink-50 is 2.7:1 on paper. */
  /* the Design Guide's loading / failed states — it is fetched on open from v8.98 */
  .dg-state { margin: 20px 24px; padding: 20px 22px; background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-md); font-size: 13px; line-height: 1.6; color: var(--ink-70); max-width: 70ch; }
  .dg-state code { font-size: 12px; color: var(--ink-50); }
  .dg-state button { margin-top: 12px; }
  .chg-ps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
  .chg-p { font: 600 11.5px var(--sans); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--hairline-strong); background: var(--paper); color: var(--ink-70); cursor: pointer; transition: color .15s var(--ease), border-color .15s var(--ease); }
  .chg-p:hover { color: var(--forest); border-color: var(--forest); }
  .chg-p.on, .chg-p.on:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
  /* listed, not hidden: a period with nothing to measure against carries the database's own
     reason on hover, and becomes selectable by itself once the history reaches it */
  .chg-p.off { opacity: .45; border-style: dashed; cursor: help; }
  .chg-p:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
  /* the score move inside a drill-down row */
  .chg-d { margin-left: 6px; font: 700 10.5px var(--sans); }
  .chg-d.up { color: var(--sage-deep); }
  .chg-d.down { color: var(--terracotta-deep); }
  .chg-note { margin-top: 12px; font-size: 11.5px; line-height: 1.55; color: var(--ink-70); }
  .chg-empty { padding: 28px 4px; font-size: 12.5px; line-height: 1.6; color: var(--ink-50); }
  .chg-link { stroke: var(--ink-30); stroke-width: 1; stroke-dasharray: 3 3; }
  /* the log reuses .d-section — the same foldable block as the account drawer, so it reads and
     keys the same way — with the drawer's own margins and body padding taken back off. */
  /* the direction filter. Same chip as the period row so the two read as one control
     vocabulary — but it lives in the card head, beside the title, so the head's rule falls
     between the controls and the rows they filter rather than between the title and its own
     control. row-gap carries it under the title on a narrow card. */
  .chg-wrap .qhead { align-items: center; flex-wrap: wrap; row-gap: 12px; }
  .chg-wrap .chg-fs { margin: 0; padding: 0; }
  .chg-fs .chg-p { display: inline-flex; align-items: center; gap: 7px; }
  .chg-fs .chg-p .sw { width: 8px; height: 8px; border-radius: 50%; flex: none; }
  /* the selected chip swaps the dot to the pale step of the same hue — see CHG_DIRS. The
     deep steps are what the badges wear on paper and they go nearly black on forest. */
  .chg-wrap .chg-groups { padding: 0 0 6px; }
  .chg-wrap .d-section { margin: 0; border: 0; border-top: 1px solid var(--hairline); border-radius: 0; }
  .chg-wrap .d-section:first-child { border-top: 0; }
  .chg-wrap .d-section .d-head { background: transparent; border-bottom: 0; text-transform: none; font: 700 12px var(--display); letter-spacing: 0; padding: 11px 20px; }
  .chg-wrap .d-section .d-body { padding: 0 0 6px; }
  .chg-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
  .chg-t td { padding: 8px 10px; border-top: 1px solid var(--hairline); vertical-align: middle; color: var(--ink); }
  .chg-t td:first-child { padding-left: 20px; }
  .chg-t td:last-child { padding-right: 20px; }
  .chg-t .d { color: var(--ink-50); white-space: nowrap; font-variant-numeric: tabular-nums; width: 64px; }
  .chg-t .s { font-weight: 600; }
  /* a declined row is tinted as well as badged — the direction has to survive a reader
     scrolling past the two badges, and colour is never the only thing carrying it. */
  .chg-t tr.down { background: var(--terracotta-wash); }
  /* a row opens its account, same as the Renewals and Payment watch cards above. Hover deepens
     the row's own ground rather than replacing it, so a declined row does not go neutral under
     the cursor and lose the only thing telling you which way it went. */
  .chg-t tbody tr[onclick] { cursor: pointer; }
  .chg-t tbody tr:hover { background: var(--mute); }
  .chg-t tbody tr.down:hover { background: rgba(219,124,73,0.13); }
  .chg-t .g { white-space: nowrap; width: 1%; }
  .chg-t .w { color: var(--ink-70); white-space: nowrap; }
  .chg-t .m { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-70); white-space: nowrap; width: 72px; }
  /* the held column: a fixed-width pip track plus the count it draws. Fixed, because the
     series gains a reading a week and a pip-per-week column would be 360px inside a year. */
  .chg-t .h { text-align: right; color: var(--ink-70); white-space: nowrap; width: 196px; font-size: 11px; }
  .chg-hc { display: inline-flex; align-items: center; gap: 9px; }
  .chg-trk { position: relative; display: inline-block; height: 13px; flex: none; }
  .chg-trk .pip { position: absolute; top: 0; height: 13px; border-radius: 1.5px; background: rgba(55,63,65,.13); }
  .chg-trk .pip.up { background: var(--sage-deep); }
  .chg-trk .pip.dn { background: var(--terracotta-deep); }
  .chg-held { width: 72px; flex: none; text-align: left; font-variant-numeric: tabular-nums; }
  /* one scale for the card. Every month fold is its own <table>, but .h is the same fixed
     width in all of them, so a single right-aligned strip sits over every pip column. */
  .chg-scale { display: flex; justify-content: flex-end; align-items: flex-end; gap: 9px; padding: 0 20px 4px; }
  .chg-trk-sc { position: relative; display: inline-block; height: 12px; }
  .chg-trk-m { position: absolute; bottom: 0; font: 500 9.5px var(--sans); color: var(--ink-30); }
  .chg-scale-sp { width: 72px; flex: none; }
  /* the arrow is the only thing encoding which way the grade went — not --ink-30 (1.7:1) */
  .chg-arr { color: var(--ink-50); margin: 0 5px; }
  /* narrow keeps WHY it changed and drops the money: the cause is the column CS came for, and
     MRR is already on every row of the Book tab */
  @media (max-width: 820px) { .chg-t .h, .chg-t .m, .chg-scale { display: none; } }
  @media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }

  /* wide book-of-business table scrolls horizontally */
  .bob-wrap { border: 1px solid var(--hairline); border-top: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); background: var(--paper); box-shadow: var(--shadow-card); overflow-x: auto; }
  .bob-wrap table.radar { min-width: 1640px; }
  .bob-wrap.drawn .score-fill { animation: viz-grow .5s var(--ease) both; }

  /* fixed right drawer (reuses .drawer-demo inner shell) */
  .scrim { position: fixed; inset: 0; background: rgba(49,49,47,0.34); opacity: 0; pointer-events: none; transition: opacity var(--dur-slow) var(--ease); z-index: 70; }
  .scrim.open { opacity: 1; pointer-events: auto; }
  .drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 560px; max-width: 94vw; background: var(--paper); box-shadow: var(--shadow-pop); transform: translateX(100%); transition: transform var(--dur-slow) var(--ease); z-index: 71; overflow-y: auto; overscroll-behavior: contain; }
  .drawer.open { transform: translateX(0); }
  .drawer .drawer-demo { max-width: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
  /* only the breadcrumb strip pins; the nav row (back/close), title, chips, meta scroll away */
  .drawer .drawer-nav { padding: 14px 24px 0; margin-bottom: 8px; }
  /* 14px above the trail for the same reason the account panel's pinned name takes 15: once
     this strip pins it is the top edge of the window, with nothing above it. */
  .drawer .crumbs { position: sticky; top: 0; z-index: 6; background: var(--paper); padding: 14px 24px 10px; margin-bottom: 0; transition: box-shadow .2s var(--ease); }
  /* soft shadow appears only once the strip is pinned and content scrolls beneath it */
  .drawer.crumb-stuck .crumbs { box-shadow: 0 5px 9px -6px rgba(49,49,47,0.16); }
  /* 13px, up from the 12px the class carries elsewhere. The account panel's pinned bar sets
     the account name at 14.5 so it holds its own against the tabs under it; the school and
     contact panels have no tabs, but they have the same job — this is the row that says where
     you are once the title has scrolled away, and at 12px it was the smallest text in the
     panel while being the only thing still on screen. The trail stays lighter than the
     account bar because it is three names deep and one of them is a heading in waiting.
     Scoped to .drawer: 12px is right for the same class out on a page. */
  .drawer .crumbs { font-size: 13px; gap: 8px; }
  .drawer .crumbs .crumb { font: 500 13px var(--sans); }
  .drawer .crumbs .crumb.here { font-weight: 600; }
  .drawer .crumbs .crumb-ic { width: 14px; height: 14px; }
  /* One line, always. The trail wraps by default, and on this data it was wrapping on most
     contacts already at 12px — an account name and a school name that repeats it do not fit
     in 545px at any size — which put a two- and occasionally three-row block at the top of
     the panel and left it pinned there for the whole visit. Names now shorten instead.
     Shrinking is proportional to length, so the longest name gives up the most. The crumb you
     are on does not shrink at all — it is the one the row exists to say, and it reads whole
     while its ancestors shorten around it — up to half the row, past which a long school name
     would be taking the space that tells you which account it belongs to. Every crumb carries
     its full name as a tooltip. */
  .drawer .crumbs { flex-wrap: nowrap; }
  .drawer .crumbs .crumb { min-width: 0; }
  .drawer .crumbs .crumb .ct { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .drawer .crumbs .crumb.here { flex-shrink: 0; max-width: 50%; }
  .drawer .crumbs .sep, .drawer .crumbs .crumb-ic { flex: none; }
  .drawer .drawer-head { position: static; padding: 12px 24px 16px; background: var(--paper); }

  /* ── the account drawer's jump strip
     Tabs, not pills. Navigation in this system is .tabi — a label that turns forest over a
     2px forest border — and the chip families are for describing things, not for going to
     them. It sits at the foot of the header, where a page's tabs go, and pins to the top of
     the panel when the header scrolls up past it. Its own hairline is the rail the active
     underline sits on, so the underline costs no height, and a pinned rail is not floating,
     so it takes a border rather than one of the three shadows. */
  .drawer .dnav-wrap { position: sticky; top: 0; z-index: 6; background: var(--paper); border-bottom: 1px solid var(--hairline); }
  .drawer .drawer-head.has-nav { border-bottom: 0; padding-bottom: 14px; }
  /* The name is absent on arrival — the 21px headline is directly above it — and slides in
     once that headline has scrolled away. Reserving the row permanently was spending height
     on a second copy of something already on screen. */
  .drawer .dnav-name { max-height: 0; opacity: 0; overflow: hidden; padding: 0 24px;
    transition: max-height var(--dur) var(--ease), opacity var(--dur-fast) var(--ease); }
  /* 15px above the name, not 8. The panel is fixed to the top of the window, so once this
     block pins there is nothing above it at all — no browser chrome, no page — and 8px put
     the account name hard against the top edge of the screen. It is the one row in the app
     with no neighbour above it to borrow breathing room from. */
  .drawer .dnav-wrap.stuck .dnav-name { max-height: 40px; opacity: 1; padding: 15px 24px 4px; }
  /* measured, not animated: see drawerScrollTo() */
  .drawer .dnav-wrap.nt, .drawer .dnav-wrap.nt * { transition: none !important; }
  .dnav-nm { display: flex; align-items: center; gap: 7px; min-width: 0; }
  .dnav-nm svg { width: 14px; height: 14px; flex: none; color: var(--ink-30); }
  /* set against the 13.5px tabs below it rather than at breadcrumb volume: it is the account
     you are in, and at 12px it read as a caption on its own navigation */
  .dnav-nm b { font: 700 14.5px var(--display); letter-spacing: -0.015em; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* scrolls sideways rather than wrapping: a pinned block that changes height with the
     account would move the content under it by a row */
  /* 16px, not 20: seven labels at 13.5px come to within a few pixels of a 560px panel at
     20, and the panel narrows to 94vw on a small window */
  .dsec-nav { display: flex; align-items: center; gap: 16px; padding: 0 24px; overflow-x: auto; scrollbar-width: none; }
  .dsec-nav::-webkit-scrollbar { display: none; }
  .dnv { flex: none; background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
    padding: 14px 0 12px; border-radius: 0; font: 600 13.5px var(--sans); color: var(--ink-50); cursor: pointer; white-space: nowrap;
    transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
  .dnv:hover { color: var(--ink-70); }
  /* .on is where the reader is, not what they last clicked — see dnavSpy() */
  .dnv.on { color: var(--forest); border-bottom-color: var(--forest); }
  .dnv:focus-visible { outline: 2px solid var(--forest); outline-offset: -3px; border-radius: var(--r-sm); }
  .linklike { background: transparent; border: 0; padding: 0; font: 600 12.5px var(--sans); color: var(--forest); cursor: pointer; }
  .linklike:hover { text-decoration: underline; }

  /* ── "Belongs to" · the two hops back up the hierarchy ──
     These were two green text links reading "Open account · Name →". They said where they
     went and nothing about what was there, so following one was the only way to find out —
     and the contact drawer is exactly where somebody is deciding whether it is worth the
     trip. Each hop is a card now, carrying the three facts the destination leads with, so
     the answer is usually on this screen and the click is a choice rather than a probe.
     A hop with nothing behind it is not drawn at all: 190 contacts have no school and 51 of
     those no account, and the old block drew both buttons regardless — two links that opened
     a drawer for `undefined`. */
  /* One per row. Side by side inside a 560px panel, both cards ellipsised the school and
     account names — the one thing the card exists to say — so the pair only fits where the
     panel is wide enough to hold two full names. */
  .xlinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
  .xlink { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%;
    text-align: left; padding: 12px 13px; background: var(--mute); border: 1px solid transparent;
    border-radius: var(--r-md); cursor: pointer; font-family: var(--sans);
    transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
  .xlink:hover { background: var(--paper); border-color: var(--forest-line); box-shadow: var(--shadow-card); }
  .xlink:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
  .xl-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-sm);
    background: var(--forest-wash); color: var(--forest); }
  .xl-ic .crumb-ic { width: 16px; height: 16px; opacity: 1; }
  .xl-t { min-width: 0; }
  .xl-k { display: block; font: 700 9.5px var(--display); text-transform: uppercase; letter-spacing: .09em; color: var(--ink-50); }
  .xl-n { display: block; margin-top: 3px; font: 600 13.5px var(--sans); color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .xl-m { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-50);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .xl-m b { font-weight: 600; }
  /* the same chevron the worklist rows use, so "this opens something" reads the same
     everywhere — it leans into the direction of travel on hover */
  .xl-go { color: var(--ink-30); display: grid; place-items: center; width: 15px; height: 15px;
    transition: transform var(--dur) var(--ease-out), color var(--dur-fast) var(--ease); }
  .xl-go svg { width: 100%; height: 100%; }
  .xlink:hover .xl-go { color: var(--forest); transform: translateX(3px); }
  /* a hop that does not exist yet — says what would make it exist rather than nothing */
  .xl-none { padding: 12px 13px; background: var(--mute); border-radius: var(--r-md);
    font-size: 12.5px; line-height: 1.5; color: var(--ink-70); }
  .xl-none b { color: var(--ink); font-weight: 600; }
  @media (prefers-reduced-motion: reduce) { .xlink:hover .xl-go { transform: none; } }

  /* ── a sub-head inside a drawer body ──
     The contact drawer carried three copies of this as an inline style string. One class,
     and the right-hand side carries the caveat that belongs to the block under it — which
     export it was read from, how many there are. */
  .d-sub { display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    font: 600 10.5px var(--sans); text-transform: uppercase; letter-spacing: .05em;
    color: var(--ink-50); margin-bottom: 9px; }
  .d-sub .as-of { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 11px; color: var(--ink-30); }
  .d-sub .as-of[data-tip] { cursor: help; border-bottom: 1px dotted var(--ink-18); }

  /* ── counters, as a list rather than a row of big numbers ──
     These were a three-column KV of bold values. Of 1,706 contacts, 190 have ever made a
     contribution and 6 have ever left a comment — so on almost every contact the block was
     three emphatic zeros, which reads as "this person does nothing" when it mostly means
     "Mighty's export does not carry this". A list puts the label first, right-aligns the
     figure, and greys the zeros so the eye lands on the counters that are actually saying
     something. */
  .dstats { display: grid; }
  .dstat { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 12px;
    padding: 9px 0; border-top: 1px solid var(--hairline); }
  .dstat:first-child { border-top: 0; padding-top: 2px; }
  .dstat-k { font-size: 12.5px; color: var(--ink-70); }
  .dstat-k .sub { color: var(--ink-30); font-size: 11.5px; }
  /* a qualifier after a value, not a second value */
  .kv-v .sub { color: var(--ink-30); font-weight: 400; }
  .dstat-v { font: 700 14px var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
  .dstat.is-zero .dstat-v { font-weight: 500; color: var(--ink-30); }
  /* only where the number has a denominator — lessons done out of lessons started. A bar
     under a bare count would be a shape with no scale behind it. */
  .dstat-bar { grid-column: 1 / -1; height: 5px; margin-top: 7px; background: var(--mute); border-radius: 3px; overflow: hidden; }
  .dstat-bar > i { display: block; height: 100%; background: var(--sage); border-radius: 3px; }

  /* ── classification chip · this person is not a customer contact ──
     Deliberately neutral ink rather than any of the data colours: it is a label on the
     record, not a state the account is in, and in the Contacts table it sits two columns
     from the tier chips, which own plum and slate. */
  .schip.cls { background: rgba(55,63,65,0.07); color: var(--ink-70); border: 1px solid var(--hairline-strong); }
  .schip.sm { height: 18px; font-size: 9.5px; padding: 0 7px; gap: 4px; }
  .schip.sm .cico { width: 10px; height: 10px; }
  /* in a table cell the chip follows the name and must never push it out of the column */
  .nm-cls { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
  .nm-cls > .acct-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .nm-cls > .schip { flex: none; }

  /* toast */
  /* the toast lives in the .notif pill at the top of this file — nothing to style here */

  /* ── "a newer version is out" ──
     Top centre, on the same line as the passing-message pill and wearing the same clothes:
     dark surface, pill radius, same shadow. Everything the app says about itself now comes
     from one place on screen. It differs from the pill in the one way that matters — it does
     not time out. A tab running last week's code is not something to mention once and let
     fade, so it waits there until it is acted on.

     It sits ABOVE the pill rather than sharing its slot: the pill is a single-element stack
     by design (see .notif), and a save confirmation must not be blocked from appearing by a
     message that never leaves. body.has-update pushes the pill down by exactly this bar's
     height plus the gap, so the two stack instead of overlapping. */
  .updbar {
    position: fixed; top: 124px; left: 50%; transform: translateX(-50%); z-index: 96;
    display: flex; align-items: center; gap: 12px;
    background: var(--notice); color: var(--cream);
    -webkit-backdrop-filter: var(--notice-filter); backdrop-filter: var(--notice-filter);
    padding: 5px 5px 5px 18px; border-radius: var(--r-pill); box-shadow: var(--shadow-pop);
    font: 500 13px var(--sans); max-width: min(560px, 90vw);
  }
  /* DESIGN.md bans glassmorphism as a default, and this is the exception it allows for: rare
     and purposeful. Both of these are fixed overlays sitting on top of a table that is still
     being read, and a hard-edged opaque slab over live rows reads as a hole cut in the page.
     Blurring what is behind them is what makes them float. Nothing else in the product may
     take a backdrop-filter without the same argument. Where it is unsupported the 0.93 alpha
     is still a solid, legible surface, so nothing depends on it. */
  .updbar[hidden] { display: none; }
  /* The bar had no backdrop, so a dark pill floated over a page still at full contrast and
     read as one more chip in a busy layout rather than as the app telling you it is out of
     date. body.has-update is already on the element when the bar shows, so this costs no
     markup and no wiring: the whole page dims and softens behind it, appbar and tabs
     included (they sit at z-index 50), and the bar and the toast slot above it do not.

     pointer-events: none, deliberately, and this is the argument. checkBuild() only leaves
     the bar on screen when the tab is VISIBLE or there is unsaved text — the silent case
     reloads itself. So the one person who ever sees this bar may be mid-sentence in a note,
     and a scrim that swallowed clicks would dim the page, block the save and lose the work
     it was warning them about. It de-emphasises; it does not detain. Reload stays the only
     control, and it is above the scrim. */
  body.has-update::before {
    content: ""; position: fixed; inset: 0; z-index: 94; pointer-events: none;
    background: rgba(49,49,47,0.34);
    -webkit-backdrop-filter: blur(2.5px) saturate(0.9); backdrop-filter: blur(2.5px) saturate(0.9);
    animation: updScrimIn var(--dur-slow) var(--ease) both;
  }
  @keyframes updScrimIn { from { opacity: 0 } to { opacity: 1 } }
  @media (prefers-reduced-motion: reduce) { body.has-update::before { animation: none; } }
  /* A pill inside a pill has to be concentric or it reads as clipped: the button kept the
     system's default --r-md corners, which cut across the curve of the bar's own end. Pill
     radius, and the padding around it (5px) is exactly (bar height - button height) / 2, so
     the two curves share a centre. Height comes down from the standard 40px to 32px — this
     is a button inside a notification, not a form action, and at 40px the bar was taller
     than the toast it sits above. */
  /* Terracotta, not forest. Forest is the action colour everywhere else in the app, but
     everywhere else the action sits on paper or cream — here it sits on the charcoal bar,
     where #01503B and #31312f are two dark colours a metre apart and the button all but
     disappeared into its own container. Terracotta deep is the palette's risk pigment and
     this is the one notification that qualifies: ignoring it means carrying on in code that
     has already been replaced. It is also the only warm colour in the set, so on charcoal it
     is the one thing on screen that cannot be mistaken for chrome.
     Cream on terracotta deep is 4.8:1, and the lighter terracotta ring gives the button an
     edge against the bar at 4.3:1 — the fill alone is 2.5:1 against charcoal, which is under
     the 3:1 a control needs to be findable at all.
     Wider (38px flanks, from 16 via 24) and at the app's standard 13px rather than the shrunk
     12.5: the bar has one job and this is it, so the button should not be the smallest text on
     it. The flanks are the whole width lever here — the label is one word and stretching the
     type instead would have made a notification shout. */
  .updbar .btn { height: 32px; padding: 0 38px; border-radius: var(--r-pill); font: 700 13px var(--sans);
    background: var(--terracotta-deep); color: var(--cream); border: 1px solid var(--terracotta); }
  .updbar .btn:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--cream); }
  .updbar .btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
  /* 124px (the pill's own anchor) + 42px bar + 10px gap. Hard-coded rather than measured:
     the bar is one line of fixed-size text and a fixed-size button, so its height cannot
     drift without this file changing. Measured at 42px. */
  body.has-update .notif { top: 176px; }

  /* empty-state block */
  .empty-card { background: var(--paper); border: 1px dashed var(--hairline-strong); border-radius: var(--r-lg); padding: 40px 20px; text-align: center; color: var(--ink-50); font-size: 13px; }
  .empty-card .et2 { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 6px; }

  /* worklist queue rows */
  .wl-row { display: grid; grid-template-columns: 26px 1fr auto 16px; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--hairline); cursor: pointer; transition: background .12s var(--ease); }
  .wl-row:first-child { border-top: 0; }
  .wl-row:hover, .wl-row:focus-visible { background: var(--mute); outline: none; }
  .wl-row .row-go { display: inline-flex; color: var(--forest); opacity: 0; transform: translateX(-3px); transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
  .wl-row .row-go svg { width: 15px; height: 15px; }
  .wl-row:hover .row-go, .wl-row:focus-visible .row-go { opacity: 1; transform: translateX(0); }
  /* every clickable row reads as clickable */
  table.queue tbody tr[onclick] { cursor: pointer; }
  .wl-rank { font: 800 13px var(--display); color: var(--ink-30); text-align: center; }
  .wl-main .wl-name { font-weight: 600; font-size: 13px; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .wl-main .wl-why { font-size: 11.5px; color: var(--ink-50); margin-top: 3px; line-height: 1.4; }
  .wl-main .wl-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
  .wl-mrr { font: 700 13px var(--display); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

  /* changelog timeline */
  .log-item { display: grid; grid-template-columns: 92px auto 1fr; gap: 14px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--hairline); }
  .log-item:first-child { border-top: 0; }
  .log-date { font-size: 11.5px; color: var(--ink-50); font-variant-numeric: tabular-nums; }
  .log-tag { font: 700 10px var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--forest); background: var(--forest-wash); padding: 2px 8px; border-radius: var(--r-sm); }
  .log-text { font-size: 13px; color: var(--ink-70); line-height: 1.5; }

  /* ═══ changelog — two columns: product updates + live activity ═══ */
  .cl-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 22px; align-items: start; }
  .cl-col-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
  .cl-col-head h2 { margin: 0; font: 800 15px var(--display); color: var(--ink); letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 9px; }
  .cl-col-head .cl-hint { font-size: 11.5px; color: var(--ink-50); white-space: nowrap; }
  .cl-card { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 6px 22px 18px; }

  /* left: version log — one block per version, quiet horizontal rules only (no vertical lines) */
  .cl-log { display: flex; flex-direction: column; }
  .cl-v { padding: 16px 0; border-top: 1px solid var(--hairline); }
  .cl-v:first-child { border-top: 0; padding-top: 8px; }
  .cl-vhead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
  .cl-vdate { font: 600 11.5px var(--sans); color: var(--ink-50); font-variant-numeric: tabular-nums; }
  .cl-vtext { font-size: 13px; color: var(--ink-70); line-height: 1.6; max-width: 60ch; }
  .cl-extra { display: none; }
  .cl-log.show-extra .cl-extra { display: block; }
  .cl-more { margin-top: 16px; background: transparent; border: 1px solid var(--hairline-strong); border-radius: var(--r-pill); padding: 7px 15px; font: 600 12px var(--sans); color: var(--forest); cursor: pointer; transition: background .15s var(--ease), border-color .15s var(--ease); }
  .cl-more:hover { background: var(--forest-wash); border-color: var(--forest-soft); }

  /* right: live activity timeline */
  .af-pill { font: 700 9.5px var(--display); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-50); background: var(--mute); padding: 3px 8px; border-radius: var(--r-pill); }
  .af-pill.live { color: var(--sage-deep); background: rgba(78,107,62,0.12); }
  .af-pill.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sage-deep); margin-right: 5px; vertical-align: middle; }
  .af-list { display: flex; flex-direction: column; }
  .af-row { display: grid; grid-template-columns: 30px 1fr; gap: 11px; padding: 12px 0; border-top: 1px solid var(--hairline); }
  .af-row:first-child { border-top: 0; }
  .af-av { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--cream); font: 700 10.5px var(--display); letter-spacing: 0.02em; }
  .af-main { min-width: 0; }
  .af-line { font-size: 12.5px; color: var(--ink-70); line-height: 1.45; }
  .af-line b { color: var(--ink); font-weight: 700; }
  .af-acct { color: var(--forest); font-weight: 600; }
  .af-acct.link { cursor: pointer; border-radius: 3px; }
  .af-acct.link:hover, .af-acct.link:focus-visible { text-decoration: underline; }
  .af-delta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 5px; font: 600 11px var(--sans); }
  .af-delta .af-old { color: var(--ink-50); text-decoration: line-through; overflow-wrap: anywhere; }
  .af-delta svg { width: 13px; height: 13px; color: var(--ink-30); flex: none; }
  .af-delta .af-new { color: var(--sage-deep); overflow-wrap: anywhere; }
  /* which task, which note — the audit row records only that something was inserted */
  .af-detail { margin-top: 5px; padding: 6px 9px; background: var(--mute); border-radius: var(--r-sm); font-size: 11.5px; line-height: 1.45; color: var(--ink-70); overflow-wrap: anywhere; }
  .af-when { margin-top: 4px; font-size: 10.5px; color: var(--ink-50); font-variant-numeric: tabular-nums; }
  /* sign-ins read quieter than data edits — the edits are the primary signal */
  .af-row.login .af-line { color: var(--ink-50); }
  .af-row.login .af-line b { color: var(--ink-70); }
  .af-row.login .af-av { opacity: 0.7; }
  .af-empty { font-size: 12.5px; color: var(--ink-50); line-height: 1.55; padding: 14px 0; }
  .af-note { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--hairline); font-size: 11px; color: var(--ink-50); line-height: 1.45; }

  @media (max-width: 1000px) { .cl-grid { grid-template-columns: 1fr; } .cl-card { padding: 6px 16px 16px; } }

  /* simple doc prose */
  .doc-card { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 24px 26px; }
  .doc-card h3 { margin-top: 0; }
  .doc-card p { font-size: 13.5px; color: var(--ink-70); line-height: 1.6; }
  .doc-card ul { font-size: 13.5px; color: var(--ink-70); line-height: 1.6; padding-left: 18px; }
  /* read-me use-case blocks */
  .uc-role { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
  .uc-role .cic { width: 30px; height: 30px; border-radius: var(--r-sm); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--forest); color: var(--cream); }
  .uc-role .cic svg { width: 16px; height: 16px; }
  .uc-role h3 { margin: 0; font-size: 15px; }
  .uc-sub { font-size: 12px; color: var(--ink-50); margin: 0 0 12px 40px; }
  .uc-q { list-style: none; margin: 0; padding: 0; }
  .uc-q li { font-size: 13px; color: var(--ink-70); line-height: 1.5; padding: 9px 0; border-top: 1px solid var(--hairline); }
  .uc-q li:first-child { border-top: 0; }
  .uc-q li:last-child { padding-bottom: 0; }
  .uc-where { display: inline-block; font: 700 10.5px var(--display); letter-spacing: .02em; color: var(--forest); background: var(--forest-wash); border: 1px solid var(--forest-line); border-radius: 999px; padding: 2px 9px; margin-left: 6px; white-space: nowrap; vertical-align: 1px; }
  .arch-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
  .arch-table th { text-align: left; font: 700 11px var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-50); padding: 8px 10px; border-bottom: 1px solid var(--hairline); }
  .arch-table td { padding: 9px 10px; border-bottom: 1px solid var(--hairline); color: var(--ink-70); vertical-align: top; }

  /* ══ Playbook page ══
     The task rules, drawn rather than written out. The logic already existed in two places —
     as prose on Read Me and as a decision flow on Notifications — and both answer "how does
     this system work". The other question came out of the 2026-09-03 walkthrough: what
     will appear on my account, and why. This page is that answer on one screen.

     It borrows rather than invents where the vocabulary already exists: the fact strip is
     .ar-facts from Architecture, the section heads are .sec-h, the closing notes are
     .callout. The pb-* classes below are only the parts that had no component yet.

     Each rule carries its own pigment on the icon with the name immediately beside it — the
     product-ladder pattern from DESIGN.md, allowed because the label repeats what the colour
     says. Deliberately not a single-hue ramp: five rules are a set, not a severity order. */

  /* three across, so five rules read as 3 + 2 rather than 4 + 1 stranded. auto-fit gave four
     columns at this page width and left the fifth alone with its example wrapping to three
     lines, which read as a sixth rule that had not loaded. */
  .pb-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  @media (max-width: 1080px) { .pb-rules { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 700px)  { .pb-rules { grid-template-columns: 1fr; } }
  .pb-rule { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-md); box-shadow: var(--shadow-card); padding: 16px 18px 16px; display: flex; flex-direction: column; }
  .pb-rh { display: flex; align-items: center; gap: 9px; }
  .pb-rh svg { width: 18px; height: 18px; flex: none; }
  .pb-rn { font: 700 13.5px var(--display); letter-spacing: -.01em; color: var(--ink); }
  .pb-rw { font-size: 12.5px; color: var(--ink-70); line-height: 1.5; margin-top: 9px; flex: 1; }

  /* what actually lands, drawn as the task it becomes rather than quoted as a string. A mute
     fill and a hairline, never a second card — a card inside a card is out (DESIGN.md). */
  .pb-task { margin-top: 13px; background: var(--mute); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 10px 12px; display: flex; gap: 9px; align-items: flex-start; }
  .pb-cb { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--ink-30); background: var(--paper); flex: none; margin-top: 2px; }
  .pb-tt { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.4; }
  .pb-tm { font-size: 11px; color: var(--ink-50); margin-top: 4px; font-variant-numeric: tabular-nums; }

  /* the morning, left to right. Horizontal on a laptop, stacked below it — the chevrons
     rotate rather than disappear, so the sequence survives the wrap. */
  .pb-rail { display: flex; align-items: stretch; gap: 6px; overflow-x: auto; padding: 2px; }
  .pb-step { flex: 1 1 0; min-width: 158px; background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 13px 14px; }
  .pb-step.t { background: var(--forest-wash); border-color: var(--forest-line); }
  .pb-sk { display: flex; align-items: center; gap: 7px; font: 700 10px var(--display); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-40); font-variant-numeric: tabular-nums; }
  .pb-sn { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: var(--ink-18); color: var(--ink); font: 700 9.5px var(--sans); letter-spacing: 0; flex: none; }
  .pb-step.t .pb-sk { color: var(--forest-soft); }
  .pb-step.t .pb-sn { background: var(--forest); color: var(--cream); }
  .pb-st { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.4; margin-top: 7px; }
  .pb-ss { font-size: 11.5px; color: var(--ink-50); line-height: 1.45; margin-top: 4px; }
  .pb-car { display: flex; align-items: center; color: var(--ink-30); flex: none; }
  .pb-car svg { width: 15px; height: 15px; }
  @media (max-width: 900px) {
    .pb-rail { flex-direction: column; }
    .pb-car { justify-content: center; transform: rotate(90deg); }
  }

  /* what stops one. Tiles rather than a full-width list: five refusals across one 1300px
     row put 110 characters on a line, and body text is capped at 65–75 for a reason.
     The cross is terracotta because these are refusals, and each tile writes what it
     refuses beside it, so the colour repeats the words instead of implying them. */
  .pb-stops { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 10px; }
  .pb-stop { display: flex; gap: 10px; align-items: flex-start; background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 13px 15px; }
  .pb-x { width: 17px; height: 17px; border-radius: 999px; background: var(--terracotta-wash); color: var(--terracotta-deep); flex: none; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
  .pb-x svg { width: 10px; height: 10px; }
  .pb-sb { font-size: 12.5px; color: var(--ink-70); line-height: 1.5; }
  .pb-sb b { color: var(--ink); }

  /* ══ Architecture page ══
     This page is presented, not only read — it stands in for a slide deck in a room with
     people who have never opened the dashboard. So it is built out of blocks that survive
     being pointed at on a shared screen: big type, few words per box, and one idea per row.
     The classes are ar-* and are used nowhere else. */

  /* the before / after pair. Two columns that are deliberately NOT symmetrical: the left
     is a scatter of disconnected boxes, the right is one spine. The shape carries the
     argument before anybody reads a word of it. */
  .ar-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
  @media (max-width: 900px){ .ar-ba { grid-template-columns: 1fr; } }
  .ar-side { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 20px 22px 22px; display: flex; flex-direction: column; }
  .ar-side.before { background: var(--mute); box-shadow: none; border-style: dashed; border-color: var(--hairline-strong); }
  .ar-side-h { display: flex; align-items: baseline; gap: 9px; margin-bottom: 3px; }
  .ar-side-k { font: 700 10px var(--display); text-transform: uppercase; letter-spacing: .09em; color: var(--ink-50); }
  .ar-side.after .ar-side-k { color: var(--forest); }
  .ar-side-t { font: 700 15.5px var(--display); color: var(--ink); }
  .ar-side-s { font-size: 12.5px; color: var(--ink-70); line-height: 1.5; margin: 0 0 14px; }
  /* the scattered boxes — a wrapped row of small tiles, each one a place data used to live */
  .ar-scatter { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
  .ar-tile { background: var(--paper); border: 1px dashed var(--hairline-strong); border-radius: var(--r-sm); padding: 6px 10px; font: 600 11.5px var(--sans); color: var(--ink-70); }
  .ar-tile i { display: block; font: 400 10.5px var(--sans); font-style: normal; color: var(--ink-50); margin-top: 1px; }
  /* the spine — one stack of joined blocks, no gaps, so it reads as a single object */
  .ar-spine { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
  .ar-sp { display: flex; align-items: center; gap: 10px; background: var(--forest-wash); border: 1px solid var(--forest-line); border-radius: var(--r-sm); padding: 8px 11px; font: 600 12px var(--sans); color: var(--ink); }
  .ar-sp b { font-weight: 700; color: var(--forest); }
  .ar-sp span { font: 400 11.5px var(--sans); color: var(--ink-70); margin-left: auto; text-align: right; }
  .ar-miss { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--hairline); font-size: 12px; color: var(--ink-70); line-height: 1.55; }
  .ar-miss b { color: var(--ink); }

  /* the big map: four bands, left to right, with a gutter chevron between each */
  .ar-map { display: grid; grid-template-columns: 1.05fr 20px 1fr 20px 0.92fr 20px 0.92fr; align-items: stretch; }
  @media (max-width: 1100px){ .ar-map { grid-template-columns: 1fr; } .ar-map .ar-gut { height: 24px; transform: rotate(90deg); } }
  .ar-band { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
  .ar-bh { display: flex; align-items: center; gap: 8px; font: 700 11.5px var(--sans); color: var(--ink); margin-bottom: 3px; }
  .ar-bh .n { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 50%; background: var(--forest); color: var(--cream); font: 700 10.5px var(--sans); flex: none; }
  .ar-bh .n.a { background: var(--amber-deep); }
  .ar-bh .n.s { background: var(--slate); }
  .ar-gut { display: flex; align-items: center; justify-content: center; color: var(--forest-soft); }
  .ar-gut svg { width: 20px; height: 20px; }
  .ar-node { background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-md); padding: 9px 11px; }
  .ar-node.auto { background: var(--forest-wash); border-color: var(--forest-line); }
  .ar-node.hand { background: var(--mute); border-style: dashed; }
  .ar-node.calc { background: rgba(252,180,43,0.10); border-color: rgba(252,180,43,0.40); }
  .ar-node.out  { background: rgba(95,116,136,0.09); border-color: rgba(95,116,136,0.30); }
  .ar-nt { display: flex; align-items: center; gap: 7px; font: 700 12px var(--sans); color: var(--ink); }
  .ar-nd { font-size: 11px; color: var(--ink-70); line-height: 1.45; margin-top: 2px; }
  /* the auto / by hand mark. Said on every source node, because "which of these looks
     after itself" is the first question the room asks and the last one a table answers. */
  .ar-way { margin-left: auto; font: 700 8.5px var(--display); text-transform: uppercase; letter-spacing: .07em; padding: 2px 6px; border-radius: var(--r-pill); flex: none; }
  .ar-way.auto { background: var(--forest); color: var(--cream); }
  .ar-way.hand { background: var(--amber-soft); color: var(--amber-deep); }

  /* the source-of-truth ladder — numbered rungs, the winner on top */
  .ar-ladder { display: flex; flex-direction: column; gap: 8px; }
  .ar-rung { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--hairline-strong); background: var(--paper); }
  .ar-rung.win { background: var(--forest-wash); border-color: var(--forest-line); }
  .ar-rn { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mute); color: var(--ink-50); font: 700 11px var(--sans); border: 1px solid var(--hairline-strong); flex: none; }
  .ar-rung.win .ar-rn { background: var(--forest); color: var(--cream); border-color: var(--forest); }
  .ar-rt { font: 700 13px var(--sans); color: var(--ink); }
  .ar-rd { font-size: 12.5px; color: var(--ink-70); line-height: 1.55; margin-top: 2px; }
  .ar-rd b { color: var(--ink); }

  /* measured vs judged — the honest split behind the score */
  .ar-mj { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 12px; }
  .ar-in { border: 1px solid var(--hairline-strong); border-radius: var(--r-md); padding: 13px 14px; background: var(--paper); }
  .ar-in-h { display: flex; align-items: center; gap: 8px; }
  .ar-in-w { font: 700 17px var(--display); color: var(--ink); }
  .ar-in-n { font: 700 12.5px var(--sans); color: var(--ink); }
  .ar-in-src { font: 700 8.5px var(--display); text-transform: uppercase; letter-spacing: .07em; padding: 2px 7px; border-radius: var(--r-pill); margin-left: auto; }
  .ar-in-src.meas { background: var(--sage-soft); color: var(--sage-deep); }
  .ar-in-src.judg { background: rgba(107,79,122,0.14); color: var(--plum); }
  .ar-in-d { font-size: 11.5px; color: var(--ink-70); line-height: 1.5; margin-top: 6px; }
  .ar-in-f { font-size: 11px; color: var(--ink-50); line-height: 1.45; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--hairline); }

  /* the live freshness table gets a status dot per row */
  .ar-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
  .arch-table td .ar-sub { display: block; font-size: 11px; color: var(--ink-50); margin-top: 2px; }
  .ar-age { white-space: nowrap; }
  .ar-age b { color: var(--ink); font-weight: 650; }

  /* the "what is not connected yet" strip */
  .ar-next { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 12px; }
  .ar-nx { border: 1px dashed var(--hairline-strong); border-radius: var(--r-md); padding: 13px 15px; background: var(--mute); }
  .ar-nx-t { font: 700 12.5px var(--sans); color: var(--ink); margin-bottom: 4px; }
  .ar-nx-d { font-size: 11.5px; color: var(--ink-70); line-height: 1.5; }
  .ar-nx-w { font: 700 8.5px var(--display); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-50); display: block; margin-top: 7px; }

  /* the headline numbers at the top of the page */
  .ar-facts { display: grid; grid-template-columns: repeat(auto-fit,minmax(128px,1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; }
  .ar-fact { background: var(--paper); padding: 13px 15px; }
  .ar-fv { font: 700 21px var(--display); color: var(--ink); line-height: 1.1; }
  .ar-fl { font: 600 10.5px var(--sans); color: var(--ink-50); margin-top: 3px; }

  /* ═══ drill-down list modal (centered; layered against the drawer by whichever opened last) ═══ */
  .list-scrim { position: fixed; inset: 0; background: rgba(49,49,47,0.34); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); z-index: 60; }
  .list-scrim.open { opacity: 1; pointer-events: auto; }
  .list-modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -47%); width: min(1400px, 94vw); max-height: 88vh; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); z-index: 61; overflow: hidden; }
  .list-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
  /* The two surfaces open each other, in both directions: a row in this list opens the drawer,
     and the drawer's recency map opens this list. So neither of them can be permanently the
     higher one, and this used to sit permanently below — a list opened from inside a drawer
     drew underneath it, which reads as the click having done nothing at all. Last one opened
     wins instead: openListModal() sets this when a drawer is already there, drawerShellOpen()
     takes it off when the drawer is the newer of the two. .nc-pop travels with the list because
     the note cells in it open one, and a composer underneath its own table is the same bug one
     layer down. Nothing else needs the ride — .viz-tip is already above both at 80, and every
     other popover in the list is drawn inside it. */
  body.lm-over-drawer .list-scrim { z-index: 72; }
  body.lm-over-drawer .list-modal { z-index: 73; }
  body.lm-over-drawer .nc-pop     { z-index: 75; }
  .lm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--hairline); flex: none; }
  .lm-tt h2 { margin: 0; font: 800 18px var(--display); color: var(--ink); letter-spacing: -0.01em; }
  .lm-tt .lm-sub { display: block; margin-top: 3px; font: 500 12.5px var(--sans); color: var(--ink-50); }
  .lm-close { background: transparent; border: 0; border-radius: var(--r-sm); width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-50); cursor: pointer; flex: none; transition: background .15s var(--ease), color .15s var(--ease); }
  .lm-close:hover { background: var(--forest-wash); color: var(--forest); }
  .lm-close svg { width: 18px; height: 18px; }
  .lm-body { padding: 16px 20px 22px; overflow: auto; overscroll-behavior: contain; }
  .lm-body .bob-wrap { border: 1px solid var(--hairline); border-radius: var(--r-md); }
  .lm-table { border: 1px solid var(--hairline); border-radius: var(--r-md); overflow-x: auto; background: var(--paper); box-shadow: var(--shadow-card); }
  .lm-table table.radar { width: 100%; }
  .lm-body .acct-name { cursor: pointer; }
  .lm-body .acct-name:hover { color: var(--forest); text-decoration: underline; }

  /* ═══ clickable affordances for drill-down ═══ */
  .stat-v.is-clickable { cursor: pointer; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
  .stat-v.is-clickable:hover { border-color: var(--forest-line); box-shadow: var(--shadow-pop); }
  .donut-in circle[data-drill] { cursor: pointer; }
  .hbar-fill[data-drill] { cursor: pointer; }
  .stack-seg[onclick] { cursor: pointer; }
  .acct-name[onclick] { cursor: pointer; }
  .acct-name[onclick]:hover { color: var(--forest); text-decoration: underline; }
  .chart-card .chead[data-drill] { cursor: pointer; transition: color .15s var(--ease); }
  .chart-card .chead[data-drill]:hover .ctitle { color: var(--forest); }

  /* book of business -- filter dropdown menus (Health tier / Region / Payment / Owner) */
  .fdrop-wrap { position: relative; display: inline-flex; }
  .fdrop .chev { transition: transform .15s var(--ease); }
  .fdrop-wrap.open .fdrop { border-color: var(--forest-soft); }
  .fdrop-wrap.open .fdrop .chev { transform: rotate(180deg); }
  /* idle filter = muted badge; an active filter lights up so set filters are obvious at a glance */
  .fdrop .all { background: var(--mute); color: var(--ink-50); }
  .fdrop.on { border-color: var(--forest); background: var(--forest-wash); color: var(--forest); }
  .fdrop.on .all { background: var(--forest); color: var(--cream); }
  .fdrop.on .chev { color: inherit; }
  /* each dimension gets its own brand accent so a row of active filters isn't a monochrome wall */
  .fdrop-wrap[data-dd="region"]  .fdrop.on { border-color: var(--plum);      background: rgba(107,79,122,.10); color: var(--plum); }
  .fdrop-wrap[data-dd="region"]  .fdrop.on .all { background: var(--plum); }
  .fdrop-wrap[data-dd="country"] .fdrop.on { border-color: var(--slate);     background: rgba(95,116,136,.10); color: var(--slate); }
  .fdrop-wrap[data-dd="country"] .fdrop.on .all { background: var(--slate); }
  .fdrop-wrap[data-dd="payment"] .fdrop.on { border-color: var(--sage-deep); background: rgba(78,107,62,.10);  color: var(--sage-deep); }
  .fdrop-wrap[data-dd="payment"] .fdrop.on .all { background: var(--sage-deep); }
  .fdrop-wrap[data-dd="owner"]   .fdrop.on { border-color: var(--amber-deep);background: rgba(148,97,0,.10);   color: var(--amber-deep); }
  .fdrop-wrap[data-dd="owner"]   .fdrop.on .all { background: var(--amber-deep); }
  .fdrop-wrap[data-dd="lifecycle"] .fdrop.on { border-color: var(--terracotta-deep); background: rgba(185,73,41,.10); color: var(--terracotta-deep); }
  .fdrop-wrap[data-dd="lifecycle"] .fdrop.on .all { background: var(--terracotta-deep); }

  .fdrop-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 178px; max-height: 280px; overflow-y: auto; background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-md); box-shadow: var(--shadow-pop); padding: 6px; z-index: 30; display: none; }
  .fdrop-wrap.open .fdrop-menu { display: block; }
  .fmenu-item { display: block; width: 100%; text-align: left; background: transparent; border: 0; padding: 8px 10px; border-radius: var(--r-sm); font: 500 12.5px var(--sans); color: var(--ink); cursor: pointer; white-space: nowrap; }
  .fmenu-item:hover { background: var(--mute); }
  .fmenu-item.sel { color: var(--forest); font-weight: 700; background: var(--forest-wash); }
  /* an option that is a person: face, then name, on the row rhythm the Owner column uses */
  .fmenu-item.rich { padding: 5px 9px; }
  .own-opt { display: flex; align-items: center; gap: 9px; }
  .own-opt .owner-name { font-size: 12.5px; }
  .fmenu-item.sel .own-opt .owner-name { color: var(--forest); font-weight: 700; }
  /* the whole team overlapped into the width of one and a half faces */
  .av-stack { display: inline-flex; flex: none; }
  .av-stack .owner-avatar { margin-right: -8px; }
  .av-stack .owner-avatar:last-child { margin-right: 0; }
  .owner-avatar.all-av { background: var(--mute); color: var(--ink-50); }
  .owner-avatar.all-av svg { width: 12px; height: 12px; }
  .fdrop-wrap[data-dd="owner"] .fdrop-menu { min-width: 214px; }
  .fdrop-wrap[data-dd="owner"] .fdrop .owner-name { font-size: 12px; }
  .fdrop-wrap[data-dd="owner"] .fdrop.on .owner-name { color: var(--amber-deep); }

  /* ── book table: fixed layout so colgroup widths + drag-resize apply predictably ── */
  /* the table scrolls inside its own viewport-height container so the header can stick on scroll */
  /* position: relative so the drop line drawn while a column is being moved is placed in
     the table's own scrolled coordinates rather than the page's */
  .book-main { max-height: calc(100vh - 248px); overflow: auto; overscroll-behavior: contain; position: relative; }
  .book-main table.radar thead th { position: sticky; top: 0; z-index: 2; }
  /* freeze the first column (name) so it stays anchored while the rest scrolls horizontally.
     header corner z-4 > other headers z-2 > frozen body cell z-1 > normal cells. the frozen
     cells carry their own opaque background + a hairline divider so scrolling columns don't
     bleed under them. */
  .book-main table.radar thead th:first-child { position: sticky; left: 0; z-index: 4; background: var(--mute); }
  .book-main table.radar tbody tr.acct-row > td:first-child { position: sticky; left: 0; z-index: 1; background: var(--paper); transition: background var(--dur-fast) var(--ease); }
  .book-main table.radar tbody tr.acct-row:hover > td:first-child { background: var(--mute); }
  /* lift the frozen name column with a soft right-edge shadow so the scrolling columns read as
     passing underneath it -- mirrors the drawer's top shadow, rotated to the right edge. always
     on (pure CSS, no scroll listener) so it's a permanent "this column is frozen" cue. the
     hairline stays as the first shadow layer. */
  .book-main table.radar thead th:first-child,
  .book-main table.radar tbody tr.acct-row > td:first-child { overflow: visible; box-shadow: 1px 0 0 var(--hairline); transition: background var(--dur-fast) var(--ease); }
  /* soft right-edge shadow for the frozen name column so scrolling columns read as passing
     underneath it -- mirrors the drawer's on-scroll breadcrumb shadow, rotated to the right edge.
     done as a gradient pseudo-element rather than box-shadow: a sticky <td>'s box-shadow gets
     painted under the adjacent cells (Chromium table quirk), a positioned ::after does not.
     hidden at rest, fades in only once the table is scrolled right (.x-stuck), same as the drawer. */
  .book-main table.radar thead th:first-child::after,
  .book-main table.radar tbody tr.acct-row > td:first-child::after { content:""; position:absolute; top:0; right:0; height:100%; width:9px; transform:translateX(100%); background:linear-gradient(to right, rgba(49,49,47,0.055), rgba(49,49,47,0)); opacity:0; transition:opacity .2s var(--ease); pointer-events:none; }
  .book-main.x-stuck table.radar thead th:first-child::after,
  .book-main.x-stuck table.radar tbody tr.acct-row > td:first-child::after { opacity:1; }
  /* explicit width (= sum of visible column widths, set inline in JS) so fixed-layout never
     redistributes leftover space -- that redistribution was why drag-resize failed when all
     columns were shown. no min-width here: the inline width is the single source of truth. */
  /* stretch to fill the container so the grey header line runs to the right edge; a trailing
     auto-width filler <col> soaks up the slack so the real (fixed-width) columns never redistribute */
  .book-main table.radar { table-layout: fixed; min-width: 100% !important; }
  .book-main table.radar th.col-filler { cursor: default; padding: 0; }
  .book-main table.radar td.col-filler { padding: 0; }
  /* the colgroup <col> widths own column sizing here -- neutralise the design-system's
     legacy nth-child width rules (th:first-child width:100%, th:nth-child(7) width:230px)
     so a drag actually moves the column instead of being overridden by the cell width */
  .book-main table.radar th, .book-main table.radar td { width: auto !important; min-width: 0 !important; }
  /* ...and neutralise the other half of that legacy rule, the one that makes the SEVENTH
     column wrap. With columns movable, "the 7th" is whatever somebody dragged there this
     morning, so a column would start wrapping because of where it sits rather than what it
     holds. The two columns that do want to wrap say so by name, below, and are exempted
     here by name so they keep wrapping in position 7 like anywhere else. */
  .book-main table.radar th:nth-child(7):not([data-col="adoptnote"]):not([data-col="scorereason"]):not([data-col="pinnote"]),
  .book-main table.radar td:nth-child(7):not([data-col="adoptnote"]):not([data-col="scorereason"]):not([data-col="pinnote"]) { white-space: nowrap; }
  .book-main table.radar td { overflow: hidden; }
  /* the name column ellipsizes cleanly (…) instead of hard-cropping mid-letter; full name on hover via title.
     the flex chain needs min-width:0 so the text box can shrink inside the cell. */
  .book-main .acct-cell { min-width: 0; }
  .book-main .acct-cell > .xchev { flex-shrink: 0; }
  .book-main .acct-tt { flex: 1; min-width: 0; overflow: hidden; }
  .book-main .acct-name { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* secondary id line under the account name -- small grey, per the design guide's .account .sub */
  .book-main .acct-tt .sub { font: 400 11px var(--sans); color: var(--ink-30); line-height: 1.2; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* An address is a string to copy, not a word to read: a step down in size and weight from
     the names beside it, and clipped rather than wrapped, because a second line in this column
     would set the height of every row in the table for the one column nobody scans down.
     The full value is on the cell's title, so a clipped one is still recoverable. */
  .book-main .eml { display: block; max-width: 100%; font: 400 12px var(--sans); color: var(--ink-70); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Access. Words, not chips — the Last visit column beside it already prints "Removed" and
     "Not on Mighty" as plain text where there is no date, and the same fact set in two
     typefaces in adjacent columns reads as two facts. Four words on one scale of attention,
     which is the only thing the colour is doing: access taken away is the one to act on and
     the only one coloured; off the roster with no reason recorded is worth noticing, so it
     carries the weight without the colour; On Mighty is ordinary; and never having been on it
     is a fact about the record rather than a fault, so it sits at the weight the app gives
     everything it does not know. */
  .book-main .acc { font: 500 12px var(--sans); color: var(--ink-70); white-space: nowrap; }
  .book-main .acc-removed { color: var(--terracotta-deep); font-weight: 600; }
  .book-main .acc-off { color: var(--ink-50); font-weight: 600; }
  .book-main .acc-never { color: var(--ink-30); }
  /* Provenance, in the mark the docs and the drawer already use for the four systems.
     Unscoped from .book-main in v8.13: the contact drawer reads the same fact in two places
     now, and an unsized SVG inherits nothing and renders at its natural size — which drew a
     280px people glyph in the middle of Record history. A component that names its own
     class should carry its own size. */
  .src-cell { display: inline-flex; align-items: center; gap: 7px; font: 500 12px var(--sans); color: var(--ink-70); white-space: nowrap; }
  /* the sync panel's mark at table scale — quiet ink, never a per-source colour: the word
     beside it already names the source, and a coloured glyph would say it twice */
  .src-ico { display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px; color: var(--ink-40); flex-shrink: 0; }
  .src-ico svg { width: 100%; height: 100%; display: block; }
  /* Copy — an icon button that sits after a value rather than a control anyone hunts for.
     Quiet until the row is hovered, because a column of live-looking buttons reads as a
     column of things to click. The tick is the whole confirmation: no toast, no reflow. */
  /* At rest, not on hover. It was opacity:0 until the pointer was on the row, which is the
     right instinct for an edit handle and the wrong one here: nothing else on the row says
     the value can be taken, so a column of addresses looked like a column of addresses and
     the one control that turns it into a Bcc line was invisible until you happened to be
     over it. Discoverability is the whole job of this mark. It stays quiet by being drawn
     in --ink-30 rather than by being absent, and hover still does what it always did —
     forest on sand — so the affordance is announced at rest and confirmed under the
     pointer. Reveal-on-hover survives everywhere it belongs (row actions, editable-cell
     carets); this one was never in that family. */
  .cp { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex-shrink: 0;
        border: 0; padding: 0; border-radius: var(--r-sm); background: transparent; cursor: pointer;
        color: var(--ink-30); transition: color .12s var(--ease), background .12s var(--ease); }
  .cp svg { width: 13px; height: 13px; display: block; }
  .cp:hover { color: var(--forest); background: var(--sand); }
  .cp:focus-visible { outline: 2px solid var(--forest); outline-offset: 1px; }
  .cp.ok { color: var(--sage-deep); }
  .eml-cell { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
  /* a flex item will not shrink below its content width without this, so the address stops
     being clipped by the cell and starts pushing the copy mark out of it */
  .eml-cell .eml { min-width: 0; }
  .kv-v .cp { margin-left: 6px; vertical-align: middle; }
  .book-main th[data-col="adoptnote"], .book-main th[data-col="scorereason"], .book-main th[data-col="pinnote"] { white-space: nowrap; }
  /* Pinned note + Adoption note + Score reason are the wrapping columns, each wide enough for
     ~2 lines; everything else stays single-line, so row height stays minimal while content
     fits naturally */
  .book-main td[data-col="adoptnote"], .book-main td[data-col="scorereason"], .book-main td[data-col="pinnote"] { white-space: normal; vertical-align: middle; }
  /* clamp every long-text column to 2 lines (ellipsis + hover title for the rest) so row height stays uniform */
  .book-main td[data-col="adoptnote"] .churn-reason, .book-main td[data-col="scorereason"] .churn-reason,
  .book-main td[data-col="pinnote"] .churn-reason { white-space: normal; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  /* score reason is model-derived context — a touch quieter than the human adoption note */
  .book-main td[data-col="scorereason"] .score-why { opacity: .82; }
  /* Both note columns are somebody's own words about the account, and both are written the
     same way, so they read the same: a step darker than the score reason next to them, which
     is the model talking. Score reason keeps .churn-reason's own grey. */
  .book-main td[data-col="pinnote"] .churn-reason,
  .book-main td[data-col="adoptnote"] .churn-reason { color: var(--ink-70); }
  .book-main td[data-col="pinnote"] .churn-reason.none,
  .book-main td[data-col="adoptnote"] .churn-reason.none { color: var(--ink-30); }

  /* ── the worklist columns ─────────────────────────────────────────────────────
     Pinned note, Open tasks, the task count and Adoption note. Three of the four are
     written in place, which makes each cell a control as well as a reading — and a table
     80 rows deep cannot afford to say so 80 times over. So nothing is added to the row at
     rest: hovering the row turns the writable cells into fields (paper on the row's mute,
     a hairline around them), and hovering one of them shows the verb it offers — a pencil
     where there is something to change, a plus where there is not.
     The negative margin is what lets a cell take the row's own padding as its field, rather
     than drawing a smaller box inside a cell and leaving a dead margin you can click on
     without hitting anything. */
  .nc-cell, .tk-cell { position: relative; display: block; margin: -6px -8px; padding: 6px 8px; border-radius: var(--r-sm); transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
  .nc-cell.can, .tk-cell.can { cursor: text; }
  .acct-row:hover .nc-cell.can, .acct-row:hover .tk-cell.can { background: var(--paper); box-shadow: inset 0 0 0 1px var(--hairline); }
  .nc-cell.can:hover, .tk-cell.can:hover { background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink-30); }
  /* the verb, bottom-right on a note (under two lines of text) and top-right on the task
     list (whose own rows end in a due chip). It rides its own paper pad so the text it
     overlaps stays legible rather than showing through it. */
  .nc-act { position: absolute; right: 3px; bottom: 3px; width: 21px; height: 21px; display: flex; align-items: center; justify-content: center;
    border: 0; padding: 0; border-radius: var(--r-sm); background: var(--paper); box-shadow: -7px 0 7px 2px var(--paper);
    color: var(--ink-30); opacity: 0; pointer-events: none; transition: opacity var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
  /* on a task cell the plus is a real button — the lines under it are click targets of their
     own, so it cannot rely on the click falling through to the cell the way a note's does */
  .tk-cell .nc-act { top: 3px; bottom: auto; pointer-events: auto; cursor: pointer; }
  .nc-act svg { width: 13px; height: 13px; }
  .acct-row:hover .nc-cell.can .nc-act, .acct-row:hover .tk-cell.can .nc-act { opacity: 1; }
  .nc-cell.can:hover .nc-act, .tk-cell.can:hover .nc-act { color: var(--forest); }
  .tk-cell .nc-act:hover { color: var(--forest); background: var(--forest-wash); box-shadow: -7px 0 7px 2px var(--paper); }
  /* notes arrive on their own read, a moment after the table does. An em dash while that is
     still out would be the table answering "there is no pinned note" before it knows. */
  .nc-wait { color: var(--ink-30); font-size: 13px; letter-spacing: .08em; }
  /* One open task, at table scale: the tick, the title on one line, the due chip. A step
     smaller than the table's 13px — two of these stack in the height one line of body text
     gets, and at full size a pair of them shouts louder than the account name does. */
  /* 3px, not 4: at 4 a cell holding two tasks came out 1px taller than the row's natural
     height and every account with tasks on it sat a pixel below the ones without */
  .tk-cell { display: flex; flex-direction: column; gap: 3px; }
  /* The overflow line is paid for out of this column's own padding, not out of the row.
     Every other cell keeps the table's 10px; this one runs at 5 and gains 10px of room,
     which is a shade more than the 10px line costs. The cell is vertically centred either
     way, so nothing else in the row notices — and a row with three open tasks stays exactly
     as tall as one with none. */
  .book-main td[data-col="tasks"] { padding-top: 5px; padding-bottom: 5px; }
  .book-main td[data-col="tasks"] .tk-cell { margin-top: -5px; margin-bottom: -5px; padding-top: 5px; padding-bottom: 5px; }
  .tkm { display: flex; align-items: center; gap: 7px; font-size: 11.5px; line-height: 1.35; min-width: 0; cursor: pointer; }
  .tkm input { accent-color: var(--forest); width: 12px; height: 12px; flex: none; margin: 0; cursor: pointer; }
  .tkm-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
  .tkm .tk-due { font-size: 11px; }
  .tkm:hover .tkm-t { color: var(--forest); }
  /* How many did not fit — its own line under the list, indented to sit under the task titles
     rather than under the checkboxes, so it reads as the list continuing. It shared the last
     task's line until this, and a second figure after the due chip shunted the chip off the
     right edge on exactly the rows that had one, which is the whole use of that column. */
  .tkm-more { display: block; width: max-content; margin: -1px 0 0 19px; font: 500 10px var(--sans); color: var(--ink-30);
    line-height: 1; cursor: pointer; white-space: nowrap; transition: color var(--dur-fast) var(--ease); }
  .tkm-more:hover { color: var(--forest); }
  /* open and done, in the ring and tick the onboarding checklist already uses for exactly
     these two states. The open count is the figure; done is the context behind it. */
  .tkc { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
  .tkc-n { display: inline-flex; align-items: center; gap: 3px; font: 700 12px var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); }
  .tkc-n svg { width: 12px; height: 12px; flex: none; }
  .tkc-n.open svg { color: var(--forest); }
  .tkc-n.open.late, .tkc-n.open.late svg { color: var(--terracotta-deep); }
  .tkc-n.done { color: var(--ink-50); font-weight: 600; }
  .tkc-n.done svg { color: var(--sage-deep); }
  .tkc-n.zero, .tkc-n.zero svg { color: var(--ink-30); font-weight: 500; }
  /* ── the product columns (v6.0) ───────────────────────────────────────────────────────
     A typed product value is a note cell with a number in it: same hover-to-a-field, same
     verb bottom-right, same click target. It gets .nc-cell for all of that and .pv-cell for
     the one thing that differs — a note wraps to two lines and a value never should, because
     a column of figures is read straight down and a wrapped one breaks the line it is read on. */
  .pv-cell .pv-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--ink); }
  .pv-cell .pv-val.none { color: var(--ink-30); }
  /* the verb sits mid-height here rather than under the text: there is only ever one line */
  .pv-cell .nc-act { top: 50%; bottom: auto; transform: translateY(-50%); }
  /* MRR (v9.06) is the one typed cell in a right-aligned column, so its verb cannot sit on
     the right the way the product columns' does — it would land on top of the digits. The
     figure keeps the alignment every other number in this table has; the pencil moves to the
     left edge, which in a right-aligned cell is the part that is always empty. */
  .pv-cell.pv-num .pv-val { text-align: right; }
  .pv-cell.pv-num .nc-act { right: auto; left: 3px; }
  /* A ladder in a table cell. The chip in the drawer is a 36px bordered box the width of its
     half-row; that is a form control, and 80 of them stacked would turn the table into a form.
     Here it is the mark and the words, like every other chip in this table — the caret that
     fades in on row hover is what says it can be changed. */
  .pg-chip { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font: 600 12px var(--sans); color: var(--ink); }
  .pg-chip .es-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  .pg-chip .es-dot.es-ico { width: 14px; height: 14px; border-radius: 0; background: none; }
  .pg-chip .es-lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pg-chip .es-lbl.is-unset { color: var(--ink-30); font-weight: 500; }
  /* one typed field, in the popover the note and task cells use */
  .cmp2.cmp-fg .cmp2-bar { padding: 10px 10px 10px 12px; }
  /* a box rather than a line: the pencil goes to the top of it, the way the task composer's
     does, instead of floating at the vertical middle of three empty rows */
  .cmp2.cmp-fg.is-long .cmp2-bar { align-items: flex-start; padding-top: 12px; }
  .cmp2.cmp-fg.is-long .cmp2-ic { margin-top: 2px; }
  .cmp2.cmp-fg .cmp2-title { font: 600 13.5px var(--sans); }
  .cmp2.cmp-fg .cmp2-text { min-height: 66px; font-weight: 400; }
  .fgc-unit { font: 600 13.5px var(--sans); color: var(--ink-30); flex-shrink: 0; margin-right: -6px; }
  .fgc-lab { font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-50); margin-left: 4px; }
  /* the drawer's composer, drawn over the table. Fixed viewport coordinates for the same
     reason the chip menus use them: this table scrolls in both directions and clips
     everything inside it. Its own width, because a note is written in sentences and the
     column it was opened from may be 90px wide. Above the list modal (61) because these
     same cells render inside one, below the drawer's scrim (70) because nothing in this
     table is reachable while that is up. */
  .nc-pop { position: fixed; z-index: 65; width: min(430px, calc(100vw - 24px)); }
  /* one short figure — a price, a points count — in a box the size of the answer */
  .nc-pop.nc-narrow { width: min(304px, calc(100vw - 24px)); }
  /* the task editor carries an inline margin for sitting between rows in the drawer's list,
     which here would drop the box below the point it was measured at */
  .nc-pop .cmp2 { box-shadow: var(--shadow-pop); margin: 0 !important; }
  /* A dismissal the composer refused — see ncDismiss(). The popover is portaled to <body>,
     so a click anywhere outside it used to close it and take whatever had been typed with
     it. It stays open now, and this is how it says so: one short shift, and an amber ring
     that fades, pointing the eye back at the two buttons that can actually close it. */
  @keyframes ncNudge { 0% { transform: translateX(0); } 20% { transform: translateX(-4px); }
    45% { transform: translateX(4px); } 70% { transform: translateX(-2px); } 100% { transform: translateX(0); } }
  @keyframes ncNudgeRing { from { box-shadow: 0 0 0 2px var(--amber), var(--shadow-pop); } to { box-shadow: var(--shadow-pop); } }
  .nc-pop.nc-nudge { animation: ncNudge .3s ease-in-out; }
  .nc-pop.nc-nudge .cmp2 { animation: ncNudgeRing 1.2s ease-out; }
  @media (prefers-reduced-motion: reduce) { .nc-pop.nc-nudge { animation: none; } }
  /* uniform chip widths so grade / confidence / freshness read as tidy aligned tags, not a ragged edge */
  .book-main td[data-col="state"] .state-badge { min-width: 94px; justify-content: center; }
  .book-main td[data-col="confidence"] .hs-meta-chip,
  .book-main td[data-col="freshness"] .hs-meta-chip { min-width: 92px; justify-content: center; }
  .book-main tbody td { padding-top: 10px; padding-bottom: 10px; }
  /* the show-more strip in the account table. This row is as wide as the table, and the table is
     wider than the window — so a centred label lands somewhere off to the right, past the edge of
     what you can see. That is the whole bug: the visible half of the band looked blank, and the
     only pixels that did anything were the ones you had to scroll sideways to reach. The label
     rides the left edge of the scroll viewport instead, in line with the frozen account column —
     the one strip of this table that is always on screen. The overflow reset is what lets it:
     `overflow: hidden` on a cell makes that cell the scrollport, and a sticky child would then
     stick to a box 1600px wide, which is the same as not sticking at all. */
  /* the cell keeps the design-system's 16px first-column inset (it is a first child like any
     other), which would sit in front of the sticky label and then vanish the moment it stuck —
     the words would step 16px left on the first scroll. The inset moves onto the label itself,
     where it holds at every scroll position and lines the label up with the account names. */
  .book-main tr.lw-more-row td { overflow: visible; padding-left: 0; }
  /* 40px from the viewport edge to the first letter = the cell's 16px inset + the 24px the expand
     caret and its gap take up in an account row (.xchev 16 + .acct-cell gap 8). Lining up with the
     cell edge left the label hanging under the carets; lining up with the account names themselves
     is what reads as a column. The pill's own 12px padding is part of that sum, which is why the
     offset is 28 in both places — the same number twice so the label cannot step sideways at the
     moment it starts sticking. */
  .book-main tr.lw-more-row .lw-more { justify-content: flex-start; padding-left: 28px; padding-right: 0; }
  .book-main tr.lw-more-row .lw-more-in { position: sticky; left: 28px; }
  /* column resize handle on the right edge of each header */
  .book-main thead th { position: relative; }
  /* The handle used to be centred on the shared edge (right:-4, 9px wide) — but a header is
     sticky with a z-index, so it is its own stacking context, and the NEXT header paints over
     everything hanging past the edge. Half of this control has therefore never been clickable
     and the real target was 4px. It now sits entirely inside its own column: 10px, all of it
     reachable, and no longer arguing with the next column's drag grip over the same pixels. */
  .col-resize { position: absolute; top: 0; right: 0; width: 10px; height: 100%; cursor: col-resize; z-index: 4; user-select: none; touch-action: none; }
  .col-resize::after { content: ""; position: absolute; top: 22%; right: 3px; width: 2px; height: 56%; border-radius: 2px; background: var(--forest-line); opacity: 0; transition: opacity var(--dur-fast) var(--ease); }
  .book-main thead th:hover .col-resize::after { opacity: 1; }
  /* a header is a control, not prose: dragging one across its neighbours used to leave a
     blue text selection trailing behind the column */
  .book-main thead th { user-select: none; -webkit-user-select: none; }
  /* ── moving a column ──
     The grip lives inside the header's own 12px inset, so it never crowds the label — even
     in the 60px columns — and it appears on hover, the same way the resize handle does. It
     is a cue, not the target: the drag starts anywhere in the header (see the reorder
     handler), because a 5px hit area on a 60px column is a target nobody finds twice. */
  /* the dots are 5px because that is all the header's 12px inset can spare, but the thing
     you can put a cursor on is the full inset: a 5px target is a target you hit once and
     never find again. Hit area on the span, dots on the ::after inside it. */
  /* The dots are 5px because that is all the header's 12px inset can spare, but the thing you
     can put a cursor on is the whole inset: a 5px target is one you hit once and never find
     again. Hit area on the span, dots on the ::after inside it. It reaches to the column edge
     and no further — the neighbour's resize handle now stops there too, so the two controls
     meet rather than overlap. */
  .col-move { position: absolute; left: 0; top: 0; width: 13px; height: 100%; cursor: grab; opacity: 0; transition: opacity var(--dur-fast) var(--ease); z-index: 3; }
  .col-move::after { content: ""; position: absolute; left: 3px; top: 50%; transform: translateY(-50%); width: 5px; height: 11px;
    background-image: radial-gradient(circle, var(--ink-30) 1px, transparent 1px); background-size: 3px 4px; }
  .book-main thead th:hover .col-move { opacity: .8; }
  .col-move:hover { opacity: 1 !important; }
  .col-move:hover::after { background-image: radial-gradient(circle, var(--ink-50) 1px, transparent 1px); }
  /* the column being carried: still in place, but stepped back so the drop line reads as
     the live answer and the header does not look like it has already moved */
  .book-main thead th.is-moving { opacity: .4; }
  .book-main.col-moving { cursor: grabbing; }
  .book-main.col-moving thead th { cursor: grabbing; }
  /* where it will land. Full table height so the line reads as a column boundary rather
     than a mark on the header strip; above the frozen column's z-4 so it stays visible
     when you drag past it. */
  .col-drop { position: absolute; top: 0; width: 2px; background: var(--forest); border-radius: 2px; z-index: 6; pointer-events: none; box-shadow: 0 0 0 2px var(--forest-wash); }
  /* what you are carrying, under the cursor — the column's own label, nothing else */
  .col-ghost { position: fixed; left: 0; top: 0; z-index: 240; pointer-events: none; background: var(--forest); color: #fff;
    font: 700 10px var(--display); text-transform: uppercase; letter-spacing: .06em; padding: 5px 9px; border-radius: var(--r-sm); box-shadow: var(--shadow-pop); white-space: nowrap; }
  /* columns show/hide menu -- proper checkbox rows */
  .cols-ic { width: 14px; height: 14px; }
  /* Wider and much taller than the other filter menus, because it is not one: it is the list
     of every column in the order the table uses them, and 23 rows through a 280px window was
     four visible at a time. Right-aligned rather than left — this is the last control on the
     toolbar, so a menu growing rightwards runs off a 1280px screen. position: relative so the
     drop line inside it is placed against the menu, not the page. */
  .cols-menu { min-width: 300px; max-height: min(58vh, 520px); padding: 6px; left: auto; right: 0; position: absolute; }
  /* header sticks to the top of the scroll area so the "X of Y shown" count stays visible while scrolling */
  .cols-menu-h { position: sticky; top: -6px; z-index: 2; font: 700 10px var(--display); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-50); padding: 7px 10px 7px; background: var(--paper); border-bottom: 1px solid var(--hairline); margin-bottom: 2px; }
  /* Two rows, each with something on the left and something on the right, so the block is
     flush both ways and nothing hangs in a corner. Row one names the list and counts it; row
     two says what you can do to it and offers the way back. The hint lost its second
     sentence -- that the layout is saved is what the first change of a session says out
     loud, and a menu header is not the place to say it a second time. */
  .cols-menu-h .cmh-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .cols-menu-h .cmh-row2 { align-items: center; margin-top: 6px; }
  .cols-menu-h .cmh-note { font: 500 10.5px var(--sans); text-transform: none; letter-spacing: .01em; line-height: 1.4; color: var(--ink-40); }
  .cols-menu-h .cols-count { font: 600 10px var(--sans); text-transform: none; letter-spacing: .01em; color: var(--ink-40); font-variant-numeric: tabular-nums; }
  /* ── a menu row: grip, then the checkbox button ──
     The grip goes BEFORE the checkbox because that is the reading order of what it does —
     this row moves, and here is what it shows. It is visible at rest (unlike the header grip,
     which appears on hover): a menu is where you go to look for the controls, so the control
     has to be there when you look. */
  .col-row { display: flex; align-items: center; gap: 2px; border-radius: var(--r-sm); }
  .col-row .col-check { flex: 1; min-width: 0; }
  .col-grip { flex: 0 0 auto; width: 14px; height: 28px; position: relative; cursor: grab; opacity: .45; transition: opacity var(--dur-fast) var(--ease); touch-action: none; }
  .col-grip::after { content: ""; position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 5px; height: 13px;
    background-image: radial-gradient(circle, var(--ink-30) 1px, transparent 1px); background-size: 3px 4px; }
  .col-row:hover .col-grip { opacity: .85; }
  .col-grip:hover { opacity: 1; }
  .col-grip:hover::after { background-image: radial-gradient(circle, var(--ink-50) 1px, transparent 1px); }
  /* the frozen column keeps the indent so every label still lines up, and shows nothing to grab */
  .col-grip.off { cursor: default; opacity: 0; }
  .col-row.is-moving { opacity: .4; }
  .cols-menu.reordering .col-check { pointer-events: none; }   /* no accidental toggle on drop */
  /* where the row will land, drawn across the menu */
  .col-rowdrop { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--forest); border-radius: 2px; z-index: 5; pointer-events: none; box-shadow: 0 0 0 2px var(--forest-wash); }
  /* Reset sits at the TOP now, in the sticky header with the count and the hint, rather than
     pinned across the foot. As a full-width bar under the list it read as the menu's main
     action -- the last thing you see, the width of everything, in the place a modal puts
     "Save" -- when it is the one thing in here you almost never want. Same reason it is a
     bordered secondary button and not a bar: it should look like a way out, not the way on. */
  /* Small, bordered, and on the same row as the hint — so it balances the hint the way the
     count balances the title, instead of being a lone object anchored to one edge. */
  .cols-reset { flex: 0 0 auto; height: 24px; box-sizing: border-box; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-pill); color: var(--forest); font: 600 10.5px var(--sans); text-transform: none; letter-spacing: 0; cursor: pointer; transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
  .cols-reset:hover:not([disabled]) { border-color: var(--forest); background: var(--forest-wash); }
  .cols-reset[disabled] { color: var(--ink-30); border-color: var(--hairline); cursor: default; }
  /* unchosen columns read lighter + muted; a chosen column bolds up so the active set is scannable at a glance */
  .col-check { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; border: 0; padding: 7px 10px; border-radius: var(--r-sm); font: 500 12.5px var(--sans); color: var(--ink-50); cursor: pointer; transition: color var(--dur-fast) var(--ease); }
  .col-check.on { color: var(--ink); }
  .col-check.on .col-lab { font-weight: 700; }
  .col-check:hover:not([disabled]) { background: var(--mute); color: var(--ink); }
  .col-check[disabled] { cursor: default; color: var(--ink-50); }
  .col-check[disabled] .col-lab { font-weight: 500; }
  .cbx { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--hairline-strong); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--paper); transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
  .cbx svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity var(--dur-fast) var(--ease); }
  .col-check.on .cbx { background: var(--forest); border-color: var(--forest); }
  .col-check.on .cbx svg { opacity: 1; }
  .col-check[disabled] .cbx { background: var(--forest-wash); border-color: var(--forest-line); }
  .col-check[disabled] .cbx svg { opacity: 1; stroke: var(--forest); }
  .col-lab { flex: 1; }
  .col-lock { font: 600 9.5px var(--display); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-30); }

  /* the actual date under a relative recency value in the account drawer */
  .ahx-stat .d2 { font: 500 11px var(--sans); color: var(--ink-50); margin-top: 2px; font-variant-numeric: tabular-nums; }

  /* ── "how this works": one calm explainer pattern on every page ── */
  .howto-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
  .howto-btn { display: inline-flex; align-items: center; gap: 7px; font: 600 11px var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-50); background: transparent; border: 1px solid var(--hairline-strong); border-radius: var(--r-pill); padding: 7px 13px; cursor: pointer; transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
  .howto-btn:hover, .howto-btn.on { color: var(--forest); border-color: var(--forest-soft); background: var(--forest-wash); }
  .howto-btn .howto-chev { transition: transform var(--dur) var(--ease); }
  .howto-btn.on .howto-chev { transform: rotate(180deg); }
  .howto { background: var(--mute); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 20px 24px; margin: 6px 0 24px; }
  .howto-lead { font-size: 13.5px; color: var(--ink-70); line-height: 1.6; max-width: 78ch; margin: 0 0 16px; }
  .howto-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(214px, 1fr)); gap: 16px 28px; }
  .howto-k { font: 700 11px var(--display); text-transform: uppercase; letter-spacing: .05em; color: var(--forest); margin-bottom: 4px; }
  .howto-v { font-size: 12.5px; color: var(--ink-70); line-height: 1.5; }
  /* A point is a definition, not an essay. Three lines is the budget; anything longer
     belongs on the chart it describes or in Docs. The cap is enforced visually rather
     than by trust: before it, one 1,700px point on Overview stretched the grid row and
     left three columns of white beside it. */
  .howto-v p { margin: 0 0 6px; font-size: 12.5px; line-height: 1.5; }
  .howto-v p:last-child { margin-bottom: 0; }
  .howto-v b, .howto-v strong { color: var(--ink); font-weight: 650; }

  /* ── the explainer's block chart: what feeds the page → what it does → what you get ──
     Same grammar as the health-score flow (numbered step, box, chevron between), at the
     size an orientation panel can carry. It reads left to right on a wide screen and
     folds to a stack on a narrow one, where the chevrons turn to point down. */
  /* Wraps rather than squeezes. flex:1 1 0 with min-width:0 let four steps compress to
     slivers in any container narrower than the page — the steps kept their text and lost
     their width, which is the one failure a block chart cannot survive. A flex basis with
     a real floor means the row breaks onto a second line instead: four across at full
     width, two-by-two in a narrow column, one per line on a phone. */
  .hw-flow { display: flex; align-items: stretch; gap: 0; margin: 0 0 18px; flex-wrap: wrap; row-gap: 8px; }
  .hw-step { flex: 1 1 200px; min-width: 190px; background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-md); padding: 11px 13px 12px; display: flex; flex-direction: column; gap: 3px; }
  .hw-step.src  { background: var(--forest-wash); border-color: var(--forest-line); }
  .hw-step.out  { background: rgba(95,116,136,0.09); border-color: rgba(95,116,136,0.30); }
  .hw-step.calc { background: rgba(252,180,43,0.10); border-color: rgba(252,180,43,0.40); }
  .hw-sh { display: flex; align-items: center; gap: 7px; }
  .hw-n { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: var(--forest); color: var(--cream); font: 700 9.5px var(--sans); flex: none; }
  .hw-step.calc .hw-n { background: var(--amber-deep); }
  .hw-step.out  .hw-n { background: var(--slate); }
  .hw-t { font: 700 11.5px var(--sans); color: var(--ink); line-height: 1.3; }
  .hw-d { font-size: 11.5px; color: var(--ink-70); line-height: 1.45; }
  .hw-arr { flex: 0 0 22px; display: flex; align-items: center; justify-content: center; color: var(--forest-soft); }
  .hw-arr svg { width: 17px; height: 17px; }
  .hw-arr .dn { display: none; }
  @media (max-width: 840px) {
    .hw-flow { flex-direction: column; }
    .hw-arr { flex: 0 0 20px; height: 20px; }
    .hw-arr .rt { display: none; }
    .hw-arr .dn { display: block; }
  }

  /* "worth knowing" — the one or two things that cause a misreading if nobody says them.
     Amber rule on the left, never a full callout box: it sits inside the panel and must
     not compete with the page behind it. */
  .hw-minds { display: grid; gap: 8px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--hairline); }
  .hw-mind { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--ink-70); line-height: 1.5; }
  .hw-mind svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--amber-deep); }
  .hw-mind b { color: var(--ink); font-weight: 650; }

  /* engagement league: a key for the recency-mix stacked bars */
  .eng-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: -6px 0 12px; }
  .eng-legend .eng-legend-note { font-size: 11.5px; color: var(--ink-50); }

  /* ── the engagement wall ──
     One row per account, one cell per weekly Mighty pull, cell darkness = the share of that
     account's contacts active that week. Eight weeks of eighty accounts is the one view where
     a fade reads as a shape instead of as a column of numbers nobody compares.
     It scrolls sideways on a narrow screen rather than shrinking its cells: a heat cell below
     about 26px stops being readable and starts being wallpaper. */
  /* full bleed, like every other table.radar in the app. This inset was what pushed the
     grid and its column headers 18px past the card title above them. */
  .wall-wrap { overflow-x: auto; padding: 0 0 16px; }
  .wall tbody tr:hover .wall-n .acct-name { color: var(--forest); }
  /* the cell. 38x30 inside a 3px paper border, which is where the grid's gaps come from —
     near enough to square that a run of them reads as a band of colour rather than a set of
     stripes, and tall enough to carry its own number. The radius is --r-sm, the token for a
     small inset, because these are 640 of the smallest surfaces in the app. */
  /* The gap between cells IS this border, and it is a HOLE rather than a paper-coloured
     object: transparent, so whatever sits behind the row shows through it. At rest that is
     the card, which is why the gaps read as paper; on a hovered row it is the row's own grey,
     so the band simply continues behind the cells the way it does either side of the grid.
     Nothing about a cell changes on hover, which is the point — the row is what highlights.
     (This replaced a rule that repainted every cell's border to grey on hover. Same picture
     when it worked, but it made the cell a participant in the hover, and any drift between
     the two colours showed up as eight pale islands sitting on the band.)
     Which is also why the radius is 11px and not the --r-sm the cell looks like it has:
     border-radius applies to the BORDER box, and the corner you actually see is the padding
     box, whose radius is the outer radius minus the border width. At --r-sm (6px) against a
     5px border that came out at 1px — the cells had been reading as squares ever since the
     gaps were opened up. 11px minus the border lands the visible corner back at ~6px.
     Uneven on purpose: 5px left and right against 4px top and bottom, which draws the eight
     pulls as eight separate readings rather than one continuous bar, while keeping each
     account's row reading as a run across. At an even 3px all round the cells were touching
     closely enough that a row of four 1s looked like a single wide block. */
  /* background-clip: padding-box is load-bearing, not tidiness. A background paints under
     its own border by default, and this cell's border IS the gap between cells — so the
     moment that border went transparent on hover, every cell's fill flooded out into it
     and the eight rounded rectangles swelled to the full border box and all but touched.
     Clipped to the padding box the fill cannot reach the border at all, so the cells keep
     exactly the shape they have at rest and the hover does the one thing it should: put
     a grey band behind them. */
  .wall .wall-c { width: 38px; height: 30px; text-align: center; background-clip: padding-box; border: 4px solid transparent; border-left-width: 5px; border-right-width: 5px; border-radius: 11px; font: 600 10px var(--sans); color: rgba(55,63,65,0.52); }
  .wall .wall-c.deep { color: rgba(255,255,255,0.82); }
  /* The latest pull is marked in the header and NOWHERE ELSE. It carried a 1px inset ring on
     every cell in its column, and that was wrong twice over. An inset shadow is drawn against
     the padding box while the radius is set on the border box, so with a 4/5px border between
     them the ring curved on a tighter arc than the fill it sat inside and the corners visibly
     disagreed. Worse, a ring drawn around one column of cells is the vocabulary this app uses
     for selection — the column read as though somebody had highlighted it, and on hover it
     competed with the row band instead of joining it. A column heading in full ink says the
     same thing without putting a state on 80 cells. */
  /* the delta chips line up under each other instead of drifting with the width of a number */
  .wall td.wall-d .trend, .wall td.wall-d .dval { min-width: 44px; display: inline-block; text-align: right; }
  /* ── the wall's own layer over table.radar ──────────────────────────────────────────
     It wears table.radar for the header band, the sort indicator, the row hover and the
     grade chip every other table in the app has. What it needs on top is everything that
     makes a heat grid a heat grid rather than a spreadsheet: a name column that does not
     eat the spare width, weekly headers light enough that eight of them fit across a
     laptop without stretching their columns, and cells near enough to square that the
     shade reads as a block of colour instead of a stripe.

     Cell gaps are the 3px paper borders, which is why this one keeps
     border-collapse:separate. Every column is pinned to its contents and the trailing
     .wall-sp swallows the rest, so the grid keeps its proportions however wide the card. */
  table.radar.wall { border-collapse: separate; border-spacing: 0; }
  table.radar.wall thead th { padding: 12px 5px 11px; text-align: center; }
  /* 20px — the qhead's own inset, so the card title, the ACCOUNT header and the account
     names beneath it all start on the same edge */
  table.radar.wall thead th:first-child { text-align: left; padding-left: 20px; }
  table.radar.wall tbody td:first-child { padding-left: 20px; }
  table.radar.wall tbody td[colspan] { padding-left: 20px; padding-right: 20px; }
  table.radar.wall thead th.num:not(.wall-h) { text-align: right; }
  table.radar.wall thead th.num:not(.wall-h) .th-in { justify-content: flex-end; }
  /* A date is a scale label, not a column title. At the shared 11px/0.06em it set a 64px
     minimum on every weekly column and pulled the cells out to two and a half times their
     own height — the header was choosing the geometry of the grid. Dropped to the size the
     wall used before it joined table.radar, so the cell decides again. */
  table.radar.wall thead th.wall-h { font-size: 9.5px; letter-spacing: .03em; padding-left: 2px; padding-right: 2px; }
  table.radar.wall thead th.wall-h .th-in { justify-content: center; gap: 3px; }
  table.radar.wall thead th.wall-h .sort-ind { width: 9px; height: 11px; }
  table.radar.wall thead th.wall-h .sort-ind svg { width: 9px; height: 11px; }
  /* the latest pull is the reading everybody came for; it keeps full ink while the seven
     behind it stay quiet */
  /* full ink, not --ink-70: this is now the only mark the latest pull gets, so it has to
     carry the emphasis on its own against seven headings at --ink-50 */
  table.radar.wall thead th.wall-h-now { color: var(--ink); }
  /* 6px above and below rather than 2. The cells carry their own 3px paper border, so at
     2px the gap between one account's row of cells and the next was 10px against 6px
     between the cells within a row — near enough to equal that the grid read as one
     field of colour and the eye lost which row it was on halfway across eight columns.
     At 6px the rows separate at 18px, three times the gap inside a row, and each
     account reads as its own line. */
  table.radar.wall tbody td { padding: 6px 3px; border-top: 0; }
  /* ...except the heat cells, whose top border IS their gap. `border-top: 0` above exists to
     kill table.radar's row hairline and outranked .wall .wall-c on specificity, so the cells
     had a 4px gap below and none above — half the space between rows that the 5px sides give
     between columns, which is what made a column read as a continuous bar. Restored here at a
     higher specificity than the reset rather than by weakening it, and transparent like the
     other three so the row behind shows through it. */
  table.radar.wall tbody td.wall-c { border-top: 4px solid transparent; }

  /* a percentage rather than 1%: the grid is a fixed 8 x 44px and the card is not, so on a
     wide screen the slack has to go somewhere. Split it — the name column takes a quarter of
     the table and grows with it, the .wall-sp takes the rest. All of it in the name column
     puts a few hundred pixels of cream between a school and its own row of cells; all of it
     past the end leaves the table looking like it stopped early. */
  table.radar.wall th:first-child, table.radar.wall td:first-child { width: 24%; min-width: 200px; }
  /* grade sits in its own column so the account names form one straight left edge. Inline
     after the name the chip started at a different x on all 80 rows. */
  table.radar.wall th.wall-g, table.radar.wall td.wall-g { width: 1%; white-space: nowrap; padding-left: 10px; padding-right: 10px; text-align: left; }
  /* tier, in the compact marker-only form — the column header already says the word, so the
     chip repeating "Tier 3" on all 80 rows would be 80 copies of the label. Same width rule
     as grade beside it, and centred because the marker is a square rather than a word. */
  table.radar.wall th.wall-t, table.radar.wall td.wall-t { width: 1%; white-space: nowrap; padding-left: 8px; padding-right: 8px; text-align: center; }
  table.radar.wall .wall-m { color: var(--ink-50); font-size: 11.5px; padding-right: 14px; font-weight: 600; }
  table.radar.wall thead th.wall-g { text-align: left; }
  /* table.radar reserves its 7th column for the Book of business churn-reason note — 230px
     and wrapping. Positional rules do not travel: on the wall the 7th column is the fifth
     weekly pull, and it was being blown out to six times the width of the cells either side
     of it. Both engagement tables that reach column seven opt out by name.

     The league opts out by CLASS rather than by position, because its opt-out used to name
     nth-child(7) and adding a Grade column in front of it moved the whole rule one column
     to the left — the sparkline inheriting a 230px wrapping cell and the contact column
     losing its shrink-to-fit in the same edit. col-tight is the escape hatch the base rule
     already reads, so a column that must not be stretched now says so about itself. */
  table.radar.wall th:nth-child(7), table.radar.wall td:nth-child(7) { min-width: 0; white-space: nowrap; }
  table.radar.wall th.wall-h, table.radar.wall td.wall-c { width: 48px; min-width: 48px; }
  table.radar.eng-league th.col-tight, table.radar.eng-league td.col-tight { width: 1%; min-width: 0; white-space: nowrap; }
  /* the grade chip, in the compact form the wall's Grade column uses */
  table.radar.eng-league th.lg-g, table.radar.eng-league td.lg-g { padding-left: 10px; padding-right: 10px; text-align: left; }
  /* the slack column: no content, no padding, all the spare width */
  table.radar.wall th.wall-sp, table.radar.wall td.wall-sp { width: 100%; padding: 0; }
  table.radar.wall td.wall-n { white-space: nowrap; max-width: 420px; overflow: hidden; text-overflow: ellipsis; }
  table.radar.wall td.wall-n .acct-name { font-weight: 500; }
  table.radar.wall .wall-mrr { color: var(--ink-50); font-size: 11.5px; padding-right: 12px; font-weight: 600; }
  table.radar.wall .wall-d { padding-left: 12px; padding-right: 16px; }
  /* the number inside a heat cell is a fallback, not the reading — it is there so the grid
     still answers in greyscale and under a screen reader, at the weight of a whisper */
  table.radar.wall td.wall-c { padding: 0; }
  /* ── the wall's head ──────────────────────────────────────────────────────────────
     The wall is a table, not a chart, so it wears the queue-card shell the nudge queue and
     the worklist wear: a title and one sub line, controls opposite, then the table full
     bleed under its own header band. It had been a .chart-card with a second pill row
     slotted underneath the .chead, and three things were wrong with that at once.

     Nothing shared a left edge. The card title started at 114px, the pills at 132, the
     ACCOUNT column header at 148 — and the account names it labels at 135, so the header
     was indented past its own column. Cause: .chart-card carries 24px of padding and both
     .wall-bar and .wall-wrap had been written as though it carried none, so the insets
     stacked. Everything here starts at one edge now, the qhead's own 20px.

     Two greys floated at two different right edges (1472 and 1454), both over the ~295px of
     empty band the .wall-sp spacer leaves past the last column, and the count one of them
     carried was already printed inside the active pill a thousand pixels away. Both gone:
     what the cells mean moved under the title, and the count is the pill. */
  /* the same 24px every other block on this page opens with. The wall sat directly under the
     KPI strip with nothing between them, so two bordered surfaces met at a 1px seam and read
     as one control that had grown a table. */
  .wall-card { margin-top: 24px; }
  .wall-card .qhead { align-items: center; flex-wrap: wrap; row-gap: 12px; }
  .wall-card .qhead .sub { margin-top: 4px; }
  .wall-card .qh-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  .wall-card .qh-right .qf-pills { display: flex; gap: 8px; flex-wrap: wrap; }
  /* two filters, two groups, one hairline between them — because they answer different
     questions and stack rather than replace each other. Without the rule the eight pills read
     as one row where pressing Tier 2 would have turned Active off. */
  .wall-card .qh-right .qf-sep { width: 1px; align-self: stretch; min-height: 22px; background: var(--hairline-strong); flex: none; }
  /* one notch under the app-wide pill (34px / 12.5px): a card-level scope switch sharing a
     line with a 15px title, not a page filter standing on its own */
  .wall-card .qf-pill { height: 30px; padding: 0 13px; font: 600 12px var(--sans); gap: 7px; }
  .wall-card .qf-pill .qf-n { font: 700 11px var(--sans); font-variant-numeric: tabular-nums; color: var(--ink-40); }
  .wall-card .qf-pill.active .qf-n { color: rgba(255,255,255,.72); }
  /* a tier pill wears the same marker the Tier column wears, so the filter row and the column
     under it are read by one mark rather than by a word up here and a colour down there. Marker
     only, which is the form the Book of business tier dropdown already uses: the group is headed
     "All tiers", so spelling "Tier 1" next to a chip that says 1 would print the number twice.
     The full name is still what a screen reader gets, off the button's aria-label. */
  .wall-card .qf-pill.has-tier { padding-left: 5px; gap: 8px; }
  .wall-card .qf-pill .tier-chip.compact { pointer-events: none; }
  .wall-card .qf-pill .tier-chip.compact .tno { width: 22px; height: 22px; border-radius: 7px; font-size: 11.5px; }
  /* pressed, the marker sits on forest — where the two darkest tier colours stop being legible.
     It inverts rather than giving the colour up: the chip goes cream and the tier hue moves to
     the numeral, inherited from .tier-chip.tN, so which tier is on is still read off the mark. */
  .wall-card .qf-pill.active .tier-chip.compact .tno { background: var(--cream); color: inherit; }
  /* a tier pill with no accounts behind it in the current scope is left in place rather than
     dropped — a filter row that changes length as you use it makes the pill you want move. */
  .wall-card .qf-pill[disabled] { opacity: .42; cursor: default; }
  .wall-card .qf-pill[disabled]:hover { border-color: var(--hairline-strong); color: var(--ink-70); }
  .wall-card .card-foot { margin: 0 20px 16px; }

  /* an address or a number in an engagement table — same component as the Book of business
     email cell, which scopes its .eml rule to .book-main and so could not be reused as-is */
  .eng-nudge .eml, .eng-league .eml { display: inline-block; max-width: 210px; font: 400 12px var(--sans); color: var(--ink-70); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
  /* An address is not read across in a table — it is checked for a domain and then copied
     from the mark beside it, and the whole of it is one hover away. So this is the column
     that pays when a new one arrives, ahead of the school names. */
  .eng-league .eml { max-width: 92px; }
  .eng-nudge td, .eng-league td { white-space: nowrap; }
  /* The league runs twelve columns and the last three are the ones you act on, so nothing
     ahead of them may take width it does not need. table.radar hands the first column all
     the slack, which is right on a six-column table and here meant one 58-character school
     name pushing All emails and MRR off the right edge. Capped and ellipsised: the full
     name is one hover, or one click into the account. The cap came down from 280 to 195 when
     Grade became a column of its own — a chip that used to ride inside this cell now needs
     ~120px of its own (sized by "Onboarding", the longest grade on the book), and it has to
     come from somewhere ahead of the three columns that are acted on. */
  table.radar.eng-league th:first-child, table.radar.eng-league td:first-child { width: 1%; max-width: 195px; overflow: hidden; text-overflow: ellipsis; }
  /* the league's contact block: name, address, number, address book — four columns rather
     than one cell with everything folded into a hover */
  /* the school, with its account under it. Two lines in one cell rather than two columns —
     the table fits its container to the pixel and the second name is the same string on 73
     of the 86 accounts, so it is drawn only where it says something. */
  /* a caption riding on a section heading. Not .sec-sub, which is a 16px block paragraph
     on the Docs pages and would set the line twice the height of the heading beside it. */
  .sec-h .sec-h-sub { font: 500 11.5px var(--sans); color: var(--ink-40); margin-left: 10px; letter-spacing: 0; text-transform: none; }
  table.radar.eng-league td.lg-n { line-height: 1.25; padding-top: 7px; padding-bottom: 7px; white-space: nowrap; }
  .lg-acct { display: block; font: 500 10.5px var(--sans); color: var(--ink-40); margin-top: 2px;
             overflow: hidden; text-overflow: ellipsis; }
  .lg-acct.none { font-style: italic; color: var(--ink-30); }
  /* the count of schools an account's MRR is spread across. A quiet superscript rather than a
     second column, because it qualifies the number beside it rather than answering anything
     of its own — and its whole job is to stop the column being read as a total. */
  .lg-shared { font: 700 9.5px var(--sans); color: var(--ink-30); vertical-align: super; margin-left: 2px; }
  td.lead-n { font-size: 12.5px; color: var(--ink); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* the count and its copy mark share a baseline; the mark keeps the app's hover-to-reveal
     behaviour, so a resting row is a row of numbers rather than a row of buttons */
  td.allmail { white-space: nowrap; }
  td.allmail .cp { margin-left: 4px; vertical-align: middle; }
  /* the shared-login prompt. Warm grey rather than an alarm colour: it is a question about
     the data, not a finding about the account. */
  .schip.shared { background: rgba(154,140,122,0.18); color: var(--warm-grey); cursor: help; }

  .wall-key { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 20px 16px; }
  .wall-key .wk-l { font: 600 10px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-50); }
  .wall-key .wk-c { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-50); font-weight: 500; }
  /* the inset hairline is for the pale end of the key: "not reported" is --mute, which is
     within a hair of the card it sits on and would otherwise be a label beside nothing.
     Every swatch carries it so the key is one component, and on the greens it is invisible. */
  .wall-key .wk-c i { width: 16px; height: 10px; border-radius: 2px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(31,41,36,.10); }

  /* the league row's eight-pull shape — no axis, no labels, just the direction */
  .spark { display: block; }

  /* a coverage line under a chart that only measures part of its population. Not a footnote:
     absence is a state in this product, and a chart that measures 317 of 960 has to say so on
     its own face rather than in a tooltip. */
  .card-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); font-size: 11px; line-height: 1.45; color: var(--ink-50); font-weight: 500; }

  /* five KPIs across, alongside the k6 that already exists */
  .kpi-strip.k5 { grid-template-columns: repeat(5, 1fr); }
  @media (max-width: 1180px) {
    .kpi-strip.k5 { grid-template-columns: repeat(3, 1fr); }
    .kpi-strip.k5 .kpi:nth-child(3n) { border-right: 0; }
    .kpi-strip.k5 .kpi:nth-child(-n+3) { border-bottom: 1px solid var(--hairline); }
  }
  @media (max-width: 760px) {
    .kpi-strip.k5 { grid-template-columns: repeat(2, 1fr); }
    .kpi-strip.k5 .kpi { border-right: 1px solid var(--hairline); }
    .kpi-strip.k5 .kpi:nth-child(2n) { border-right: 0; }
  }

  /* a legend row that is also a way in — "All 17 falling" under the movers chart. Same size
     and colour as a legend label, with the underline that says it opens something. */
  .chart-legend .lg-a { cursor: pointer; color: var(--ink-70); font-weight: 600; border-bottom: 1px solid var(--hairline-strong); padding-bottom: 1px; }
  .chart-legend .lg-a:hover, .chart-legend .lg-a:focus-visible { color: var(--forest); border-bottom-color: var(--forest); }

  /* The loading skeleton was removed in v5.41. It was a second loading language for the
     same event — grey placeholder bars on a first load, a progress pill on a refresh —
     and because Chrome discards an idle tab and reloads it on return, the placeholders
     were what a returning user saw first. Rebuilding-itself is not what was happening;
     it was fetching. Both cases now use the .notif pill. */

  /* ── reusable empty state: one consistent zero-result treatment ── */
  .empty2 { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 24px; }
  .empty2-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--mute); color: var(--ink-50); display: inline-flex; align-items: center; justify-content: center; }
  .empty2-ic svg { width: 20px; height: 20px; }
  .empty2-tt { font: 600 14px var(--display); color: var(--ink); }
  .empty2-sub { font-size: 12.5px; color: var(--ink-50); max-width: 42ch; }
  .empty2-act { margin-top: 8px; background: var(--forest); color: var(--cream); border: 0; border-radius: var(--r-pill); padding: 8px 16px; font: 600 12.5px var(--sans); cursor: pointer; transition: background var(--dur-fast) var(--ease); }
  .empty2-act:hover { background: var(--forest-soft); }

  /* ── command palette (⌘K) ── */
  .cmdk-scrim { position: fixed; inset: 0; background: rgba(49,49,47,0.34); opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease); z-index: 95; }
  .cmdk-scrim.on { opacity: 1; pointer-events: auto; }
  .cmdk { position: fixed; left: 50%; top: 13vh; transform: translate(-50%, -8px); width: min(620px, 94vw); background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); z-index: 96; overflow: hidden; }
  .cmdk.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
  .cmdk-in { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--hairline); }
  .cmdk-mag { width: 18px; height: 18px; color: var(--ink-50); flex-shrink: 0; }
  .cmdk-in input { flex: 1; border: 0; outline: none; background: transparent; font: 500 15px var(--sans); color: var(--ink); }
  .cmdk-in input::placeholder { color: var(--ink-30); }
  .cmdk-kbd, .cmdk-foot kbd { font: 600 10px var(--mono); color: var(--ink-50); background: var(--mute); border: 1px solid var(--hairline-strong); border-radius: 5px; padding: 2px 6px; }
  .cmdk-results { max-height: 52vh; overflow-y: auto; padding: 6px; }
  .cmdk-sect { font: 700 10px var(--display); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-50); padding: 10px 10px 5px; }
  .cmdk-row { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--r-sm); cursor: pointer; }
  .cmdk-row.active { background: var(--forest-wash); }
  .cmdk-ic { width: 18px; height: 18px; color: var(--ink-50); flex-shrink: 0; display: inline-flex; }
  .cmdk-row.active .cmdk-ic { color: var(--forest); }
  .cmdk-ic svg { width: 18px; height: 18px; }
  .cmdk-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .cmdk-nm { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cmdk-sub { font-size: 11.5px; color: var(--ink-50); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cmdk-ty { font: 600 10px var(--display); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-30); flex-shrink: 0; }
  .cmdk-empty { padding: 28px; text-align: center; color: var(--ink-50); font-size: 13px; }
  .cmdk-foot { display: flex; gap: 16px; padding: 9px 16px; border-top: 1px solid var(--hairline); background: var(--mute); }
  .cmdk-foot span { font-size: 11px; color: var(--ink-50); display: inline-flex; align-items: center; gap: 5px; }

  /* once a panel has revealed, a re-render must not replay entrance keyframes -- kill the
     animations only (transitions/hovers untouched) so filtering/sorting never makes widgets jump */
  .panel.reveal-settled * { animation-duration: 0s !important; animation-delay: 0s !important; }

  /* ── list expander: cap long widget lists, reveal the rest on demand ── */
  /* Scoped to .lw-host: a bare .lw-extra is the same specificity as .lcat-row { display:flex }
     and loses on source order, so every row past the cap stayed visible and the
     "Show all N items" band below them did nothing. */
  .lw-host .lw-extra { display: none; }
  tbody.lw-open tr.lw-extra { display: table-row; }
  .lw-host.lw-open .lw-extra { display: flex; }
  /* a single hairline divider on the row, and a compact centered pill button (no second border) */
  .lw-more-row td { padding: 0; border-top: 1px solid var(--hairline); text-align: center; }
  .lw-host .lw-more-row { border-top: 1px solid var(--hairline); padding: 6px 0; display: flex; justify-content: center; }
  .lw-more { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; padding: 6px 14px; border-radius: var(--r-pill); font: 600 12px var(--sans); color: var(--ink-50); cursor: pointer; transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
  .lw-more:hover { color: var(--forest); background: var(--forest-wash); }
  .lw-more .lw-chev { width: 13px; height: 13px; transition: transform var(--dur) var(--ease); }
  .lw-more.open .lw-chev { transform: rotate(180deg); }
  /* In a table the control is not a pill sitting on a row — it IS the row. Every tbody row here
     already carries a pointer cursor and a hover fill, so the band around the pill was telling
     you it was clickable and then swallowing the click. The button now fills the row: aim
     anywhere on the strip. */
  tr.lw-more-row .lw-more { display: flex; width: 100%; justify-content: center; padding: 5px 14px; border-radius: 0; }
  /* The fill stays on the label, though. Painting the whole band read as a selected row rather
     than a button, and a square-cornered block the width of the table cut straight across the
     rounded bottom of a card. So the strip hovers the way every other row in this table hovers —
     the standard row wash, which is why the rule below is a removal, not an addition — and the
     label keeps the same pill this control has always had, in a widget and in the account list
     alike. The pill's padding is always there so nothing shifts when it lights up. */
  tr.lw-more-row .lw-more:hover { background: transparent; }
  .lw-more-in { display: inline-flex; align-items: center; gap: 6px; }
  tr.lw-more-row .lw-more-in { padding: 5px 12px; border-radius: var(--r-pill); transition: background var(--dur-fast) var(--ease); }
  tr.lw-more-row .lw-more:hover .lw-more-in { background: var(--forest-wash); }
  /* The wrapper for mkMore / mkMoreCls. It used to centre a small pill in open space, which
     is a smaller target than it looks and gives no sign where the clickable area ends. It
     is now the same band the table form is: the whole strip is the button, the strip takes
     the standard row wash on hover, and the label keeps its pill. One control, one
     behaviour, whether the rows above it are a table or a list. */
  .more-row { display: block; margin-top: 10px; border-top: 1px solid var(--hairline); }
  .more-row .lw-more { display: flex; width: 100%; justify-content: center; padding: 9px 14px; border-radius: 0; }
  .more-row .lw-more:hover { background: var(--mute); color: var(--ink-50); }
  .more-row .lw-more:hover .lw-more-in { background: var(--forest-wash); color: var(--forest); }
  .more-row .lw-more-in { padding: 5px 12px; border-radius: var(--r-pill); transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
  /* inside a drawer section the band bleeds through the body padding to the card edges and
     rounds off its bottom corners, the way it already does at the foot of a widget table */
  .d-body > .more-row { margin: 12px -18px -16px; border-radius: 0 0 var(--r-md) var(--r-md); }
  .d-body > .more-row .lw-more { border-radius: inherit; }

  /* ════════ Docs · Health score page ════════ */
  .hs-dot { display:inline-block; width:9px; height:9px; border-radius:50%; flex:none; }
  /* weighted bar */
  .hs-wbar { display:flex; height:44px; gap:1px; border-radius:11px; overflow:hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); margin:18px 0 0; }
  .hs-wbar span { display:flex; align-items:center; justify-content:center; color:#fff; font:700 12.5px var(--sans); white-space:nowrap; padding:0 4px; min-width:0; overflow:hidden; text-overflow:ellipsis; }
  .hs-ing-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(248px,1fr)); gap:11px 22px; margin-top:16px; }
  .hs-ing { display:flex; gap:9px; font-size:12.5px; line-height:1.45; color:var(--ink-70); }
  .hs-ing .hs-dot { margin-top:4px; }
  .hs-ing b { color:var(--ink); }

  /* grade chip (the one loud chip) */
  .hs-grade { display:inline-flex; align-items:center; box-sizing:border-box; height:26px; padding:0 11px; border-radius:var(--r-pill); font:700 10.5px var(--sans); text-transform:uppercase; letter-spacing:.04em; white-space:nowrap; }
  .hs-grade .sico { width:12px; height:12px; flex:none; margin:0 5px 0 -1px; }
  /* freshness + confidence = quiet meta chips */
  .hs-meta-chip { display:inline-flex; align-items:center; box-sizing:border-box; gap:6px; height:26px; padding:0 11px 0 9px; border:1px solid var(--hairline-strong); border-radius:var(--r-pill); background:var(--paper); font:600 10.5px var(--sans); color:var(--ink-50); white-space:nowrap; }
  .hs-meta-chip .d { width:6px; height:6px; border-radius:50%; flex:none; }

  /* ── flow chart: inputs → gate → two lanes → grade ── */
  .hs-flow-lead { font-size:13px; color:var(--ink-70); margin-bottom:18px; }
  .hs-flow { display:grid; align-items:center; gap:0; grid-template-columns:minmax(150px,0.85fr) 24px minmax(140px,0.82fr) 24px minmax(0,1.3fr) 24px minmax(150px,0.85fr); }
  .hs-node { align-self:center; background:var(--paper); border:1px solid var(--hairline-strong); border-radius:var(--r-md); padding:13px 14px; }
  .hs-node.gate { border-left:3px solid var(--amber-deep); background:rgba(252,180,43,0.06); }
  .hs-node-h { display:flex; align-items:center; gap:8px; font:700 12px var(--sans); color:var(--ink); margin-bottom:10px; }
  .hs-step { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:50%; background:var(--forest); color:var(--cream); font:700 11px var(--sans); flex:none; }
  .hs-step.amber { background:var(--amber-deep); }
  .hs-first { margin-left:auto; font:700 9px var(--sans); text-transform:uppercase; letter-spacing:.05em; color:var(--amber-deep); background:var(--amber-soft); padding:2px 7px; border-radius:var(--r-pill); }
  .hs-gate-note { font-size:11px; color:var(--ink-50); line-height:1.4; }
  .hs-stage-b { display:grid; gap:7px; }
  .hs-input { display:flex; align-items:center; gap:8px; background:var(--mute); border:1px solid var(--hairline); border-radius:8px; padding:7px 10px; font-size:12px; }
  .hs-input-l { flex:1; color:var(--ink); font-weight:600; }
  .hs-tag { font:700 9px var(--sans); text-transform:uppercase; letter-spacing:.04em; padding:2px 7px; border-radius:var(--r-pill); background:var(--sage-soft); color:var(--sage-deep); }
  .hs-tag.man { background:var(--amber-soft); color:var(--amber-deep); }
  .hs-lanes { display:grid; gap:10px; align-self:center; }
  .hs-lane { border:1px solid var(--hairline); border-radius:var(--r-md); padding:11px 12px; background:var(--paper); }
  .hs-lane.override { border-left:3px solid var(--terracotta-deep); background:rgba(185,73,41,0.04); }
  .hs-lane.score { border-left:3px solid var(--forest); }
  .hs-lane-tag { display:inline-block; margin-bottom:8px; font:700 9.5px var(--sans); text-transform:uppercase; letter-spacing:.04em; }
  .hs-lane.override .hs-lane-tag { color:var(--terracotta-deep); }
  .hs-lane.score .hs-lane-tag { color:var(--forest-soft); }
  .hs-orow { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:11.5px; color:var(--ink-70); padding:5px 0; }
  .hs-orow + .hs-orow { border-top:1px solid var(--hairline); }
  .hs-eq { font:700 13px var(--mono); color:var(--ink); letter-spacing:-.01em; }
  .hs-eq-sub { font-size:11px; color:var(--ink-50); margin-top:6px; line-height:1.45; }
  .hs-conn { position:relative; height:2px; background:var(--hairline-strong); }
  .hs-conn::after { content:""; position:absolute; right:-1px; top:50%; width:7px; height:7px; border-top:2px solid var(--hairline-strong); border-right:2px solid var(--hairline-strong); transform:translate(0,-50%) rotate(45deg); }
  .hs-grade-bands { display:grid; gap:7px; }
  .hs-grow { display:flex; align-items:center; gap:9px; font-size:11.5px; color:var(--ink-70); font-variant-numeric:tabular-nums; }
  .hs-grade-note { margin-top:9px; font-size:10.5px; color:var(--ink-50); line-height:1.4; }
  @media (max-width:900px){
    .hs-flow { grid-template-columns:1fr; }
    .hs-conn { width:2px; height:20px; justify-self:center; margin:3px 0; }
    .hs-conn::after { right:auto; left:50%; top:auto; bottom:-1px; transform:translate(-50%,0) rotate(135deg); }
  }

  /* ── worked-example cards (ungrouped grid; grade enters via the left edge) ── */
  .hs-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(330px,1fr)); gap:14px; }
  .hs-card { display:flex; flex-direction:column; background:var(--paper); border:1px solid var(--hairline-strong); border-left:3px solid var(--grade,var(--hairline-strong)); border-radius:var(--r-md); box-shadow:var(--shadow-card); padding:16px 18px 17px; transition:box-shadow var(--dur) var(--ease); }
  .hs-card:hover { box-shadow:var(--shadow-pop); }
  .hs-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
  .hs-card-id { min-width:0; }
  .hs-card-n { font:800 15px var(--display); color:var(--ink); letter-spacing:-.01em; line-height:1.2; }
  .hs-card-c { font-size:11.5px; color:var(--ink-50); line-height:1.4; margin-top:3px; }
  .hs-card-score { flex:none; text-align:right; line-height:1; }
  .hs-card-score .v { font:800 32px var(--display); color:var(--ink); letter-spacing:-.025em; font-variant-numeric:tabular-nums; }
  .hs-card-score .v.na { color:var(--warm-grey); }
  .hs-card-score .u { display:block; font:600 9.5px var(--sans); color:var(--ink-30); letter-spacing:.04em; margin-top:3px; }
  .hs-chips { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin-top:13px; }
  .hs-ov { align-self:flex-start; margin-top:9px; display:inline-flex; align-items:center; gap:6px; font:700 10px var(--sans); text-transform:uppercase; letter-spacing:.03em; color:var(--terracotta-deep); background:rgba(185,73,41,0.10); padding:4px 10px; border-radius:var(--r-pill); }
  .hs-subs { display:grid; gap:8px; margin-top:15px; }
  .hs-sub { display:grid; grid-template-columns:80px 1fr 34px; align-items:center; gap:10px; }
  .hs-sub-l { font-size:11.5px; color:var(--ink-70); }
  .hs-sub-track { height:6px; background:var(--mute); border-radius:3px; overflow:hidden; }
  .hs-sub-track.na { background:repeating-linear-gradient(135deg,var(--mute),var(--mute) 3px,transparent 3px,transparent 6px); box-shadow:inset 0 0 0 1px var(--hairline); }
  .hs-sub-fill { display:block; height:100%; border-radius:3px; transition:width .45s var(--ease); }
  .hs-sub-v { font:700 12px var(--sans); color:var(--ink); text-align:right; font-variant-numeric:tabular-nums; }
  .hs-sub-v.na { color:var(--ink-30); font-weight:600; }
  .hs-formula { margin-top:14px; padding-top:12px; border-top:1px solid var(--hairline); font:600 11.5px var(--mono); color:var(--ink-70); line-height:1.5; overflow-wrap:anywhere; }
  .hs-why { margin-top:8px; font-size:12px; color:var(--ink-70); line-height:1.5; }

  /* ── reference blocks ── */
  .hs-ref .hs-pts { text-align:right; font-weight:700; font-variant-numeric:tabular-nums; color:var(--ink); white-space:nowrap; }
  .hs-note { margin-top:11px; font-size:12px; color:var(--ink-50); line-height:1.5; }
  .hs-rules { list-style:none; padding:0; margin:0; display:grid; gap:10px; }
  .hs-rules li { display:flex; gap:9px; font-size:12.5px; color:var(--ink-70); line-height:1.45; }
  .hs-rules .hs-dot { margin-top:4px; }
  .hs-rules b { color:var(--ink); }
  .hs-stale-chips { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 4px; }
  .hs-warn { margin-top:14px; background:var(--amber-soft); border:1px solid var(--amber); border-radius:var(--r-md); padding:12px 14px; font-size:12.5px; color:var(--amber-deep); line-height:1.5; }

  /* ── flow v2: 3 columns (inputs → calculation branch → output) ── */
  .hs2-flow { display:grid; grid-template-columns:1fr 22px 1.12fr 22px 0.95fr; align-items:start; gap:0; }
  .hs2-col { display:flex; flex-direction:column; gap:12px; }
  .hs2-colh { display:flex; align-items:center; gap:8px; font:700 12px var(--sans); color:var(--ink); margin-bottom:2px; }
  .hs2-gut { align-self:stretch; display:flex; align-items:center; justify-content:center; color:var(--forest-soft); }
  .hs2-gut svg { width:22px; height:22px; }
  .hs2-down { display:flex; justify-content:center; color:var(--forest-soft); margin:-2px 0; }
  .hs2-down svg { width:18px; height:18px; }
  .hs2-box { background:var(--paper); border:1px solid var(--hairline-strong); border-radius:var(--r-md); padding:13px 14px; }
  .hs2-box.mute { background:var(--mute); border-color:var(--hairline); }
  .hs2-bh { display:flex; align-items:center; gap:8px; font:700 12px var(--sans); color:var(--ink); margin-bottom:9px; }
  .hs2-vt { width:100%; border-collapse:collapse; font-size:11.5px; }
  .hs2-vt td { padding:5px 0; border-top:1px solid var(--hairline); color:var(--ink-70); vertical-align:top; line-height:1.35; }
  .hs2-vt tr:first-child td { border-top:0; }
  .hs2-vt .lv { font-weight:700; color:var(--ink); white-space:nowrap; padding-right:9px; }
  .hs2-vt .pt { text-align:right; font-weight:800; color:var(--ink); font-variant-numeric:tabular-nums; white-space:nowrap; padding-left:9px; }
  .hs2-read { display:block; font:600 9.5px var(--sans); color:var(--ink-30); text-transform:none; letter-spacing:0; margin-top:1px; }
  .hs2-field { margin-top:6px; background:var(--mute); border:1px solid var(--hairline); border-radius:8px; padding:7px 9px; font-size:11px; color:var(--ink-50); font-style:italic; line-height:1.4; }
  .hs2-rule { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:11.5px; color:var(--ink-70); padding:5px 0; }
  .hs2-rule + .hs2-rule { border-top:1px solid var(--hairline); }
  .hs2-rule b { color:var(--ink); font-variant-numeric:tabular-nums; font-weight:800; }
  .hs2-note { font-size:11px; color:var(--ink-50); line-height:1.45; margin-top:9px; }
  .hs2-ring { display:flex; align-items:center; gap:14px; }
  .hs2-ring .n { font:800 32px var(--display); color:var(--ink); font-variant-numeric:tabular-nums; letter-spacing:-.02em; line-height:1; }
  .hs2-ring .u { font:600 11px var(--sans); color:var(--ink-30); margin-top:3px; }
  .hs2-gate-box { background:rgba(252,180,43,0.08); border:1px solid var(--amber); border-radius:var(--r-md); padding:12px 14px; }
  .hs2-branch { border:1px solid var(--hairline-strong); border-radius:var(--r-md); padding:11px 12px; background:var(--paper); }
  .hs2-branch.red { border-left:3px solid var(--terracotta-deep); background:rgba(185,73,41,0.04); }
  .hs2-branch.green { border-left:3px solid var(--forest); }
  .hs2-branch-tag { display:block; margin-bottom:8px; font:700 9.5px var(--sans); text-transform:uppercase; letter-spacing:.04em; }
  .hs2-branch.red .hs2-branch-tag { color:var(--terracotta-deep); }
  .hs2-branch.green .hs2-branch-tag { color:var(--forest-soft); }
  .hs2-merge { font:700 9px var(--sans); text-transform:uppercase; letter-spacing:.05em; color:var(--ink-30); text-align:center; padding:4px 0; }
  .hs2-eq-c span { font-weight:800; }
  .hs2-chip-row { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
  .hs2-vchip { display:inline-flex; align-items:center; box-sizing:border-box; gap:5px; height:26px; padding:0 11px; border-radius:var(--r-pill); font:700 10.5px var(--sans); white-space:nowrap; }
  .hs2-vchip .ci { width:12px; height:12px; flex:none; }
  /* adoption chip — "C1 · brighter": pill, soft 5-hue tint, name in display weight, read in a translucent inner tag */
  /* the adoption chip keeps its own case. The shared chip rule above uppercases the whole
     family, which suits a one-word state badge and does not suit a reading whose name is
     four words long -- "IMPLEMENTATION IN PROGRESS" is half again as wide as the sentence
     case it replaces, on the one chip that already has the least room. */
  .hs2-vchip.adopt { gap:9px; height:28px; padding:0 12px; font-family:var(--display); font-weight:800; font-size:11px;
    text-transform:none; letter-spacing:normal; }
  .hs2-read-in { padding:2px 8px; border-radius:var(--r-pill); background:rgba(255,255,255,0.6); font:600 10px var(--sans); color:var(--ink-50); letter-spacing:.01em; }

  /* ── adoption chip explorations — archived reference only (design guide §05); namespaced cx- to avoid collisions ── */
  .cx-explore{margin:14px 0 6px;border:1px solid var(--hairline);border-radius:var(--r-md);background:var(--paper);overflow:hidden;}
  .cx-explore>summary{cursor:pointer;list-style:none;padding:12px 16px;font-family:var(--display);font-weight:700;font-size:12.5px;color:var(--ink);display:flex;gap:8px;align-items:baseline;}
  .cx-explore>summary::-webkit-details-marker{display:none;}
  .cx-explore>summary .sub{font-family:var(--sans);font-weight:500;color:var(--ink-50);font-size:11.5px;}
  .cx-explore[open]>summary{border-bottom:1px solid var(--hairline);}
  .cx-gallery{padding:16px;background:var(--cream);}
  .cx-lab{font-family:var(--display);font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.09em;color:var(--ink-30);margin:0 0 7px;}
  .cx-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:16px;}
  .cx-row:last-child{margin-bottom:0;}
  .cx-a{display:inline-flex;align-items:center;box-sizing:border-box;gap:7px;height:27px;padding:0 12px;border-radius:var(--r-pill);font:600 11px var(--sans);white-space:nowrap;background:var(--paper);border:1px solid var(--hairline-strong);color:var(--ink);}
  .cx-a .dot{width:7px;height:7px;border-radius:50%;flex:none;background:currentColor;}
  .cx-a .lvl{font-family:var(--display);font-weight:800;font-size:11px;}
  .cx-a .read{color:var(--ink-50);font-weight:500;font-size:10px;}
  .cx-b{display:inline-flex;align-items:stretch;box-sizing:border-box;height:28px;border-radius:var(--r-pill);overflow:hidden;white-space:nowrap;font:700 11px var(--sans);}
  .cx-b .cap{display:inline-flex;align-items:center;justify-content:center;min-width:24px;padding:0 3px;font-family:var(--display);font-weight:800;font-size:12px;color:#fff;}
  .cx-b .body{display:inline-flex;align-items:center;gap:7px;padding:0 12px 0 10px;}
  .cx-b .read{font-weight:500;font-size:10px;color:var(--ink-50);}
  .cx-c2{display:inline-flex;align-items:center;box-sizing:border-box;gap:9px;height:28px;padding:0 12px;border-radius:var(--r-md);white-space:nowrap;font:700 11px var(--sans);background:var(--paper);border:1px solid var(--hairline-strong);}
  .cx-c2 .dot{width:8px;height:8px;border-radius:50%;flex:none;background:currentColor;}
  .cx-c2 .lvl{font-family:var(--display);font-weight:800;}
  .cx-c2 .read{font-weight:600;font-size:10px;color:var(--ink-50);background:var(--mute);border-radius:var(--r-pill);padding:2px 8px;}
  .cx-c3{display:inline-flex;align-items:center;box-sizing:border-box;gap:9px;height:29px;padding:0 12px;border-radius:var(--r-md);white-space:nowrap;font:700 11px var(--sans);background:var(--paper);border:1px solid var(--hairline);border-bottom:3px solid var(--acc,currentColor);}
  .cx-c3 .lvl{font-family:var(--display);font-weight:800;}
  .cx-c3 .read{font-weight:600;font-size:10px;color:var(--ink-50);background:var(--mute);border-radius:var(--r-pill);padding:2px 8px;}
  .cx-c4{position:relative;display:inline-flex;align-items:center;box-sizing:border-box;gap:9px;padding:6px 13px 10px;border-radius:var(--r-md);white-space:nowrap;font:700 11px var(--sans);background:var(--paper);border:1px solid var(--hairline-strong);}
  .cx-c4 .lvl{font-family:var(--display);font-weight:800;}
  .cx-c4 .read{font-weight:600;font-size:10px;color:var(--ink-50);background:var(--mute);border-radius:var(--r-pill);padding:2px 8px;}
  .cx-c4::after{content:"";position:absolute;left:13px;right:13px;bottom:5px;height:3px;border-radius:999px;background:var(--acc,currentColor);}
  .cx-d{display:inline-flex;align-items:center;box-sizing:border-box;gap:8px;height:28px;padding:0 12px 0 5px;border-radius:var(--r-pill);white-space:nowrap;font:600 11.5px var(--sans);background:var(--paper);border:1px solid var(--hairline);color:var(--ink);}
  .cx-d .tok{display:inline-flex;align-items:center;justify-content:center;width:19px;height:19px;border-radius:6px;font-family:var(--display);font-weight:800;font-size:11px;color:#fff;flex:none;}
  .cx-d .read{color:var(--ink-30);font-weight:600;font-size:9px;text-transform:uppercase;letter-spacing:.06em;}
  .cx-einv{display:inline-flex;align-items:center;box-sizing:border-box;gap:7px;height:27px;padding:0 6px 0 12px;border-radius:var(--r-pill);white-space:nowrap;font:700 11px var(--sans);color:#fff;}
  .cx-einv .lvl{font-family:var(--display);font-weight:800;font-size:11.5px;}
  .cx-einv .read{display:inline-flex;align-items:center;height:19px;padding:0 9px;border-radius:var(--r-pill);font:700 9.5px var(--sans);background:rgba(255,255,255,.22);color:#fff;}
  .cap-mini { font:700 9.5px var(--sans); text-transform:uppercase; letter-spacing:.05em; color:var(--ink-50); margin:0 0 9px; }
  .hs2-adlist { display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
  .hs-meta-chip .ci { width:12px; height:12px; flex:none; margin-right:-1px; }
  @media (max-width:1000px){ .hs2-flow { grid-template-columns:1fr; } .hs2-gut { display:none; } .hs2-col { margin-bottom:6px; } }

  /* ═══ chart-types design-guide catalog — consistent chart affordances ═══ */
  /* 1. no pointer/hand cursor anywhere — these charts are illustrative, not clickable */
  #chart-types svg rect, #chart-types svg circle, #chart-types svg path,
  #chart-types svg .xhair-capture, #chart-types .hbar-fill { cursor: default; }
  /* 2. one hover logic across every chart (bars, slices, ring, cells, bubbles, bar-list): hovered mark pops, the rest go slightly lighter */
  #chart-types svg [data-k], #chart-types .hbar-fill { transition: opacity .15s var(--ease), filter .15s var(--ease); }
  #chart-types svg:has([data-k]:hover) [data-k]:not(:hover) { opacity: .6; }
  #chart-types svg:has([data-k]:hover) .pt:not(:hover) { opacity: 1; }      /* dots never fade */
  #chart-types svg [data-k]:hover { filter: brightness(1.05); }
  #chart-types .hbars:has(.hbar-fill:hover) .hbar-fill:not(:hover) { opacity: .6; }
  #chart-types .hbar-fill:hover { filter: brightness(1.05); }
  /* line charts scrub via the crosshair: DON'T dim the other points — a dimmed hollow point turns
     translucent and the line shows through it (looks broken) and flickers. Keep them opaque; the
     crosshair line + the enlarged snapped point carry the emphasis. */
  #chart-types .viz .pt { transition: r .14s var(--ease); }   /* smooth grow on snap, no blink */
  #chart-types .viz .pt.snap { stroke-width: 2; }             /* keep the hover point small and tidy */
  /* grouped multi-series tooltip rows (one line per series at the same x) */
  .viz-tip .vt-rows { display: grid; gap: 3px; margin-top: 5px; }
  .viz-tip .vt-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; }
  .viz-tip .vt-dot { width: 8px; height: 8px; border-radius: 2px; }
  .viz-tip .vt-nm { color: rgba(252,246,237,0.72); font-size: 11px; }
  .viz-tip .vt-rv { font: 700 12px var(--display); font-variant-numeric: tabular-nums; display: inline-flex; gap: 12px; justify-content: flex-end; align-items: baseline; }
  .viz-tip .vt-raw { min-width: 46px; text-align: right; color: rgba(252,246,237,0.5); font: 400 11px var(--body); font-variant-numeric: tabular-nums; }
  .viz-tip .vt-pt { min-width: 34px; text-align: right; }
  .viz-tip .vt-row.vt-rule { border-top: 1px solid rgba(252,246,237,0.18); margin-top: 5px; padding-top: 6px; }
  /* recency-bar tooltip: the band's definition, then the contacts in it. The names sit below
     a rule because they are evidence for the number above, not more of it — and the whole
     tip is left-aligned and allowed to wrap, since a person's name is not a figure. */
  .viz-tip.rec { white-space: normal; max-width: 300px; text-align: left; }
  .viz-tip .vt-def { color: rgba(252,246,237,0.62); font: 400 11px/1.45 var(--body); margin-top: 3px; }
  .viz-tip .vt-people { display: grid; gap: 3px; margin-top: 7px; padding-top: 7px; border-top: 1px solid rgba(252,246,237,0.18); }
  .viz-tip .vt-per { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: baseline; }
  .viz-tip .vt-pnm { color: rgba(252,246,237,0.88); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .viz-tip .vt-pdy { color: rgba(252,246,237,0.5); font: 400 11px var(--body); font-variant-numeric: tabular-nums; }
  .viz-tip .vt-more { color: rgba(252,246,237,0.5); font-size: 10.5px; margin-top: 6px; }
  /* the all-three-definitions variant: no rule under the header, because here the rows ARE
     the content rather than evidence for a figure above them */
  .viz-tip.rec.defs .vt-people { border-top: 0; padding-top: 0; margin-top: 6px; }
  .viz-tip .vt-defrow { grid-template-columns: 84px 1fr; gap: 12px; }
  .viz-tip .vt-defrow .vt-pdy { text-align: left; }
  .viz-tip .vt-defrow .vt-dot { display: inline-block; margin-right: 7px; vertical-align: 1px; }
  /* 3. one chart-text size for every axis tick + value label across all charts (SVG scales ~1.6× -> ~10.5px rendered) */
  #chart-types .viz .axis-t, #chart-types .viz .vlabel { font-size: 6.5px; }
  /* legend rows: swatch beside label (these legends live outside .chart-legend, so give them their own flex) */
  #chart-types .stack .lg, #chart-types .donut-leg .lg { display: inline-flex; align-items: center; gap: 7px; }
  /* 4. crisper segments: a hairline separation defines stacked bands (and helps the mid-tones read against neighbours) */
  #chart-types .viz path.barx { stroke: var(--paper); stroke-width: 0.6; }
  /* 5. light-but-present gridlines behind every chart -> reads as a data grid, not clutter */
  #chart-types .viz .grid-line { stroke: rgba(55,63,65,0.09); }
  /* 5b. breathing room between the rows of the chart grid */
  #chart-types .charts-2 { margin-bottom: 22px; }
  #chart-types .charts-2:last-of-type { margin-bottom: 0; }
  /* 6. multi-column donut legend + consistent legend text everywhere */
  #chart-types .donut-leg { display: grid; grid-template-columns: repeat(2, minmax(110px, auto)); gap: 9px 20px; }
  #chart-types .donut-leg .lg, #chart-types .stack .lg { font-size: 11.5px; }
  /* 8. 'use for' guidance footer on every card */
  #chart-types .card-use { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--hairline); font-size: 11.5px; color: var(--ink-50); }
  #chart-types .card-use .cu-k { font-weight: 700; color: var(--ink-70); }
  /* 9. bar list fills its card height so it lines up with the paired chart */
  #chart-types .chart-card:has(.hbars) { display: flex; flex-direction: column; }
  #chart-types .chart-card:has(.hbars) .hbars { flex: 1 1 auto; justify-content: center; gap: 14px; }
  #chart-types .hbar-track { height: 16px; }
  /* 7. subtle staggered bar entrance (per-column delay set inline); calm fade + small rise, honours reduced-motion */
  html.js #chart-types .chart-card .viz path.barx { opacity: 0; }
  html.js #chart-types .chart-card.drawn .viz path.barx { animation: bar-in .42s var(--ease) both; }
  @keyframes bar-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
  @media (prefers-reduced-motion: reduce) {
    html.js #chart-types .chart-card .viz path.barx { opacity: 1; animation: none; }
  }

  /* adoption note — append-only stream + history */
  /* per-account change history / audit feed */
  /* account changelog — a stamp column (date over time) against the change itself, with
     before → after on its own line. Inline deltas wrapped mid-value and tore the row apart. */
  /* ── the health timeline, under Account health ──────────────────────────────────────
     A rail with a dot per event. The dot repeats what the row says in words — it is a
     second encoding of direction, never the only one, so the list still reads with the
     colour removed. */
  .htl { position: relative; padding-left: 20px; }
  .htl::before { content: ""; position: absolute; left: 4.5px; top: 7px; bottom: 9px; width: 1.5px; background: var(--hairline-strong); border-radius: 1px; }
  .htl-row { position: relative; padding: 0 0 15px; }
  .htl-row:last-child { padding-bottom: 0; }
  .htl-dot { position: absolute; left: -20px; top: 4px; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 2.5px var(--paper); }
  .htl-when { font: 500 11px var(--sans); color: var(--ink-50); font-variant-numeric: tabular-nums; }
  .htl-what { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
  .htl-k { font: 600 12.5px var(--sans); color: var(--ink); }
  .htl-ar { color: var(--ink-30); font-size: 12px; line-height: 1; }
  .htl-sc { font: 600 12.5px var(--sans); color: var(--ink-70); font-variant-numeric: tabular-nums; margin-left: 2px; }
  .htl-sc i { font-style: normal; color: var(--ink-30); margin: 0 4px; }
  .htl-why { margin-top: 4px; font-size: 11.5px; line-height: 1.5; color: var(--ink-50); }
  .htl-row.anchor .htl-k { font-weight: 600; color: var(--ink-70); }
  .htl-foot { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--hairline); font-size: 11px; color: var(--ink-50); line-height: 1.45; }

  .hist-list { display: flex; flex-direction: column; }
  .hist-row { display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 14px; padding: 11px 0; border-top: 1px solid var(--hairline); }
  .hist-row:first-child { border-top: 0; padding-top: 2px; }
  .hist-when { display: flex; flex-direction: column; gap: 1px; font-variant-numeric: tabular-nums; }
  .hist-when .hd { font: 600 10.5px var(--sans); color: var(--ink-70); white-space: nowrap; }
  .hist-when .ht { font: 500 10.5px var(--sans); color: var(--ink-30); }
  .hist-what { min-width: 0; }
  .hist-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .hist-lab { font-size: 12.5px; font-weight: 600; color: var(--ink); }
  .hist-who { font-size: 11px; color: var(--ink-50); }
  .hist-detail { margin-top: 5px; padding: 6px 9px; background: var(--mute); border-radius: var(--r-sm); font-size: 11.5px; line-height: 1.45; color: var(--ink-70); overflow-wrap: anywhere; }
  /* old → new, inline. The value is the reason anyone reads an audit line at all. */
  .hist-delta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 5px; font: 600 11px var(--sans); }
  .hist-delta svg { width: 12px; height: 12px; color: var(--ink-30); flex-shrink: 0; }
  .hist-delta .af-old { color: var(--ink-50); text-decoration: line-through; overflow-wrap: anywhere; }
  .hist-delta .af-new { color: var(--sage-deep); overflow-wrap: anywhere; }
  /* a row the weekly reading wrote. The rail is a second encoding of direction so the row
     reads without colour, and the System chip says plainly that nobody did this by hand. */
  /* The rail sits in the card's own left padding rather than indenting the row. A border-left
     plus padding moved the date column 11px right of every human row above and below it, and
     a log whose left edge steps in and out by who made the change is harder to scan than one
     with no rail at all. 18px of .d-body padding to put it in. */
  .hist-row.sys { position: relative; }
  .hist-row.sys::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 2px; border-radius: 1px; background: var(--hairline-strong); }
  .hist-row.sys.up::before { background: var(--sage-deep); }
  .hist-row.sys.down::before { background: var(--terracotta-deep); }
  .hist-row.sys.read::before { background: var(--plum); }
  .hist-sys { font: 600 9.5px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-50); border: 1px solid var(--hairline-strong); border-radius: var(--r-pill); padding: 1px 6px; }
  .hist-grade { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
  .hist-empty { font-size: 12.5px; color: var(--ink-50); line-height: 1.55; }
  .hist-foot { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--hairline); font-size: 11px; color: var(--ink-50); line-height: 1.45; }

  /* ── Workspace (CSM cockpit) ── */
  /* two independent column stacks rather than a 2×2 grid. The four cards are wildly
     different heights — Recent activity runs long, Tasks is short — and grid rows made
     every card wait for the tallest one in its row, leaving a blank gap above Changes. */
  .ws-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
  .ws-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
  @media (max-width: 820px) { .ws-grid { grid-template-columns: 1fr; } }
  .ws-card .qh-ic { width: 15px; height: 15px; margin-right: 7px; vertical-align: -2px; color: var(--forest); }
  .ws-card .qhead .title { display: flex; align-items: center; }
  .ws-col > .ws-card { min-width: 0; }
  /* the card's own inset; the row itself is the drawer's, set once beside #dsec-tasks */
  .ws-tasklist { padding: 4px 16px 12px; }
  .ws-tasklist .task-line .tk-text { cursor: pointer; line-height: 1.4; }
  .ws-tasklist .task-line .tk-text:hover { color: var(--forest); }
  .ws-tasklist .task-item:first-child > .task-line { border-top: 0; }
  .qh-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
  .ws-sort { background: transparent; border: 1px solid var(--hairline-strong); border-radius: var(--r-pill); height: 28px; padding: 0 10px; font: 600 11px var(--sans); color: var(--ink-50); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
  .ws-sort:hover { color: var(--forest); border-color: var(--forest-soft); }
  .ws-sort svg { opacity: .7; }
  /* the Onboarding chip in the activity header — same control as the sort button, filled
     when it is on, because unlike sort it either applies or it does not */
  .ws-sort.on { background: var(--forest); border-color: var(--forest); color: var(--cream); }
  .ws-sort.on:hover { color: var(--cream); }
  .tk-text:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; border-radius: 4px; }
  /* the placeholder a lazily-fetched body sits in until the words arrive — replaced by the
     drawer's own .tp-msg paragraphs the moment they do */
  .exp-text { font-size: 12.5px; color: var(--ink-70); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
  .ws-done { margin-top: 2px; border-top: 1px solid var(--hairline); }
  .ws-done > summary { list-style: none; cursor: pointer; padding: 11px 2px 6px; font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-50); display: flex; align-items: center; gap: 6px; }
  .ws-done > summary::-webkit-details-marker { display: none; }
  .ws-done > summary .dchev { width: 11px; height: 11px; transition: transform .18s var(--ease); }
  .ws-done[open] > summary { color: var(--ink-70); }
  .ws-done[open] > summary .dchev { transform: rotate(90deg); }
  .ws-done-list .task-line { opacity: .72; }
  .ws-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
  .ws-filters .reset { display: inline-flex; align-items: center; height: 32px; background: transparent; border: 1px solid var(--hairline-strong); border-radius: var(--r-pill); padding: 0 12px; color: var(--terracotta-deep); font: 600 12px var(--sans); cursor: pointer; }
  .ws-filters .reset:hover { border-color: var(--terracotta); background: rgba(219,124,73,0.08); }
  /* The search box is shared with Book of business, where it sits in a row of its own and
     190px is enough. Here it heads a row of five other controls and reads as the smallest
     thing in it, while being the one you type a sentence into. */
  .ws-filters .bob-search { flex: 0 0 228px; min-width: 228px; }
  /* quick date-range chips — reuse the Book-of-business .qf-pill component; scopes every dated widget */
  .ws-fdiv { align-self: stretch; width: 1px; margin: 5px 3px; background: var(--hairline-strong); }
  /* The one filter that is about a person rather than a property, so it carries their face.
     It sits directly after the search box because "everything / just mine" is the first cut
     anyone makes, before they think about lifecycle or country. */
  .qf-pill.qf-me { gap: 8px; padding-left: 5px; }
  .qf-me .owner-avatar { width: 24px; height: 24px; font-size: 9px; }
  .qf-pill.qf-me.active .owner-avatar { border-color: var(--forest); box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
  /* ── the activity + email lists ──
     These are the drawer's touchpoint list, not a second design of the same thing. Same row,
     same icons, same category pills, same disclosure, same edit and delete. The only thing
     added is the account it happened on, because here you are reading across the book
     rather than down one account. */
  /* the card's own inset. The row rhythm inside it is the drawer's, set once above. */
  .ws-list { padding: 2px 16px 10px; }
  .tp-acct { color: var(--ink-70); font-weight: 600; cursor: pointer; border-radius: 3px; }
  .tp-acct:hover { color: var(--forest); text-decoration: underline; }
  .tp-acct:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
  /* the note composer, standing in for the row being edited */
  .ws-cmp { padding: 10px 0; }
  .ws-empty { padding: 24px 16px; text-align: center; color: var(--ink-50); font-size: 12.5px; }
  .d-section.dsec-flash { animation: dsecFlash 1.4s var(--ease) both; }
  @keyframes dsecFlash { 0%,18% { background: rgba(110,142,92,.10); } 100% { background: transparent; } }
  .ws-changes .af-list { padding: 4px 16px 8px; }
  .ws-card .cl-more { margin: 4px 16px 12px; }

  /* ── Workspace · the week ────────────────────────────────────────────────────────────
     A second view of the same sources, laid out by the day a thing happened on. The board
     answers "what is on my plate"; a rolling 90-day list cannot answer "what did this week
     look like", because it has no idea where one week ends and the next starts.

     Everything inside a cell is the row the board already draws — the same .task-line and
     .tp-item and .af-row markup, so ticking, editing, deleting and expanding run through
     one set of code paths rather than two that can drift apart. All this block does to
     them is re-flow the parts for a column a quarter of the width: the due chip holds the
     title line, the byline wraps under it, and the hover buttons take a line of their own
     instead of stealing width from the text they act on. */
  /* .scope-row, not .tabbar. The two draw the same underline, but .tabbar is the APP bar —
     it carries a max-width:720px rule that drops its own border, so at 700px the active
     underline floated with no rail under it. .scope-row is the app's in-panel switcher
     (Accounts / Schools / Contacts) and is what this is. */
  .wk-tabs { margin: -4px 0 18px; }
  .wk-tabs .scope-chip svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .65; }
  .wk-tabs .scope-chip.active svg { opacity: 1; }
  .wk-nav { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; }
  .wk-arrow { width: 34px; height: 34px; border-radius: var(--r-pill); border: 1px solid var(--hairline-strong); background: var(--paper); color: var(--ink-70); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
  .wk-arrow:hover:not(:disabled) { border-color: var(--forest-soft); color: var(--forest); }
  .wk-arrow:disabled { opacity: .35; cursor: default; }
  .wk-arrow svg { width: 14px; height: 14px; }
  .wk-wk { font: 700 11px var(--sans); color: var(--forest); background: var(--forest-wash); padding: 5px 10px; border-radius: var(--r-pill); white-space: nowrap; }
  .wk-range { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ink); white-space: nowrap; }
  .wk-nav .spring { flex: 1; }
  /* The week's totals. They sat immediately after the date, where a 16px display headline and
     five bold numbers were fighting over the same corner of the row. They are a readout, not a
     control, but they belong with the controls on the right far more than they belong wedged
     against the date — and the row now reads left to right as: move, where you are … what is
     in it, what it is showing. Each count is one nowrap unit so a number can never wrap away
     from the word it counts, and the dots are gone: at 12px, five of them between bold numbers
     were most of the mess. Spacing chunks it instead. */
  .wk-sum { display: inline-flex; align-items: baseline; gap: 13px; font: 500 12px var(--sans); color: var(--ink-30); }
  .wk-sum > span { white-space: nowrap; }
  .wk-sum b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; margin-right: 4px; }

  /* Below ~1000px the columns stop being readable long before they stop fitting, so the
     grid scrolls sideways rather than squeezing six columns into a phone. */
  /* overflow-x:auto makes this a scroll container on BOTH axes, so --shadow-card was being
     clipped to nothing. The padding is the room it needs; the negative margin gives it back. */
  .wk-scroll { overflow-x: auto; padding: 2px 2px 20px; margin: -2px -2px -18px; }
  .wk-grid { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; min-width: calc(var(--wk-cols, 6) * 156px); }
  /* a delete confirm opens below and to the right of its row, and both of these would clip it */
  /* NOT overflow:visible — that destroys the scroll container, snaps scrollLeft to 0 and
     yanks the grid sideways under the pointer just as the confirm opens. Only the vertical
     clip is in the way, and padding is what buys the room back. */
  .wk-scroll.has-confirm { overflow-x: auto; overflow-y: hidden; padding-bottom: 140px; margin-bottom: -138px; }
  .wk-grid.has-confirm { overflow: visible; }
  .wk-row { display: grid; grid-template-columns: repeat(var(--wk-cols, 6), minmax(0, 1fr)); }
  .wk-row.head { background: var(--mute); border-bottom: 1px solid var(--hairline); }
  .wk-row.head .wk-cell { padding: 11px 12px; align-items: center; gap: 5px; }
  .wk-row.head .wk-cell.tod { background: var(--forest); }
  .wk-row.head .wk-cell.tod .wk-dow, .wk-row.head .wk-cell.tod .wk-dnum { color: var(--cream); }
  /* its own chip. It wore .nt-cat, which is the note-CATEGORY pill and means "this note is
     filed as", and it wore amber, which in this product means watch. Both were saying
     something untrue about a column that has already turned forest to say Today. */
  .wk-today { display: inline-flex; align-items: center; height: 16px; padding: 0 7px; border-radius: var(--r-pill); font: 700 9.5px var(--sans); text-transform: uppercase; letter-spacing: .05em; background: rgba(252,246,237,0.18); color: var(--cream); }
  .wk-row.head .wk-cell.spill .wk-dow { color: var(--terracotta-deep); }
  .wk-dow { font: 700 10px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-50); }
  .wk-dnum { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink); }
  .wk-cell { border-right: 1px solid var(--hairline); min-width: 0; display: flex; flex-direction: column; }
  .wk-cell:last-child { border-right: 0; }
  .wk-cell.spill { background: var(--terracotta-wash); }
  /* Today wore a forest wash, which at this size reads grey-green — so the one column you
     are most likely to be working in looked like the one that had been disabled. The header
     stays solid forest and the body goes back to paper; the column is marked by an edge down
     both sides instead of by a fill, which is the loudest thing on the grid without touching
     the legibility of a single row in it. */
  .wk-cell.tod { box-shadow: inset 2px 0 0 var(--forest), inset -2px 0 0 var(--forest); }
  .wk-sec { padding: 0 12px 10px; }
  /* ── two weights, not one ───────────────────────────────────────────────────────────
     v8.57 fixed three inconsistent rules by flattening them into one, and flat was the
     wrong answer: the boundary between two SECTIONS and the gap between two notes were
     drawn identically, so a column read as eight identical lines and you had to read a
     heading to find where one section ended. The section boundary is the only line that
     crosses the whole cell, and it is the darker hairline. A row inside a section gets the
     lighter one, inset past the glyph column — subordinate by weight and by where it
     starts, which is how a nested list is drawn everywhere else in this app. */
  .wk-sec + .wk-sec { border-top: 1px solid var(--hairline-strong); }
  .wk-seclab { display: flex; align-items: center; gap: 6px; padding: 11px 0 3px; font: 700 10px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-30); }
  .wk-seclab svg { width: 12px; height: 12px; flex: none; margin: 0; }
  /* one slot on the right of the label, so a day with overdue work and a day without do
     not draw their label at two different heights */
  .wk-seclab .grp { margin-left: auto; display: flex; align-items: center; gap: 5px; }
  /* One shape for every count on the right of a heading. There were three: a bare display
     number, a terracotta "1 OVERDUE", and a grey "1 NO DATE" — three treatments in one
     column, for what is always the same thing, a count of the rows below. One chip now,
     in two colours: grey for a count, terracotta when some of them are late. */
  .wk-seclab .n, .wk-seclab .od {
    display: inline-flex; align-items: center; height: 15px; padding: 0 6px;
    border-radius: var(--r-pill); background: var(--mute); color: var(--ink-50);
    font: 700 9.5px var(--sans); letter-spacing: .04em; font-variant-numeric: tabular-nums;
    white-space: nowrap; }
  .wk-seclab .od { background: rgba(219,124,73,0.14); color: var(--terracotta-deep); }
  /* third of three. It says so by sitting last and by being grey, rather than by wearing a
     band of its own — a filled strip across the foot of every column read as a fourth
     region of the page instead of as the quietest part of a day. */
  .wk-sec.chg .wk-seclab, .wk-sec.chg .wk-seclab .n { color: var(--ink-30); }
  /* A day where nothing happened says so once. It used to say it four times — a heading and
     a "nothing" line for each of the four sections, whether or not there was anything to
     head — which across six columns was 24 headings and most of the ink in the grid spent on
     the absence of news. A section with no rows is not drawn at all now, so a heading means
     there is something under it, and a cell with no sections left gets this one line. */
  .wk-quiet { font: 500 11px var(--sans); color: var(--ink-30); padding: 14px 12px 16px; }
  /* one word, wherever it is used: a person's name, a date. Set here rather than in the week
     block because the rows it is written into are the drawer's and the board's too. */
  .nw { white-space: nowrap; }
  .wk-more { font: 600 10.5px var(--sans); color: var(--forest-soft); background: transparent; border: 0; padding: 6px 0 2px; cursor: pointer; text-align: left; transition: color var(--dur-fast) var(--ease); }
  .wk-more:hover { color: var(--forest); text-decoration: underline; }
  .wk-cell .task-line { display: grid; grid-template-columns: 15px minmax(0,1fr) auto; column-gap: 8px; align-items: start; padding: 10px 0 11px; font-size: 12px; }
  .wk-cell .task-line > input { grid-area: 1 / 1; margin-top: 0; }
  .wk-cell .task-line > .tk-text { grid-area: 1 / 2; }
  .wk-cell .task-line > .tk-due { grid-area: 1 / 3; margin-top: 1px; font-size: 11px; }
  /* the buttons get a line of their own rather than stealing width from the text they act
     on — but only once they are wanted. Held open, it cost 38px on every row, which on a
     busy Thursday was most of a screen of nothing. */
  .wk-cell .task-line > .row-act { grid-area: 2 / 2 / 3 / 4; justify-content: flex-end; min-width: 0; height: 0; margin-top: 0; overflow: hidden; }
  .wk-cell .task-line:hover > .row-act, .wk-cell .task-line:focus-within > .row-act { height: 26px; margin-top: 2px; }
  .wk-cell .tk-meta { font-size: 10.5px; margin-top: 4px; }
  /* the board's rule is .ws-tasklist .task-item:first-child, and there is no such wrapper
     here — the rows are siblings of the section label, so :first-child is always the label
     and the rule matched nothing. Every section drew a hairline 3px under its own heading. */
  .wk-cell .wk-sec > .wk-seclab + .task-item > .task-line::after,
  .wk-cell .wk-sec > .wk-seclab + .tp-item::after,
  .wk-cell .af-list > .af-row:first-child::after { display: none; }
  .wk-cell .tp-item { grid-template-columns: 16px minmax(0,1fr); column-gap: 8px; padding: 10px 0 11px; }
  .wk-cell .tp-item .tp-act { grid-column: 2; grid-row: 2; justify-content: flex-end; min-width: 0; margin-top: 3px; }
  .wk-cell .tp-item .tp-body { grid-column: 1 / -1; }
  .wk-cell .tp-head { gap: 5px; row-gap: 3px; }
  .wk-cell .tp-date { font-size: 10.5px; line-height: 1.4; }
  .wk-cell .tp-subj { font-size: 12px; line-height: 1.35; margin-top: 3px; }
  .wk-cell .tp-icon svg { width: 13px; height: 13px; }
  .wk-cell .nt-cat { height: 16px; font-size: 9px; padding: 0 6px; }
  /* .tp-subj already breaks anywhere; these did not, and a pasted link in a task title ran
     straight across the neighbouring column — the box stayed inside its track, so only the
     glyphs escaped and no overflow measurement could see it */
  .wk-cell .tk-text, .wk-cell .tk-meta, .wk-cell .tk-det,
  .wk-cell .af-line, .wk-cell .af-detail, .wk-chgline { overflow-wrap: anywhere; }
  .wk-cell .af-list { padding: 0; }
  .wk-cell .af-row { padding: 9px 0; gap: 8px; }
  .wk-cell .af-line, .wk-cell .af-delta, .wk-cell .af-detail { font-size: 11px; }
  .wk-cell .af-when { font-size: 10px; }
  .wk-chgbtn { display: flex; align-items: baseline; gap: 5px; background: transparent; border: 0; padding: 5px 0 2px; cursor: pointer; text-align: left; font: 600 11.5px var(--sans); color: var(--ink-50); transition: color var(--dur-fast) var(--ease); }
  .wk-chgbtn:hover { color: var(--forest); }
  .wk-chgline { font: 500 10.5px/1.45 var(--sans); color: var(--ink-30); padding: 0 0 4px; }

  /* ── the content chips ──────────────────────────────────────────────────────────────
     Drawn as the drawer's timeline chips are drawn — the glyph carries its kind's colour at
     rest, the chip in force fills with it, which is one coloured chip on screen rather than
     nine. Resting rule before .active, or the two weigh the same and the fill loses. */
  .wk-cgrp { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .ws-filters > .wk-cgrp::before { content: ""; align-self: stretch; width: 1px; margin: 5px 0; background: var(--hairline-strong); }
  /* Onboarding narrows what the activity section shows rather than which sections there are,
     so it sits a gap away from the eight that pick sections. */
  .wk-cgrp .qf-pill.onb { margin-left: 14px; }
  .wk-cgrp .qf-pill.has-ico svg { color: var(--chip, currentColor); }
  .wk-cgrp .qf-pill:hover { border-color: var(--chip, var(--forest-soft)); color: var(--chip, var(--forest)); }
  .wk-cgrp .qf-pill.active { background: var(--chip, var(--forest)); border-color: var(--chip, var(--forest)); color: var(--cream); }
  .wk-cgrp .qf-pill.active svg { color: inherit; }

  /* ── one rule, one width ────────────────────────────────────────────────────────────
     Three kinds of horizontal line met in a cell and no two were the same: the section
     separator ran the full width, the row separators were inset by the section's padding,
     and .tp-item's 6px radius rounded the ends of its own. Every row is pulled back out to
     the cell's edges, so a rule is a rule wherever it falls. */
  .wk-cell .task-line, .wk-cell .tp-item, .wk-cell .af-row {
    margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; border-radius: 0;
    border-top: 0; position: relative; }
  .wk-cell .task-line::after, .wk-cell .tp-item::after, .wk-cell .af-row::after {
    content: ""; position: absolute; top: 0; right: 12px; height: 1px; background: var(--hairline); }
  .wk-cell .task-line::after, .wk-cell .tp-item::after { left: 35px; }  /* past the box / the glyph */
  .wk-cell .af-row::after { left: 50px; }                               /* past the face */

  /* ── open work is the thing to act on, so it reads warm ────────────────────────────
     The lightest step of the risk pigment for anything still open, a stronger one once it is
     late. Completed rows stay on the cell's own ground: they are a record, not a queue. */
  .wk-cell .task-line:not(.done) { background: rgba(219,124,73,0.055); }
  .wk-cell .task-line.late:not(.done) { background: rgba(219,124,73,0.12); }
  /* the carried column is already tinted; doubling it there would flatten the difference */
  .wk-cell.spill .task-line:not(.done) { background: transparent; }
  .wk-cell.spill .task-line.late:not(.done) { background: rgba(219,124,73,0.10); }

  /* ── the hover controls float; they do not push ────────────────────────────────────
     They were given a line of their own that opened on hover, so pointing at a row shoved
     everything under it down the column — and moving the pointer down the list made the list
     move with it. They sit over the row now, on paper, and the layout does not know they are
     there. */
  /* Drawn as a thing sitting ON the row rather than a hole cut in it: paper, pill-shaped, a
     hairline and the pop shadow. The 3px paper ring it wore instead was a hard-edged slab, and
     a hard edge across a line of text does not read as a control on top of the words — it
     reads as words that have been cut off. Same pixels covered either way; only one of them
     says why. */
  .wk-cell .task-line > .row-act, .wk-cell .tp-item .tp-act {
    position: absolute; top: 4px; right: 6px; grid-area: auto; margin: 0; height: auto; min-width: 0;
    padding: 0 3px; background: var(--paper); border-radius: var(--r-pill);
    box-shadow: 0 0 0 1px var(--hairline), var(--shadow-pop); }
  .wk-cell .tp-item .tp-act { top: 7px; }
  /* …and the row keeps the whole width of the cell: the text runs under the corner they use,
     and they come up on top of it when the pointer is on the row. What was wrong was never
     the overlap — it was that the corner was occupied while nobody was pointing at it. The
     chevron lives in this same cluster and is drawn at rest everywhere else in the app, so a
     note sat with 69px of its byline under an opaque chip permanently, which is what reads as
     a line that has been cut. In a week cell the whole cluster waits for the hover. */
  .wk-cell .tp-item .tp-act { opacity: 0; transition: opacity var(--dur-fast) var(--ease); }
  .wk-cell .tp-item:hover .tp-act, .wk-cell .tp-item:focus-within .tp-act { opacity: 1; }

  /* ── touch ──────────────────────────────────────────────────────────────────────────
     Every control in this app that is quiet until you hover it. A phone fires no hover,
     so each of these was invisible on one — still in the DOM, still tappable, which is
     the worst version of it: present, live, and impossible to find. The report that
     opened this block was "I tried to delete the pinned message but it did not delete
     it", from a phone, about a delete button rendering at opacity 0.

     This is the one place the app makes that decision, and preflight fails the build if
     a hover-revealed control is added anywhere without a line here. Adding one is the
     whole fix: they are quiet because a column of live-looking buttons reads as a column
     of things to click, and on a touch screen that argument buys nothing, because there
     is no hover state to be quiet relative to.

     Left out on purpose, and each for the same reason — the interaction itself does not
     exist on a touch screen, so revealing its handle would advertise something that
     cannot be done: .col-move and .col-resize (column drag and resize, both mouse-drag),
     and .composer .cmp-btn, which is revealed by :focus-within and so already appears
     the moment the field it belongs to is tapped. Selectors here match the specificity
     of the rule they override, and the block sits last so source order settles the rest. */
  @media (hover: none) {
    /* edit + delete, on notes, tasks and the pinned and adoption cards */
    .row-act { opacity: 1; }
    /* the ⋯ that opens a school row's actions, and the plus that attaches one — both are the
       only way in to what they open, and neither has a hover to be revealed by */
    .sch-dots { opacity: 1; }
    /* the pencil that says a key fact can be typed into. .5 rather than 1, the same as the
       table's edit caret: it marks the field as editable rather than asking to be pressed */
    .kv-pen { opacity: .5; }
    /* and the plus that attaches a school, which is the only way in to the picker */
    .d-head .sec-act { opacity: 1; }
    /* in a week cell these float over the row, which is right for a pointer and wrong for a
       finger — permanently visible, they would sit on top of the words. They flow instead. */
    .wk-cell .task-line > .row-act, .wk-cell .tp-item .tp-act {
      position: static; background: none; box-shadow: none; justify-content: flex-end; margin-top: 2px; }
    /* and with them back in the flow they are not waiting on a hover that never comes */
    .wk-cell .tp-item .tp-act { opacity: 1; }
    /* add a note / add a task, from a Book of Business cell */
    .acct-row .nc-cell.can .nc-act, .acct-row .tk-cell.can .nc-act { opacity: 1; }
    /* the disclosure chevron: the only thing that says a row or card has more text in it.
       Tapping the row already opened it — there was just nothing to say the row would. */
    .tp-item.clickable .tp-chev, .pin-card.clickable .tp-chev { opacity: 1; }
    /* the arrow that says a watchlist row goes somewhere */
    .wl-row .row-go { opacity: 1; transform: translateX(0); }
    /* the caret that says a table cell is editable — .5, not 1, which is what a hover
       gives it: it marks a field as editable rather than asking to be pressed */
    .es-caret { opacity: .5; }
    /* the faint double-chevron that says a column can be sorted. Scoped away from the
       column that IS sorted, which has its own arrow and hides this one — unscoped, this
       rule sits last and would put both indicators in the same header. */
    th.sortable:not(.sorted-asc):not(.sorted-desc) .sort-ind .si-neutral { opacity: .5; }
  }

  /* ── a popover opens where there is room for it ──────────────────────────────────────
     Every anchored popover in this file opens BELOW the thing that opened it, by CSS, at
     `top: calc(100% + 6px)`. That is right whenever there is room below and silently wrong
     whenever there is not: the bottom of it leaves the window, or leaves the scrolling
     panel it sits in, and whatever is down there cannot be read or pressed. Reported from
     the Book of Business on 2026-08-17 — "there is the calendar and I wanted to choose 10th
     of August but cannot reach the date" — where three of the six rows of a month were past
     the bottom edge.

     popFit() measures each open popover against the box that actually clips it and writes
     one of these classes. None of them means anything on its own, and none is ever written
     by a template: reading a `pop-up` in the DOM means the measurement said so.

     This block sits last, after the touch block, and that is half the override: `.dp`,
     `.es-menu` and the rest all set `top` at the same specificity, so between equals source
     order decides. Moving it earlier turns the flip back off and nothing about the page will
     look different until somebody is at the foot of a list.

     The other half is `!important`, added 2026-08-24, and it is doing real work rather than
     papering over a cascade nobody understood. Source order only settles a tie. Any rule
     that anchors a popover with a compound selector — `.field-row .field:last-child …
     .es-menu` at four classes, or one of the `.es-confirm` popovers carrying its position
     in a style attribute — outranks a bare `.pop-*` no matter where the block sits, and a
     correction that loses the cascade is the worst of the three outcomes: the measurement
     is right, the class is in the DOM, the popover has not moved, and every diagnostic says
     the fitter ran. That is the shape of the .qf-pill.has-ico bug and it is exactly what
     `.pop-start` did on the day it was written — it landed on the Lifecycle menu and the
     four-class rule underneath it kept the menu 98px outside the panel.

     These four classes are the last word on where a popover sits, by design: they are the
     only thing in the file that has measured the room. Nothing else may outrank them, which
     is what `!important` says. */
  .pop-up { top: auto !important; bottom: calc(100% + 6px) !important; }
  .pop-end { left: auto !important; right: 0 !important; }
  /* the same answer given on the other side. A popover the stylesheet hangs from its RIGHT
     edge is cut off on the LEFT by identical arithmetic, and until 2026-08-24 nothing asked:
     popFit() could turn a left-aligned menu into a right-aligned one and had no way back.
     Written only when the measurement says the left edge is out and the right one would not
     be, so it can never fight .pop-end for the same popover. */
  .pop-start { left: 0 !important; right: auto !important; }
  /* taller than the room on either side: scroll it rather than cut it */
  .pop-cap { overflow-y: auto !important; overscroll-behavior: contain; }

  /* The mirror of the same problem, found by sweeping for it rather than reported. The two
     provenance tooltips are the only overlays in the file that open UPWARDS, so they are cut
     off at the TOP rather than the bottom: each occupies [host − 45px, host − 17px], and a
     row scrolled into the first 45px of the drawer draws its tooltip off the window entirely.
     37 rows on an account carry one.

     A pseudo-element has no node, so popFit() cannot reach it and this cannot be one more
     entry in POP_FIT_SEL. The class therefore goes on the HOST and the rule re-points the
     ::after — which is also why these two selectors carry the whole compound rather than a
     bare `.tip-down`: the base rules are `.kv-row[data-src]::after` and
     `.fg-field > label[data-src]::after`, and only an extra class on the same compound
     outranks them. Source order would not settle this one. */
  .kv-row.tip-down[data-src]::after,
  .fg-field > label.tip-down[data-src]::after { bottom: auto; top: calc(100% + 7px); }

/* ═══════════════════════════════════════════════════════════════════════════
   THE LICENSE LINE
   ───────────────────────────────────────────────────────────────────────────
   A second business line on the same chrome. Everything here is built out of the
   existing tokens — three radii, three shadows, the charcoal-tinted neutrals, the
   earth pigments — so the two books read as one product with two books in it, not
   as two products sharing a URL.

   Where a colour appears it arrives through a --lcc custom property set inline from
   HEX in app.js, so the pigment is decided once, in the vocabulary tables, rather
   than being re-picked in CSS.
   ═══════════════════════════════════════════════════════════════════════════ */

  /* ── the switch ────────────────────────────────────────────────────────────
     [hidden] from the UA sheet loses to .tabi's own display, so which line's tabs
     are on the bar is decided by a class the stylesheet owns. One attribute on the
     bar, two rules. */
  .appbar[data-line="tk"] [data-line="lc"],
  .appbar[data-line="lc"] [data-line="tk"] { display: none !important; }

  .brand-cell { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

  /* ── the business-line switch ────────────────────────────────────────────────────────
     A segmented control, not a dropdown: there are two books and the one you are in is the
     most important piece of state in this bar, so it is readable without a click. The live
     segment lifts out of the track on white with the standard card shadow — the same
     treatment .lcseg-b.on gives the Trainings toggle, so the two read as one idea rather
     than two inventions. Forest on the live label is within the Action Green Rule, which
     names active states; the track and the resting label stay neutral so the colour is
     carried by exactly one thing. */
  .line-switch { position: relative; display: inline-flex; align-items: stretch; flex-shrink: 0;
    padding: 3px; background: var(--mute);
    border: 1px solid var(--hairline); border-radius: var(--r-pill);
    /* a groove rather than a plate: one hairline of inner shadow is enough to put the track
       behind the thing that slides on it, and is the only depth cue on the control besides
       the card shadow the live segment already carried */
    box-shadow: inset 0 1px 1.5px rgba(49,49,47,0.045); }

  /* THE RAISED SEGMENT IS ONE ELEMENT THAT MOVES, not a background that jumps between two.
     Exactly half the track wide, so the transform is a plain 100% and needs no measuring —
     which is why both segments are equal-width below rather than sized by their label.
     It keeps the treatment it had: paper ground, standard card shadow, the same thing
     .lcseg-b.on does on the Trainings toggle, so the two still read as one idea. */
  .line-thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px;
    width: calc(50% - 3px); border-radius: var(--r-pill);
    background: var(--paper); box-shadow: var(--shadow-card);
    transform: translate3d(0,0,0);
    transition: transform var(--dur-slow) var(--ease-out); }
  .line-switch[data-on="lc"] .line-thumb { transform: translate3d(100%,0,0); }

  .line-seg { position: relative; z-index: 1; flex: 1 1 0;
    border: 0; background: transparent; cursor: pointer; white-space: nowrap;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 5px 14px; border-radius: var(--r-pill);
    font: 700 12px var(--display); letter-spacing: -0.005em; color: var(--ink-50);
    transition: color var(--dur) var(--ease-out); }
  /* the glyph sits a touch below full weight when the segment is resting, so the live
     segment reads as the lit one by two signals rather than only by its ground */
  .line-seg .line-ic { width: 14px; height: 14px; flex: none; opacity: .75;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
  .line-seg:hover .line-ic { opacity: 1; }
  /* the arriving glyph settles from a hair under size — it lands with the thumb rather than
     being lit the instant the click happens, which is what makes the slide feel like one
     movement instead of a slide plus a colour change */
  .line-seg.on .line-ic { opacity: 1; transform: scale(1); }
  .line-seg:not(.on) .line-ic { transform: scale(.9); }
  .line-seg:hover { color: var(--ink); }
  .line-seg.on { color: var(--forest); }
  /* the live segment is already raised, so hover must not read as "this does something" */
  .line-seg.on:hover { color: var(--forest); cursor: default; }
  .line-seg:focus { outline: none; }
  .line-seg:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--forest-wash); }
  /* the first paint arrives already switched; only a user's click should move anything */
  .line-switch.no-anim .line-thumb,
  .line-switch.no-anim .line-seg,
  .line-switch.no-anim .line-ic { transition: none; }
  @media (prefers-reduced-motion: reduce) {
    .line-seg, .line-thumb, .line-seg .line-ic { transition: none; }
  }
  @media (max-width: 900px) {
    .brand-cell { gap: 8px; }
    .line-seg { padding: 5px 11px; font-size: 11.5px; gap: 5px; }
  }
  /* narrow: the glyph is enough, and the aria-label plus the hover still name the line */
  @media (max-width: 620px) {
    .line-seg .line-lab { display: none; }
    .line-seg { padding: 6px 10px; }
  }

  /* ── the chips ─────────────────────────────────────────────────────────────
     One shape for every licence status, coloured from --lcc, and always a glyph plus
     the written word: the Named State Rule applies here exactly as it does to a grade.
     .quiet drops the tint for an absence — "not set" is a state and gets a chip, but it
     should not shout as loudly as a problem does. */
  .lcchip, .lcph { display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
    padding: 3px 9px 3px 7px; border-radius: var(--r-pill); font: 600 11.5px var(--sans);
    color: var(--lcc, var(--ink)); background: color-mix(in srgb, var(--lcc, var(--ink)) 12%, transparent);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lcph { color: var(--lcph, var(--ink)); background: color-mix(in srgb, var(--lcph, var(--ink)) 11%, transparent); }
  .lcchip .cico, .lcph svg { width: 12px; height: 12px; flex: none; }
  .lcchip.quiet { background: var(--mute); color: var(--ink-50); }
  /* a judgment that carries a written reason gets a mark, so a state with a note behind it
     is distinguishable from the same state with nothing said about it */
  .state-badge.has-note::after, .lcchip.has-note::after { content: ""; width: 3.5px; height: 3.5px; flex: none;
    border-radius: 50%; background: currentColor; opacity: .55; margin-left: 1px; }
  .lcq-dash { color: var(--ink-30); font-weight: 500; }
  /* three places hang a data-tip off this; every other licence tooltip carrier shows it */
  .lcq-dash[data-tip] { cursor: help; border-bottom: 1px dotted var(--ink-18); }
  .lcq-unk { font: 600 11.5px var(--sans); color: var(--warm-grey); cursor: help; }

  /* ── enrolment against benchmark ───────────────────────────────────────────
     Three numbers on one track: the fill is children, the hairline is the benchmark for
     the centre's age, the heavy tick is break-even. The fill is sage and never anything
     else — it is a quantity, not a verdict, and the verdict has its own column. */
  .lcbb-leg { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 10px; }
  .lcbb-leg .lgi, .lcpt-leg .lgi { display: inline-flex; align-items: center; gap: 6px;
    font: 500 11px var(--sans); color: var(--ink-50); }
  .lcbb-leg .sw { width: 14px; height: 8px; border-radius: 2px; flex: none; }
  .lcbb-leg .sw.fill { background: var(--sage); }
  .lcbb-leg .sw.bench { width: 2px; height: 12px; border-radius: 1px; background: var(--ink-50); }
  .lcbb-leg .sw.be { width: 3px; height: 14px; border-radius: 1px; background: var(--ink); }
  .lcbb-leg .lgi.quiet { color: var(--ink-40); font-style: italic; cursor: help;
    border-bottom: 1px dotted var(--ink-30); }
  .lcbb { display: flex; flex-direction: column; }
  .lcbb-row { display: grid; grid-template-columns: minmax(150px, 1.5fr) minmax(120px, 3fr) 128px 96px;
    align-items: center; gap: 14px; padding: 9px 2px; border-top: 1px solid var(--hairline);
    cursor: pointer; transition: background var(--dur-fast) var(--ease); }
  .lcbb-row:first-child { border-top: 0; }
  .lcbb-row:hover { background: var(--mute); }
  .lcbb-row:focus-visible { outline: 2px solid var(--forest); outline-offset: -2px; }
  .lcbb-row.no-read { opacity: .72; }
  .lcbb-nm { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  .lcbb-nm b { font: 700 12.5px var(--display); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lcbb-nm em { font: 500 11px var(--sans); color: var(--ink-50); font-style: normal;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lcbb-track { position: relative; height: 14px; background: var(--sand); border-radius: var(--r-pill); }
  .lcbb-fill { position: absolute; inset: 0 auto 0 0; background: var(--sage); border-radius: var(--r-pill); }
  .lcbb-tick { position: absolute; top: -3px; bottom: -3px; border-radius: 1px; transform: translateX(-50%); cursor: help; }
  .lcbb-tick.bench { width: 2px; background: var(--ink-50); }
  .lcbb-tick.be { width: 3px; background: var(--ink); top: -5px; bottom: -5px; }
  .lcbb-v { text-align: right; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; gap: 1px; }
  .lcbb-v .lcbb-n b { font: 800 14px var(--display); color: var(--ink); letter-spacing: -0.01em; }
  .lcbb-v .lcbb-of { font: 600 11px var(--sans); color: var(--ink-50); margin-left: 3px; }
  .lcbb-v em { font: 600 10.5px var(--sans); color: var(--ink-50); font-style: normal; }
  .lcbb-v .lcbb-nov { font: 600 11.5px var(--sans); color: var(--terracotta-deep); }
  .lcbb-be { text-align: right; font-variant-numeric: tabular-nums; }
  .lcbb-bepc { font: 700 12.5px var(--sans); color: var(--ink-70); cursor: help; }
  .lcbb-bepc em { display: block; font: 500 9.5px var(--sans); color: var(--ink-50); font-style: normal; }
  .lcbb.lcbb-one .lcbb-row { cursor: default; grid-template-columns: 1fr 120px 86px; }
  .lcbb.lcbb-one .lcbb-nm { display: none; }
  .lcbb.lcbb-one .lcbb-row:hover { background: transparent; }
  @media (max-width: 760px) {
    .lcbb-row, .lcbb.lcbb-one .lcbb-row { grid-template-columns: 1fr 96px; row-gap: 6px; }
    .lcbb-track { grid-column: 1 / -1; }
    .lcbb-be { grid-column: 2; text-align: right; }
  }

  /* ── the priority matrix ───────────────────────────────────────────────────
     Two calls per operator, so a 2x2. The cell that matters carries a ring rather
     than a louder colour: it is the place on the screen the week starts from. */
  .lcpm { display: flex; flex-direction: column; gap: 8px; }
  .lcpm-ch { display: grid; grid-template-columns: 62px 1fr 1fr; gap: 8px; }
  .lcpm-ch span { font: 600 10px var(--sans); color: var(--ink-50); text-transform: uppercase;
    letter-spacing: .07em; text-align: center; line-height: 1.3; }
  .lcpm-grid { display: grid; grid-template-columns: 62px 1fr 1fr; gap: 8px; align-items: stretch; }
  .lcpm-rh { display: flex; align-items: center; justify-content: flex-end; text-align: right;
    font: 600 10px var(--sans); color: var(--ink-50); text-transform: uppercase; letter-spacing: .07em; }
  .lcpm-cell { background: color-mix(in srgb, var(--lcc) 7%, var(--paper)); border: 1px solid var(--hairline);
    border-radius: var(--r-md); padding: 10px 11px 11px; display: flex; flex-direction: column; gap: 3px;
    min-height: 92px; transition: box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
  .lcpm-cell.focus { border-color: color-mix(in srgb, var(--lcc) 42%, transparent); }
  .lcpm-cell.is-clickable { cursor: pointer; }
  .lcpm-cell.is-clickable:hover { box-shadow: var(--shadow-card); border-color: color-mix(in srgb, var(--lcc) 55%, transparent); }
  .lcpm-lab { font: 600 10.5px/1.35 var(--sans); color: var(--lcc); }
  .lcpm-n { display: flex; align-items: baseline; gap: 5px; }
  .lcpm-n span { font: 800 24px var(--display); color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
  .lcpm-n em { font: 500 11px var(--sans); color: var(--ink-50); font-style: normal; }
  .lcpm-meta { font: 500 10.5px/1.4 var(--sans); color: var(--ink-50); display: flex; align-items: center;
    gap: 4px; flex-wrap: wrap; margin-top: auto; }
  .lcpm-meta .state-badge { font-size: 10px; padding: 2px 6px 2px 5px; }
  .lcpm-unset { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: var(--r-md);
    background: var(--mute); font: 500 11.5px var(--sans); color: var(--ink-70); }
  .lcpm-unset.is-clickable { cursor: pointer; }
  .lcpm-unset.is-clickable:hover { background: var(--sand); }
  .lcpm-unset.done { background: transparent; border: 1px dashed var(--hairline-strong); }
  .lcpm-ut b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

  /* ── what needs attention ──────────────────────────────────────────────── */
  .lcq-body { padding: 14px 18px 16px; }
  .lcq-body.lw-host { padding: 6px 10px 8px; }
  .lcq-foot { margin-top: 12px; display: flex; justify-content: flex-start; }
  .lc-grid-top { align-items: start; }
  .lcat-row { display: flex; align-items: center; gap: 11px; padding: 9px 8px; border-radius: var(--r-md);
    cursor: pointer; transition: background var(--dur-fast) var(--ease); }
  .lcat-row:hover { background: var(--mute); }
  .lcat-row:focus-visible { outline: 2px solid var(--forest); outline-offset: -2px; }
  .lcat-ic { flex: none; display: inline-flex; }
  .lcat-ic .cico { width: 15px; height: 15px; }
  .lcat-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
  .lcat-what { font: 600 12.5px var(--sans); color: var(--ink); }
  .lcat-who { font: 500 11px var(--sans); color: var(--ink-50); display: flex; align-items: center;
    gap: 5px; flex-wrap: wrap; }
  .lcat-who .sep { color: var(--ink-30); }
  .lcat-who em { font-style: normal; color: var(--ink-40); }
  .lcat-row .row-go { display: inline-flex; color: var(--forest); opacity: 0; transform: translateX(-3px);
    transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
  .lcat-row .row-go svg { width: 15px; height: 15px; }
  .lcat-row:hover .row-go, .lcat-row:focus-visible .row-go { opacity: 1; transform: translateX(0); }

  /* ── the retraining money block ────────────────────────────────────────── */
  .lcm { display: flex; flex-direction: column; }
  .lcm-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding-bottom: 10px; border-bottom: 1px solid var(--hairline); }
  .lcm-tl { font: 600 11px var(--sans); color: var(--ink-50); text-transform: uppercase; letter-spacing: .08em; }
  .lcm-tv { font: 800 26px var(--display); color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
  .lcm-row { display: grid; grid-template-columns: 1fr auto 86px; gap: 10px; align-items: baseline;
    padding: 7px 0; border-bottom: 1px solid var(--hairline); }
  .lcm-row:last-of-type { border-bottom: 0; }
  .lcm-l { font: 600 12px var(--sans); color: var(--ink-70); }
  .lcm-n { font: 500 11px var(--sans); color: var(--ink-50); font-variant-numeric: tabular-nums; }
  .lcm-v { font: 700 13px var(--sans); color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
  .lcm-row.paid .lcm-v { color: var(--sage-deep); }
  .lcm-note { margin-top: 10px; font: 500 11.5px/1.5 var(--sans); color: var(--ink-50); }
  .lcm-note.bad { color: var(--terracotta-deep); }

  /* ── the book table ────────────────────────────────────────────────────── */
  /* --mute, not --cool: --cool is a blue-grey and this product is cream (No Navy Rule).
     It also barely separated the operator row from a centre row. */
  .lcop-row > td { background: var(--mute); }
  .book-main table.radar tbody tr.lcop-row > td:first-child { background: var(--mute); }
  .book-main table.radar tbody tr.lcop-row:hover > td:first-child { background: var(--sand); }
  .lcop-nm { display: flex; align-items: center; gap: 6px; min-width: 0; }
  .lcop-chev { flex: none; width: 20px; height: 20px; display: inline-flex; align-items: center;
    justify-content: center; border: 0; background: transparent; border-radius: var(--r-sm);
    color: var(--ink-50); cursor: pointer; transition: transform var(--dur) var(--ease), background var(--dur-fast) var(--ease); }
  .lcop-chev svg { width: 13px; height: 13px; }
  .lcop-chev:hover { background: var(--sand); color: var(--ink); }
  .lcop-chev.open { transform: rotate(90deg); }
  .lcop-chev:focus { outline: none; }
  .lcop-chev:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--forest-wash); }
  .lcop-tt { min-width: 0; display: flex; flex-direction: column; gap: 1px; cursor: pointer; }
  .lcop-tt b { font: 700 13px var(--display); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lcop-tt em { font: 500 10.5px var(--sans); color: var(--ink-50); font-style: normal;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lcc-row.collapsed { display: none; }
  .lcc-nm { display: flex; align-items: stretch; gap: 8px; min-width: 0; padding-left: 7px; }
  .lcc-rail { flex: none; width: 2px; border-radius: 1px; background: var(--hairline-strong); margin-left: 5px; }
  .lcc-tt { min-width: 0; display: flex; flex-direction: column; gap: 1px; justify-content: center; }
  .lcc-tt b { font: 600 12.5px var(--sans); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lcc-tt em { font: 500 10.5px var(--sans); color: var(--ink-50); font-style: normal; }
  /* ── the Centres tab ──────────────────────────────────────────────────────────────
     A flat row with no rail, so the name cell loses the indent the nested one needs. */
  .lcf-row td[data-col="name"] .lcc-tt { padding-left: 2px; }
  /* The operator cell is a second destination inside a row that already has one, so it
     has to look like a link and the row must not look like two. Underline on hover only:
     fifteen underlined operator names down a column would read as the column being the
     point, and the centre is. */
  /* display:block, not inline-flex: text-overflow has no effect on a flex container, and the
     first version clipped "Al Khaleej Training and Educat" mid-word with no ellipsis, which
     reads as a rendering fault rather than as a name that did not fit. */
  .lcf-op { display: block; max-width: 100%; cursor: pointer; border-radius: 5px;
    font: 500 12px var(--sans); color: var(--ink-70);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    transition: color var(--dur-fast) var(--ease); }
  .lcf-op:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 2px; }
  .lcf-op:focus { outline: none; }
  .lcf-op:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--forest-wash); }
  #panel-lcbook table.radar td[data-col="operator"] { overflow: hidden; }
  /* three cells in this table hold a sentence in a narrow column. Clipping mid-word reads
     as a rendering fault, so they ellipsise and carry the full value on hover. */
  .lcmix { font: 500 11px var(--sans); color: var(--ink-70); display: block; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; cursor: help; }
  #panel-lcbook table.radar td[data-col="owner"] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .lcen { display: inline-flex; align-items: baseline; gap: 3px; font-variant-numeric: tabular-nums; }
  .lcen b { font: 700 13px var(--sans); color: var(--ink); }
  .lcen-of { font: 500 11px var(--sans); color: var(--ink-50); }
  .lcen-be { display: block; font: 500 10px var(--sans); color: var(--ink-40); font-style: normal; margin-top: 1px; }
  .lcpp { font: 700 12px var(--sans); font-variant-numeric: tabular-nums; color: var(--ink-70); }
  .lcpp.neg { color: var(--terracotta-deep); }
  .lcpp.pos { color: var(--sage-deep); }
  .lcbe { font: 700 12px var(--sans); font-variant-numeric: tabular-nums; }
  /* a ratio computed over fewer centres than the operator has. It is still useful and it
     has to say so, so it carries the dotted underline every "ask me" figure here uses. */
  .lcpart { border-bottom: 1px dotted var(--ink-30); cursor: help; }
  .lcbe.ok { color: var(--sage-deep); } .lcbe.warn { color: var(--amber-deep); } .lcbe.bad { color: var(--terracotta-deep); }
  .lcage { font: 700 11.5px var(--sans); font-variant-numeric: tabular-nums; cursor: help; }
  .lcage.ok { color: var(--sage-deep); } .lcage.warn { color: var(--amber-deep); } .lcage.bad { color: var(--terracotta-deep); }
  .lchl { display: inline-flex; align-items: center; gap: 6px; }
  .lchl b { font: 800 13px var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
  /* .q — the composite, demoted. Since the 2026-10-15 review the four areas beside it are the
     headline and this is the secondary read, so the number stops being the heaviest thing in
     the row. It is QUIETER, NOT GONE: still legible, still sortable, still in the drawer's
     four-bar breakdown, still on Docs → Health Score. It was promised it would stay —
     "I can still keep it, something at the end that you can also have a look at". */
  .lchl.q b { font: 600 11.5px var(--sans); color: var(--ink-50); }
  #panel-lcbook td[data-col="health"] .state-badge { font-size: 10.5px; padding-top: 2px; padding-bottom: 2px; }

  /* ── the four traffic lights ──────────────────────────────────────────────────────
     Four pips and a count. The pips say WHICH area, the count says HOW MANY of the areas
     that were read are a problem, and the tint says how bad at a glance — the review asked for
     all three and no one of them does the job on its own.
     The tint steps with the red count rather than being a single alarm colour: "two out of
     four, and then the colour changes to more red" is the ask, and a column that is either
     white or red cannot be ordered by eye. */
  .lclt { display: inline-flex; align-items: center; gap: 3px; cursor: help;
    padding: 3px 8px; border-radius: var(--r-pill);
    border: 1px solid transparent; transition: background var(--dur-fast) var(--ease); }
  .lclt b { margin-left: 4px; font: 700 10.5px var(--sans); font-variant-numeric: tabular-nums;
    color: var(--ink-50); white-space: nowrap; }
  .lclt.r0 { background: var(--mute); }
  .lclt.ra { background: color-mix(in srgb, var(--amber-deep) 10%, transparent); }
  .lclt.ra b { color: var(--amber-deep); }
  .lclt.r1 { background: color-mix(in srgb, var(--terracotta) 10%, transparent); }
  .lclt.r2 { background: color-mix(in srgb, var(--terracotta) 20%, transparent); }
  .lclt.r3 { background: color-mix(in srgb, var(--terracotta) 32%, transparent);
    border-color: color-mix(in srgb, var(--terracotta-deep) 30%, transparent); }
  .lclt.r1 b, .lclt.r2 b, .lclt.r3 b { color: var(--terracotta-deep); }
  /* a filled grey pip reads as a judgment, and an unread area is an ABSENCE — so it is drawn
     hollow. This is the same distinction migration 121 exists to protect one layer down. */
  .lclp { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--lcc); }
  .lclp.unread { background: transparent; box-shadow: inset 0 0 0 1.3px var(--lcc); }
  #panel-lcbook td[data-col="compound"] { overflow: visible; }
  .lchl .lchl-c { font: 600 9.5px var(--sans); font-style: normal; text-transform: uppercase;
    letter-spacing: .06em; color: var(--terracotta-deep); cursor: help; }
  .lcsp { display: inline-flex; align-items: center; gap: 4px; cursor: help; }
  .lcsp svg { width: 42px; height: 16px; overflow: visible; }
  .lcsp-dir { font: 700 9px var(--sans); font-style: normal; }
  .lcsp-none { color: var(--ink-30); cursor: help; }
  .fdrop-menu .fm-n { margin-left: auto; font: 500 10.5px var(--sans); color: var(--ink-40);
    font-variant-numeric: tabular-nums; }

  /* ── the record card ──────────────────────────────────────────────────────────────
     Six columns of mixed prose, so fixed layout with explicit widths: the two sentence
     columns would otherwise take whatever the short ones left and the table would reflow
     every time one row's wording changed. Wrapping rather than ellipsising, because these
     cells are the instruction — a clipped "Move the centre to Oper…" is useless. */
  /* `table.radar` is repeated inside every selector here on purpose. The base rules are
     `table.radar tbody td { white-space: nowrap }` and
     `table.radar td:first-child { width: 100% }`, both of which outrank a plain `.lcpr-t td`
     on element count — the first version of this block lost to both, so the sentence columns
     kept their one line and painted straight over their neighbours. */
  .lcpr-t table.radar { table-layout: fixed; width: 100%; }
  .lcpr-t table.radar thead th,
  .lcpr-t table.radar tbody td { white-space: normal; vertical-align: top; line-height: 1.45; }
  .lcpr-t table.radar th:nth-child(1), .lcpr-t table.radar td:nth-child(1) { width: 19%; min-width: 0; }
  .lcpr-t table.radar th:nth-child(2), .lcpr-t table.radar td:nth-child(2) { width: 16%; }
  .lcpr-t table.radar th:nth-child(3), .lcpr-t table.radar td:nth-child(3) { width: 21%; }
  .lcpr-t table.radar th:nth-child(4), .lcpr-t table.radar td:nth-child(4) { width: 20%; }
  .lcpr-t table.radar th:nth-child(5), .lcpr-t table.radar td:nth-child(5) { width: 15%; }
  .lcpr-t table.radar th:nth-child(6), .lcpr-t table.radar td:nth-child(6) { width: 9%; }
  .lcpr-cy { display: block; font: 500 10.5px var(--sans); color: var(--ink-50); font-style: normal; }
  .lcpr-says { font: 500 11.5px var(--sans); color: var(--ink-70); }
  /* what it costs reads back a shade, because it is the consequence and not the action */
  .lcpr-cost { font: 400 11.5px var(--sans); color: var(--ink-50); }
  /* the fix is the only imperative on the page, so it is the only thing in forest */
  .lcpr-fix { font: 600 11.5px var(--sans); color: var(--forest); }
  .lcpr-note { margin-top: 14px; padding: 11px 14px; background: var(--mute);
    border-radius: 10px; font: 400 12px/1.6 var(--sans); color: var(--ink-70); }

  /* ── the projects timeline ───────────────────────────────────────────────
     THE INSET IS DECLARED ONCE. The axis, the quarter grid, the today rule and every row's
     track all have to line up to the pixel, and the previous version repeated 256px/108px
     across four rules — which is how the today mark came to sit 200px right of the tick it
     belonged under, reading a December opening as already open. Change the grid below and
     every overlay follows. */
  .lcpt { --lcpt-nm: 248px; --lcpt-gap: 16px; --lcpt-sl: 86px; --lcpt-ow: 104px;
    /* left = name column + its gap · right = slip + owner + their gaps */
    --lcpt-l: calc(var(--lcpt-nm) + var(--lcpt-gap));
    --lcpt-r: calc(var(--lcpt-sl) + var(--lcpt-ow) + var(--lcpt-gap) * 2);
    display: flex; flex-direction: column; }
  .lcpt-axis { position: relative; height: 18px;
    margin-left: var(--lcpt-l); margin-right: var(--lcpt-r);
    border-bottom: 1px solid var(--hairline); }
  .lcpt-axis i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--hairline); }
  /* the first quarter of a year carries the heavier rule — the year is the thing you
     actually navigate by once the axis spans more than one */
  .lcpt-axis i.yr { background: var(--hairline-strong); }
  .lcpt-axis i em { position: absolute; left: 3px; top: 0; font: 500 9.5px var(--sans);
    color: var(--ink-40); font-style: normal; white-space: nowrap; }
  .lcpt-axis i.yr em { color: var(--ink-50); font-weight: 600; }

  /* the plot. Everything behind the rows is absolutely positioned against it and inset by
     the same two properties the row grid reserves. */
  .lcpt-plot { position: relative; display: flex; flex-direction: column; }
  .lcpt-grid, .lcpt-now { position: absolute; inset: 0 var(--lcpt-r) 0 var(--lcpt-l);
    z-index: 0; pointer-events: none; }
  .lcpt-grid i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--hairline);
    opacity: .5; }
  .lcpt-grid i.yr { opacity: 1; }
  /* today as a rule through the whole plot, not a tick on the axis. On a chart this sparse
     it is the difference between reading a row and tracing a column up the page. */
  .lcpt-now i { position: absolute; top: 0; bottom: 0; width: 1.5px; background: var(--forest-line);
    transform: translateX(-50%); }
  /* and everything left of it is the past, washed a shade back so "before now" is a region
     rather than something to work out from the diamonds */
  .lcpt-now b { position: absolute; top: 0; bottom: 0; left: 0; display: block;
    background: color-mix(in srgb, var(--ink) 2.5%, transparent); }

  /* ── the group headers ───────────────────────────────────────────────────
     The page is grouped by what a row needs, so the header has to carry the reason as well
     as the count — a bare "Past the contracted date" over two rows is a label, and the
     question is what to do about them. The reason is on the mark, not printed: five
     paragraphs of rationale between five short lists is a page nobody scrolls. */
  .lcpt-gh { display: flex; align-items: center; gap: 9px; position: relative; z-index: 2;
    padding: 16px 0 7px; }
  /* the first header, which is NOT :first-child — the grid and the today rule are both
     earlier children of the plot, so :first-child matched neither and never applied */
  .lcpt-now + .lcpt-gh { padding-top: 2px; }
  .lcpt-gh b { font: 700 11px var(--sans); color: var(--ink-70);
    text-transform: uppercase; letter-spacing: .07em; }
  .lcpt-gh .lcpt-gn { font: 700 10.5px var(--sans); font-variant-numeric: tabular-nums;
    color: var(--ink-50); background: var(--mute); padding: 1px 7px; border-radius: var(--r-pill); }
  .lcpt-gh .lcpt-gw { display: inline-flex; color: var(--ink-40); cursor: help; }
  .lcpt-gh .lcpt-gw svg { width: 13px; height: 13px; }
  .lcpt-gh .lcpt-gw:hover { color: var(--ink-70); }
  /* the two groups that are about the record rather than about a building site read in the
     colour of the thing they are: one is a problem to chase, one is a gap to fill */
  .lcpt-gh[data-g="late"] b { color: var(--terracotta-deep); }
  .lcpt-gh[data-g="opened"] b, .lcpt-gh[data-g="nodate"] b { color: var(--amber-deep); }

  .lcpt-row { display: flex; flex-direction: column; gap: 7px; position: relative; z-index: 1;
    padding: 11px 0; border-bottom: 1px solid var(--hairline); cursor: pointer;
    transition: background var(--dur-fast) var(--ease); }
  .lcpt-main { display: grid;
    grid-template-columns: var(--lcpt-nm) 1fr var(--lcpt-sl) var(--lcpt-ow);
    gap: var(--lcpt-gap); align-items: center; }
  /* the rows are deliberately translucent over the grid — a chart whose rows hid its own
     gridlines would be a list again. Hover is the opaque one, so the row you are pointing at
     lifts clear of everything behind it. */
  .lcpt-row:hover { background: var(--mute); }
  .lcpt-row:focus-visible { outline: 2px solid var(--forest); outline-offset: -2px; }
  .lcpt-row.risk { background: var(--terracotta-wash); }
  .lcpt-row.risk:hover { background: color-mix(in srgb, var(--terracotta) 9%, transparent); }
  /* align-items, or the status chip stretches to the whole name column and stops reading
     as a chip */
  .lcpt-nm { min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
  .lcpt-nm b { max-width: 100%; font: 700 12.5px var(--display); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lcpt-nm em { max-width: 100%; font: 500 10.5px var(--sans); color: var(--ink-50); font-style: normal;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lcpt-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 2px; }
  .lcpt-dis { display: inline-flex; color: var(--terracotta-deep); cursor: help; }
  .lcpt-dis svg { width: 13px; height: 13px; }
  /* the recorded blocker. Amber, not terracotta: a blocker somebody wrote down is a thing
     being worked on, where the mark beside it is a contradiction nobody has noticed. */
  .lcpt-blk { display: inline-flex; color: var(--amber-deep); cursor: help; }
  .lcpt-blk svg { width: 13px; height: 13px; }

  /* ── the phase, as five steps ───────────────────────────────────────────── */
  .lcpt-steps { display: inline-flex; align-items: center; gap: 3px; cursor: help; }
  .lcpt-steps i { width: 5px; height: 5px; border-radius: 50%; flex: none;
    background: var(--hairline-strong); }
  .lcpt-steps i.done { background: color-mix(in srgb, var(--plum) 55%, transparent); }
  .lcpt-steps i.now { width: 7px; height: 7px; background: var(--plum); }
  .lcpt-steps em { margin-left: 4px; font: 600 9.5px var(--sans); font-style: normal;
    color: var(--ink-50); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
  .lcpt-steps.none i { background: transparent; box-shadow: inset 0 0 0 1px var(--hairline-strong); }
  .lcpt-steps.none em { color: var(--ink-40); }

  .lcpt-track { position: relative; height: 16px; }
  .lcpt-span { position: absolute; top: 6px; height: 4px; border-radius: 2px;
    background: color-mix(in srgb, var(--plum) 28%, transparent); }
  /* the bar between the two diamonds IS the slip, so it carries the slip's direction:
     warm when the current date is later than the contract, cool when it is earlier. Drawn in
     one neutral tint it was the only part of the row that said nothing. */
  .lcpt-span.late { background: color-mix(in srgb, var(--terracotta) 34%, transparent); }
  .lcpt-span.early { background: color-mix(in srgb, var(--sage-deep) 26%, transparent); }
  .lcpt-d { position: absolute; top: 3px; width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg);
    border-radius: 1.5px; cursor: help; }
  .lcpt-d.con { background: var(--paper); box-shadow: inset 0 0 0 1.6px var(--ink-50); }
  .lcpt-d.est { background: var(--plum); }
  .lcpt-d.act { background: var(--sage-deep); }
  /* a date outside the fitted window, pinned to the edge. Hollowed to a ring and given a
     tail so it reads as "and further, that way" rather than as a date that is really here. */
  .lcpt-d.off { opacity: .55; }
  .lcpt-d.off::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.5px;
    background: var(--hairline-strong); transform: translate(-1px,-50%) rotate(-45deg); transform-origin: left center; }
  .lcpt-slip { text-align: right; }
  .lcpt-sb { display: block; font: 500 9.5px var(--sans);
    font-style: normal; color: var(--ink-50); text-transform: uppercase; letter-spacing: .04em; }
  .lcpt-own { min-width: 0; text-align: right; }
  .lcpt-ow { display: inline-block; max-width: 100%; font: 500 11px var(--sans); color: var(--ink-70);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; cursor: help; }
  .lcpt-leg { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 14px; }
  .lcpt-leg .dm { width: 9px; height: 9px; transform: rotate(45deg); border-radius: 1.5px; flex: none; }
  .lcpt-leg .dm.con { background: var(--paper); box-shadow: inset 0 0 0 1.6px var(--ink-50); }
  .lcpt-leg .dm.est { background: var(--plum); }
  .lcpt-leg .dm.act { background: var(--sage-deep); }
  .lcpt-leg .sw.today { width: 2px; height: 12px; background: var(--forest-line); flex: none; }
  /* the gates sit under the name, on their own line: four written labels do not fit beside a
     track and a slip, and squeezing them into a column is what made them overlap it. */
  .lcpt-gates { display: flex; justify-content: flex-start; }
  /* the cleared count in front of the chips. Tabular, because it sits at the head of fifteen
     rows of the same shape and a proportional "1/4" makes the column look crooked. */
  .lcg-n { font: 700 10.5px var(--sans); font-variant-numeric: tabular-nums; cursor: help;
    color: var(--ink-50); background: var(--mute); padding: 2px 7px; border-radius: var(--r-pill); }
  .lcg-n.all { color: var(--sage-deep); background: color-mix(in srgb, var(--sage-deep) 10%, transparent); }
  .lcg-n.none { color: var(--ink-40); }

  /* the enrolment sub-score beside the band: the band can sit well above what the
     enrolment reading alone would give, and that gap is the thing worth seeing */
  .lchl-enr { font: 500 10px var(--mono, var(--sans)); font-style: normal; color: var(--ink-50);
    background: var(--mute); padding: 1px 5px; border-radius: var(--r-pill); cursor: help;
    font-variant-numeric: tabular-nums; white-space: nowrap; }

  @media (max-width: 1100px) {
    /* the track is the first thing to go: below this the diamonds are closer together than
       the rows are tall, and a chart you cannot read a position off is worse than a list */
    .lcpt { --lcpt-l: 0px; --lcpt-r: 0px; }
    .lcpt-axis { margin-left: 0; margin-right: 0; }
    .lcpt-main { grid-template-columns: 1fr var(--lcpt-sl); row-gap: 8px; }
    .lcpt-track { grid-column: 1 / -1; order: 3; }
    .lcpt-own { grid-column: 1 / -1; order: 4; text-align: left; }
  }
  /* the gates. Grey is "nobody has recorded it", which is a different answer from "not done"
     — so it keeps its own treatment rather than borrowing the failure one. */
  .lcg { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
  /* border:1px solid transparent so .unk's border-style:dashed has a width to dash.
     Without it, border-width falls to the UA default `medium` (3px) in currentColor, and
     the unknown gate chip rendered 6px larger than its three siblings and off-baseline. */
  .lcg-i { border: 1px solid transparent; font: 600 10px var(--sans); padding: 2px 7px; border-radius: var(--r-pill); cursor: help;
    white-space: nowrap; }
  .lcg-i.ok   { color: var(--sage-deep); background: var(--sage-soft); }
  .lcg-i.warn { color: var(--amber-deep); background: var(--amber-soft); }
  .lcg-i.bad  { color: var(--terracotta-deep); background: rgba(185,73,41,0.11); }
  .lcg-i.todo { color: var(--ink-50); background: var(--mute); }
  .lcg-i.unk  { color: var(--ink-30); background: transparent; border-color: var(--hairline-strong); border-style: dashed; box-shadow: none; }
  .lcg-i.na   { color: var(--ink-30); background: transparent; box-shadow: inset 0 0 0 1px var(--hairline); }

  /* ── the trainings toggle ──────────────────────────────────────────────── */
  .lcseg-row { margin-top: 18px; }
  .lcseg { display: inline-flex; padding: 3px; background: var(--mute); border-radius: var(--r-pill);
    border: 1px solid var(--hairline); }
  .lcseg-b { border: 0; background: transparent; padding: 6px 16px; border-radius: var(--r-pill);
    font: 600 12.5px var(--sans); color: var(--ink-50); cursor: pointer;
    transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
  .lcseg-b:hover { color: var(--ink); }
  .lcseg-b.on { background: var(--paper); color: var(--forest); box-shadow: var(--shadow-card); }
  .lcseg-b:focus { outline: none; }
  .lcseg-b:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--forest-wash); }
  /* max-width:0 + width:28% only behaves under table-layout:fixed, and this table is auto —
     so the cell collapsed to 72px and the clause rendered as "Claus…". The constraint
     belongs on the span, which is the thing that needs to ellipsise. */
  .lctr-cl { font: 500 11.5px var(--sans); color: var(--ink-50); }
  .lctr-cl > span { display: block; max-width: 320px; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; cursor: help; }
  /* the contracted-but-unsited list: without widths the first column swallowed the table */
  .lcpt-ct table.radar { table-layout: fixed; width: 100%; }
  /* fixed widths with no clipping let a long operator name run 145px past its cell and
     paint over the country flag beside it */
  .lcpt-ct th, .lcpt-ct td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* the last column carries a date AND an overdue count, so it needs the room a 14% column
     did not have — it was clipping to "01 Sept 26 ·…" and the header to "EXCLUSIVIT…",
     which makes a table look broken rather than narrow.
     Seven columns since the block moved to the operator grain: operator, country, three
     narrow numerics, the named placeholders, the review date. The three counts are sized
     for their HEADERS rather than their values — "Still to come" is nine characters over a
     single digit, and a numeric column clipped to "Still to c…" reads as a bug. */
  .lcpt-ct th:nth-child(1), .lcpt-ct td:nth-child(1) { width: 21%; }
  .lcpt-ct th:nth-child(2), .lcpt-ct td:nth-child(2) { width: 13%; }
  .lcpt-ct th:nth-child(3), .lcpt-ct td:nth-child(3) { width: 10%; }
  .lcpt-ct th:nth-child(4), .lcpt-ct td:nth-child(4) { width: 9%; }
  .lcpt-ct th:nth-child(5), .lcpt-ct td:nth-child(5) { width: 11%; }
  .lcpt-ct th:nth-child(6), .lcpt-ct td:nth-child(6) { width: 20%; }
  .lcpt-ct th:nth-child(7), .lcpt-ct td:nth-child(7) { width: 16%; }
  /* The named placeholders are chips and there can be four of them, so this is the one cell
     in the table that is allowed to wrap and to grow the row. nowrap from the rule above is
     what would otherwise clip three of the four out of existence.
     The flex box is an inner div, not the cell: `display:flex` on a <td> takes it out of
     table layout and a table-layout:fixed column width stops applying to it. */
  .lcpt-ct td.lcpt-named { white-space: normal; }
  .lcpt-nw { display: flex; flex-wrap: wrap; gap: 4px; }

  /* ── the drawer ────────────────────────────────────────────────────────── */
  .lcd-parent { font: 600 12px var(--sans); color: var(--ink-50); margin-top: 3px; cursor: pointer;
    display: inline-block; border-radius: var(--r-sm); transition: color var(--dur-fast) var(--ease); }
  .lcd-parent:hover { color: var(--forest); }
  .lcd-parent:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
  /* the scope toggle. Not a filter — it changes which questions the panel answers, which is
     why it is a row of real buttons with their own sub-labels rather than a set of chips. */
  .lcsc { display: flex; gap: 6px; padding: 12px 26px 0; flex-wrap: wrap; }
  .lcsc-b { flex: none; text-align: left; border: 1px solid var(--hairline-strong); background: var(--paper);
    border-radius: var(--r-md); padding: 7px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 1px;
    transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
  .lcsc-b b { font: 700 12px var(--display); color: var(--ink); white-space: nowrap; }
  .lcsc-b em { font: 500 10px var(--sans); color: var(--ink-50); font-style: normal; white-space: nowrap; }
  .lcsc-b:hover { background: var(--mute); }
  .lcsc-b.on { border-color: var(--forest); background: var(--forest-wash); }
  .lcsc-b.on b { color: var(--forest); }
  .lcsc-b:focus { outline: none; }
  .lcsc-b:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--forest-wash); }
  .lcd-city { display: block; font: 500 10.5px var(--sans); color: var(--ink-50); }
  .lcd-none { font: 400 12.5px/1.6 var(--sans); color: var(--ink-50); padding: 4px 0 2px; }
  .lcd-sub { font: 700 10.5px var(--display); color: var(--ink-50); text-transform: uppercase;
    letter-spacing: .07em; margin: 18px 0 8px; }
  .lcd-foot { margin-top: 12px; font: 400 11.5px/1.55 var(--sans); color: var(--ink-50); }
  .lcd-vs { font: 500 11px var(--sans); color: var(--ink-40); }
  /* A sentence quoted out of the customer's own spreadsheet, shown so the chip above it can
     be checked. Wraps — the longest of them is 110 characters — which is why it overrides
     the key-value row's nowrap, and reads as a quotation rather than as a field value. */
  .lcd-verb { display: block; font: 400 11.5px/1.5 var(--sans); color: var(--ink-70);
    white-space: normal; border-left: 2px solid var(--hairline); padding-left: 8px; }
  .lcd-list { display: flex; flex-direction: column; gap: 2px; }
  .lcd-task { display: flex; align-items: flex-start; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--hairline); }
  .lcd-task:last-child { border-bottom: 0; }
  /* A dot, not a box. At 13px with a hairline border this was indistinguishable from an
     unchecked checkbox, in a section called "Next steps", on a surface with no write path. */
  .lcd-tb { flex: none; width: 5px; height: 5px; margin-top: 7px; border-radius: 50%;
    background: var(--ink-30); border: 0; box-shadow: none; }
  .lcd-tb-unused { width: 13px; height: 13px; margin-top: 2px; border-radius: 4px;
    border: 1.6px solid var(--hairline-strong); }
  .lcd-tt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .lcd-tt b { font: 600 12.5px var(--sans); color: var(--ink); }
  .lcd-tt em { font: 400 11.5px/1.5 var(--sans); color: var(--ink-70); font-style: normal; }
  .lcd-tm { font: 500 10.5px var(--sans); color: var(--ink-50); }
  .lcd-note { padding: 9px 0; border-bottom: 1px solid var(--hairline); }
  .lcd-note:last-child { border-bottom: 0; }
  .lcd-nh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .lcd-nh b { font: 700 12.5px var(--display); color: var(--ink); }
  .lcd-nh span { font: 500 10.5px var(--sans); color: var(--ink-50); white-space: nowrap; }
  .lcd-nb { font: 400 12.5px/1.6 var(--sans); color: var(--ink-70); margin-top: 4px; white-space: pre-wrap; }
  .lcd-na { font: 500 11px var(--sans); color: var(--ink-50); margin-top: 4px; }
  .lcd-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding: 6px 0; border-bottom: 1px solid var(--hairline); }
  .lcd-row:last-child { border-bottom: 0; }
  .lcd-row b { font: 600 12px var(--sans); color: var(--ink); }
  .lcd-row span { font: 500 11px var(--sans); color: var(--ink-50); text-align: right; }
  .lcd-links { display: flex; flex-direction: column; gap: 5px; }
  .lcl { display: inline-flex; align-items: center; gap: 5px; font: 600 12px var(--sans);
    color: var(--forest); text-decoration: none; }
  .lcl:hover { text-decoration: underline; }
  .lcl svg { width: 12px; height: 12px; }
  .lcd-xlink { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
  .lcd-xlink span { font: 400 11.5px/1.55 var(--sans); color: var(--ink-50); }
  /* the four figures above the enrolment bar */
  .lcd-enr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline);
    border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; margin-bottom: 16px; }
  .lcd-fig { background: var(--paper); padding: 11px 12px; display: flex; flex-direction: column; gap: 2px; }
  .lcd-fig .l { font: 600 9.5px var(--sans); color: var(--ink-50); text-transform: uppercase; letter-spacing: .07em; }
  .lcd-fig .v { font: 800 20px var(--display); color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
  .lcd-fig .s { font: 500 10.5px/1.35 var(--sans); color: var(--ink-50); }
  /* "20/120" and "14 mo" are one figure, not two: the denominator and the unit are quieter
     and smaller so the eye still lands on the number. Same treatment the bar uses for its
     own /capacity (.lcbb-of), kept separate because this one sits inside a display-weight
     value and has to come back down two sizes rather than one. */
  .lcd-fig .v .lcd-vof { font: 700 13px var(--display); color: var(--ink-50); letter-spacing: 0; margin-left: 1px; }
  /* break-even and the last reading, under the four. Two columns, and the label stays the
     same size so this reads as a continuation of the strip above rather than a new idea.
     The two strips are joined into one bordered block by hand — a modifier on each — rather
     than with :has(), which appears nowhere else in this stylesheet. The negative margin is
     the base class's own 16px bottom margin, cancelled exactly; the second strip drops its
     top border so the join is one hairline and not two. */
  .lcd-enr-top { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; }
  .lcd-enr2 { grid-template-columns: repeat(2, 1fr); margin-top: 0; border-top: 0;
    border-top-left-radius: 0; border-top-right-radius: 0; }
  .lcd-enr2 .lcd-fig .v { font-size: 16px; }
  @media (max-width: 620px) { .lcd-enr { grid-template-columns: 1fr 1fr; } }
  /* the readings chart's two reference lines, and the note that its baseline is not zero */
  .lcrc { width: 100%; height: auto; }
  .lcrc-ref { stroke-width: 1.4; }
  .lcrc-ref.bm { stroke: var(--ink-50); stroke-dasharray: 4 3; }
  .lcrc-ref.be { stroke: var(--ink); stroke-width: 1.8; }
  .lcrc-rl { font: 600 9px var(--sans); }
  .lcrc-rl.bm { fill: var(--ink-50); }
  .lcrc-rl.be { fill: var(--ink); }
  .lcrc-cap { font: 400 11px/1.5 var(--sans); color: var(--ink-50); margin-top: 2px; }
  /* two drawer tables that have to live in 560px */
  /* .table-wrap is overflow:hidden, so these three were losing columns at the drawer edge
     with no scrollbar — the readings table lost 379px, its whole Source and Note columns,
     and the Centres table sliced its health chips to "Ope". The Toolkit's own wide tables
     set overflow-x:auto inline (app.js:7177); this is the same fix as a class, and the
     fixed layout is dropped so a chip can keep its own width. */
  .lcd-ct, .lcd-trt, .lcd-rt { overflow-x: auto; }
  .lcd-ct table.radar, .lcd-trt table.radar { table-layout: auto; width: auto; min-width: 100%; }
  .lcd-ct th, .lcd-ct td, .lcd-trt th, .lcd-trt td { white-space: nowrap; }
  .lcd-ct th:nth-child(1), .lcd-ct td:nth-child(1) { width: 38%; }
  .lcd-ct th:nth-child(2), .lcd-ct td:nth-child(2) { width: 24%; }
  .lcd-ct th:nth-child(3), .lcd-ct td:nth-child(3) { width: 18%; }
  .lcd-ct th:nth-child(4), .lcd-ct td:nth-child(4) { width: 20%; }
  .lcd-trt th:nth-child(1), .lcd-trt td:nth-child(1) { width: 36%; }
  .lcd-trt th:nth-child(2), .lcd-trt td:nth-child(2) { width: 20%; }
  .lcd-tt th:nth-child(3), .lcd-tt td:nth-child(3) { width: 18%; }
  .lcd-tt th:nth-child(4), .lcd-tt td:nth-child(4) { width: 26%; }
  .lcd-kk { display: block; font: 600 12px var(--sans); color: var(--ink); }
  .lcd-kc { display: block; font: 500 10.5px var(--sans); color: var(--ink-50); }
  /* the operator's grade and its number, in the header */
  .lchl-hdr b { font-size: 14px; }
  .lcd-rt { margin-top: 14px; }
  .lcd-rn { font: 400 11.5px var(--sans); color: var(--ink-50); max-width: 200px; }
  .lcd-jlist { display: flex; flex-direction: column; gap: 10px; }
  .lcd-jrow { padding: 9px 11px; background: var(--mute); border-radius: var(--r-md); }
  .lcd-jh { display: flex; align-items: center; gap: 9px; }
  .lcd-jl { font: 700 11px var(--display); color: var(--ink-70); text-transform: uppercase; letter-spacing: .06em; }
  .lcd-jn { font: 400 12px/1.55 var(--sans); color: var(--ink-70); margin-top: 6px; }
  .lcd-jn.quiet { color: var(--ink-50); }

  /* ── the empty book ───────────────────────────────────────────────────────
     Said once, plainly, and never as a page of zeroes. A book with nothing in it that
     looks like a book with no customers in it is the quietest way a dashboard can lie. */
  .lc-empty { background: var(--paper); border: 1px dashed var(--hairline-strong); border-radius: var(--r-lg);
    padding: 48px 32px; margin-top: 24px; text-align: center; display: flex; flex-direction: column;
    align-items: center; gap: 10px; }
  .lc-empty-ic { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--mute);
    display: flex; align-items: center; justify-content: center; color: var(--ink-40); margin-bottom: 4px; }
  .lc-empty-ic svg { width: 22px; height: 22px; }
  .lc-empty-tt { font: 800 17px var(--display); color: var(--ink); letter-spacing: -0.015em; }
  .lc-empty-sub { font: 400 13px/1.65 var(--sans); color: var(--ink-70); max-width: 62ch; }
  .lc-empty-sub.quiet { color: var(--ink-50); font-size: 12px; }

  /* ── the health score page ─────────────────────────────────────────────── */
  .lc-doc + .lc-doc { margin-top: 18px; }
  .lc-doc h3 { font: 800 17px var(--display); color: var(--ink); letter-spacing: -0.015em; margin: 0 0 12px; }
  .hsd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
  .hsd { border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 13px 15px 14px;
    display: flex; flex-direction: column; }
  .hsd-h { display: flex; align-items: center; gap: 8px; }
  .hsd-sw { width: 9px; height: 9px; border-radius: 50%; flex: none; }
  .hsd-n { font: 700 13px var(--display); color: var(--ink); }
  .hsd-w { margin-left: auto; font: 800 13px var(--display); color: var(--ink-70); font-variant-numeric: tabular-nums; }
  .hsd-b { font: 400 12.5px/1.6 var(--sans); color: var(--ink-70); margin-top: 7px; }
  /* margin-top:auto so the four cards' dividers line up across the row however long each
     description runs */
  .hsd-u { font: 400 11.5px/1.55 var(--sans); color: var(--ink-50); margin-top: auto;
    padding-top: 8px; border-top: 1px solid var(--hairline); }
  .hsd-b { padding-bottom: 8px; }
  .hsd-u b { font-weight: 700; color: var(--ink-70); }
  .hsb { display: flex; flex-direction: column; gap: 6px; }
  .hsb-r { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 11px; background: var(--mute); border-radius: var(--r-md); }
  .hsb-r b { font: 800 13px var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
  .hsx { border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 14px 16px; margin-top: 12px; }
  .hsx-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
  .hsx-h b { font: 700 14px var(--display); color: var(--ink); }
  .hsx-h span { font: 500 11.5px var(--sans); color: var(--ink-50); }
  .hsx-f { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 12px;
    padding-top: 12px; border-top: 1px solid var(--hairline); }
  .hsx-why { font: 400 12px/1.55 var(--sans); color: var(--ink-70); flex: 1; min-width: 220px; }

  @media (prefers-reduced-motion: reduce) {
    .lcop-chev, .line-btn .schev, .lcat-row .row-go { transition: none; }
  }
