@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&display=swap");
/* ============================================================================
 * Clever Transco TMS · THEME — the one file that decides how every page looks
 *
 * Every page loads, in this order (the same stack as the CRM):
 *   1. clever-transco-tokens.css   brand colors
 *   2. tms-shell.css               light / dark switch, shell
 *   3. tms-glass.css               glass surfaces, freight map
 *   4. clever-transco-3.0.css      3.0 polish
 *   5. ct-theme.css (THIS FILE)    loads last, so it wins. Change the look here.
 *
 * The idea, in one line: the login page's confidence, inside every page.
 *   · Loud type, quiet surfaces — the page title is the hero; everything else
 *     is one calm gray until it matters.
 *   · Status is a dot, not a sticker — color lives in a 7px dot and the word.
 *   · One primary action per view — dark blue in light mode, light blue in
 *     dark mode. Everything else is a ghost.
 *   · Depth by light, not borders — a hairline + soft shadow in light; in dark a
 *     lifted navy panel with a lit top edge.
 *   · The freight map stays, faint, as the brand's constellation.
 *
 * Not touched here on purpose: the top menu (Niko: "the menu section is
 * perfect"), the two login pages, maps.
 *
 * !important is used because tms-glass.css and page-level <style> blocks use it
 * on the same rules. `body` is in most selectors to outrank page rules.
 *
 * 2026-10-14 — v2 (design pass). Page-specific fixes live at the bottom.
 * ============================================================================ */

/* ----------------------------------------------------------------------------
 * 0 · TOKENS
 * ------------------------------------------------------------------------- */
:root {
  /* brand — mirrors clever-transco-tokens.css */
  --ct-navy:     #003258;
  --ct-blue:     #1C74A6;   /* links, light-mode primary hover */
  --ct-blue-deep:#155985;   /* light-mode primary fill (measured from the CRM) */
  --ct-sky:      #56C2EF;   /* dark-mode primary fill, the "live" color */

  /* semantic — used on dots and words, never as boxes */
  --ct-good:     #047857;   /* 11/15: the CRM's text green (its --ct-success; 78 text uses there vs 3 of #059669). Was #059669, which stays as the FILL green, --ct-good-solid. 5.5:1 on white. */
  --ct-warn:     #B45309;   /* CRM 11/05 amber text (was #B57A02) */   /* §24h: was #C98A04 (2.95:1 on white) — under the contrast guard's 3:1, so amber TEXT was navy in light mode; 3.65:1 on white, 3.2:1 on its own tint */
  --ct-bad:      #B91C1C;   /* 11/15: the darker red for WORDS (the CRM's --ct-danger; 6.5:1 on white), same move as --ct-good. Was #DC2626, which stays as the FILL red, --ct-bad-solid. Niko: "lets do it"; brighter is one line back. */
  --ct-info:     #1C74A6;
  /* 11/08 · status FILLS (STYLE KIT 15). Solid = a box with white text (buttons, toasts, solid pills) — the same in both
     modes so the white text stays readable. Tint = a translucent wash under status-coloured text (badges, pill
     counters) — translucent so it works over light and dark panels alike; the text on it is --ct-good/--ct-bad/--ct-warn. */
  --t-backdrop: rgba(2, 12, 26, 0.55);   /* 11/08 · the pop-up / drawer backdrop (Kit 12 value), one token for the pages */
  --ct-blue-deep: #135883;   /* 11/08 · the deep blue under the pop-up header (Kit 12) and the old link/button hover — same both modes */
  --ct-white: #FFFFFF;   /* 11/17 · white, named once: words on solid buttons, light panels. Same in both modes. */
  --ct-good-solid: #059669;  --ct-bad-solid: #DC2626;  --ct-warn-solid: #D97706;
  /* 11/16 (Niko "Lets do them all"): colours for PAINTED shapes — borders, dots, solid badges, toggle knobs.
     --ct-good / --ct-bad are for WORDS and went darker in light on 11/15; these keep painted shapes where they
     were before that (light #059669 / #DC2626). Dark reads the same as the word colours (unchanged). */
  --ct-good-fill: var(--ct-good-solid); --ct-bad-fill: var(--ct-bad-solid); --ct-warn-fill: var(--ct-warn);
  --ct-good-tint:  var(--wash-good-3);  --ct-bad-tint: var(--wash-bad-3);  --ct-warn-tint: var(--wash-warn-3);   /* 11/15: = the washes' step 3 (.14, unchanged) */

  /* 11/15 · STATUS WASHES. Green / red / amber laid behind a badge, chip or row. Measured 11/15: pages typed them in 13
     greens, 17 reds and 12 ambers at ~25 strengths. Niko ("yea"): fold them like the blue tints. Each status has a DEEP
     wash (its fill colour, for light surfaces) and a BRIGHT one (its dark-mode word colour, for dark surfaces); a page
     colour went to whichever it was closer to in lightness. Same four steps for all: 1 faint .06 · 2 soft .10 ·
     3 medium .14 · 4 strong .20. Pages read var(--wash-<status>[-bright]-<step>, <what they typed>). */
  --wash-good-1: rgba(5,150,105,0.06);   --wash-good-2: rgba(5,150,105,0.10);   --wash-good-3: rgba(5,150,105,0.14);   --wash-good-4: rgba(5,150,105,0.20);
  --wash-bad-1:  rgba(220,38,38,0.06);   --wash-bad-2:  rgba(220,38,38,0.10);   --wash-bad-3:  rgba(220,38,38,0.14);   --wash-bad-4:  rgba(220,38,38,0.20);
  --wash-warn-1: rgba(217,119,6,0.06);   --wash-warn-2: rgba(217,119,6,0.10);   --wash-warn-3: rgba(217,119,6,0.14);   --wash-warn-4: rgba(217,119,6,0.20);
  --wash-good-bright-1: rgba(110,231,183,0.06);  --wash-good-bright-2: rgba(110,231,183,0.10);  --wash-good-bright-3: rgba(110,231,183,0.14);  --wash-good-bright-4: rgba(110,231,183,0.20);
  --wash-bad-bright-1:  rgba(248,113,113,0.06);  --wash-bad-bright-2:  rgba(248,113,113,0.10);  --wash-bad-bright-3:  rgba(248,113,113,0.14);  --wash-bad-bright-4:  rgba(248,113,113,0.20);
  --wash-warn-bright-1: rgba(251,191,36,0.06);   --wash-warn-bright-2: rgba(251,191,36,0.10);   --wash-warn-bright-3: rgba(251,191,36,0.14);   --wash-warn-bright-4: rgba(251,191,36,0.20);

  /* 11/15 · TINTS. The brand blue (light pages) and sky (dark pages) laid over a surface as a wash: table rows, chips,
     selected tabs, soft panels. Measured 11/15: pages typed that wash at 20 strengths in light and 19 in dark. Niko
     ("Lets do it"): fold them onto four named strengths. Pages read var(--tint-blue-N, <the strength they typed>) /
     var(--tint-sky-N, …), so a page without the kit keeps its own value. Change a strength here and every wash of that
     step follows. The hue stays what the page typed (blue stays blue, sky stays sky); only the strength is folded.
       step 1 faint · 2 soft · 3 medium · 4 strong.   From .30 up is not a wash (scrollbar thumbs, bars, solid chips) and is left as typed. */
  --tint-blue-1: rgba(28,116,166,0.04);  --tint-blue-2: rgba(28,116,166,0.10);  --tint-blue-3: rgba(28,116,166,0.14);  --tint-blue-4: rgba(28,116,166,0.22);
  --tint-sky-1:  rgba(86,194,239,0.06);  --tint-sky-2:  rgba(86,194,239,0.10);  --tint-sky-3:  rgba(86,194,239,0.18);  --tint-sky-4:  rgba(86,194,239,0.24);
  /* 11/15 · the WHITE wash (hover rows, inner boxes, dividers laid over dark surfaces). Typed at 25 strengths; Niko
     ("lets do it"): four, like the blue. Same reading rule: var(--tint-white-N, <what was typed>). */
  --tint-white-1: rgba(255,255,255,0.05);  --tint-white-2: rgba(255,255,255,0.08);  --tint-white-3: rgba(255,255,255,0.14);  --tint-white-4: rgba(255,255,255,0.20);

  /* 11/15 · LINES. Borders in blue (light pages), sky (dark) and white (dark hairlines), measured 11/15 at 21+ strengths
     each. Niko ("yeah"): fold them like the tints. Pages and shared files read var(--line-<hue>-N, <what they typed>);
     the kit's own line names below (--t-line, --tb-line, --fld-line …) read these steps where their value was one.
       blue  1 .08 hairline · 2 .16 card/tab line · 3 .22 field · 4 .28 table rule
       sky   1 .14 card/tab line · 2 .20 pop-up · 3 .30 field/button · 4 .45 table rule
       white 1 .06 hairline · 2 .08 · 3 .12 · 4 .18 */
  --line-blue-1: rgba(28,116,166,0.08);   --line-blue-2: rgba(28,116,166,0.16);   --line-blue-3: rgba(28,116,166,0.22);   --line-blue-4: rgba(28,116,166,0.28);
  --line-sky-1:  rgba(86,194,239,0.14);   --line-sky-2:  rgba(86,194,239,0.20);   --line-sky-3:  rgba(86,194,239,0.30);   --line-sky-4:  rgba(86,194,239,0.45);
  --line-white-1: rgba(255,255,255,0.06); --line-white-2: rgba(255,255,255,0.08); --line-white-3: rgba(255,255,255,0.12); --line-white-4: rgba(255,255,255,0.18);

  /* 11/16 · SHADOWS. Measured 11/16: pages typed 1,498 shadows in 781 spellings. Niko ("Yea!"): fold the plain drop
     shadows onto named ones. Two families, kept as they were: SOFT = a faint navy drop (light pages), DEEP = a strong
     dark drop (dark pages, pop-ups). Four sizes each, picked by the blur that was typed. Pages read
     var(--sh-<family>-<size>, <what they typed>). Not folded, left as typed: coloured glows, rings (0 0 0 Npx),
     inset lines, side-drawer shadows, and the negative-spread "card" shadows (the kit's own --t-shadow look). */
  --sh-soft-sm: 0 1px 3px rgba(0,50,88,0.05);   --sh-soft-md: 0 2px 8px rgba(0,50,88,0.08);   --sh-soft-lg: 0 10px 28px rgba(0,50,88,0.14);   --sh-soft-pop: 0 24px 64px rgba(0,50,88,0.18);
  --sh-deep-sm: 0 1px 4px rgba(0,0,0,0.30);     --sh-deep-md: 0 4px 12px rgba(0,0,0,0.40);    --sh-deep-lg: 0 12px 32px rgba(0,0,0,0.45);     --sh-deep-pop: 0 28px 72px rgba(0,0,0,0.50);

  /* 11/16 · ICON LINE WEIGHT. One weight for every line icon: the kit's own (.ct-ico) and the small icons pages draw
     inside buttons, links, chips and icon buttons (§21). Measured 11/16: pages drew them at 2, 1.8, 2.2, 1.9, 2.4.
     Niko: "Lets do it". Sizes are left alone (they are part of each button's layout). */
  --ico-stroke: 1.85;

  /* type scale (Archivo), 1.25 ratio off 14 */
  --fs-1: 11px;  --fs-2: 13px;   --fs-3: 14px;  --fs-4: 18px;   /* 11/14: step two is 13, Niko's pick for the main reading text (was 12.5) */
  --fs-5: 22px;  --fs-6: 28px;   --fs-7: 35px;  --fs-8: 44px;

  /* 11/14 · THE FONT. One family for the whole app, named once. --ct-font-figures is what every "typewriter" font the
     pages typed (JetBrains Mono, monospace, ui-monospace: dates, PRO numbers, IDs) now reads; Niko's call 11/14 is
     "Archivo everywhere", so it points at the same family. It was not even one typewriter font before: pages that
     loaded JetBrains Mono showed it, the Load Board never loaded it and showed the computer's own. To bring a
     typewriter font back for dates and IDs, give --ct-font-figures a mono stack here: one line.
     Left alone on purpose: real code (pre, code, kbd, samp), the italic "&" in titles (tms-amp.js), signature
     fonts, and printed documents. */
  --ct-font: 'Archivo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ct-font-figures: var(--ct-font);

  /* 11/14 · TYPED SIZES — every text size the pages typed in as a px number, read from here instead.
     A page's own CSS now says  font-size: var(--fz-11, 11px)  where it used to say  font-size: 11px .
     The name is the size that was typed (h = .5, so --fz-10h was 10.5px); the value here is what it is NOW.
     Day one every value equals its name, so nothing looks different. The six that already sit on the type
     scale above point at it (11, 12.5, 14, 22, 28, 44). To fold near-twins together (10.5 and 11.5 into 11,
     say), change the value on this list: every wired page follows, and one line puts it back.
     11/14, later the same day · FOLDED (Niko: yes). The near-twin small sizes now land on four:
         9, 9.5                    -> 10          10.5, 11.5              -> 11
         12, 12.3, 12.5, 12.8, 13  -> 13          13.3, 13.5, 13.8, 14.5  -> 14
     11 / 13 / 14 are the type scale's first three steps above, so the kit's own labels and buttons are the
     same sizes. 8.5 and under were still as typed; 11/17 (Niko: yeah) 8 and 8.5 -> 10 too. 7.5 and under stay:
     they are the miniature document previews and map-pin labels. To undo one, put its number back.
     11/14, afternoon · THE BIGGER SIZES, same idea (Niko: "lets do it"):
         15, 15.5, 16, 17  -> 16          17.5, 18, 19, 20        -> 18   (the scale's fourth step, was 17.5)
         21, 22, 23, 24    -> 22          25, 26, 27, 28, 29, 30  -> 28
     31 and over are still as typed (a handful of hero numbers). */
  --fz-6h: 6.5px;  --fz-7: 7px;  --fz-7h: 7.5px;  --fz-8: 10px;  --fz-8h: 10px;  --fz-9: 10px;   /* 11/17 Niko "yeah": 8 and 8.5 -> 10 (avatars, tags, chart labels); 7.5 and under stay = miniature document previews and map-pin labels */
  --fz-9h: 10px;  --fz-10: 10px;  --fz-10h: var(--fs-1);  --fz-11: var(--fs-1);  --fz-11h: var(--fs-1);  --fz-12: var(--fs-2);
  --fz-12p3: var(--fs-2);  --fz-12h: var(--fs-2);  --fz-12p8: var(--fs-2);  --fz-13: var(--fs-2);  --fz-13p3: var(--fs-3);  --fz-13h: var(--fs-3);
  --fz-13p8: var(--fs-3);  --fz-14: var(--fs-3);  --fz-14h: var(--fs-3);  --fz-15: var(--fz-16);  --fz-15h: var(--fz-16);  --fz-16: 16px;
  --fz-17: var(--fz-16);  --fz-18: var(--fs-4);  --fz-19: var(--fs-4);  --fz-20: var(--fs-4);  --fz-21: var(--fs-5);  --fz-22: var(--fs-5);
  --fz-23: var(--fs-5);  --fz-24: var(--fs-5);  --fz-25: var(--fs-6);  --fz-26: var(--fs-6);  --fz-27: var(--fs-6);  --fz-28: var(--fs-6);
  --fz-29: var(--fs-6);  --fz-30: var(--fs-6);  --fz-31: 31px;  --fz-32: 32px;  --fz-34: 34px;  --fz-36: 36px;
  --fz-38: 38px;  --fz-40: 40px;  --fz-42: 42px;  --fz-44: var(--fs-8);  --fz-46: 46px;  --fz-48: 48px;
  --fz-52: 52px;  --fz-56: 56px;  --fz-64: 64px;  --fz-84: 84px;  --fz-110: 110px;

  /* radii: one scale, used by hierarchy — panels / controls / pills */
  --r-panel: 14px; --r-modal: 18px; --r-ctl: 9px; --r-pill: 999px;
  --r-ctl-sm: 8px;   /* 11/16 · small (28px) buttons and row / icon buttons — named so the one page controls it too */

  /* light surfaces */
  --t-page:    #F3F7FB;
  --t-panel:   #FFFFFF;
  --t-line:    var(--line-blue-2);   /* CRM 11/05: blue-tinted lines (was rgba(0,50,88,.08)) */
  --t-ink:     #1A1D21;   /* CRM body text (was #16202B) */
  --t-ink-2:   #5B7189;   /* CRM secondary (was #5B6B7C) */
  --t-ink-3:   #64748B;   /* CRM helper text 11/05 (was #7A8899); 4.8:1 on white, passes the contrast guard */
  --t-shadow:  0 10px 28px -22px rgba(0, 50, 88, 0.45), inset 0 1px 0 #FFFFFF;   /* CRM card 11/05 */
  --t-shadow-up: 0 24px 60px -22px rgba(28, 116, 166, 0.22), 0 6px 18px rgba(86, 194, 239, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);   /* CRM card hover */
  --t-halo:    0 0 0 3px rgba(28, 116, 166, 0.28);
  --t-glass:   rgba(255, 255, 255, 0.80);   /* CRM card surface 11/05 */
}
:root[data-theme="dark"] {
  /* dark surfaces — navy-black, not gray-black */
  --t-page:    #071226;
  --t-panel:   #0F1C33;
  --t-line:    var(--line-sky-1);
  --t-ink:     #EAF2FB;   /* CRM dark body text */
  --t-ink-2:   #A9D6F0;   /* 11/09 Niko: no grey in dark — light sky, not grey-blue (was CRM #8AA4C0) */
  --t-ink-3:   rgba(169, 214, 240, 0.78);   /* 11/09 dark muted = ink-2 at 78% (was rgba(196,220,238,.68)) */
  --t-shadow:  inset 0 3px 0 -1px rgba(86, 194, 239, 0.9), 0 0 0 1px rgba(86, 194, 239, 0.10), 0 0 30px -8px rgba(86, 194, 239, 0.45), inset 0 1px 0 rgba(174, 240, 255, 0.10);   /* CRM dark card 11/05: lit top line + sky glow */
  --t-shadow-up: inset 0 3px 0 -1px rgba(86, 194, 239, 0.9), 0 24px 60px -22px rgba(86, 194, 239, 0.30), 0 6px 18px rgba(86, 194, 239, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.08);   /* CRM dark hover */
  --t-halo:    0 0 0 3px rgba(86, 194, 239, 0.40);
  --t-glass:   rgba(16, 40, 70, 0.80);   /* Kit 25 11/10 Niko: dark cards "too light and see through" over the map — 80% like the header/tab rows (was .62, CRM dark card 11/05) */
  --ct-good:   #6EE7B7;   /* CRM 11/05 status colours, dark */
  --ct-good-fill: var(--ct-good); --ct-bad-fill: var(--ct-bad); --ct-warn-fill: var(--ct-warn);   /* painted shapes = word colours in dark (unchanged) */
  --ct-warn:   #FBBF24;
  --ct-bad:    #FCA5A5;
  --ct-info:   #56C2EF;
  --body-bg:   #071226;
  --surface-page: #071226;
}

/* ----------------------------------------------------------------------------
 * 1 · TYPE — Archivo, one family. Loud titles, calm body, sentence-case labels.
 * ------------------------------------------------------------------------- */
body, body button, body input, body select, body textarea {
  font-family: var(--ct-font) !important;
  -webkit-font-smoothing: antialiased;
}
body { font-weight: 600; font-size: var(--fs-3); line-height: 1.45; color: var(--t-ink); }   /* 11/05: the CRM's body weight (was 500) */
body b, body strong, body th { font-weight: 700; }
body { font-variant-numeric: tabular-nums; }

/* 11/14 · ROOM FOR 13. Folding the main text onto 13 was tried on every page first (114 pages at desktop width, the
   portals at phone width). Four places lost a line they had; each gets its room back here. Sentences that now run
   onto a second line were left alone, and so were labels that sit beside labels which already wrapped.
     Home, "Needs attention": the route broke after the city ("Los Angeles," / "CA"). Rows reach 6px into the
       card's own side padding.
     Accounts Payable, Expected: Approve / Hold / Deduct went from two rows of buttons to three and every row grew
       from 79 to 107 px. 2px less side padding on those three buttons puts it back to 79.
     Bulk Edit, quick actions: "Switch FSC method" and "Add accessorial" broke in two.
     Quotes board, column heading: the "Accepted — needs booking" pill was cut off by 6px. */
html:root body:has(#ctHomeMap) a.hs-row { margin-left: -6px !important; margin-right: -6px !important; grid-template-columns: 8px minmax(0, 1fr) !important; }
html:root body #expectedTable td:last-child .btn.tiny { padding-left: 8px !important; padding-right: 8px !important; }
html:root body .quick .qn { white-space: nowrap !important; }
html:root body:has(#ctHomeMap) .card.ch-card > .card-head { gap: 6px !important; }   /* Home only (.ch-card is on four other pages): "Cash position today", the title at 18 (was 17.5) cut 4px off "Money in · money out · net" */
html:root body .col.kanban-col .col-h { padding-left: 7px !important; padding-right: 7px !important; gap: 5px !important; }   /* .kanban-col: the Quotes board only; .col-h alone is on five other pages */

/* 11/14 · THE FONT, typed inline. Same idea as the inline sizes below, same zero weight: an element whose inline
   style asks for a typewriter font takes --ct-font-figures on screen. The page's markup is not touched (it also goes
   out as email and into print windows). Real code elements are skipped. */
:where([style*="JetBrains Mono" i]:not(pre, code, kbd, samp, textarea), [style*="monospace" i]:not(pre, code, kbd, samp, textarea), [style*="SF Mono" i]:not(pre, code, kbd, samp, textarea)) { font-family: var(--ct-font-figures) !important; }

/* 11/14 · TYPED SIZES, the ones typed inline. A page (or a page's script) that writes style="font-size:11px" on an
   element is read from the same list: on screen the element takes --fz-11. The page's markup is NOT touched, on
   purpose: the same markup is also sent as email and written into print windows, where there is no kit and
   var() would not be understood. There the typed number still applies, exactly as before.
   Why :where() and !important together. !important is what lets a stylesheet rule stand in for an inline style.
   :where() gives the rule no weight at all, so every other !important size rule in the kit or a page still beats
   it exactly as it beat the inline style before. Net effect: the same rule wins as yesterday; only the number now
   comes from the list. Checked 11/14 on the test site by adding these rules to every page in place: 114 pages,
   light and dark, 326,318 elements, 10,657 of them sized inline, no size or line height changed.
   One line per size that pages type inline today (two spellings each: with and without the space). A new typed
   size needs a line here and in TYPED SIZES above; test typed-sizes-come-from-the-kit says so when one is missing. */
:where([style*="font-size:8px" i], [style*="font-size: 8px" i]) { font-size: var(--fz-8) !important; }
:where([style*="font-size:8.5px" i], [style*="font-size: 8.5px" i]) { font-size: var(--fz-8h) !important; }
:where([style*="font-size:9px" i], [style*="font-size: 9px" i]) { font-size: var(--fz-9) !important; }
:where([style*="font-size:9.5px" i], [style*="font-size: 9.5px" i]) { font-size: var(--fz-9h) !important; }
:where([style*="font-size:10px" i], [style*="font-size: 10px" i]) { font-size: var(--fz-10) !important; }
:where([style*="font-size:10.5px" i], [style*="font-size: 10.5px" i]) { font-size: var(--fz-10h) !important; }
:where([style*="font-size:11px" i], [style*="font-size: 11px" i]) { font-size: var(--fz-11) !important; }
:where([style*="font-size:11.5px" i], [style*="font-size: 11.5px" i]) { font-size: var(--fz-11h) !important; }
:where([style*="font-size:12px" i], [style*="font-size: 12px" i]) { font-size: var(--fz-12) !important; }
:where([style*="font-size:12.5px" i], [style*="font-size: 12.5px" i]) { font-size: var(--fz-12h) !important; }
:where([style*="font-size:13px" i], [style*="font-size: 13px" i]) { font-size: var(--fz-13) !important; }
:where([style*="font-size:13.5px" i], [style*="font-size: 13.5px" i]) { font-size: var(--fz-13h) !important; }
:where([style*="font-size:14px" i], [style*="font-size: 14px" i]) { font-size: var(--fz-14) !important; }
:where([style*="font-size:14.5px" i], [style*="font-size: 14.5px" i]) { font-size: var(--fz-14h) !important; }
:where([style*="font-size:15px" i], [style*="font-size: 15px" i]) { font-size: var(--fz-15) !important; }
:where([style*="font-size:16px" i], [style*="font-size: 16px" i]) { font-size: var(--fz-16) !important; }
:where([style*="font-size:17px" i], [style*="font-size: 17px" i]) { font-size: var(--fz-17) !important; }
:where([style*="font-size:18px" i], [style*="font-size: 18px" i]) { font-size: var(--fz-18) !important; }
:where([style*="font-size:19px" i], [style*="font-size: 19px" i]) { font-size: var(--fz-19) !important; }
:where([style*="font-size:20px" i], [style*="font-size: 20px" i]) { font-size: var(--fz-20) !important; }
:where([style*="font-size:21px" i], [style*="font-size: 21px" i]) { font-size: var(--fz-21) !important; }
:where([style*="font-size:22px" i], [style*="font-size: 22px" i]) { font-size: var(--fz-22) !important; }
:where([style*="font-size:23px" i], [style*="font-size: 23px" i]) { font-size: var(--fz-23) !important; }
:where([style*="font-size:24px" i], [style*="font-size: 24px" i]) { font-size: var(--fz-24) !important; }
:where([style*="font-size:26px" i], [style*="font-size: 26px" i]) { font-size: var(--fz-26) !important; }
:where([style*="font-size:28px" i], [style*="font-size: 28px" i]) { font-size: var(--fz-28) !important; }
:where([style*="font-size:30px" i], [style*="font-size: 30px" i]) { font-size: var(--fz-30) !important; }
:where([style*="font-size:32px" i], [style*="font-size: 32px" i]) { font-size: var(--fz-32) !important; }
:where([style*="font-size:34px" i], [style*="font-size: 34px" i]) { font-size: var(--fz-34) !important; }
:where([style*="font-size:36px" i], [style*="font-size: 36px" i]) { font-size: var(--fz-36) !important; }
:where([style*="font-size:38px" i], [style*="font-size: 38px" i]) { font-size: var(--fz-38) !important; }
:where([style*="font-size:40px" i], [style*="font-size: 40px" i]) { font-size: var(--fz-40) !important; }
:where([style*="font-size:42px" i], [style*="font-size: 42px" i]) { font-size: var(--fz-42) !important; }
:where([style*="font-size:48px" i], [style*="font-size: 48px" i]) { font-size: var(--fz-48) !important; }
:where([style*="font-size:56px" i], [style*="font-size: 56px" i]) { font-size: var(--fz-56) !important; }

/* 11/15 · STATUS WORDS typed inline, light only. A page (or its script) that writes style="color:#dc2626" or
   style="color:#059669" on a word typed the FILL red / FILL green as a word colour. In light the word reads the kit's
   word red / word green instead. Same zero weight as the inline sizes above, so any rule that already beat the inline
   colour still does. The selectors only match a TEXT colour: the value must start the style, or follow ";" or a
   space, so background-color: and border-color: are never caught. Dark is left as typed (tms-glass.css and
   clever-transco-3.0.css already have their own dark rules for these). Markup untouched: pages build emails from it. */
:where(:root:not([data-theme="dark"])) :where([style^="color:#dc2626" i], [style*=";color:#dc2626" i], [style*=" color:#dc2626" i], [style^="color: #dc2626" i], [style*=";color: #dc2626" i], [style*=" color: #dc2626" i]) { color: var(--ct-bad) !important; }
:where(:root:not([data-theme="dark"])) :where([style^="color:#059669" i], [style*=";color:#059669" i], [style*=" color:#059669" i], [style^="color: #059669" i], [style*=";color: #059669" i], [style*=" color: #059669" i]) { color: var(--ct-good) !important; }

/* The page title is the hero on every page. tms-glass.css already pins .ct-page-title
   to 28px/800 (Niko's canonical title, 2026-06-07) with a triple-class selector that
   outranks anything here — so 28px IS the size, and §13a brings the bare <h1> pages
   to the same number. (This block once said 35px; it never won. Measured 2026-10-15.) */
body h1.ct-page-title,
body .ct-page-title {
  font-size: var(--fz-28, 28px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.18 !important;
  margin: 0 0 4px !important;
}
body .card-head h2, body .card-head h3, body .card-title {
  font-size: var(--fs-4) !important;
  font-weight: 800 !important;
  letter-spacing: -0.015em !important;
}
:root[data-theme="light"] body .card-head h2,
:root[data-theme="light"] body .card-head h3,
:root[data-theme="light"] body .card-title { color: var(--ct-navy) !important; }
:root[data-theme="dark"] body .card-head h2,
:root[data-theme="dark"] body .card-head h3,
:root[data-theme="dark"] body .card-title { color: var(--t-ink) !important; }

/* Labels are sentence case, not shouting. Pages typed them in sentence case
   and then uppercased them in CSS — this turns that off. */
body th,
body label,
body legend,
body .kpi-label, body .k-label, body .kpi .lbl, body .kpi-tile .lbl, body .stat-tile .lbl,
body .card-head .sub,
body .modal-sub,
body .eyebrow, body .sec-title, body .section-title, body .f-label, body .ft-label,
body .filter-label, body .group-title, body .side-title {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 600 !important;
}
body .kpi-label, body .k-label, body .kpi .lbl, body .kpi-tile .lbl, body .stat-tile .lbl {
  font-size: var(--fs-2) !important;
  color: var(--t-ink-2) !important;
}

/* Big numbers — solid, heavy, tabular. No gradient text. */
/* 11/08 · 28px everywhere (Niko: "either" — 28 is what 52 of 67 pages already showed and fits six across; Home's 32 was
   the old Home-is-the-reference size). Every spelling the pages use is named; .kpi .v was the one the old list missed. */
body :is(.kpi, .kpi-tile, .stat-tile, .ph-stat) :is(.v, .val, .value, .k-value, .kpi-value, .kpi-val, .k-val, .stat-value, .kv), body .kpi-value, body .kpi-val, body .k-val {
  font-size: var(--fz-28, 28px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}
:root[data-theme="light"] body :is(.kpi, .kpi-tile, .stat-tile, .ph-stat) :is(.v, .val, .value, .k-value, .kpi-value, .kpi-val, .k-val, .stat-value, .kv),
:root[data-theme="light"] body .kpi-value, :root[data-theme="light"] body .kpi-val, :root[data-theme="light"] body .k-val {
  color: var(--ct-navy) !important; -webkit-text-fill-color: var(--ct-navy) !important;
}
:root[data-theme="dark"] body :is(.kpi, .kpi-tile, .stat-tile, .ph-stat) :is(.v, .val, .value, .k-value, .kpi-value, .kpi-val, .k-val, .stat-value, .kv),
:root[data-theme="dark"] body .kpi-value, :root[data-theme="dark"] body .kpi-val, :root[data-theme="dark"] body .k-val {
  color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important;
}

/* Links */
:root[data-theme="light"] body a:not(.btn):not(.tab) { color: var(--ct-blue); }
:root[data-theme="dark"]  body a:not(.btn):not(.tab) { color: var(--ct-sky); }
/* 11/08 · one link weight (inv4: 23 pages at 600, 20 at 700, a few at 500). 600 — a link is not a heading. Buttons, tabs,
   chips and PRO chips keep their own weight. */
html:root body a:not(.btn):not(.tab):not(.ct-tab):not(.chip):not([class*="pill"]):not([class*="chip"]):not([class*="btn"]) { font-weight: 600 !important; }
::selection { background: rgba(86, 194, 239, 0.35); }

/* ----------------------------------------------------------------------------
 * 2 · SURFACES — hairline + soft shadow in light; lifted panel with a lit top
 *     (11/16: the glance cards .cg-tile / .cg-card on 11 pages wear this card too)
 *     edge in dark. One radius for panels, one for controls, one for pills.
 * ------------------------------------------------------------------------- */
/* theme-scoped so it outranks tms-glass.css, which scopes its own !important
   card rules to :root[data-theme=…] */
:root[data-theme="light"] body :is(.card, .kpi, .kpi-tile, .stat-tile, .modal-card, .ap-modal-card, .modal-content, .panel, .rail-card, .cg-tile, .cg-card),
:root[data-theme="dark"]  body :is(.card, .kpi, .kpi-tile, .stat-tile, .modal-card, .ap-modal-card, .modal-content, .panel, .rail-card, .cg-tile, .cg-card) {
  background: var(--t-panel) !important;
  background-image: none !important;
  animation: none !important;
  border: 1px solid var(--t-line) !important;
  border-radius: var(--r-panel) !important;
  box-shadow: var(--t-shadow) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
:root[data-theme="light"] body :is(.card, .kpi)::after, :root[data-theme="dark"] body :is(.card, .kpi)::after { display: none !important; }
:root[data-theme="light"] body :is(.card, .kpi):hover, :root[data-theme="dark"] body :is(.card, .kpi):hover { box-shadow: var(--t-shadow-up) !important; }
:root[data-theme="dark"] body .card-head,
:root[data-theme="dark"] body .modal-head,
:root[data-theme="dark"] body .modal-foot { background: transparent !important; }
body .card-head { border-bottom: 1px solid var(--t-line) !important; }

/* ----------------------------------------------------------------------------
 * 3 · BUTTONS — one primary per view. Dark blue in light, light blue in dark.
 *     Everything else is a ghost. Buttons press under the hand.
 * ------------------------------------------------------------------------- */
body .btn, body .modal-btn, body .ap-modal-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 34px; padding: 0 14px;
  border-radius: var(--r-ctl) !important;
  font-size: var(--fz-13, 13px); font-weight: 700; letter-spacing: 0;
  line-height: 1; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .08s ease;
}
body .btn.sm, body .btn.small { min-height: 28px; padding: 0 10px; font-size: var(--fz-12, 12px); }
body .btn.tiny { min-height: 24px; padding: 0 8px; font-size: var(--fz-11h, 11.5px); }
/* STYLE KIT · 8 — buttons, two sizes only (11/04, Niko: "Lets do it!"). Measured 115 pages: 338 buttons on 86 pages were
   already 34px / 13px bold / 9px corners; 13 pages used a 28px small one; the rest had page-made sizes (11px text,
   24px, 30px, 36px, 46px). Rule: a button matches the field next to it — 34px normal, 28px small (.sm / .small /
   .tiny, and any button inside a table cell). Size + type at high strength so a page can't drift; colours stay as §3. */
html:root body .btn.btn { min-height: 34px !important; height: 34px !important; padding: 0 14px !important;
  font-size: var(--fz-13, 13px) !important; font-weight: 700 !important; line-height: 1 !important; border-radius: var(--r-ctl) !important;
  text-transform: none !important; letter-spacing: 0 !important; box-sizing: border-box !important; }
/* 11/04 · one-off page buttons take the same two sizes (Niko: "lets do it"). Size + type only — their colours carry meaning
   (green complete, red escalate, amber warn) and stay the page's until a colour pass. Icon-only buttons keep their own size. */
html:root body :is(button, a):is(.qa, .np-btn, .xe-btn, .appr-btn, .md-btn, .hero-btn):not(.icon-only) {
  min-height: 34px !important; height: 34px !important; padding: 0 14px !important; font-size: var(--fz-13, 13px) !important; font-weight: 700 !important;
  line-height: 1 !important; border-radius: var(--r-ctl) !important; text-transform: none !important; letter-spacing: 0 !important;
  box-sizing: border-box !important; white-space: nowrap; }
html:root body :is(button, a):is(.rc-btn, .aq-btn, .qc-confirm, .act-btn, .bb-btn, .mod-testout, .use, .sa-btn, .sa-btn-inline, .ch-btn, .vd-action):not(.icon-only),
html:root body :is(td, th) :is(button, a):is(.qa, .np-btn, .xe-btn, .appr-btn, .md-btn, .hero-btn):not(.icon-only) {
  min-height: 28px !important; height: 28px !important; padding: 0 10px !important; font-size: var(--fz-12, 12px) !important; font-weight: 700 !important;
  line-height: 1 !important; border-radius: var(--r-ctl-sm) !important; text-transform: none !important; letter-spacing: 0 !important;
  box-sizing: border-box !important; white-space: nowrap; }
html:root body .btn.btn:is(.sm, .small, .tiny), html:root body :is(td, th) .btn.btn {
  min-height: 28px !important; height: 28px !important; padding: 0 10px !important; font-size: var(--fz-12, 12px) !important; border-radius: var(--r-ctl-sm) !important; }

/* 11/04 · one-off buttons take the kit COLOURS too (Niko: "lets do it"). Each page's variants mapped by meaning:
   primary (and the quote page's plain np-btn "Price this quote", "Use as new") → §3 primary · go/complete/approve/yes → §3 success green · decline/escalate/danger/no → §3 danger red ·
   everything else → §3 ghost. Hold / warn (amber) keep the page's amber on purpose — the kit has no amber button. */
html:root[data-theme="light"] body :is(button, a):is(.qa:not(.primary, .danger-text, .eod-done), .row-act-btn:not(.danger, .primary), .np-btn.ghost, .rc-btn:not(.primary), .aq-btn:not(.primary), .act-btn:not(.complete, .esc, .icon-only), .bb-btn:not(.primary, .complete, .success, .danger, .warn), .md-btn:not(.approve, .decline, .hold), .hero-btn:not(.primary), .xe-btn, .ch-btn, .mod-testout, .qc-confirm, .sa-btn:not(.primary, .success), .sa-btn-inline, .vd-action:not(.primary)):is(.qa:not(.primary, .danger-text, .eod-done), .row-act-btn:not(.danger, .primary), .np-btn.ghost, .rc-btn:not(.primary), .aq-btn:not(.primary), .act-btn:not(.complete, .esc, .icon-only), .bb-btn:not(.primary, .complete, .success, .danger, .warn), .md-btn:not(.approve, .decline, .hold), .hero-btn:not(.primary), .xe-btn, .ch-btn, .mod-testout, .qc-confirm, .sa-btn:not(.primary, .success), .sa-btn-inline, .vd-action:not(.primary)) { background: var(--t-glass) !important; background-image: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.55)) !important; border: 1px solid var(--line-blue-3, rgba(28,116,166,0.22)) !important; color: var(--ct-blue) !important; -webkit-text-fill-color: var(--ct-blue) !important; box-shadow: inset 0 2px 0 -1px rgba(86,194,239,0.9), 0 1px 2px rgba(0,50,88,0.08), 0 0 18px -8px rgba(86,194,239,0.45) !important; }   /* Kit 21 */
html:root[data-theme="dark"]  body :is(button, a):is(.qa:not(.primary, .danger-text, .eod-done), .row-act-btn:not(.danger, .primary), .np-btn.ghost, .rc-btn:not(.primary), .aq-btn:not(.primary), .act-btn:not(.complete, .esc, .icon-only), .bb-btn:not(.primary, .complete, .success, .danger, .warn), .md-btn:not(.approve, .decline, .hold), .hero-btn:not(.primary), .xe-btn, .ch-btn, .mod-testout, .qc-confirm, .sa-btn:not(.primary, .success), .sa-btn-inline, .vd-action:not(.primary)):is(.qa:not(.primary, .danger-text, .eod-done), .row-act-btn:not(.danger, .primary), .np-btn.ghost, .rc-btn:not(.primary), .aq-btn:not(.primary), .act-btn:not(.complete, .esc, .icon-only), .bb-btn:not(.primary, .complete, .success, .danger, .warn), .md-btn:not(.approve, .decline, .hold), .hero-btn:not(.primary), .xe-btn, .ch-btn, .mod-testout, .qc-confirm, .sa-btn:not(.primary, .success), .sa-btn-inline, .vd-action:not(.primary)) { background: rgba(15,28,51,0.88) !important; background-image: linear-gradient(180deg, rgba(86,194,239,0.10), rgba(86,194,239,0)) !important; border: 1px solid var(--line-sky-3, rgba(86,194,239,0.35)) !important; color: var(--t-ink) !important; -webkit-text-fill-color: var(--t-ink) !important; box-shadow: inset 0 2px 0 -1px rgba(86,194,239,0.9), 0 0 0 1px rgba(86,194,239,0.08), 0 0 20px -8px rgba(86,194,239,0.5) !important; }   /* Kit 21 */
html:root[data-theme="light"] body :is(button, a):is(.qa.primary, .np-btn:not(.go, .ghost), .use, .rc-btn.primary, .aq-btn.primary, .bb-btn.primary, .sa-btn.primary, .vd-action.primary, .hero-btn.primary):is(.qa.primary, .np-btn:not(.go, .ghost), .use, .rc-btn.primary, .aq-btn.primary, .bb-btn.primary, .sa-btn.primary, .vd-action.primary, .hero-btn.primary) { background: linear-gradient(135deg, #1C74A6, #2AA3E0) !important;  border: 1px solid transparent !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; box-shadow: 0 4px 12px -2px rgba(28,116,166,0.35) !important; }
html:root[data-theme="dark"]  body :is(button, a):is(.qa.primary, .np-btn:not(.go, .ghost), .use, .rc-btn.primary, .aq-btn.primary, .bb-btn.primary, .sa-btn.primary, .vd-action.primary, .hero-btn.primary):is(.qa.primary, .np-btn:not(.go, .ghost), .use, .rc-btn.primary, .aq-btn.primary, .bb-btn.primary, .sa-btn.primary, .vd-action.primary, .hero-btn.primary) { background: linear-gradient(135deg, #1C74A6, #2AA3E0) !important;  border: 1px solid transparent !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; box-shadow: 0 6px 18px -6px rgba(86,194,239,0.6) !important; }
html:root body :is(button, a):is(.np-btn.go, .act-btn.complete, .bb-btn.complete, .bb-btn.success, .md-btn.approve, .sa-btn.success, .appr-btn.appr-yes):is(.np-btn.go, .act-btn.complete, .bb-btn.complete, .bb-btn.success, .md-btn.approve, .sa-btn.success, .appr-btn.appr-yes) { background: #059669 !important; background-image: none !important; border: 1px solid #059669 !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
html:root body :is(button, a):is(.bb-btn.danger, .md-btn.decline, .act-btn.esc, .appr-btn.appr-no):is(.bb-btn.danger, .md-btn.decline, .act-btn.esc, .appr-btn.appr-no) { background: #DC2626 !important; background-image: none !important; border: 1px solid #DC2626 !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
body .btn:active, body .modal-btn:active { transform: translateY(1px) scale(0.985); }

/* ghost (the default button) */
:root[data-theme="light"] body .btn:not(.primary):not(.danger):not(.success):not(.btn-primary),
:root[data-theme="light"] body .modal-btn:not(.primary):not(.danger) {
  /* STYLE KIT · 21 (11/09, Niko: "buttons you can click in light mode are super boring"): the ghost button
     takes the CARD treatment — white glass, the CRM's lit sky top line + faint sky glow, logo-blue text. */
  background: var(--t-glass) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.55)) !important;
  border: 1px solid var(--line-blue-3, rgba(28,116,166,0.22)) !important;
  color: var(--ct-blue) !important; -webkit-text-fill-color: var(--ct-blue) !important;
  box-shadow: inset 0 2px 0 -1px rgba(86, 194, 239, 0.9), 0 1px 2px rgba(0, 50, 88, 0.08), 0 0 18px -8px rgba(86, 194, 239, 0.45) !important;
}
:root[data-theme="light"] body .btn:not(.primary):not(.danger):not(.success):hover {
  background-image: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(28,116,166,0.08)) !important; border-color: rgba(28, 116, 166, 0.45) !important;
  color: var(--ct-blue-deep) !important; -webkit-text-fill-color: var(--ct-blue-deep) !important;
  box-shadow: inset 0 2px 0 -1px rgba(86, 194, 239, 1), 0 0 0 3px rgba(86, 194, 239, 0.18), 0 0 22px -6px rgba(86, 194, 239, 0.6) !important;
}
:root[data-theme="dark"] body .btn:not(.primary):not(.danger):not(.success):not(.btn-primary),
:root[data-theme="dark"] body .modal-btn:not(.primary):not(.danger) {
  /* Kit 21 dark (Niko: "cooler but too see-through"): opaque panel navy (88%), sky top line + glow; the map stays behind it. */
  background: rgba(15, 28, 51, 0.88) !important;
  background-image: linear-gradient(180deg, rgba(86,194,239,0.10), rgba(86,194,239,0)) !important;
  border: 1px solid var(--line-sky-3, rgba(86,194,239,0.35)) !important;
  color: var(--t-ink) !important; -webkit-text-fill-color: var(--t-ink) !important;
  box-shadow: inset 0 2px 0 -1px rgba(86, 194, 239, 0.9), 0 0 0 1px rgba(86, 194, 239, 0.08), 0 0 20px -8px rgba(86, 194, 239, 0.5) !important;
}
:root[data-theme="dark"] body .btn:not(.primary):not(.danger):not(.success):hover {
  background: rgba(15, 28, 51, 0.94) !important; background-image: linear-gradient(180deg, rgba(86,194,239,0.22), rgba(86,194,239,0.04)) !important;
  border-color: rgba(86, 194, 239, 0.65) !important; color: var(--ct-sky) !important; -webkit-text-fill-color: var(--ct-sky) !important;
  box-shadow: inset 0 2px 0 -1px rgba(86, 194, 239, 1), 0 0 0 3px rgba(86, 194, 239, 0.22), 0 0 26px -6px rgba(86, 194, 239, 0.7) !important;
}

/* primary — the CRM's blue gradient #1C74A6 → #2AA3E0, white text, both modes (11/05; was solid dark blue / sky) */
:root[data-theme="light"] body .btn.primary.primary, :root[data-theme="light"] body .btn-primary.btn-primary,
:root[data-theme="light"] body .modal-btn.primary {
  background: linear-gradient(135deg, #1C74A6, #2AA3E0) !important; border: 1px solid transparent !important;
  color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important;
  box-shadow: 0 4px 12px -2px rgba(28, 116, 166, 0.35) !important;
}
:root[data-theme="light"] body .btn.primary.primary:hover, :root[data-theme="light"] body .btn-primary.btn-primary:hover {
  background: linear-gradient(135deg, #2AA3E0, #56C2EF) !important; border-color: transparent !important;
}
/* primary — dark: same gradient, soft sky glow */
:root[data-theme="dark"] body .btn.primary.primary, :root[data-theme="dark"] body .btn-primary.btn-primary,
:root[data-theme="dark"] body .modal-btn.primary {
  background: linear-gradient(135deg, #1C74A6, #2AA3E0) !important; border: 1px solid transparent !important;
  color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important;
  box-shadow: 0 6px 18px -6px rgba(86, 194, 239, 0.6) !important;
}
:root[data-theme="dark"] body .btn.primary.primary:hover, :root[data-theme="dark"] body .btn-primary.btn-primary:hover {
  background: linear-gradient(135deg, #2AA3E0, #56C2EF) !important; border-color: transparent !important;
}
/* icons inside primary buttons follow the text */
body .btn.primary svg, body .btn.primary .icon { color: inherit !important; fill: currentColor; }

/* danger / success — same in both modes: these must be unmistakable */
body .btn.danger, body .modal-btn.danger {
  background: #DC2626 !important; border: 1px solid #DC2626 !important;
  color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important;
}
body .btn.success {
  background: #059669 !important; border: 1px solid #059669 !important;
  color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important;
}
body .btn:disabled, body .btn[disabled], body .btn[aria-disabled="true"] { opacity: .5 !important; cursor: not-allowed; transform: none !important; }

/* icon buttons */
body .icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--r-ctl) !important;
  background: transparent !important; border: 1px solid transparent !important;
  color: var(--t-ink-2) !important; transition: background-color .15s, color .15s;
}
:root[data-theme="light"] body .icon-btn:hover { background: var(--tint-blue-2, rgba(28,116,166,0.08)) !important; color: var(--ct-navy) !important; }
:root[data-theme="dark"]  body .icon-btn:hover { background: var(--tint-sky-2, rgba(86,194,239,0.12)) !important; color: #FFFFFF !important; }

/* keyboard focus — one soft halo everywhere */
body .btn:focus-visible, body .icon-btn:focus-visible, body .chip:focus-visible,
body input:focus-visible, body select:focus-visible, body textarea:focus-visible,
body a:focus-visible { outline: none !important; box-shadow: var(--t-halo) !important; }

/* ----------------------------------------------------------------------------
 * 4 · INPUTS — quiet fields, a blue halo when they're yours
 * ------------------------------------------------------------------------- */
body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
body select, body textarea {
  border-radius: var(--r-ctl) !important;
  font-size: var(--fz-13, 13px); font-weight: 500;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
:root[data-theme="light"] body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
:root[data-theme="light"] body select, :root[data-theme="light"] body textarea {
  background: #FFFFFF; border: 1px solid rgba(0, 50, 88, 0.16); color: var(--t-ink);
}
:root[data-theme="dark"] body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
:root[data-theme="dark"] body select, :root[data-theme="dark"] body textarea {
  background: var(--tint-white-1, rgba(255,255,255,0.04)); border: 1px solid var(--line-sky-2, rgba(86,194,239,0.22)); color: var(--t-ink);
}
body input:focus, body select:focus, body textarea:focus {
  border-color: var(--ct-blue) !important; box-shadow: var(--t-halo) !important; outline: none !important;
}
:root[data-theme="dark"] body input:focus, :root[data-theme="dark"] body select:focus, :root[data-theme="dark"] body textarea:focus { border-color: var(--ct-sky) !important; }
body input::placeholder, body textarea::placeholder { color: var(--t-ink-3); font-weight: 500; }
body input[type="checkbox"], body input[type="radio"] { accent-color: var(--ct-blue); }
:root[data-theme="dark"] body input[type="checkbox"], :root[data-theme="dark"] body input[type="radio"] { accent-color: var(--ct-sky); }

/* ----------------------------------------------------------------------------
 * 5 · TABLES — sentence-case headers, calm rows, a wash on hover
 * ------------------------------------------------------------------------- */
body table th {
  font-size: var(--fs-2) !important; font-weight: 600 !important;
  text-transform: none !important; letter-spacing: 0 !important;
  color: var(--t-ink-2) !important;
}
body table td { font-size: var(--fz-13, 13px); }
:root[data-theme="light"] body table th { background: #F3F7FB !important; border-bottom: 1px solid var(--t-line) !important; }
:root[data-theme="dark"]  body table th { background: #0C1830 !important; border-bottom: 1px solid var(--t-line) !important; }
body table tbody tr { transition: background-color .12s; }
:root[data-theme="light"] body table tbody tr:hover > td { background: var(--tint-blue-1, rgba(28,116,166,0.055)) !important; }
:root[data-theme="dark"]  body table tbody tr:hover > td { background: var(--tint-sky-1, rgba(86,194,239,0.07)) !important; }
body table td { border-color: var(--t-line) !important; }

/* ----------------------------------------------------------------------------
 * 6 · STATUS — a dot and a word. No colored boxes, no borders.
 *     (Pills with an inline background — role colors — are left alone.)
 * ------------------------------------------------------------------------- */
body .pill:not([style*="background"]),
body .status-pill:not([style*="background"]),
body .st-badge:not([style*="background"]),
body .ct3-badge:not([style*="background"]) {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent !important; border: none !important; box-shadow: none !important;
  padding: 0 2px !important; border-radius: 0 !important;
  font-size: var(--fz-12, 12px) !important; font-weight: 600 !important; letter-spacing: 0 !important;
  text-transform: none !important; color: var(--t-ink-2) !important;
}
body .pill:not([style*="background"])::before,
body .status-pill:not([style*="background"])::before,
body .st-badge:not([style*="background"])::before,
body .ct3-badge:not([style*="background"])::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: currentColor; opacity: .95;
}
/* good */
body :is(.pill,.status-pill,.st-badge,.ct3-badge):is(.good,.ok,.paid,.posted,.accepted,.active,.open,.green,.success,.done,.delivered,.pill-good,.on):not([style*="background"]) { color: var(--ct-good) !important; }
/* warn */
body :is(.pill,.status-pill,.st-badge,.ct3-badge):is(.warn,.pending,.due-soon,.mid,.draft,.paused,.hold,.pill-warn,.amber):not([style*="background"]) { color: var(--ct-warn) !important; }
/* bad */
body :is(.pill,.status-pill,.st-badge,.ct3-badge):is(.danger,.bad,.alert,.declined,.expired,.overdue,.unpaid,.crit,.urgent,.revoked,.stopped,.late,.pill-danger,.red):not([style*="background"]) { color: var(--ct-bad) !important; }
/* info / live */
body :is(.pill,.status-pill,.st-badge,.ct3-badge):is(.info,.primary,.custom,.pill-azure,.azure,.blue,.transit,.tracking,.live,.in-motion):not([style*="background"]) { color: var(--ct-info) !important; }
/* STYLE KIT 39 (11/12) — status words the lists above did not know, so they all showed the default colour
   (Reminders → Archive: High / Med / Low looked identical; Invoices: Disputed looked like Ready). Each takes the
   tone its own page meant. Anything not listed stays the quiet default.
   Raised (html:root + doubled class) so a page's own dark-mode "ink !important" cannot flatten the tone: light and dark
   differ in colour only, never in meaning. */
html:root body :is(.pill.pill,.status-pill.status-pill,.st-badge.st-badge,.ct3-badge.ct3-badge):is(.edi,.viewed,.value,.settled,.cleared,.st-delivered,.invoiced,.healthy,.avail,.approved,.ackd,.acked,.sc-p-good,.sev-low):not([style*="background"]) { color: var(--ct-good) !important; }
html:root body :is(.pill.pill,.status-pill.status-pill,.st-badge.st-badge,.ct3-badge.ct3-badge):is(.onboarding,.oa-p-warn,.sev-med):not([style*="background"]) { color: var(--ct-warn) !important; }
html:root body :is(.pill.pill,.status-pill.status-pill,.st-badge.st-badge,.ct3-badge.ct3-badge):is(.disputed,.bounced,.sev-high,.sev-critical,.due-overdue,.denied,.bucket-90,.st-open,.expiring,.failing,.onhold,.esc,.sc-p-bad,.oa-p-bad):not([style*="background"]) { color: var(--ct-bad) !important; }
html:root body :is(.pill.pill,.status-pill.status-pill,.st-badge.st-badge,.ct3-badge.ct3-badge):is(.ready,.email,.linked,.loaded,.uncleared,.direct,.factor,.bucket-30,.bucket-60,.quoted,.open-claim,.investigating,.st-booked,.st-covered,.st-dispatched,.st-loaded,.st-consignee,.booked,.dispatched,.intransit,.covered,.consignee,.otr,.intl,.allin,.system,.ratecon,.preferred,.recurring,.atrisk,.alerted,.due-today):not([style*="background"]) { color: var(--ct-info) !important; }
/* the only thing that moves on its own: a load that is actually moving */
body :is(.pill,.status-pill,.st-badge,.ct3-badge):is(.transit,.tracking,.live,.in-motion):not([style*="background"])::before {
  animation: ctPulse 2.2s ease-in-out infinite;
}
@keyframes ctPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(86, 194, 239, 0.55); }
  60%      { box-shadow: 0 0 0 6px rgba(86, 194, 239, 0); }
}

/* source chips (Reminders → from issues / cadence / quote aging) used the dark-mode sky in light mode */
:root[data-theme="light"] body .src-chip, :root[data-theme="light"] body .src-chip .si { color: #1C74A6 !important; }
:root[data-theme="light"] body .src-chip { background: var(--tint-blue-2, rgba(28,116,166,0.10)) !important; }

/* tags — neutral, quiet */
body .tag { border-radius: var(--r-ctl-sm) !important; font-weight: 600 !important; font-size: var(--fz-11h, 11.5px) !important; }
:root[data-theme="light"] body .tag { background: var(--tint-blue-2, rgba(28,116,166,0.08)) !important; color: #2F5D7D !important; }
:root[data-theme="dark"]  body .tag { background: var(--tint-sky-2, rgba(86,194,239,0.12)) !important; color: #9CC8E6 !important; }

/* chips — filter toggles. Quiet box; the active one is solid. 11/03 (Niko: "i want it all the same"): raised to
   html:root body .chip.chip so page rules (Reports header, Home queue) can't restyle a chip; every filter row wears .chip. */
html:root body .chip.chip {
  border-radius: var(--r-pill) !important; font-weight: 600 !important; font-size: var(--fz-12, 12px) !important;
  text-transform: none !important; letter-spacing: 0 !important;
  transition: background-color .15s, border-color .15s, color .15s;
  /* STYLE KIT 4 (10/29, Niko: "Yeah!") — one size everywhere. Pages had 27/28/29/31/33px; 31px was the most common. */
  height: 31px !important; min-height: 0 !important;
  padding: 0 13px !important; line-height: 1.2 !important; box-sizing: border-box !important;
}
/* 11/03: layout at low strength so a page can still hide a chip (same fix as the tab kit — never display at high strength). */
:where(.chip) { display: inline-flex; align-items: center; }
.chip[hidden] { display: none !important; }
html:root[data-theme="light"] body .chip.chip:not(.active):not(.on):not([style*="background"]) { background: #FFFFFF !important; border: 1px solid rgba(0,50,88,0.18) !important; color: #0A2540 !important; }
html:root[data-theme="dark"]  body .chip.chip:not(.active):not(.on):not([style*="background"]) { background: rgba(30, 53, 81, 0.80) !important; border: 1px solid var(--line-sky-3, rgba(86,194,239,0.30)) !important; color: #DCE9F5 !important; }
html:root[data-theme="light"] body .chip.chip:is(.active,.on):not(.danger) { background: linear-gradient(135deg, #1C74A6, #2AA3E0) !important; border: 1px solid transparent !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }   /* CRM active chip 11/05 */
html:root[data-theme="dark"]  body .chip.chip:is(.active,.on):not(.danger) { background: linear-gradient(135deg, #1C74A6, #2AA3E0) !important; border: 1px solid transparent !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }   /* CRM active chip 11/05 */
body .chip:is(.active,.on) .c-count, body .chip:is(.active,.on) .chip-count { background: var(--tint-white-4, rgba(255,255,255,0.25)) !important; color: inherit !important; }
:root[data-theme="dark"] body .chip:is(.active,.on) .c-count, :root[data-theme="dark"] body .chip:is(.active,.on) .chip-count { background: var(--tint-white-4, rgba(255,255,255,0.25)) !important; }
/* 11/17 · CHIP COUNTS (Niko "Both"): the number inside a filter chip — .ct, .cnt, .c-count, .chip-count — one look on every
   page, the CRM's (.chip .c-count): a pill, 11px, the chip's own text colour; on a resting chip a blue wash (light) / sky
   wash (dark); on the active blue chip a white wash. Measured first: 223 counts in 16 looks (light), 11 (dark) — 10 or
   11px, weight 700 or 800, grey-blue words, and in dark the count wore the chip's own navy so it did not show as a pill. */
html:root body .chip.chip :is(.ct, .cnt, .c-count, .chip-count) { border-radius: var(--r-pill) !important; padding: 1px 7px !important; font-size: var(--fs-1) !important; font-weight: 700 !important; color: inherit !important; }
html:root[data-theme="light"] body .chip.chip:not(.active):not(.on) :is(.ct, .cnt, .c-count, .chip-count) { background: var(--tint-blue-3) !important; }
html:root[data-theme="dark"]  body .chip.chip:not(.active):not(.on) :is(.ct, .cnt, .c-count, .chip-count) { background: var(--tint-sky-3) !important; }
html:root body .chip.chip:is(.active, .on) :is(.ct, .cnt, .c-count, .chip-count) { background: var(--tint-white-4) !important; }

/* ----------------------------------------------------------------------------
 * 7 · MODALS & DRAWERS — one deep surface, the page dims and blurs behind it
 * ------------------------------------------------------------------------- */
body .modal-card, body .ap-modal-card, body .modal-content {
  border-radius: var(--r-modal) !important;
  box-shadow: 0 30px 80px -24px rgba(0, 20, 40, 0.55), 0 2px 6px rgba(0, 20, 40, 0.10) !important;
}
:root[data-theme="dark"] body .modal-card, :root[data-theme="dark"] body .ap-modal-card, :root[data-theme="dark"] body .modal-content {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 40px 100px -30px rgba(0, 0, 0, 0.9) !important;
}
body .modal-overlay, body .modal-backdrop, body .modal-back, body .drawer-back {
  background: rgba(2, 18, 36, 0.45) !important;
  -webkit-backdrop-filter: blur(6px) !important; backdrop-filter: blur(6px) !important;
}
body .modal-head h2, body .modal-head h3, body .ap-modal-head h2 { font-size: var(--fs-5) !important; font-weight: 800 !important; letter-spacing: -0.02em !important; }

/* toasts */
body .toast { border-radius: var(--r-panel) !important; box-shadow: var(--t-shadow-up) !important; font-weight: 600 !important; }

/* empty states — an invitation, not a void */
body .empty, body .card-empty, body .ctms-empty, body .cell-empty-state { color: var(--t-ink-2) !important; font-weight: 500 !important; }

/* ----------------------------------------------------------------------------
 * 8 · SCROLLBARS & MOTION
 * ------------------------------------------------------------------------- */
body ::-webkit-scrollbar { width: 10px; height: 10px; }
body ::-webkit-scrollbar-track { background: transparent; }
:root[data-theme="light"] body ::-webkit-scrollbar-thumb { background: rgba(0, 50, 88, 0.18); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
:root[data-theme="dark"]  body ::-webkit-scrollbar-thumb { background: var(--tint-sky-4, rgba(86,194,239,0.28)); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
@media (prefers-reduced-motion: reduce) {
  body *, body *::before, body *::after { animation: none !important; transition: none !important; }
}

/* ----------------------------------------------------------------------------
 * 9 · PAGE-SPECIFIC FIXES — found by the all-pages check, verified on the sandbox
 * ------------------------------------------------------------------------- */
/* Pages that hard-coded white boxes, which stayed white in dark mode */
:root[data-theme="dark"] body .cs-card,          /* Reminders → Calendar sync */
:root[data-theme="dark"] body .rows,             /* Setup → Connections status */
:root[data-theme="dark"] body .stat,             /* Reports → Team wins (ops) */
:root[data-theme="dark"] body .dw-foot,          /* Help → Training drawer footer */
:root[data-theme="dark"] body .gt-ft {           /* Help → Training tour footer */
  background: var(--surface-card-solid, #131e36) !important;
  border-color: var(--border-subtle, var(--line-white-2, rgba(255,255,255,.08))) !important;
  color: var(--text-primary, #f1f5f9) !important;
}
:root[data-theme="dark"] body .cs-card h2,
:root[data-theme="dark"] body .cs-card strong,
:root[data-theme="dark"] body .cs-card dt,
:root[data-theme="dark"] body .cs-card dd,
:root[data-theme="dark"] body .cs-card li,
:root[data-theme="dark"] body .rows .nm { color: var(--text-primary, #f1f5f9) !important; }
:root[data-theme="dark"] body .cs-card .cs-help,
:root[data-theme="dark"] body .cs-card .cs-note,
:root[data-theme="dark"] body .cs-card .cs-scope,
:root[data-theme="dark"] body .stat .lbl,
:root[data-theme="dark"] body #simList { color: var(--text-secondary, rgba(241,245,249,.72)) !important; }
/* Reports → Reconciliation: active filter pill was light text on light blue */
:root[data-theme="dark"] body .recon-filter.active { color: #003258 !important; }
/* Light-blue buttons/labels with white text in dark mode (Reconciliation, the
   customer portal's Pay now / Download ZIP). Light blue gets navy text, like
   every other light-blue button. */
:root[data-theme="dark"] body [style*="background:var(--accent)"],
:root[data-theme="dark"] body .ibb-btn.primary,
:root[data-theme="dark"] body .dbb-btn.primary {
  color: #FFFFFF !important;   /* 11/05: white on the CRM gradient (was navy on sky) */
  -webkit-text-fill-color: #FFFFFF !important;
}
/* Equipment → PM schedule / work orders: selected red "Overdue" chip was
   pink text on red in dark mode */
:root[data-theme="dark"] body .chip.danger.active { color: #ffffff !important; }
/* Found clicking through the tabs inside each page (2026-10-14) */
/* Setup → Company setup / Offices: "HQ" badge and status pills in dark mode */
:root[data-theme="dark"] body .off-card-head .hq-badge { color: #003258 !important; }
:root[data-theme="dark"] body .cs-pill.ok { color: #34d399 !important; }
/* Help → Training → Videos: topic tag on the thumbnails */
:root[data-theme="dark"] body .vt-thumb .tp { color: #003258 !important; }
/* Create Load → Tasks (and other panes): blue info banner text in dark mode */
:root[data-theme="dark"] body .pane-banner.info,
:root[data-theme="dark"] body .pane-banner.info * { color: #9BD7F3 !important; }
/* Light-mode leftovers found by the all-pages check after the v2 theme (2026-10-14) */
:root[data-theme="light"] body .ph-bread { color: #1C74A6 !important; }                      /* page-header breadcrumb used the dark-mode sky */
:root[data-theme="light"] body .pos { color: var(--ct-good) !important; }                           /* Reports → Custom report builder: mint on white */
:root[data-theme="light"] body .neg { color: var(--ct-bad) !important; }
:root[data-theme="light"] body .dp-head .dp-meta { color: rgba(255, 255, 255, 0.78) !important; } /* Setup → Branding: gray text on the navy preview header */
:root[data-theme="light"] body [style*="background:var(--accent)"] { color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; } /* Reconciliation: upload labels, dark text on deep blue */
body [style*="background:#56C2EF"], body [style*="background: #56C2EF"] { color: #003258 !important; -webkit-text-fill-color: #003258 !important; } /* white text on light blue, both modes */
/* …but a faint TINT of that blue (pills like background:#56C2EF1f, used by coverage-automation source chips) is not a light badge: in dark the navy above was navy-on-dark (1.5:1). Keep the page's own light-blue ink there. */
:root[data-theme="dark"] body [style*="background:#56C2EF1a"], :root[data-theme="dark"] body [style*="background:#56C2EF1f"], :root[data-theme="dark"] body [style*="background:#56C2EF22"], :root[data-theme="dark"] body [style*="background:#56C2EF26"], :root[data-theme="dark"] body [style*="background:#56C2EF2e"], :root[data-theme="dark"] body [style*="background:#56C2EF33"] { color: #56C2EF !important; -webkit-text-fill-color: #56C2EF !important; }

/* ----------------------------------------------------------------------------
 * 10 · LOAD BOARD — status as a dot and a word (Niko's blue walk: deeper →
 *      brighter as the load advances), and a lane line under each lane with
 *      the truck where the load is (drawn by assets/ct-lane-glyph.js).
 * ------------------------------------------------------------------------- */
body #rows .badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent !important; border: none !important; box-shadow: none !important;
  padding: 0 2px !important; border-radius: 0 !important;
  font-size: var(--fz-12h, 12.5px) !important; font-weight: 700 !important; letter-spacing: 0 !important;
  color: var(--t-ink) !important;
}
body #rows .badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--lb-c, #8A98A8); }
body #rows .badge.b-open       { --lb-c: #DC2626; }
body #rows .badge.b-hold       { --lb-c: #B45309; }
body #rows .badge.b-reserved,
body #rows .badge.b-covered    { --lb-c: #1C74A6; }
body #rows .badge.b-reserved::before,
body #rows .badge.b-covered::before { background: transparent; box-shadow: inset 0 0 0 2px var(--lb-c); }
body #rows .badge.b-dispatched { --lb-c: #0F3D63; }
body #rows .badge.b-pickup     { --lb-c: #155985; }
body #rows .badge.b-atpickup   { --lb-c: #1C74A6; }
body #rows .badge.b-loaded     { --lb-c: #2AA3E0; }
body #rows .badge.b-atcons     { --lb-c: #56C2EF; }
body #rows .badge.b-delivered  { --lb-c: #059669; }
body #rows .badge.b-void       { --lb-c: #8A98A8; color: var(--t-ink-3) !important; }
body #rows .badge.b-loaded::before { animation: ctPulse 2.2s ease-in-out infinite; }
:root[data-theme="dark"] body #rows .badge.b-open       { --lb-c: #FCA5A5; }
:root[data-theme="dark"] body #rows .badge.b-hold       { --lb-c: #FBBF24; }
:root[data-theme="dark"] body #rows .badge.b-dispatched { --lb-c: #2F6F99; }
:root[data-theme="dark"] body #rows .badge.b-pickup     { --lb-c: #3F8EBF; }
:root[data-theme="dark"] body #rows .badge.b-atpickup   { --lb-c: #56C2EF; }
:root[data-theme="dark"] body #rows .badge.b-loaded     { --lb-c: #7FD3F5; }
:root[data-theme="dark"] body #rows .badge.b-atcons     { --lb-c: #BFE9FF; }
:root[data-theme="dark"] body #rows .badge.b-delivered  { --lb-c: #6EE7B7; }
:root[data-theme="dark"] body #rows .badge.b-reserved, :root[data-theme="dark"] body #rows .badge.b-covered { --lb-c: #7FD3F5; }

/* the lane line */
body #rows td.lane { padding-bottom: 12px !important; min-width: 180px; }
body #rows td.lane .ct-lane { position: relative; display: block; height: 8px; margin-top: 5px;
  /* The glyph carries the row's b-* status class so the marker can follow it; the board's
     bare .b-open/.b-covered/… pill rules (frosted white fill) matched it too and drew an 8px
     white bar across the lane in dark mode. Found on the sandbox 2026-10-15. */
  background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
body #rows td.lane .ct-lane i { position: absolute; top: 3px; height: 2px; }
body #rows td.lane .ct-lane .ct-lane-t { left: 3px; right: 3px; background: rgba(0, 50, 88, 0.14); border-radius: 2px; }
body #rows td.lane .ct-lane .ct-lane-o, body #rows td.lane .ct-lane .ct-lane-d { top: 1px; width: 6px; height: 6px; border-radius: 50%; background: rgba(0, 50, 88, 0.30); }
body #rows td.lane .ct-lane .ct-lane-o { left: 0; } body #rows td.lane .ct-lane .ct-lane-d { right: 0; }
body #rows td.lane .ct-lane .ct-lane-m { position: absolute; top: 0; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: var(--lb-c, #1C74A6); box-shadow: 0 0 0 2px #FFFFFF; transition: left .5s cubic-bezier(.2,.7,.2,1); }
body #rows td.lane .ct-lane.b-open .ct-lane-m { --lb-c: #DC2626; } body #rows td.lane .ct-lane.b-hold .ct-lane-m { --lb-c: #B45309; }
body #rows td.lane .ct-lane.b-reserved .ct-lane-m, body #rows td.lane .ct-lane.b-covered .ct-lane-m { background: #FFFFFF; box-shadow: 0 0 0 2px #1C74A6; }
body #rows td.lane .ct-lane.b-dispatched .ct-lane-m { --lb-c: #0F3D63; } body #rows td.lane .ct-lane.b-pickup .ct-lane-m { --lb-c: #155985; }
body #rows td.lane .ct-lane.b-atpickup .ct-lane-m { --lb-c: #1C74A6; } body #rows td.lane .ct-lane.b-loaded .ct-lane-m { --lb-c: #2AA3E0; animation: ctPulse 2.2s ease-in-out infinite; }
body #rows td.lane .ct-lane.b-atcons .ct-lane-m { --lb-c: #56C2EF; } body #rows td.lane .ct-lane.b-delivered .ct-lane-m { --lb-c: #059669; }
body #rows td.lane .ct-lane.b-delivered .ct-lane-t { background: rgba(27, 158, 110, 0.35); }
:root[data-theme="dark"] body #rows td.lane .ct-lane .ct-lane-t { background: var(--tint-sky-3, rgba(86,194,239,0.16)); }
:root[data-theme="dark"] body #rows td.lane .ct-lane .ct-lane-o, :root[data-theme="dark"] body #rows td.lane .ct-lane .ct-lane-d { background: rgba(86, 194, 239, 0.5); }
:root[data-theme="dark"] body #rows td.lane .ct-lane .ct-lane-m { box-shadow: 0 0 0 2px #0F1C33; }
:root[data-theme="dark"] body #rows td.lane .ct-lane.b-open .ct-lane-m { --lb-c: #FCA5A5; }
:root[data-theme="dark"] body #rows td.lane .ct-lane.b-loaded .ct-lane-m { --lb-c: #7FD3F5; }
:root[data-theme="dark"] body #rows td.lane .ct-lane.b-atcons .ct-lane-m { --lb-c: #BFE9FF; }
:root[data-theme="dark"] body #rows td.lane .ct-lane.b-delivered .ct-lane-m { --lb-c: #6EE7B7; }
:root[data-theme="dark"] body #rows td.lane .ct-lane.b-reserved .ct-lane-m, :root[data-theme="dark"] body #rows td.lane .ct-lane.b-covered .ct-lane-m { background: #0F1C33; box-shadow: 0 0 0 2px #7FD3F5; }
/* Load Board sidebar headings ("Filters", "Status") were tracked capitals */
body .sidebar .toggle-label, body .sidebar .group > h4 { text-transform: none !important; letter-spacing: 0 !important; font-weight: 700 !important; font-size: var(--fz-12h, 12.5px) !important; }

/* ---------------------------------------------------------------------------
 * 11 · HOME HERO quick actions — the same buttons as everywhere else (2026-10-15)
 *     The old home sheet made every chip a sky gradient in dark and white glass in
 *     light, with a prism edge and a sheen animation on the primaries — the one spot
 *     on the two showpieces where the modes disagreed. Now: ONE primary ("New
 *     shipment"; "New quote" steps up only when the role hides New shipment), the
 *     rest ghost, identical in both modes. Graphics only — links and perms untouched.
 * ------------------------------------------------------------------------- */
body :is(.hello, .ct-hero) .quick .qa, body :is(.hello, .ct-hero) .quick .qa.primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 36px; padding: 0 16px !important;
  border-radius: var(--r-ctl) !important;
  font-size: var(--fz-13, 13px) !important; font-weight: 700 !important; letter-spacing: 0 !important; text-transform: none !important;
  line-height: 1 !important; text-decoration: none !important;
  background-image: none !important; background-size: auto !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  animation: none !important; transform: none !important;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .08s ease !important;
}
body :is(.hello, .ct-hero) .quick .qa:active { transform: translateY(1px) scale(0.985) !important; }
body :is(.hello, .ct-hero) .quick .qa::before, body :is(.hello, .ct-hero) .quick .qa::after { display: none !important; content: none !important; }
body :is(.hello, .ct-hero) .quick .qa svg { width: 14px !important; height: 14px !important; stroke: currentColor !important; color: inherit !important; opacity: 1 !important; }
/* icons follow their button's text — the old sheet pinned them to blue/white per mode, which put a
   blue "+" on the dark-blue primary in light and a white one on the sky primary in dark */
:root[data-theme="light"] body :is(.hello, .ct-hero) .quick .qa svg { stroke: #0A2540 !important; color: #0A2540 !important; }
:root[data-theme="light"] body :is(.hello, .ct-hero) .quick .qa.primary.primary svg { stroke: #FFFFFF !important; color: #FFFFFF !important; }
:root[data-theme="light"] body :is(.hello, .ct-hero) .quick .qa.primary.primary:not([style*="display:none"]):not([style*="display: none"]) ~ .qa.primary.primary svg { stroke: #0A2540 !important; color: #0A2540 !important; }
:root[data-theme="dark"] body :is(.hello, .ct-hero) .quick .qa svg { stroke: #DCE9F5 !important; color: #DCE9F5 !important; }
:root[data-theme="dark"] body :is(.hello, .ct-hero) .quick .qa.primary.primary svg { stroke: #FFFFFF !important; color: #FFFFFF !important; }
:root[data-theme="dark"] body :is(.hello, .ct-hero) .quick .qa.primary.primary:not([style*="display:none"]):not([style*="display: none"]) ~ .qa.primary.primary svg { stroke: #DCE9F5 !important; color: #DCE9F5 !important; }

/* ghost — every chip but the primary (same values as §3 ghost buttons) */
:root[data-theme="light"] body :is(.hello, .ct-hero) .quick .qa,
:root[data-theme="light"] body :is(.hello, .ct-hero) .quick .qa.primary:not([style*="display:none"]):not([style*="display: none"]) ~ .qa.primary {
  background: #FFFFFF !important; border: 1px solid rgba(0, 50, 88, 0.18) !important;
  color: #0A2540 !important; -webkit-text-fill-color: #0A2540 !important; box-shadow: none !important;
}
:root[data-theme="light"] body :is(.hello, .ct-hero) .quick .qa:hover,
:root[data-theme="light"] body :is(.hello, .ct-hero) .quick .qa.primary:not([style*="display:none"]):not([style*="display: none"]) ~ .qa.primary:hover {
  background: #FFFFFF !important; border-color: rgba(28, 116, 166, 0.45) !important;
}
:root[data-theme="dark"] body :is(.hello, .ct-hero) .quick .qa,
:root[data-theme="dark"] body :is(.hello, .ct-hero) .quick .qa.primary:not([style*="display:none"]):not([style*="display: none"]) ~ .qa.primary {
  background: var(--tint-white-1, rgba(255,255,255,0.06)) !important; border: 1px solid var(--line-sky-3, rgba(86,194,239,0.30)) !important;
  color: #DCE9F5 !important; -webkit-text-fill-color: #DCE9F5 !important; box-shadow: none !important;
}
:root[data-theme="dark"] body :is(.hello, .ct-hero) .quick .qa:hover,
:root[data-theme="dark"] body :is(.hello, .ct-hero) .quick .qa.primary:not([style*="display:none"]):not([style*="display: none"]) ~ .qa.primary:hover {
  background: var(--tint-sky-2, rgba(86,194,239,0.12)) !important; border-color: var(--line-sky-4, rgba(86,194,239,0.5)) !important;
}

/* the one primary — light: dark blue; dark: light blue with navy text (same as §3) */
:root[data-theme="light"] body :is(.hello, .ct-hero) .quick .qa.primary.primary {
  background: linear-gradient(135deg, #1C74A6, #2AA3E0) !important; border: 1px solid transparent !important;
  color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important;
  box-shadow: 0 4px 12px -2px rgba(28, 116, 166, 0.35) !important;
}
:root[data-theme="light"] body :is(.hello, .ct-hero) .quick .qa.primary.primary:hover { background: linear-gradient(135deg, #2AA3E0, #56C2EF) !important; border-color: transparent !important; }
:root[data-theme="dark"] body :is(.hello, .ct-hero) .quick .qa.primary.primary {
  background: linear-gradient(135deg, #1C74A6, #2AA3E0) !important; border: 1px solid transparent !important;
  color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important;
  box-shadow: 0 6px 18px -6px rgba(86, 194, 239, 0.6) !important;
}
:root[data-theme="dark"] body :is(.hello, .ct-hero) .quick .qa.primary.primary:hover { background: linear-gradient(135deg, #2AA3E0, #56C2EF) !important; border-color: transparent !important; }
/* …but a second primary after a visible one is a ghost (declared again so it beats the line above) */
:root[data-theme="light"] body :is(.hello, .ct-hero) .quick .qa.primary.primary:not([style*="display:none"]):not([style*="display: none"]) ~ .qa.primary.primary {
  background: #FFFFFF !important; border-color: rgba(0, 50, 88, 0.18) !important;
  color: #0A2540 !important; -webkit-text-fill-color: #0A2540 !important; box-shadow: none !important;
}
:root[data-theme="dark"] body :is(.hello, .ct-hero) .quick .qa.primary.primary:not([style*="display:none"]):not([style*="display: none"]) ~ .qa.primary.primary {
  background: var(--tint-white-1, rgba(255,255,255,0.06)) !important; border-color: var(--line-sky-3, rgba(86,194,239,0.30)) !important;
  color: #DCE9F5 !important; -webkit-text-fill-color: #DCE9F5 !important; box-shadow: none !important;
}

/* ---------------------------------------------------------------------------
 * 12 · HOME BODY — everything below the hero (2026-10-15)
 *     The tiles and sections under the greeting still wore the four-month-old
 *     look: mono uppercase labels, gradient-text numbers, colored left borders,
 *     edge glows and sheens, red "edit" buttons, and a different treatment in
 *     each mode. This section gives them the same quiet surface and loud type as
 *     the rest of the system, identical in both modes. Scoped to the Home page
 *     (body:has(#ctHomeMap)) wherever a selector is shared with other pages.
 * ------------------------------------------------------------------------- */

/* 12a · the Home sections that are not .card/.kpi get the §2 surface too */
:root[data-theme="light"] body :is(.morning-brief, .weekend-pulse, .start-here, .revenue-rhythm, .section-divider, .concentration-alert, .eod-handoff, .pnl-board, .ch-tray),
:root[data-theme="dark"]  body :is(.morning-brief, .weekend-pulse, .start-here, .revenue-rhythm, .section-divider, .concentration-alert, .eod-handoff, .pnl-board, .ch-tray) {
  background: var(--t-glass) !important; background-image: none !important;   /* 11/05 CRM glass (was --t-panel) */
  border: 1px solid var(--t-line) !important; border-radius: var(--r-panel) !important;
  box-shadow: var(--t-shadow) !important; animation: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  color: var(--t-ink);
}
/* no left-border accents, no edge glows, no sheens — depth comes from light, not from paint */
body:has(#ctHomeMap) :is(.card, .kpi, .morning-brief, .weekend-pulse, .start-here, .revenue-rhythm, .section-divider, .concentration-alert, .goal-tile) { border-left-width: 1px !important; }
body:has(#ctHomeMap) :is(.card, .kpi, .morning-brief, .weekend-pulse, .start-here, .revenue-rhythm, .section-divider, .concentration-alert, .goal-tile)::before,
body:has(#ctHomeMap) :is(.card, .kpi, .morning-brief, .weekend-pulse, .start-here, .revenue-rhythm, .section-divider, .concentration-alert, .goal-tile)::after { display: none !important; content: none !important; animation: none !important; }
body:has(#ctHomeMap) .card-head { background: transparent !important; background-image: none !important; border-left: 0 !important; }
/* a column whose every card is hidden (Edit cards, or a role) used to keep its track and leave a hole in the grid */
body:has(#ctHomeMap) .main-grid { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)) !important; }
body:has(#ctHomeMap) .main-grid > .col-stack:not(:has(> :not(.ch-hidden):not([style*="display: none"]):not([style*="display:none"]))) { display: none !important; }

/* 12b · KPI tiles — quiet surface, one loud number, sentence-case label, icon tinted by meaning */
body:has(#ctHomeMap) .kpi { padding: 16px 18px 14px !important; color: var(--t-ink) !important; transform: none; transition: transform .15s ease, box-shadow .15s ease; }
body:has(#ctHomeMap) .kpi:hover { transform: translateY(-2px) !important; border-color: var(--t-line) !important; }
body:has(#ctHomeMap) .kpi .lbl { font-family: inherit !important; font-size: var(--fs-2) !important; font-weight: 600 !important; line-height: 1.2 !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--t-ink-2) !important; -webkit-text-fill-color: var(--t-ink-2) !important; }
body:has(#ctHomeMap) .kpi .val { font-family: inherit !important; font-size: var(--fz-28, 28px) !important; font-weight: 800 !important; letter-spacing: -0.02em !important; line-height: 1.05 !important; margin: 10px 0 6px !important; /* 11/08: colour comes from the kit rule above (navy light / white dark) like every other tile */ background: none !important; background-image: none !important; text-shadow: none !important; font-variant-numeric: tabular-nums; }
body:has(#ctHomeMap) .kpi .delta { font-size: var(--fz-12, 12px) !important; font-weight: 700 !important; letter-spacing: 0 !important; color: var(--t-ink-2) !important; -webkit-text-fill-color: var(--t-ink-2) !important; }
body:has(#ctHomeMap) .kpi .delta.up   { color: var(--ct-good) !important; -webkit-text-fill-color: var(--ct-good) !important; }
body:has(#ctHomeMap) .kpi .delta.down { color: var(--ct-bad) !important;  -webkit-text-fill-color: var(--ct-bad) !important; }
body:has(#ctHomeMap) .kpi .delta.flat { color: var(--t-ink-3) !important; -webkit-text-fill-color: var(--t-ink-3) !important; }
body:has(#ctHomeMap) .kpi .delta svg { stroke: currentColor !important; color: inherit !important; fill: none !important; }
body:has(#ctHomeMap) .kpi.kpi-quota .val, body:has(#ctHomeMap) .kpi.kpi-quota .quota-pct { color: var(--ct-good) !important; -webkit-text-fill-color: var(--ct-good) !important; }
body:has(#ctHomeMap) .kpi.kpi-watch .val { color: var(--ct-bad) !important; -webkit-text-fill-color: var(--ct-bad) !important; }
body:has(#ctHomeMap) .kpi.kpi-watch:hover { background: var(--t-panel) !important; }
/* the little icon box carries the tile's meaning — the only color on the tile */
body:has(#ctHomeMap) .kpi .k-ic { width: 22px !important; height: 22px !important; border-radius: 7px !important; background: var(--tint-blue-2, rgba(28,116,166,0.10)) !important; border: 1px solid var(--line-blue-3, rgba(28,116,166,0.20)) !important; }
body:has(#ctHomeMap) .kpi .k-ic svg { stroke: var(--ct-info) !important; width: 13px !important; height: 13px !important; }
body:has(#ctHomeMap) .kpi.good .k-ic   { background: var(--wash-good-3, rgba(27,158,110,0.12)) !important; border-color: rgba(27, 158, 110, 0.28) !important; }
body:has(#ctHomeMap) .kpi.good .k-ic svg   { stroke: var(--ct-good) !important; }
body:has(#ctHomeMap) .kpi.warn .k-ic   { background: var(--wash-warn-3, rgba(201,138,4,0.12)) !important;  border-color: rgba(201, 138, 4, 0.30) !important; }
body:has(#ctHomeMap) .kpi.warn .k-ic svg   { stroke: var(--ct-warn) !important; }
body:has(#ctHomeMap) .kpi.danger .k-ic { background: var(--wash-bad-3, rgba(214,69,69,0.12)) !important;  border-color: rgba(214, 69, 69, 0.30) !important; }
body:has(#ctHomeMap) .kpi.danger .k-ic svg { stroke: var(--ct-bad) !important; }
:root[data-theme="dark"] body:has(#ctHomeMap) .kpi .k-ic { background: var(--tint-sky-2, rgba(86,194,239,0.12)) !important; border-color: var(--line-sky-3, rgba(86,194,239,0.26)) !important; }

/* 12c · sentence case wherever the old sheet shouted; numbers solid, not gradient text */
body :is(.mb-lbl, .wp-lbl, .rrp-lbl, .rr-lbl, .ct-lbl, .path-stat-lbl, .hr-delta-lbl, .qc-count, .sd-title, .sd-sub, .sd-right, .mqh-label, .rr-pulse-head, .rr-day-name, .queue-chip, .mqh-chip, .mb-sub, .wp-sub, .rrp-sub, .ct-sub, .rr-sub) {
  text-transform: none !important; letter-spacing: 0 !important; font-family: inherit !important;
}
body :is(.mb-lbl, .wp-lbl, .rrp-lbl, .rr-lbl, .ct-lbl, .path-stat-lbl, .hr-delta-lbl, .mqh-label, .rr-pulse-head) { font-size: var(--fs-2) !important; font-weight: 600 !important; color: var(--t-ink-2) !important; -webkit-text-fill-color: var(--t-ink-2) !important; }
body :is(.mb-sub, .wp-sub, .rrp-sub, .ct-sub, .rr-sub, .sd-sub, .card-head .sub) { font-size: var(--fs-2) !important; font-weight: 500 !important; color: var(--t-ink-2) !important; -webkit-text-fill-color: var(--t-ink-2) !important; }
body :is(.mb-num, .wp-num, .rrp-val, .ct-val, .path-stat-val) { font-family: inherit !important; font-size: var(--fs-5) !important; font-weight: 800 !important; letter-spacing: -0.01em !important; color: var(--t-ink) !important; -webkit-text-fill-color: var(--t-ink) !important; background: none !important; background-image: none !important; text-shadow: none !important; font-variant-numeric: tabular-nums; }
body .rr-val { font-family: inherit !important; font-size: var(--fs-6) !important; font-weight: 800 !important; letter-spacing: -0.02em !important; color: var(--t-ink) !important; -webkit-text-fill-color: var(--t-ink) !important; background: none !important; background-image: none !important; text-shadow: none !important; }
body .rr-day-name { font-weight: 600 !important; color: var(--t-ink-3) !important; }

/* 12d · stat boxes inside sections — one quiet inset surface */
:root[data-theme="light"] body :is(.mb-stat, .wp-stat, .rrp-tile, .cash-tile, .goal-tile, .wo-empty) { background: rgba(0, 50, 88, 0.035) !important; background-image: none !important; border: 1px solid rgba(0, 50, 88, 0.08) !important; border-radius: var(--r-ctl) !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
:root[data-theme="dark"]  body :is(.mb-stat, .wp-stat, .rrp-tile, .cash-tile, .goal-tile, .wo-empty) { background: var(--tint-sky-1, rgba(86,194,239,0.06)) !important; background-image: none !important; border: 1px solid var(--line-sky-1, rgba(86,194,239,0.14)) !important; border-radius: var(--r-ctl) !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body .wo-empty { color: var(--ct-good) !important; font-weight: 600 !important; }

/* 12e · section headings — one size, one weight, the ink color, no gradient text */
body:has(#ctHomeMap) :is(.card-head h2, .card-head h3, .mb-title, .wp-title, .sh-title, .rr-title, .sd-title) {
  font-family: inherit !important; font-size: var(--fs-4) !important; font-weight: 800 !important; letter-spacing: -0.01em !important; line-height: 1.2 !important;
  background: none !important; background-image: none !important; text-transform: none !important; text-shadow: none !important;   /* 11/08: colour from the kit card-title rule (navy light / ink dark), like every card */
}
:root[data-theme="light"] body:has(#ctHomeMap) :is(.card-head h2, .card-head h3, .mb-title, .wp-title, .sh-title, .rr-title, .sd-title) { color: var(--ct-navy) !important; -webkit-text-fill-color: var(--ct-navy) !important; }
:root[data-theme="dark"]  body:has(#ctHomeMap) :is(.card-head h2, .card-head h3, .mb-title, .wp-title, .sh-title, .rr-title, .sd-title) { color: var(--t-ink) !important; -webkit-text-fill-color: var(--t-ink) !important; }
body:has(#ctHomeMap) .mb-title { white-space: nowrap; }

/* 12f · chips — queue tabs and the queue-health row, as §6 chips: pill, sentence case, one active fill */
body :is(.queue-chip, .mqh-chip) { align-items: center; gap: 6px; font-size: var(--fz-12, 12px) !important; font-weight: 600 !important; line-height: 1.2 !important; padding: 5px 11px !important; border-radius: var(--r-pill) !important; background-image: none !important; box-shadow: none !important; animation: none !important; text-shadow: none !important; }
:root[data-theme="light"] body :is(.queue-chip:not(.active), .mqh-chip) { background: #FFFFFF !important; border: 1px solid rgba(0, 50, 88, 0.18) !important; color: #0A2540 !important; -webkit-text-fill-color: #0A2540 !important; }
:root[data-theme="dark"]  body :is(.queue-chip:not(.active), .mqh-chip) { background: var(--tint-white-1, rgba(255,255,255,0.06)) !important; border: 1px solid var(--line-sky-3, rgba(86,194,239,0.30)) !important; color: #DCE9F5 !important; -webkit-text-fill-color: #DCE9F5 !important; }
:root[data-theme="light"] body .queue-chip.active { background: linear-gradient(135deg, #1C74A6, #2AA3E0) !important; border: 1px solid transparent !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }   /* CRM active chip 11/05 */
:root[data-theme="dark"]  body .queue-chip.active { background: linear-gradient(135deg, #1C74A6, #2AA3E0) !important; border: 1px solid transparent !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }   /* CRM active chip 11/05 */
body .queue-chip .qc-count { font-weight: 700 !important; opacity: 0.75; background: none !important; padding: 0 !important; color: inherit !important; -webkit-text-fill-color: inherit !important; }
/* queue-health meaning is carried by the word's color, not a colored box */
body .mqh-chip.warn  { color: var(--ct-warn) !important; -webkit-text-fill-color: var(--ct-warn) !important; border-color: rgba(201, 138, 4, 0.40) !important; }
body .mqh-chip.alert { color: var(--ct-bad) !important;  -webkit-text-fill-color: var(--ct-bad) !important;  border-color: rgba(214, 69, 69, 0.40) !important; }

/* 12g · the buttons Home drew its own way: §3 ghost, one primary */
body :is(.ch-btn, .ca-action, .sh-btn) { align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 0 12px !important; border-radius: var(--r-ctl) !important; font-family: inherit !important; font-size: var(--fz-12h, 12.5px) !important; font-weight: 700 !important; letter-spacing: 0 !important; text-transform: none !important; line-height: 1 !important; animation: none !important; box-shadow: none !important; background-image: none !important; transition: background-color .15s ease, border-color .15s ease; }
:root[data-theme="light"] body :is(.ch-btn, .ca-action, .sh-btn):not(.primary) { background: #FFFFFF !important; border: 1px solid rgba(0, 50, 88, 0.18) !important; color: #0A2540 !important; -webkit-text-fill-color: #0A2540 !important; }
:root[data-theme="light"] body :is(.ch-btn, .ca-action, .sh-btn):not(.primary):hover { background: #FFFFFF !important; border-color: rgba(28, 116, 166, 0.45) !important; color: #0A2540 !important; -webkit-text-fill-color: #0A2540 !important; }
:root[data-theme="dark"]  body :is(.ch-btn, .ca-action, .sh-btn):not(.primary) { background: var(--tint-white-1, rgba(255,255,255,0.06)) !important; border: 1px solid var(--line-sky-3, rgba(86,194,239,0.30)) !important; color: #DCE9F5 !important; -webkit-text-fill-color: #DCE9F5 !important; }
:root[data-theme="dark"]  body :is(.ch-btn, .ca-action, .sh-btn):not(.primary):hover { background: var(--tint-sky-2, rgba(86,194,239,0.12)) !important; border-color: var(--line-sky-4, rgba(86,194,239,0.5)) !important; color: #DCE9F5 !important; -webkit-text-fill-color: #DCE9F5 !important; }
:root[data-theme="light"] body :is(.ch-btn, .sh-btn).primary { background: linear-gradient(135deg, #1C74A6, #2AA3E0) !important; border: 1px solid transparent !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
:root[data-theme="light"] body :is(.ch-btn, .sh-btn).primary:hover { background: linear-gradient(135deg, #2AA3E0, #56C2EF) !important; border-color: transparent !important; }
:root[data-theme="dark"]  body :is(.ch-btn, .sh-btn).primary { background: linear-gradient(135deg, #1C74A6, #2AA3E0) !important; border: 1px solid transparent !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
:root[data-theme="dark"]  body :is(.ch-btn, .sh-btn).primary:hover { background: linear-gradient(135deg, #2AA3E0, #56C2EF) !important; border-color: transparent !important; }
body :is(.ch-btn, .ca-action, .sh-btn) svg { stroke: currentColor !important; color: inherit !important; width: 14px !important; height: 14px !important; }
body .ch-btn .ch-hint-tip { display: none !important; }
/* links inside cards */
body:has(#ctHomeMap) :is(.mqh-link, .card-head .right a, .wp-link, .sd-right a) { color: var(--ct-blue) !important; -webkit-text-fill-color: var(--ct-blue) !important; font-weight: 600 !important;   /* 11/08: one link weight, like the kit */ text-decoration: none !important; }
:root[data-theme="dark"] body:has(#ctHomeMap) :is(.mqh-link, .card-head .right a, .wp-link, .sd-right a) { color: var(--ct-sky) !important; -webkit-text-fill-color: var(--ct-sky) !important; }

/* 12h · the section divider is a heading row, not a banner */
/* the emoji icon boxes next to titles are retired with the emoji titles themselves (2026-10-15) */
body:has(#ctHomeMap) :is(.mb-icon, .sd-icon) { display: none !important; }
body .section-divider { padding: 14px 18px !important; gap: 14px !important; }
body .sd-icon { width: 36px !important; height: 36px !important; border-radius: var(--r-ctl) !important; background: var(--tint-blue-2, rgba(28,116,166,0.10)) !important; border: 1px solid var(--line-blue-3, rgba(28,116,166,0.20)) !important; color: var(--ct-blue) !important; font-size: var(--fz-16, 16px) !important; box-shadow: none !important; }
:root[data-theme="dark"] body .sd-icon { background: var(--tint-sky-2, rgba(86,194,239,0.12)) !important; border-color: var(--line-sky-3, rgba(86,194,239,0.26)) !important; color: var(--ct-sky) !important; }
body .sd-right { font-size: var(--fs-2) !important; font-weight: 600 !important; color: var(--t-ink-3) !important; -webkit-text-fill-color: var(--t-ink-3) !important; }

/* 12i · the concentration alert is a sentence with a number, not a colored banner */
body .concentration-alert { padding: 12px 18px !important; color: var(--t-ink) !important; }
body .ca-pct { font-weight: 800 !important; color: var(--ct-warn) !important; -webkit-text-fill-color: var(--ct-warn) !important; background: none !important; }

/* ---------------------------------------------------------------------------
 * 13 · BATCH 1 — Shipments family, and the things the first sweep missed
 *     (2026-10-15). Measured with Docs/patch-scripts/audit_design_conformance.js.
 * ------------------------------------------------------------------------- */

/* 13a · every page title is the hero, one size — the 29 pages that use a bare <h1>
   were sitting at 19–20px; the canonical title is 28px. Greetings and document templates excepted. */
:root[data-theme="light"] body h1:not(.hero-h):not(#greeting):not(#heroGreeting):not(#hi):not(.hello h1):not(.modal h1):not(.modal-card h1):not(.doc h1):not(.print h1):not(.invoice h1):not(.preview h1),
:root[data-theme="dark"]  body h1:not(.hero-h):not(#greeting):not(#heroGreeting):not(#hi):not(.hello h1):not(.modal h1):not(.modal-card h1):not(.doc h1):not(.print h1):not(.invoice h1):not(.preview h1) {
  font-size: var(--fz-28, 28px) !important; font-weight: 800 !important; letter-spacing: -0.02em !important; line-height: 1.18 !important;
}

/* 13b · sentence case where the family still shouted (labels, eyebrows, rail heads,
   section labels, status words, h4 section labels, table headers in dark) */
body :is(.ts-label, .net-label, .totals-label, .forms-col-title, .role-tag, .ss-l, .hiw-title, .h-eyebrow, .ic-title, .pc-head, .field-section-label, .rail-cv, .int-cat-head, .setup-rail-head, .eq-stat-lbl, .c-chan, .status, span.label, div.l, .d-link, .sp, .k, h4, .qc, .coa-chip, .vc-btn) {
  text-transform: none !important; letter-spacing: 0 !important;
}
body :is(.ss-l, .ic-title, .h-eyebrow, .field-section-label, .forms-col-title, .rail-cv, .int-cat-head, .setup-rail-head, .eq-stat-lbl, .ts-label, .totals-label) {
  font-family: inherit !important; font-size: var(--fs-2) !important; font-weight: 600 !important; color: var(--t-ink-2) !important;
}
:root[data-theme="dark"] body th { letter-spacing: 0 !important; text-transform: none !important; }

/* 13c · loud type is solid ink, never gradient text (the Shipments search heading in dark) */
/* The old gradient-text headings set color:transparent + a background gradient; stripping the
   gradient alone left the Shipments search headline invisible in dark (found 14:57). So the
   color is set here too. Headings with an inline color keep it (white-on-banner cases). */
:root[data-theme="light"] body :is(h1, h2, h3):not(.hello h1):not(.hero-h):not([style*="color"]) { background-image: none !important; color: var(--ct-navy) !important; -webkit-text-fill-color: var(--ct-navy) !important; }
:root[data-theme="dark"]  body :is(h1, h2, h3):not(.hello h1):not(.hero-h):not([style*="color"]) { background-image: none !important; color: var(--t-ink) !important; -webkit-text-fill-color: var(--t-ink) !important; }

/* 13d · one primary per view: Create Load's "Add another recipient" and the designer's
   five "Editing" buttons were all filled blue */
:root[data-theme="light"] body :is(.tracking-add, .view-card .vc-btn.primary) { background: #FFFFFF !important; border: 1px solid rgba(0,50,88,0.18) !important; color: #0A2540 !important; -webkit-text-fill-color: #0A2540 !important; }
:root[data-theme="light"] body :is(.tracking-add, .view-card .vc-btn.primary):hover { background: #FFFFFF !important; border-color: rgba(28,116,166,0.45) !important; }
:root[data-theme="dark"]  body :is(.tracking-add, .view-card .vc-btn.primary) { background: var(--tint-white-1, rgba(255,255,255,0.06)) !important; border: 1px solid var(--line-sky-3, rgba(86,194,239,0.30)) !important; color: #DCE9F5 !important; -webkit-text-fill-color: #DCE9F5 !important; }
:root[data-theme="dark"]  body :is(.tracking-add, .view-card .vc-btn.primary):hover { background: var(--tint-sky-2, rgba(86,194,239,0.12)) !important; border-color: var(--line-sky-4, rgba(86,194,239,0.5)) !important; }
body .view-card.active::before { text-transform: none !important; letter-spacing: 0 !important; }

/* 13e · Create Load's form sections wore colored left bars; My Tasks' KPI tiles too */
body.shipform-glass .section { border-left-width: 1px !important; }
body .kpi[class] { border-left-width: 1px !important; }
:root[data-theme="light"] body :is(.kpi[class], .card[class]) { background: var(--t-panel) !important; background-image: none !important; }
:root[data-theme="dark"]  body :is(.kpi[class], .card[class]) { background: var(--t-panel) !important; background-image: none !important; }

/* 13f · small contrast misses */
:root[data-theme="dark"] body .vc-avatar { color: #EAF2FA !important; }

/* ---------------------------------------------------------------------------
 * 14 · BATCH 2 — Customers + Carriers (2026-10-15). Mostly already covered by
 *     §§1–6; this is the residue the audit measured.
 * ------------------------------------------------------------------------- */
/* sentence case for the family's pills, labels, kickers and section heads */
body :is(.tier, .cust-tag, .lbl, div.label, .tms-amp-run, .tb-label, .lc-type, .lc-status, .lc-custs-label, .r-label, .eq, .ct-ov-h, .tier-pill, .tier-bd-label, .tier-bd-total, .src-chip, .ckpi-divider-sub, .dh-kicker, .severity, .badge.high, .badge.med, .badge.low, .ol-miss) {
  text-transform: none !important; letter-spacing: 0 !important;
}
body :is(.ct-ov-h, .lc-custs-label, .tier-bd-label, .dh-kicker, .ckpi-divider-sub, .r-label, .tb-label, div.label) {
  font-family: inherit !important; font-size: var(--fs-2) !important; font-weight: 600 !important; color: var(--t-ink-2) !important;
}
/* data that was set in mono for no reason */
body .spend { font-family: inherit !important; }
/* colored left bars on profile sections and pipeline panels */
body .section { border-left-width: 1px !important; }
/* a warning that was too faint to read in light */
/* 2026-10-22 · the badge sits on an amber (#f59e0b) pill, so amber text on it measured 1.7:1 — unreadable.
   Dark ink on the amber pill instead (≈ 8:1). */
:root[data-theme="light"] body .ol-miss { color: #1f2937 !important; -webkit-text-fill-color: #1f2937 !important; }

/* ---------------------------------------------------------------------------
 * 15 · BATCH 3 — Quotes, Reports, Issues (2026-10-15). The audit's residue.
 * ------------------------------------------------------------------------- */
/* sentence case: stage pills, inbox status, KPI/stat labels, kickers, tabs, hints, tags, form labels */
body :is(.stage-pill, .st, .hs-kpi-lbl, .cfg-label, .stat-label, .ch-sub, .grp-label, .mh-label, .ic-label, .ph-tab, .header-tag, .right-label, .hint, .tag, label, h3) {
  text-transform: none !important; letter-spacing: 0 !important;
}
body :is(.hs-kpi-lbl, .cfg-label, .stat-label, .grp-label, .mh-label, .ic-label, .right-label) {
  font-family: inherit !important; font-size: var(--fs-2) !important; font-weight: 600 !important; color: var(--t-ink-2) !important;
}
/* text that was set in mono for no reason (sender addresses, hints, form labels, count metas) */
body :is(.from, .hint, label) { font-family: inherit !important; }
/* colored left bars on export cards, insight cards and inbox banners — depth comes from light */
body :is(.xe-card, .inbox-banner, .lp-insight-card, .help-insight, .insight-card, .trend-section) { border-left-width: 1px !important; }

/* ---------------------------------------------------------------------------
 * 16 · BATCH 4 — Accounting (2026-10-15). The audit's residue.
 * ------------------------------------------------------------------------- */
/* sentence case: metric/KPI labels, side-nav heads, step names, badges, sub-tabs, h2 tracking */
body :is(.wt-day, .cc-head, .ar-snav-head, .ck-label, .status-step, .hk-label, .ab-label, .engine-badge, .md-status, .sa-label, .md-subtab, .cf-amt-l, .st-label, .ma-status, .ss-lead, .ss-when, h2) {
  text-transform: none !important; letter-spacing: 0 !important;
}
body :is(.cc-head, .ar-snav-head, .ck-label, .hk-label, .ab-label, .sa-label, .cf-amt-l, .st-label) {
  font-family: inherit !important; font-size: var(--fs-2) !important; font-weight: 600 !important; color: var(--t-ink-2) !important;
}
/* money and counts were set in mono; the system's answer is Archivo with tabular figures */
body :is(.rc-num, .v, .cf-amt, .rp-sub) { font-family: inherit !important; font-variant-numeric: tabular-nums; }
/* colored left bars on commission KPI tiles and collection cards */
body :is(.comm-kpi, .coll-card) { border-left-width: 1px !important; }
/* secondary calls to action that were filled: one primary per view */
:root[data-theme="light"] body :is(.prescreen-btn, .ss-manage) { background: #FFFFFF !important; border: 1px solid rgba(0,50,88,0.18) !important; color: #0A2540 !important; -webkit-text-fill-color: #0A2540 !important; }
:root[data-theme="dark"]  body :is(.prescreen-btn, .ss-manage) { background: var(--tint-white-1, rgba(255,255,255,0.06)) !important; border: 1px solid var(--line-sky-3, rgba(86,194,239,0.30)) !important; color: #DCE9F5 !important; -webkit-text-fill-color: #DCE9F5 !important; }

/* ---------------------------------------------------------------------------
 * 17 · BATCH 5 — Setup, Help, Reminders, Equipment, CRM, portals, Tower
 *     (2026-10-15). The audit's residue.
 * ------------------------------------------------------------------------- */
/* sentence case: breadcrumbs, rail/section labels, pills, day-of-week cells, small print */
body :is(.bread, .ph-bread, .rc-title, .rc-sevname, .d-dow, .rem-cal-dow, .ks-newpill, .pv-label, .hub-group-label, .tb-lbl, .t-cat, .gn, .head, .tr-sectlabel, .t-label, .br-rail-section, .sec, .hc-sectlabel, .hc-role-match, .tc-title, .tc-rname, .section-divider, .csd-tag, .src-badge, .ti-meta, small) {
  text-transform: none !important; letter-spacing: 0 !important;
}
body :is(.bread, .ph-bread, .rc-title, .pv-label, .hub-group-label, .tb-lbl, .tr-sectlabel, .t-label, .br-rail-section, .sec, .hc-sectlabel, .tc-title) {
  font-family: inherit !important; font-size: var(--fs-2) !important; font-weight: 600 !important; color: var(--t-ink-2) !important;
}
/* mono where it was decoration: metas, units, dates, tags, hints (explicit .mono is left alone) */
body :is(.ti-meta, .u, .val, .csd-tag, div.hint) { font-family: inherit !important; }
body td:not(.mono):not([class*="mono"]) { font-family: inherit; }
/* colored left bars on reminder insight cards, coverage steps and card heads */
body :is(.rem-icard, .step) { border-left-width: 1px !important; }
body .card-head { border-left: 0 !important; }
/* a source chip that was too faint in light */
:root[data-theme="light"] body .src-chip { color: var(--ct-navy) !important; -webkit-text-fill-color: var(--ct-navy) !important; }

/* ---------------------------------------------------------------------------
 * 18 · AFTER THE SWEEP (2026-10-15, 15:05 — Niko: "lets do it")
 *     a) emoji icon spans beside titles retire with the emoji titles
 *     b) insight cards (Quotes action cards, Reminders insight cards) carry their
 *        meaning as a dot before the title, not as a colored outline
 *     c) the Load Board's KPI strip chips are neutral in both modes; the number
 *        carries the meaning (they were tinted fills in dark, plain in light)
 * ------------------------------------------------------------------------- */
/* a */
body :is(.h-ic, .lpi-ic, .emoji, .qa-ic, .ri-ic, .os-icon, .cv-ic) { display: none !important; }

/* b — same surface as every card, hairline border, dot by meaning */
:root[data-theme="light"] body :is(.qaction-card, .rem-icard) { background: var(--t-panel) !important; background-image: none !important; border: 1px solid var(--t-line) !important; box-shadow: var(--t-shadow) !important; border-radius: var(--r-panel) !important; }
:root[data-theme="dark"]  body :is(.qaction-card, .rem-icard) { background: var(--t-panel) !important; background-image: none !important; border: 1px solid var(--t-line) !important; box-shadow: var(--t-shadow) !important; border-radius: var(--r-panel) !important; }
body :is(.qaction-card .qa-title, .rem-icard .ri-title) { display: inline-flex !important; align-items: center; gap: 8px; }
body :is(.qaction-card .qa-title, .rem-icard .ri-title)::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ins-f, var(--ins-c), var(--ct-info)); flex: 0 0 8px; }   /* 11/16: the dot paints in the FILL colour (--ins-f), the title words keep --ins-c */
body .qaction-card.stale   { --ins-c: var(--ct-warn); --ins-f: var(--ct-warn-fill); }
body .qaction-card.hot     { --ins-c: var(--ct-bad); --ins-f: var(--ct-bad-fill); }
body .qaction-card.closing { --ins-c: var(--ct-info); }
body .rem-icard.overdue    { --ins-c: var(--ct-bad); --ins-f: var(--ct-bad-fill); }
body .rem-icard.slip       { --ins-c: var(--ct-warn); --ins-f: var(--ct-warn-fill); }
body .rem-icard.quick      { --ins-c: var(--ct-good); --ins-f: var(--ct-good-fill); }
/* the count on the right of those cards follows the same color */
body .qaction-card .qa-count, body .rem-icard .ri-count { color: var(--ins-c, var(--t-ink)) !important; -webkit-text-fill-color: var(--ins-c, var(--t-ink)) !important; font-weight: 800 !important; }

/* c — Load Board strip chips: ghost in both modes, number colored by meaning */
:root[data-theme="light"] body .kpi-strip .kpi-tile:has(.kpi-num) { background: rgba(255,255,255,0.85) !important; background-image: none !important; border: 1px solid rgba(0,50,88,0.18) !important; color: var(--ct-navy) !important; box-shadow: none !important; border-radius: var(--r-pill) !important; }
:root[data-theme="dark"]  body .kpi-strip .kpi-tile:has(.kpi-num) { background: var(--tint-sky-1, rgba(86,194,239,0.06)) !important; background-image: none !important; border: 1px solid var(--line-sky-3, rgba(86,194,239,0.26)) !important; color: #D6ECF8 !important; box-shadow: none !important; border-radius: var(--r-pill) !important; }
body .kpi-strip .kpi-tile .kpi-label { font-size: var(--fz-12h, 12.5px) !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important; color: inherit !important; -webkit-text-fill-color: currentColor !important; }
body .kpi-strip .kpi-tile .kpi-num { font-weight: 800 !important; font-variant-numeric: tabular-nums; color: var(--ct-info) !important; -webkit-text-fill-color: var(--ct-info) !important; }
body .kpi-strip .kpi-tile.urgent .kpi-num  { color: var(--ct-bad) !important;  -webkit-text-fill-color: var(--ct-bad) !important; }
body .kpi-strip .kpi-tile.cascade .kpi-num { color: var(--ct-good) !important; -webkit-text-fill-color: var(--ct-good) !important; }

/* ---------------------------------------------------------------------------
 * 19 · MODALS & DRAWERS (2026-10-15) — 165 of them on 20 pages, forced visible
 *     in a hidden frame and measured in both modes. Surfaces, buttons and text
 *     colors already held (§2/§3/§7); this is the residue.
 * ------------------------------------------------------------------------- */
body :is(.ps-label, .es-label, .crs-label, .mc-tag, .mtp-label, .pjt-label, .bf-status, .cc-hist-label) { text-transform: none !important; letter-spacing: 0 !important; }
body :is(.ps-label, .es-label, .crs-label, .mtp-label, .pjt-label, .cc-hist-label) { font-family: inherit !important; font-size: var(--fs-2) !important; font-weight: 600 !important; color: var(--t-ink-2) !important; }
body :is(.ps-stat, .eod-stat, .cm-email-block) { border-left-width: 1px !important; }
/* the board's own per-chip rules (.kpi-tile.urgent[data-kpi=…]) outranked §18c's border — measured 15:17 */
html:root[data-theme="light"] body .kpi-strip .kpi-tile.kpi-tile[class] { border-color: rgba(0,50,88,0.18) !important; background: rgba(255,255,255,0.85) !important; }
html:root[data-theme="dark"]  body .kpi-strip .kpi-tile.kpi-tile[class] { border-color: var(--line-sky-3, rgba(86,194,239,0.26)) !important; background: var(--tint-sky-1, rgba(86,194,239,0.06)) !important; }

/* ---------------------------------------------------------------------------
 * 20 · CHARTS, METERS & SPARKLINES (2026-10-15)
 *     Chart.js charts are themed by assets/ct-charts.js, which reads its colours
 *     from the tokens below (11/16; loaded after chart.umd.min.js). This section is the hand-drawn rest: ~30 kinds
 *     of CSS progress bars / column bars and the inline-SVG sparklines, which
 *     were ~20 different gradients, glows and hexes. Now: one quiet track, flat
 *     fills, status only where the page meant status (.good/.warn/.bad and the
 *     pages' own synonyms), identity from the categorical slots, the current
 *     period solid and the rest at 55%. Palette = dataviz six-checks PASS in
 *     both modes (CVD ΔE ≥ 10, contrast ≥ 3:1 on the real panel colors).
 * ------------------------------------------------------------------------- */
:root {
  /* 11/05 CRM chart colours: blues #1E6BA8 / #4599D4, sky #56C2EF, navy; slate track rgba(100,116,139,.14). Slots 4-5 have no
     CRM equivalent and stay as they were (rarely used). Was: #1C74A6 #E8742C #0E9F8B, track rgba(0,50,88,.09). */
  --ct-series-1: #1E6BA8; --ct-series-2: #56C2EF; --ct-series-3: #003258; --ct-series-4: #7B5BD6; --ct-series-5: #C44D8E;
  --ct-series-1-soft: rgba(30,107,168,0.55);
  --ct-track: rgba(100,116,139,0.14);
  /* 11/16 Niko "lets do it": the Chart.js graphs (assets/ct-charts.js) now read every colour from here — series 1-3
     above, these, and --t-ink-2 (axis text) / --t-ink (titles) / --t-line (grid). Values are what ct-charts.js had
     typed, so nothing moved except dark axis text (was grey-blue #8AA4C0, now --t-ink-2). -end = the bright end of
     each series' gradient. Chart good/warn/bad are the CRM's chart colours, not the word colours (--ct-good …). */
  --ct-series-1-end: #4599D4; --ct-series-2-end: #9ADCF7; --ct-series-3-end: #1C74A6;
  --ct-chart-good: #10B981; --ct-chart-warn: #F59E0B; --ct-chart-bad: #F43F5E; --ct-chart-muted: #94A3B8;
  --ct-chart-panel: #FFFFFF; --ct-chart-tip: #FFFFFF;
}
:root[data-theme="dark"] {
  --ct-series-1: #4599D4; --ct-series-2: #56C2EF; --ct-series-3: #CFE3F4; --ct-series-4: #8F6EE0; --ct-series-5: #C44D8E;
  --ct-series-1-soft: rgba(69,153,212,0.55);
  --ct-track: rgba(100,116,139,0.14);
  --ct-series-1-end: #56C2EF; --ct-series-2-end: #9ADCF7; --ct-series-3-end: #EAF2FB;
  --ct-chart-good: #10B981; --ct-chart-warn: #FBBF24; --ct-chart-bad: #F43F5E; --ct-chart-muted: #64748B;
  --ct-chart-panel: #0D203A; --ct-chart-tip: rgba(10,22,42,0.94);
}

/* 20a · tracks — every horizontal meter's groove. (.sc-bar-wrap is a flex row, not a groove.) */
body :is([class*="-bar-wrap"]:not(.sc-bar-wrap), [class*="-bar-track"], .bar-track, .q-bar, .usage-bar, .otp-bar, .util-bar, .team-bar, .fc-bar, .perf-card .pc-bar, .lane-margin-bar, .credit-ring-bar) {
  background: var(--ct-track) !important; border: 0 !important; border-radius: 999px !important; box-shadow: none !important;
}

/* 20b · fills — flat, pill-ended, no gradient and no glow. Inline per-row colors (style="background:…") are identity the page chose; leave them. */
body :is(.runway-bar, .conc-bar, .q-fill, .fc-bar-fill, .pc-bar-fill, .usage-fill, .type-bar, .trend-bar-wrap .trend-bar, .sc-bar-fill, .otp-fill, .util-fill, .bar-fill, .ds-bar, .path-bar, .gt-bar, .pr-bar, .qwr-bar, .quota-bar, .r-bar, .peer-bar, .equip-bar-fill, .pareto-bar-fill, .dept-bar-fill, .acc-bar-fill, .lane-margin-fill, .credit-ring-bar-fill):not([style*="background"]) {
  background: var(--ct-series-1) !important; background-image: none !important; border-radius: 999px !important; box-shadow: none !important;
}
body :is(.runway-bar, .conc-bar, .q-fill, .fc-bar-fill, .pc-bar-fill, .usage-fill, .type-bar, .trend-bar, .sc-bar-fill, .otp-fill, .util-fill, .bar-fill, .qwr-bar, .pr-bar, .path-bar, .tb, .cf-bar)[style*="background"] { background-image: none !important; box-shadow: none !important; }
/* status — the pages' own words for it. 11/16 (Niko "lets do it"): bars paint in the CHART good/warn/bad (the graphs'
   colours), not the word colours — on 11/15 the words went darker in light and took these bars with them. */
body :is(.runway-bar, .q-fill, .fc-bar-fill, .pc-bar-fill, .sc-bar-fill, .bar-fill, .qwr-bar, .trend-bar-wrap .trend-bar):is(.good, .green, .done):not([style*="background"]),
body .q-card.done .q-fill, body .perf-card.otp .pc-bar-fill:not([style*="background"]) { background: var(--ct-chart-good) !important; }
body :is(.runway-bar, .conc-bar, .q-fill, .usage-fill, .type-bar, .trend-bar-wrap .trend-bar, .otp-fill, .util-fill, .bar-fill, .qwr-bar, .pr-bar, .path-bar):is(.warn, .over, .behind, .mid, .okay):not([style*="background"]),
body .q-card.behind .q-fill:not([style*="background"]) { background: var(--ct-chart-warn) !important; }
body :is(.runway-bar, .usage-fill, .type-bar, .trend-bar-wrap .trend-bar, .sc-bar-fill, .otp-fill, .util-fill, .bar-fill, .qwr-bar):is(.danger, .bad, .poor, .red, .high, .urgent, .low):not([style*="background"]) { background: var(--ct-chart-bad) !important; }
/* identity — root-cause party (issues) and equipment type (customer KPI report): fixed slots, never cycled */
body .trend-bar-wrap .trend-bar.customer:not([style*="background"]), body .bar-fill.van:not([style*="background"])   { background: var(--ct-series-1) !important; }
body .trend-bar-wrap .trend-bar.carrier:not([style*="background"]),  body .bar-fill.reef:not([style*="background"])  { background: var(--ct-series-2) !important; }
body .trend-bar-wrap .trend-bar.shipper:not([style*="background"]),  body .bar-fill.flat:not([style*="background"])  { background: var(--ct-series-3) !important; }
body .trend-bar-wrap .trend-bar.receiver:not([style*="background"]), body .bar-fill.other:not([style*="background"]) { background: var(--ct-series-4) !important; }
body .trend-bar-wrap .trend-bar.internal:not([style*="background"]) { background: var(--t-ink-3) !important; }

/* 20c · column bars (period trends): past periods soft, the current one solid, 4px rounded tops anchored to the baseline */
body :is(.trend-bars .trend-bar, .trend-bars .tb, .cashflow-bar .cf-bar):not([style*="background"]) {
  background: var(--ct-series-1-soft) !important; background-image: none !important; border-radius: 4px 4px 0 0 !important; box-shadow: none !important; opacity: 1 !important;
}
body :is(.trend-bars .trend-bar, .trend-bars .tb, .cashflow-bar .cf-bar):is(.now, .current, .cur):not([style*="background"]),
body .cashflow-bar.today .cf-bar:not([style*="background"]) { background: var(--ct-series-1) !important; }
body .trend-bars .tb.below:not([style*="background"]) { background: var(--ct-chart-bad) !important; opacity: 0.45 !important; }
body .cashflow-bar.zero .cf-bar { background: var(--ct-track) !important; }

/* 20d · trend text (▲ 4.2%) — each page's own meaning kept, only the hexes become tokens */
body :is(.k-trend, .tmh-trend, .hk-trend).up, body .sc-trend.down   { color: var(--ct-good) !important; }
body :is(.k-trend, .tmh-trend, .hk-trend).down, body :is(.tmh-trend, .hk-trend).bad, body .sc-trend.up { color: var(--ct-bad) !important; }
body :is(.tmh-trend, .hk-trend).warn { color: var(--ct-warn) !important; }
body :is(.k-trend, .sc-trend).flat, body .hk-trend.flat { color: var(--t-ink-3) !important; }
body :is(.k-trend, .sc-trend):is(.up, .down, .flat) { background: transparent !important; }

/* 20e · sparklines — stroke by meaning, 2px, no glow */
body svg:is(.kspark, .hk-spark) :is(path, polyline) { stroke-width: 2 !important; filter: none !important; }
body svg:is(.kspark, .hk-spark) :is(path, polyline):is([stroke="#56C2EF"], [stroke="#1C74A6"], [stroke="#4599D4"], [stroke="#003258"]) { stroke: var(--ct-series-1) !important; }
body svg:is(.kspark, .hk-spark) :is(path, polyline):is([stroke="#6ee7b7"], [stroke="#059669"], [stroke="#10b981"]) { stroke: var(--ct-chart-good) !important; }
body svg:is(.kspark, .hk-spark) :is(path, polyline):is([stroke="#f87171"], [stroke="#dc2626"], [stroke="#ef4444"]) { stroke: var(--ct-chart-bad) !important; }

/* 20f · capacity heatmap (carriers/capacity-heatmap) — the page's scale went red → three
 *      sky tints → two greens, and its legend swatches disagreed with the cells (thin .18,
 *      ok .16). Now one hue, light → dark, five steps (blends measured: ink ≥ 5.5:1 on
 *      steps 1–4, step 5 solid with the opposite ink); a gap is the one status, red. */
:root:not([data-theme="dark"]) body .cell.h0[class] { background: var(--wash-bad-3, rgba(214,69,69,0.14)) !important; color: var(--ct-bad) !important; }
:root:not([data-theme="dark"]) body .cell.h1[class] { background: var(--tint-blue-2, rgba(28,116,166,0.10)) !important; color: var(--ct-navy) !important; }
:root:not([data-theme="dark"]) body .cell.h2[class] { background: var(--tint-blue-4, rgba(28,116,166,0.22)) !important; color: var(--ct-navy) !important; }
:root:not([data-theme="dark"]) body .cell.h3[class] { background: rgba(28,116,166,0.38) !important; color: var(--ct-navy) !important; }
:root:not([data-theme="dark"]) body .cell.h4[class] { background: rgba(28,116,166,0.58) !important; color: var(--ct-navy) !important; }
:root:not([data-theme="dark"]) body .cell.h5[class] { background: #1C74A6 !important; color: #FFFFFF !important; }
:root[data-theme="dark"] body .cell.h0[class] { background: var(--wash-bad-bright-3, rgba(240,113,113,0.16)) !important; color: #FCA5A5 !important; }
:root[data-theme="dark"] body .cell.h1[class] { background: rgba(46,148,208,0.10) !important; color: var(--t-ink) !important; }
:root[data-theme="dark"] body .cell.h2[class] { background: rgba(46,148,208,0.22) !important; color: var(--t-ink) !important; }
:root[data-theme="dark"] body .cell.h3[class] { background: rgba(46,148,208,0.38) !important; color: var(--t-ink) !important; }
:root[data-theme="dark"] body .cell.h4[class] { background: rgba(46,148,208,0.58) !important; color: var(--t-ink) !important; }
:root[data-theme="dark"] body .cell.h5[class] { background: #2E94D0 !important; color: #071226 !important; }
/* legend swatches (inline-styled on the page): gap · 1–2 thin · 3–4 ok · 5+ strong */
:root:not([data-theme="dark"]) body .legend .swatch:nth-child(1) .sw { background: var(--wash-bad-3, rgba(214,69,69,0.14)) !important; }
:root:not([data-theme="dark"]) body .legend .swatch:nth-child(2) .sw { background: var(--tint-blue-4, rgba(28,116,166,0.22)) !important; }
:root:not([data-theme="dark"]) body .legend .swatch:nth-child(3) .sw { background: rgba(28,116,166,0.58) !important; }
:root:not([data-theme="dark"]) body .legend .swatch:nth-child(4) .sw { background: #1C74A6 !important; }
:root[data-theme="dark"] body .legend .swatch:nth-child(1) .sw { background: var(--wash-bad-bright-3, rgba(240,113,113,0.16)) !important; }
:root[data-theme="dark"] body .legend .swatch:nth-child(2) .sw { background: rgba(46,148,208,0.22) !important; }
:root[data-theme="dark"] body .legend .swatch:nth-child(3) .sw { background: rgba(46,148,208,0.58) !important; }
:root[data-theme="dark"] body .legend .swatch:nth-child(4) .sw { background: #2E94D0 !important; }
body .legend .sw { border-color: var(--t-line) !important; }

/* ---------------------------------------------------------------------------
 * 21 · ICONS (2026-10-15) — assets/ct-icons.js swaps pictographic emoji in page text
 *     for one line-icon set (currentColor, 1em, on the baseline). The emoji stays
 *     inside the icon, visually hidden, so text reads unchanged to scripts/exports.
 * ------------------------------------------------------------------------- */
.ct-ico { display: inline-block; position: relative; width: 1.1em; height: 1.1em; vertical-align: -0.2em; line-height: 0; flex: none; }
.ct-ico > svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: var(--ico-stroke, 1.85); stroke-linecap: round; stroke-linejoin: round; }
/* 11/16 · the small icons pages draw themselves read the same line weight. Only an SVG that sits straight inside a
   button, link, chip or icon button (where an SVG is always an icon), never sparklines or charts. Zero weight on the
   container; set on the shapes, so it beats a weight the page put on the <svg> or in the markup. Tried on all 114
   pages first: 657 shapes on 56 pages moved (from 2 / 1.8 / 2.2 / 1.9 / 2.4 / 1), no SVG larger than 32 px touched. */
:where(button, a, [class*="btn"], [class*="chip"], [class*="icon"], .tab, [role="tab"]) > svg:not([class*="spark"], [class*="chart"]) :where(path, circle, rect, line, polyline, polygon, ellipse) { stroke-width: var(--ico-stroke, 1.85); }
.ct-ico-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ct-ico--good  { color: var(--ct-good) !important; }
.ct-ico--warn  { color: var(--ct-warn) !important; }
.ct-ico--bad   { color: var(--ct-bad) !important; }
.ct-ico--info  { color: var(--ct-info) !important; }
.ct-ico--muted { color: var(--t-ink-3) !important; }
/* a lone icon in a button or chip sits a touch larger */
body :is(button, .btn, .chip, .tab, .ca-action, .ch-btn) > .ct-ico:only-child { width: 1.2em; height: 1.2em; vertical-align: -0.25em; }

/* 20g · the holographic tooltip (ct-charts.js renders Chart.js tooltips as HTML so they can be glass) */
.ct-tip { position: absolute; left: 0; top: 0; z-index: 30; pointer-events: none; min-width: 128px; max-width: 320px; padding: 10px 12px 9px; border-radius: var(--r-panel);
  font-family: 'Archivo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: var(--fz-12h, 12.5px); font-weight: 500; line-height: 1.45; color: var(--t-ink);
  background: rgba(255,255,255,0.78); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  box-shadow: 0 14px 36px -14px rgba(0,50,88,0.38), inset 0 0 0 1px rgba(28,116,166,0.22), inset 0 1px 0 rgba(255,255,255,0.7);
  opacity: 0; transition: opacity .14s ease, transform .14s ease; will-change: transform, opacity; }
:root[data-theme="dark"] .ct-tip { background: rgba(10,22,42,0.62); color: var(--t-ink);
  box-shadow: 0 18px 44px -18px rgba(0,0,0,0.85), inset 0 0 0 1px rgba(86,194,239,0.32), inset 0 1px 0 rgba(255,255,255,0.08), 0 0 28px -6px rgba(86,194,239,0.35); }
.ct-tip-t { font-size: var(--fz-10h, 10.5px); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--t-ink-2); margin-bottom: 6px; white-space: nowrap; }
.ct-tip-r { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ct-tip-r + .ct-tip-r { margin-top: 3px; }
.ct-tip-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; box-shadow: 0 0 10px currentColor; }
.ct-tip-l { font-variant-numeric: tabular-nums; }
.ct-tip-d { margin-left: auto; padding-left: 12px; font-size: var(--fz-11, 11px); font-weight: 700; color: var(--t-ink-3); font-variant-numeric: tabular-nums; }
.ct-tip-d.up   { color: var(--ct-info); }
.ct-tip-d.down { color: var(--t-ink-2); }

/* ---------------------------------------------------------------------------
 * 22 · LIVING UI, PASS 1 (2026-10-15 20:25) — the same light the charts got,
 *      on the two places a load's state is drawn: the load timeline
 *      (assets/load-timeline.js, Create Load + AP) and the board's status dots.
 * ------------------------------------------------------------------------- */
/* 22a · load timeline — done steps carry the light, the current step breathes, the line is a gradient */
body .ctlt-wrap { font-family: inherit !important; }
body .ctlt-line { height: 2px !important; top: 10px !important; background: var(--ct-track) !important; border-radius: 2px; }
body .ctlt-done .ctlt-line { background: linear-gradient(90deg, var(--ct-series-1) 0%, var(--ct-series-1-soft) 100%) !important; }
body .ctlt-done + .ctlt-step .ctlt-line { background: linear-gradient(90deg, var(--ct-series-1) 0%, var(--ct-track) 100%) !important; }
body .ctlt-done + .ctlt-done .ctlt-line { background: var(--ct-series-1) !important; }
body .ctlt-dot { width: 20px !important; height: 20px !important; border-width: 2px !important; border-color: var(--ct-track) !important; background: var(--t-panel) !important; transition: box-shadow .3s ease; }
body .ctlt-done .ctlt-dot { background: var(--ct-series-1) !important; border-color: var(--ct-series-1) !important; }
:root[data-theme="dark"] body .ctlt-done .ctlt-dot { box-shadow: 0 0 10px rgba(86,194,239,0.55), 0 0 2px rgba(86,194,239,0.9); }
body .ctlt-current .ctlt-dot { background: var(--t-panel) !important; border-color: var(--ct-series-1) !important; animation: ctltBreathe 2.4s ease-in-out infinite; }
:root[data-theme="dark"] body .ctlt-current .ctlt-dot { border-color: #56C2EF !important; }
body .ctlt-lbl { color: var(--t-ink-2) !important; font-family: inherit !important; font-weight: 600 !important; letter-spacing: 0 !important; }
body .ctlt-done .ctlt-lbl { color: var(--t-ink) !important; }
body .ctlt-current .ctlt-lbl { color: var(--ct-series-1) !important; font-weight: 800 !important; }
:root[data-theme="dark"] body .ctlt-current .ctlt-lbl { color: #56C2EF !important; }
body .ctlt-date { color: var(--t-ink-3) !important; font-variant-numeric: tabular-nums; }
body .ctlt-void .ctlt-dot, body .ctlt-void .ctlt-lbl, body .ctlt-void .ctlt-line { opacity: .35 !important; animation: none !important; box-shadow: none !important; }
body .ctlt-banner { color: var(--t-ink-2) !important; font-weight: 600 !important; }
@keyframes ctltBreathe {
  0%, 100% { box-shadow: 0 0 0 3px rgba(86,194,239,0.22), 0 0 0 0 rgba(86,194,239,0.35); }
  55%      { box-shadow: 0 0 0 5px rgba(86,194,239,0.10), 0 0 14px 2px rgba(86,194,239,0.45); }
}
/* 22b · board status dots glow in dark — a little more as the load advances */
:root[data-theme="dark"] body #rows .badge::before { box-shadow: 0 0 6px var(--lb-c); }
:root[data-theme="dark"] body #rows .badge:is(.b-atpickup, .b-loaded, .b-atcons)::before { box-shadow: 0 0 10px var(--lb-c), 0 0 2px var(--lb-c); }
:root[data-theme="dark"] body #rows .badge.b-void::before { box-shadow: none; }
/* 22c · inputs: the focus halo is the same light */
:root[data-theme="dark"] body :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):focus-visible { box-shadow: 0 0 0 3px rgba(86,194,239,0.28), 0 0 16px -4px rgba(86,194,239,0.55) !important; border-color: #56C2EF !important; outline: none !important; }
@media (prefers-reduced-motion: reduce) { body .ctlt-current .ctlt-dot { animation: none !important; } }
/* 22b′ · tms-glass kills every ::before/::after animation with a six-:root rule — the board's "loaded" pulse
 *        (§10) never ran because of it. Seven :root outrank six; measured on the sandbox 21:12. */
:root:root:root:root:root:root:root body #rows .badge.b-loaded::before,
:root:root:root:root:root:root:root body :is(.pill,.status-pill,.st-badge,.ct3-badge):is(.transit,.tracking,.live,.in-motion):not([style*="background"])::before { animation: ctPulse 2.2s ease-in-out infinite !important; }
@media (prefers-reduced-motion: reduce) { :root:root:root:root:root:root:root body #rows .badge.b-loaded::before { animation: none !important; } }
/* 22d · tms-glass also strips backdrop-filter app-wide (six :root, a repaint decision for 160+ frosted cards).
 *       The chart tooltip is ONE small element that exists only while hovering — it keeps its glass. */
:root:root:root:root:root:root:root body .ct-tip { -webkit-backdrop-filter: blur(16px) saturate(170%) !important; backdrop-filter: blur(16px) saturate(170%) !important; }

/* ---------------------------------------------------------------------------
 * 23 · PAGE PASS — CREATE LOAD + PANELS (2026-10-16 06:05)
 * ------------------------------------------------------------------------- */
/* 23a · the carrier performance strip (On-time · Cancel rate · Late events · Claims · Rating) as hero tiles */
body .perf-bar { background: var(--t-panel) !important; border: 1px solid var(--t-line) !important; border-radius: var(--r-panel) !important; box-shadow: var(--t-shadow) !important; overflow: hidden; }
body .perf-cell { padding: 12px 16px 11px !important; gap: 3px !important; border-right: 1px solid var(--t-line) !important; }
body .perf-cell .lbl { font-size: var(--fz-11, 11px) !important; font-weight: 600 !important; color: var(--t-ink-2) !important; text-transform: none !important; letter-spacing: 0 !important; }
body .perf-cell .val { font-family: 'Archivo', inherit !important; font-size: var(--fz-24, 24px) !important; font-weight: 800 !important; letter-spacing: -0.02em !important; line-height: 1.05 !important; color: var(--t-ink) !important; font-variant-numeric: tabular-nums; }
body .perf-cell .val.good { color: var(--ct-good) !important; }
body .perf-cell .val.warn { color: var(--ct-warn) !important; }
body .perf-cell .val.bad  { color: var(--ct-bad) !important; }
body .perf-cell .sub { font-size: var(--fz-11, 11px) !important; color: var(--t-ink-3) !important; }
body .perf-cell.stars { background: linear-gradient(180deg, rgba(86,194,239,0.10), rgba(86,194,239,0.03)) !important; }
body .perf-cell.stars .val:not(.good):not(.warn):not(.bad) { color: var(--ct-info) !important; }
:root[data-theme="dark"] body .perf-cell .val.good { text-shadow: 0 0 14px rgba(63,203,148,0.35); }
:root[data-theme="dark"] body .perf-cell .val.bad  { text-shadow: 0 0 14px rgba(240,113,113,0.35); }
/* 23c · "AUTO" tags on dispatch fields: they mean "filled for you", which is information, not success */
body .ds-auto-tag { background: var(--tint-blue-2, rgba(28,116,166,0.10)) !important; color: var(--ct-info) !important; border: 1px solid var(--line-blue-4, rgba(28,116,166,0.28)) !important; border-radius: 4px !important; letter-spacing: 0.05em !important; font-weight: 700 !important; }
:root[data-theme="dark"] body .ds-auto-tag { background: var(--tint-sky-2, rgba(86,194,239,0.10)) !important; border-color: var(--line-sky-3, rgba(86,194,239,0.30)) !important; }
/* 23d · section letter pins (C · P · D) sit in the brand light */
body .section-head .pin { background: var(--tint-blue-2, rgba(28,116,166,0.10)) !important; color: var(--ct-blue) !important; border-radius: var(--r-ctl-sm) !important; }
:root[data-theme="dark"] body .section-head .pin { background: var(--tint-sky-3, rgba(86,194,239,0.14)) !important; color: #56C2EF !important; box-shadow: 0 0 10px -2px rgba(86,194,239,0.45); }
body .section-head .pin.money { background: var(--wash-good-3, rgba(27,158,110,0.12)) !important; color: var(--ct-good) !important; }
body .section-head .label { color: var(--t-ink-2) !important; letter-spacing: 0.04em !important; }

/* ---------------------------------------------------------------------------
 * 24 · PAGE PASS — QUOTES PIPELINE (quotes/view-quotes) (2026-10-16 07:20)
 * ------------------------------------------------------------------------- */
/* 24a · seven stages, seven columns — "Lost" no longer sits alone on a second row at full width */
@media (min-width: 1200px) { body .kanban { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; gap: 10px !important; } }
@media (min-width: 1101px) and (max-width: 1199px) { body .kanban { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
body .kanban .col { background: var(--t-panel) !important; border: 1px solid var(--t-line) !important; border-radius: var(--r-panel) !important; box-shadow: var(--t-shadow); min-width: 0; }
body .kanban .col .col-h { padding: 10px 10px 8px !important; border-bottom: 1px solid var(--t-line) !important; gap: 6px !important; min-width: 0; }
body .kanban .col .col-h .ct { font-family: 'Archivo', inherit; font-size: var(--fz-13, 13px) !important; font-weight: 800 !important; color: var(--t-ink) !important; }
body .kanban .col .col-sub { font-size: var(--fz-11h, 11.5px) !important; font-weight: 700 !important; color: var(--t-ink-2) !important; border-bottom: 1px solid var(--t-line) !important; padding: 6px 10px !important; }
body .kanban .col .col-b { padding: 8px !important; gap: 8px !important; }
/* 24b · stage pills carry one meaning each: draft quiet · awaiting/inbound information · negotiating live · accepted/won good · lost bad · withdrawn warn */
body .stage-pill { border-radius: var(--r-pill) !important; font-size: var(--fz-9h, 9.5px) !important; font-weight: 800 !important; letter-spacing: 0.02em !important; padding: 3px 8px !important; line-height: 1.3 !important; overflow: hidden; text-overflow: ellipsis; }
body .stage-pill.stage-draft { background: var(--ct-track) !important; color: var(--t-ink-2) !important; }
body .stage-pill.stage-quoted { background: var(--tint-blue-2, rgba(28,116,166,0.12)) !important; color: var(--ct-info) !important; }
body .stage-pill.stage-new { background: var(--tint-blue-2, rgba(28,116,166,0.08)) !important; color: var(--ct-info) !important; box-shadow: inset 0 0 0 1px rgba(28,116,166,0.35); }
body .stage-pill.stage-negotiating { background: var(--ct-blue) !important; color: #FFFFFF !important; }
body .stage-pill.stage-accepted { background: var(--wash-good-3, rgba(27,158,110,0.12)) !important; color: var(--ct-good) !important; box-shadow: inset 0 0 0 1px rgba(27,158,110,0.35); }
body .stage-pill.stage-won { background: var(--ct-good-fill) !important; color: #FFFFFF !important; }
body .stage-pill.stage-lost { background: var(--wash-bad-3, rgba(214,69,69,0.12)) !important; color: var(--ct-bad) !important; }
body .stage-pill.stage-withdrawn { background: var(--wash-warn-3, rgba(201,138,4,0.14)) !important; color: var(--ct-warn) !important; }
:root[data-theme="dark"] body .stage-pill.stage-quoted, :root[data-theme="dark"] body .stage-pill.stage-new { background: var(--tint-sky-2, rgba(86,194,239,0.12)) !important; }
:root[data-theme="dark"] body .stage-pill.stage-new { box-shadow: inset 0 0 0 1px rgba(86,194,239,0.35); }
:root[data-theme="dark"] body .stage-pill.stage-negotiating { background: var(--tint-sky-3, rgba(86,194,239,0.20)) !important; color: #56C2EF !important; box-shadow: 0 0 12px -2px rgba(86,194,239,0.55); }
:root[data-theme="dark"] body .stage-pill.stage-accepted { background: var(--wash-good-bright-3, rgba(63,203,148,0.14)) !important; box-shadow: inset 0 0 0 1px rgba(63,203,148,0.35); }
:root[data-theme="dark"] body .stage-pill.stage-won { background: var(--wash-good-bright-4, rgba(63,203,148,0.20)) !important; color: var(--ct-good) !important; box-shadow: 0 0 12px -2px rgba(63,203,148,0.55); }
:root[data-theme="dark"] body .stage-pill.stage-lost { background: var(--wash-bad-bright-3, rgba(240,113,113,0.14)) !important; }
:root[data-theme="dark"] body .stage-pill.stage-withdrawn { background: var(--wash-warn-bright-3, rgba(240,180,41,0.14)) !important; }
body tr.q-section.stage-new td { border-left-color: var(--ct-info) !important; }
body tr.q-section.stage-quoted td { border-left-color: var(--ct-sky) !important; }
body tr.q-section.stage-negotiating td { border-left-color: var(--ct-blue) !important; }
body tr.q-section.stage-won td { border-left-color: var(--ct-good-fill) !important; }
body tr.q-section.stage-lost td { border-left-color: var(--ct-bad-fill) !important; }
body tr.q-section.stage-withdrawn td { border-left-color: var(--ct-warn-fill) !important; }
/* 24c · quote cards — the signal bar is a pseudo-element (not a box-shadow) so the card can lift on hover without losing it */
body .qcard { --qc-bar: rgba(28,116,166,0.35); background: var(--t-panel) !important; border: 1px solid var(--t-line) !important; border-radius: var(--r-panel) !important; padding: 10px 11px 10px 14px !important; box-shadow: none !important; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
body .qcard::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--qc-bar); }
body .qcard:hover { transform: translateY(-1px); border-color: rgba(28,116,166,0.45) !important; box-shadow: 0 10px 22px -14px rgba(0,50,88,0.45) !important; }
:root[data-theme="dark"] body .qcard { background: var(--tint-white-1, rgba(255,255,255,0.03)) !important; }
:root[data-theme="dark"] body .qcard:hover { border-color: var(--line-sky-4, rgba(86,194,239,0.45)) !important; box-shadow: 0 0 0 1px rgba(86,194,239,0.10), 0 14px 28px -18px rgba(0,0,0,0.8) !important; }
body .qcard.card-idle-fresh { --qc-bar: rgba(28,116,166,0.35); }
body .qcard.card-idle-warm { --qc-bar: var(--ct-warn-fill); background: var(--t-panel) !important; }
body .qcard.card-idle-stale { --qc-bar: var(--ct-bad-fill); background: var(--t-panel) !important; }
body .qcard.card-idle-critical { --qc-bar: var(--ct-bad-fill); background: linear-gradient(90deg, rgba(214,69,69,0.08), transparent 55%), var(--t-panel) !important; }
body .qcard.card-stage-won { --qc-bar: var(--ct-good-fill); background: linear-gradient(90deg, rgba(27,158,110,0.10), transparent 60%), var(--t-panel) !important; border-color: rgba(27,158,110,0.30) !important; }
body .qcard.card-stage-lost { --qc-bar: var(--ct-bad-fill); background: linear-gradient(90deg, rgba(214,69,69,0.08), transparent 60%), var(--t-panel) !important; border-color: rgba(214,69,69,0.26) !important; opacity: .9; }
body .qcard.card-stage-withdrawn { --qc-bar: var(--ct-warn-fill); background: linear-gradient(90deg, rgba(201,138,4,0.08), transparent 60%), var(--t-panel) !important; border-color: rgba(201,138,4,0.26) !important; opacity: .85; }
:root[data-theme="dark"] body .qcard.card-idle-critical { background: linear-gradient(90deg, rgba(240,113,113,0.10), transparent 55%), rgba(255,255,255,0.03) !important; }
:root[data-theme="dark"] body .qcard.card-stage-won { background: linear-gradient(90deg, rgba(63,203,148,0.12), transparent 60%), rgba(255,255,255,0.03) !important; border-color: rgba(63,203,148,0.30) !important; }
:root[data-theme="dark"] body .qcard.card-stage-lost { background: linear-gradient(90deg, rgba(240,113,113,0.10), transparent 60%), rgba(255,255,255,0.03) !important; border-color: rgba(240,113,113,0.26) !important; }
:root[data-theme="dark"] body .qcard.card-stage-withdrawn { background: linear-gradient(90deg, rgba(240,180,41,0.10), transparent 60%), rgba(255,255,255,0.03) !important; border-color: rgba(240,180,41,0.26) !important; }
body .qcard .qc-no { color: var(--t-ink-3) !important; font-size: var(--fz-10, 10px) !important; }
:root[data-theme="dark"] body .qcard .qc-no { color: rgba(86,194,239,0.75) !important; }
body .qcard .qc-cust { font-size: var(--fz-12h, 12.5px) !important; font-weight: 700 !important; color: var(--t-ink) !important; }
body .qcard.card-stage-won .qc-cust { color: var(--ct-good) !important; }
body .qcard.card-stage-lost .qc-cust { color: var(--t-ink) !important; }
body .qcard .qc-lane { color: var(--t-ink-2) !important; font-size: var(--fz-10h, 10.5px) !important; }
body .qcard .qc-foot { margin-top: 8px !important; gap: 6px !important; flex-wrap: wrap; row-gap: 4px; }
body .qcard .qc-rate { font-family: 'Archivo', inherit; font-size: var(--fz-13, 13px) !important; font-weight: 800 !important; letter-spacing: -0.01em; color: var(--t-ink) !important; }
body .qcard .qc-mp { color: var(--t-ink-3) !important; font-weight: 600 !important; }
body .qcard .qc-rep { color: var(--t-ink-3) !important; font-weight: 700 !important; letter-spacing: 0.04em; }
body .qcard .qc-idle { border-radius: var(--r-pill) !important; padding: 1px 7px !important; font-size: var(--fz-9h, 9.5px) !important; margin-left: 0 !important; }
body .qcard .qc-idle.idle-fresh { color: var(--t-ink-3) !important; background: var(--ct-track) !important; }
body .qcard .qc-idle.idle-warm { color: var(--ct-warn) !important; background: var(--wash-warn-3, rgba(201,138,4,0.14)) !important; }
body .qcard .qc-idle.idle-stale { color: var(--ct-bad) !important; background: var(--wash-bad-3, rgba(214,69,69,0.12)) !important; }
body .qcard .qc-idle.idle-critical { color: #FFFFFF !important; background: var(--ct-bad-fill) !important; }
body .qcard .qc-idle.expired { color: #FFFFFF !important; background: var(--ct-bad-fill) !important; }
body .qcard .qc-idle.qc-superseded { color: var(--ct-warn) !important; background: var(--wash-warn-3, rgba(201,138,4,0.14)) !important; }
body .qcard .qc-idle.qc-localonly { color: var(--ct-bad) !important; background: var(--wash-bad-3, rgba(214,69,69,0.12)) !important; box-shadow: inset 0 0 0 1px rgba(214,69,69,0.4); }
:root[data-theme="dark"] body .qcard .qc-idle.idle-warm, :root[data-theme="dark"] body .qcard .qc-idle.qc-superseded { background: var(--wash-warn-bright-3, rgba(240,180,41,0.16)) !important; }
:root[data-theme="dark"] body .qcard .qc-idle.idle-stale, :root[data-theme="dark"] body .qcard .qc-idle.qc-localonly { background: var(--wash-bad-bright-3, rgba(240,113,113,0.16)) !important; }
:root[data-theme="dark"] body .qcard .qc-idle.idle-critical, :root[data-theme="dark"] body .qcard .qc-idle.expired { color: #071226 !important; }
/* 24d · the page's own numbers: KPI strip values and the three insight counts in the hero weight */
body .kpi .k-value { font-family: 'Archivo', inherit; font-size: var(--fz-30, 30px) !important; letter-spacing: -0.03em !important; }
body .kpi .k-sub { color: var(--t-ink-3) !important; }
body .qaction-card .qa-count { font-family: 'Archivo', inherit; font-size: var(--fz-28, 28px) !important; letter-spacing: -0.03em !important; line-height: 1 !important; }
body .qaction-card .qa-meta.high, body .qaction-card .qa-impact b.pos { color: var(--ct-good) !important; }
/* 24f · filter chips (Issues, Shipments, Branding, User admin) are §6 chips: pill, ONE LINE (Issues' "Last 7 days" wrapped to three), the active one solid.
   Applied-filter chips that carry a remove button (Create Load, Reminders) keep their own outline. */
body :is(.chip, .filter-chip, .queue-chip, .mqh-chip, .src-chip, .ana-chip, .stage-pill) { white-space: nowrap; }
body .filter-chip:not(:has(button)) { border-radius: var(--r-pill) !important; font-weight: 600 !important; font-size: var(--fz-12, 12px) !important; padding: 5px 12px !important; line-height: 1.3; background-image: none !important; transition: background-color .15s, border-color .15s, color .15s; }
:root[data-theme="light"] body .filter-chip:not(:has(button)):not(.on):not(.active) { background: #FFFFFF !important; border: 1px solid rgba(0,50,88,0.18) !important; color: #0A2540 !important; }
:root[data-theme="dark"]  body .filter-chip:not(:has(button)):not(.on):not(.active) { background: var(--tint-white-1, rgba(255,255,255,0.06)) !important; border: 1px solid var(--line-sky-3, rgba(86,194,239,0.30)) !important; color: #DCE9F5 !important; }
:root[data-theme="light"] body .filter-chip:not(:has(button)):is(.on, .active) { background: linear-gradient(135deg, #1C74A6, #2AA3E0) !important; border: 1px solid transparent !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }   /* CRM active chip 11/05 */
:root[data-theme="dark"]  body .filter-chip:not(:has(button)):is(.on, .active) { background: linear-gradient(135deg, #1C74A6, #2AA3E0) !important; border: 1px solid transparent !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }   /* CRM active chip 11/05 */
/* 24g · page headers: when the toolbar doesn't fit beside the title, it drops to its own row instead of squeezing the title to four lines (Issues) */
body .pageheader { flex-wrap: wrap; row-gap: 10px; }
body .pageheader > div:first-child:not(.header-actions) { flex: 1 1 360px; min-width: 0; }
body .header-actions { flex-wrap: wrap; row-gap: 8px; justify-content: flex-end; }
/* 24h · status ink on its own tint, light mode: good green (#059669) on a 12% green tint measures 2.99:1 — the contrast guard then
   paints it navy. A deeper green for the two places that set good text on a good tint. (Amber: the token itself moved, see §0.) */
:root[data-theme="light"] body .stage-pill.stage-accepted { color: var(--ct-good) !important; }
:root[data-theme="light"] body .qcard.card-stage-won .qc-cust { color: var(--ct-good) !important; }

/* 2026-10-22 sweep · DARK MODE: small chips written with inline brand-blue text (#1C74A6) on a faint
   blue wash — "SHARED" on the CRM dashboard, "Canonical remit-to" / "GL 1010" in Setup › Bank
   Accounts and others — read 2.4:1 on the dark page. Lift that one inline colour to the light brand
   blue in dark mode only. */
:root[data-theme="dark"] body span[style*="color:#1C74A6"],
:root[data-theme="dark"] body span[style*="color: #1C74A6"] { color: #7fd3f5 !important; -webkit-text-fill-color: #7fd3f5 !important; }
/* view-designer owner avatars: white initials on light brand colours (1.8–2.2:1) */
body .view-card .vc-owner .vc-avatar { text-shadow: 0 0 2px rgba(0,0,0,0.55); font-weight: 800; }

/* 2026-10-23 · KPI ROWS EVERYWHERE (Niko: "the whole TMS to be amazing, not a little here and there").
   46 pages open on a .kpi-strip of plain white count boxes. One look for all of them, matching the
   "At a glance" tiles: a 3 px gradient bar along the top (state colour: red alert / amber warn /
   green good / violet revenue), small-caps label, Archivo number. The bar is a background layer
   (::before is the theme sheen, ::after is hidden, and an inset shadow curved at the corners). The
   Load Board's count pills are .kpi-tile, not .kpi — untouched. */
:root body .kpi-strip > .kpi.kpi { --kpi-a1: #1C74A6; --kpi-a2: #56C2EF; border-radius: var(--r-panel) !important; overflow: hidden;
  background-image: linear-gradient(90deg, var(--kpi-a1), var(--kpi-a2)) !important; background-size: 100% 3px !important;
  background-repeat: no-repeat !important; background-position: top left !important;
  box-shadow: 0 10px 26px -18px rgba(0, 50, 88, 0.45) !important; padding-top: 15px !important; }
:root body .kpi-strip > .kpi.kpi:is(.alert, .danger, .bad, .urgent) { --kpi-a1: #DC2626; --kpi-a2: #FCA5A5; }
:root body .kpi-strip > .kpi.kpi:is(.warn, .watch) { --kpi-a1: #F59E0B; --kpi-a2: #FBBF24; }
:root body .kpi-strip > .kpi.kpi:is(.good, .ok) { --kpi-a1: #059669; --kpi-a2: #6EE7B7; }
:root body .kpi-strip > .kpi.kpi:is(.k-revenue, .weighted) { --kpi-a1: #1E6BA8; --kpi-a2: #4599D4; }   /* CRM blues 11/05 (was violet) */
:root body .kpi-strip > .kpi.kpi > :is(.k-label, .l, .lbl, .kpi-lbl):first-child { font-size: var(--fs-2) !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; }   /* 11/08 Niko: sentence case on every tile label (was 11px uppercase) */
:root body .kpi-strip > .kpi.kpi .k-value { font-family: 'Archivo', inherit !important; font-size: var(--fz-28, 28px) !important; font-weight: 800 !important; letter-spacing: -0.02em !important; }
:root[data-theme="dark"] body .kpi-strip > .kpi.kpi { --kpi-a1: #2E94D0; --kpi-a2: #9BD7F3; box-shadow: 0 12px 28px -18px rgba(0, 0, 0, 0.8) !important; }
:root[data-theme="dark"] body .kpi-strip > .kpi.kpi:is(.alert, .danger, .bad, .urgent) { --kpi-a1: #FCA5A5; --kpi-a2: #FFA3A3; }
:root[data-theme="dark"] body .kpi-strip > .kpi.kpi:is(.warn, .watch) { --kpi-a1: #FBBF24; --kpi-a2: #FFD27A; }
:root[data-theme="dark"] body .kpi-strip > .kpi.kpi:is(.good, .ok) { --kpi-a1: #6EE7B7; --kpi-a2: #6EE7B7; }

/* 2026-10-25 · Setup count boxes (Carrier config, Customer config, Roles, API keys) are .kpi-tile with
   .lbl/.val/.sub. The Load Board pill rule above used to catch them too and stretched them into ovals
   (Niko: "weird circles"). The pill rule is now Load Board only (:has(.kpi-num)); these get the same
   look as every other KPI row — the kit panel corner (16 px until 11/17), 3 px state-colour bar on top, small-caps label, Archivo number. */
:root[data-theme] body .kpi-strip > .kpi-tile.kpi-tile:not(:has(.kpi-num)) { --kpi-a1: #1C74A6; --kpi-a2: #56C2EF; --kpi-bg: rgba(255,255,255,0.92);
  border-radius: var(--r-panel) !important; overflow: hidden; border: 1px solid rgba(0,50,88,0.12) !important; padding: 15px 18px 14px !important; gap: 6px !important;
  background: linear-gradient(90deg, var(--kpi-a1), var(--kpi-a2)) top left / 100% 3px no-repeat, var(--kpi-bg) !important;
  box-shadow: 0 10px 26px -18px rgba(0, 50, 88, 0.45) !important; }
:root[data-theme] body .kpi-strip > .kpi-tile.kpi-tile.ok:not(:has(.kpi-num)) { --kpi-a1: #059669; --kpi-a2: #6EE7B7; }
:root[data-theme] body .kpi-strip > .kpi-tile.kpi-tile.warn:not(:has(.kpi-num)) { --kpi-a1: #DC2626; --kpi-a2: #FCA5A5; }
:root[data-theme] body .kpi-strip > .kpi-tile.kpi-tile:not(:has(.kpi-num)) > .lbl { font-size: var(--fs-2) !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; color: #5A7184 !important; border: 0 !important; background: none !important; padding: 0 !important; }
:root[data-theme] body .kpi-strip > .kpi-tile.kpi-tile:not(:has(.kpi-num)) > .val { font-family: 'Archivo', system-ui, sans-serif !important; font-size: var(--fz-28, 28px) !important; font-weight: 800 !important; letter-spacing: -0.02em !important; color: #0A2540 !important; -webkit-text-fill-color: currentColor !important; }
:root[data-theme] body .kpi-strip > .kpi-tile.kpi-tile.ok:not(:has(.kpi-num)) > .val { color: var(--ct-good) !important; }
:root[data-theme] body .kpi-strip > .kpi-tile.kpi-tile.warn:not(:has(.kpi-num)) > .val { color: var(--ct-bad) !important; }
:root[data-theme] body .kpi-strip > .kpi-tile.kpi-tile.info:not(:has(.kpi-num)) > .val { color: #135883 !important; }
:root[data-theme] body .kpi-strip > .kpi-tile.kpi-tile:not(:has(.kpi-num)) > .sub { font-size: var(--fz-12, 12px) !important; color: #6B7F90 !important; border: 0 !important; background: none !important; padding: 0 !important; }
:root[data-theme="dark"] body .kpi-strip > .kpi-tile.kpi-tile:not(:has(.kpi-num)) { --kpi-a1: #2E94D0; --kpi-a2: #9BD7F3; --kpi-bg: rgba(16,30,50,0.72); border-color: var(--line-sky-2, rgba(86,194,239,0.18)) !important; box-shadow: 0 12px 28px -18px rgba(0,0,0,0.8) !important; }
:root[data-theme="dark"] body .kpi-strip > .kpi-tile.kpi-tile.ok:not(:has(.kpi-num)) { --kpi-a1: #6EE7B7; --kpi-a2: #6EE7B7; }
:root[data-theme="dark"] body .kpi-strip > .kpi-tile.kpi-tile.warn:not(:has(.kpi-num)) { --kpi-a1: #FCA5A5; --kpi-a2: #FFA3A3; }
:root[data-theme="dark"] body .kpi-strip > .kpi-tile.kpi-tile:not(:has(.kpi-num)) > .lbl { color: var(--t-ink-2) !important; }
:root[data-theme="dark"] body .kpi-strip > .kpi-tile.kpi-tile:not(:has(.kpi-num)) > .val { color: #EAF2FA !important; }
:root[data-theme="dark"] body .kpi-strip > .kpi-tile.kpi-tile.ok:not(:has(.kpi-num)) > .val { color: #6EE7B7 !important; }
:root[data-theme="dark"] body .kpi-strip > .kpi-tile.kpi-tile.warn:not(:has(.kpi-num)) > .val { color: #FF8A8A !important; }
:root[data-theme="dark"] body .kpi-strip > .kpi-tile.kpi-tile.info:not(:has(.kpi-num)) > .val { color: #56C2EF !important; }
:root[data-theme="dark"] body .kpi-strip > .kpi-tile.kpi-tile:not(:has(.kpi-num)) > .sub { color: var(--t-ink-2) !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   STYLE KIT · 1 · THE PAGE HEADER  (2026-10-27, Niko: "one place that knows what we like")
   ───────────────────────────────────────────────────────────────────────────
   The one header band every page should wear. Opt-in by class, so pages move
   over one at a time and each move is checked against the before-screenshots:

     <div class="pageheader ct-ph">
       <div>
         <div class="ct-ph-bread">Setup · Coverage</div>        (optional)
         <h1 class="ct-page-title">Title</h1>
         <div class="ct-ph-sub">One line on what this page is for</div>
       </div>
       <div class="ct-ph-actions"> …buttons… </div>        (optional)
     </div>

   The look is not new: it is what 54 of 130 pages already rendered on the test
   site (measured 10/27 — light: frosted white band, #e8eaed line, 12/22/14
   padding, 28px/800 navy title, 12px slate subtitle; dark: frosted navy band,
   faint white line, ice-blue title and subtitle). A page that moves over
   deletes its own header CSS — this block is then the only place it lives.
   Selectors are html:root + doubled (.ct-ph.ct-ph) = (0,3,2), because tms-glass.css and some
   pages use :root[data-theme] .pageheader {… !important} = (0,3,0); this block must win (10/28). */
html:root body .ct-ph.ct-ph {
  display: flex !important; align-items: center !important; justify-content: flex-start !important;
  gap: 14px !important; flex-wrap: wrap !important; row-gap: 10px !important;
  padding: 8px 22px 9px !important; margin: 0 !important;   /* 11/10 was 12/14 — Niko: the header looked huge */
  border: 0 !important; border-bottom: 1px solid var(--ph-line) !important; border-radius: 0 !important;
  background: var(--ph-bg) !important;
  -webkit-backdrop-filter: blur(12px) saturate(130%) !important; backdrop-filter: blur(12px) saturate(130%) !important;
  box-shadow: inset 0 2px 0 -1px rgba(86,194,239,0.9) !important;   /* 11/10 the kit's lit top line — an edge, not a slab */
}
html:root body .ct-ph.ct-ph > div:first-child:not(.ct-ph-actions) { flex: 1 1 360px; min-width: 0; }
/* h1 included: a page whose title lacks .ct-page-title (Shipments, Trailer Profile — 10/28)
   otherwise fell back to the browser's default h1 margin and the band grew ~36px. */
html:root body .ct-ph.ct-ph h1,
html:root body .ct-ph.ct-ph .ct-page-title.ct-page-title {
  font-family: 'Archivo', 'Inter', -apple-system, system-ui, 'Segoe UI', sans-serif !important;
  font-size: var(--fz-28, 28px) !important; font-weight: 800 !important; letter-spacing: -0.02em !important;
  line-height: 1.12 !important; margin: 0 0 2px !important;
  color: var(--ph-title) !important; -webkit-text-fill-color: var(--ph-title) !important;
}
html:root body .ct-ph.ct-ph .ct-ph-sub {
  font-size: var(--fz-12, 12px) !important; line-height: 1.45 !important; margin: 0 !important;
  color: var(--ph-sub) !important; -webkit-text-fill-color: var(--ph-sub) !important; font-weight: 500 !important;
}
html:root body .ct-ph.ct-ph .ct-ph-sub b { color: var(--ph-title) !important; -webkit-text-fill-color: var(--ph-title) !important; }
html:root body .ct-ph.ct-ph .ct-ph-bread {
  font-family: var(--ct-font-figures, 'JetBrains Mono', monospace) !important; font-size: var(--fz-10, 10px) !important; font-weight: 700 !important;
  text-transform: uppercase !important; letter-spacing: 0.08em !important; margin: 0 0 2px !important;
  color: var(--ph-bread) !important; -webkit-text-fill-color: var(--ph-bread) !important;
}
html:root body .ct-ph.ct-ph .ct-ph-actions {
  margin-left: auto !important; display: flex !important; gap: 8px !important;
  align-items: center !important; flex-wrap: wrap !important; justify-content: flex-end !important;
}
:root[data-theme="light"] body .ct-ph.ct-ph,
:root:not([data-theme]) body .ct-ph.ct-ph {
  --ph-bg: rgba(255,255,255,0.85); --ph-line: #e8eaed;
  --ph-title: #003258; --ph-sub: var(--t-ink-2); --ph-bread: #1C74A6;
}
:root[data-theme="dark"] body .ct-ph.ct-ph {
  --ph-bg: rgba(15,28,51,0.80); --ph-line: rgba(86,194,239,0.16);   /* 11/10 was .42 — see-through */
  --ph-title: #d8f2ff; --ph-sub: var(--t-ink-2); --ph-bread: #56C2EF;   /* 11/14: --ph-sub was the same blue at 88% strength, a third near-twin beside ink-2 (100%) and ink-3 (78%) */
}
@media (max-width: 720px) { html:root body .ct-ph.ct-ph { padding: 12px 14px !important; } }

/* ───────────────────────────────────────────────────────────────────────────
   STYLE KIT · 2 · THE HERO  (2026-10-31, Niko: Home + My Portal keep a hero, but it is the
   kit's hero, not the page's — "I don't want any single HTML to have their own stuff")
   ───────────────────────────────────────────────────────────────────────────
   The greeting card that opens Home and the four My Portal pages. Opt-in by class, like the
   header; a page that moves over deletes its own hero CSS.

     <section class="ct-hero">                      (Home keeps hello has-live-map is-mission too —
       <div>                                          ct-live-map.css owns the two-column map GRID)
         <div class="ct-hero-kicker">My Portal · Sales</div>     (optional)
         <h1 class="ct-hero-title">Good morning, Niko 👋</h1>
         <div class="ct-hero-sub">Saturday … <b>76 loads</b> active</div>
       </div>
       <div class="quick ct-hero-actions"> …buttons (class qa / qa primary)… </div>
     </section>

   The look is what Home rendered on 10/31 (measured on the test site, both themes), which is
   the page Niko judges everything against: 28px glass slab, blurred cyan orbs, 42px title.
     dark : conic cyan/sky wash over navy, 1px rgba(86,194,239,.18), cyan glow; title #9BD7F3; sub = ink-2 (was #a9c6dd, a grey-blue, until 11/15)
     light: frosted white 52→34%, 1px rgba(180,205,230,.9), soft navy shadow; title #072036; sub #46586b
   Padding is NOT !important on purpose: ct-live-map.css sets Home's grid padding with !important
   and must keep winning. Selectors html:root body .ct-hero.ct-hero = (0,3,2), same as the header. */
html:root body .ct-hero.ct-hero {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 28px !important; padding: 32px 36px; margin: 0 0 24px;
  border: 1px solid var(--hero-line) !important;
  background: var(--hero-bg) !important;
  background-size: 220% 220%, 100% 100%, 100% 100% !important;
  background-blend-mode: screen, normal, normal;
  box-shadow: var(--hero-shadow) !important;
  color: var(--hero-text);
  animation: none !important; opacity: 1 !important;
}
html:root body .ct-hero.ct-hero::before {
  content: ''; position: absolute; inset: -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 18% 30%, rgba(86,194,239,0.50) 0%, transparent 22%),
    radial-gradient(circle at 78% 22%, rgba(28,116,166,0.42) 0%, transparent 24%),
    radial-gradient(circle at 62% 78%, rgba(86,194,239,0.42) 0%, transparent 20%),
    radial-gradient(circle at 28% 82%, rgba(86,194,239,0.30) 0%, transparent 22%);
  filter: blur(40px) saturate(140%); opacity: 0.85; mix-blend-mode: screen;
  mask-image: none !important; background-size: auto !important; animation: none !important;
}
html:root body .ct-hero.ct-hero::after { content: none !important; }
html:root body .ct-hero.ct-hero > * { position: relative; z-index: 1; }
html:root body .ct-hero.ct-hero > div:first-child { min-width: 0; }
html:root body .ct-hero.ct-hero .ct-hero-kicker {
  font-family: var(--ct-font-figures, 'JetBrains Mono', monospace) !important; font-size: var(--fz-10, 10px) !important; font-weight: 700 !important;
  text-transform: uppercase !important; letter-spacing: 0.08em !important; margin: 0 0 8px !important;
  color: var(--hero-kicker) !important; -webkit-text-fill-color: var(--hero-kicker) !important;
}
html:root body .ct-hero.ct-hero .ct-hero-title,
html:root body .ct-hero.ct-hero h1.ct-hero-title {
  font-family: 'Archivo', 'Inter', -apple-system, system-ui, 'Segoe UI', sans-serif !important;
  font-size: clamp(28px, 3.5vw, 42px) !important; font-weight: 800 !important;
  letter-spacing: -0.028em !important; line-height: 1.12 !important; margin: 0 0 8px !important; padding: 0 !important;
  background: none !important; background-image: none !important; animation: none !important;
  color: var(--hero-title) !important; -webkit-text-fill-color: var(--hero-title) !important;
  text-shadow: 0 0 32px rgba(86,194,239,0.18);
}
html:root body .ct-hero.ct-hero .ct-hero-sub {
  font-size: var(--fz-14, 14px) !important; line-height: 1.6 !important; max-width: 740px;
  color: var(--hero-sub) !important; -webkit-text-fill-color: var(--hero-sub) !important; font-weight: 500;
}
html:root body .ct-hero.ct-hero .ct-hero-sub b { color: var(--hero-title) !important; -webkit-text-fill-color: var(--hero-title) !important; font-weight: 700; }
html:root body .ct-hero.ct-hero .ct-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
:root[data-theme="dark"] body .ct-hero.ct-hero {
  --hero-bg:
    conic-gradient(from 220deg at 70% 30%, rgba(86,194,239,0.26) 0deg, rgba(28,116,166,0.24) 90deg,
      rgba(86,194,239,0.22) 180deg, rgba(86,194,239,0.20) 270deg, rgba(86,194,239,0.26) 360deg),
    radial-gradient(ellipse at 80% 10%, rgba(255,255,255,0.10) 0%, transparent 55%),
    linear-gradient(160deg, #06070f 0%, #0a1426 55%, #050810 100%);
  --hero-line: rgba(86,194,239,0.18);
  --hero-shadow: 0 30px 80px -20px rgba(86,194,239,0.28), 0 18px 50px -18px rgba(86,194,239,0.18),
                 inset 0 1px 0 rgba(255,255,255,0.10), inset 0 -1px 0 rgba(255,255,255,0.04);
  --hero-text: #fff; --hero-title: #9BD7F3; --hero-sub: var(--t-ink-2); --hero-kicker: #56C2EF;
}
:root[data-theme="light"] body .ct-hero.ct-hero,
:root:not([data-theme]) body .ct-hero.ct-hero {
  --hero-bg: linear-gradient(135deg, rgba(255,255,255,0.52), rgba(255,255,255,0.34));
  --hero-line: rgba(180,205,230,0.9);
  --hero-shadow: inset 0 1px 0 rgba(255,255,255,0.65), 0 30px 64px -34px rgba(20,55,90,0.5);
  --hero-text: #0a2540; --hero-title: #072036; --hero-sub: var(--t-ink-2); --hero-kicker: #1C74A6;
}
@media (max-width: 720px) { html:root body .ct-hero.ct-hero { border-radius: 18px !important; padding: 20px 18px; } }
/* 11/05 · titles take the CRM's title colours (Niko: the CRM is the source of truth; sizes unchanged).
   Light: the CRM's navy → blue → sky gradient text (#003258 → #1C74A6 → #2D9FD6, 92°). Dark: the CRM's #5ED0FF.
   Home's 👋 sits in .ct-wave so it keeps its own colours inside the gradient. */
html:root[data-theme="light"] body :is(.ct-ph.ct-ph h1, .ct-ph.ct-ph .ct-page-title.ct-page-title, .ct-hero.ct-hero .ct-hero-title), html:root:not([data-theme]) body :is(.ct-ph.ct-ph h1, .ct-ph.ct-ph .ct-page-title.ct-page-title, .ct-hero.ct-hero .ct-hero-title) {
  background-image: linear-gradient(92deg, #003258 0%, #1C74A6 55%, #2D9FD6 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  color: transparent !important; -webkit-text-fill-color: transparent !important; text-shadow: none !important;
}
html:root[data-theme="dark"] body :is(.ct-ph.ct-ph h1, .ct-ph.ct-ph .ct-page-title.ct-page-title, .ct-hero.ct-hero .ct-hero-title) { color: #5ED0FF !important; -webkit-text-fill-color: #5ED0FF !important; }
html:root body .ct-wave.ct-wave { -webkit-text-fill-color: initial !important; color: initial !important; background: none !important; }
/* 11/05 · page background, light: the live CRM's wash (sky top-left, blue right, a hint of green at the bottom, over
   #EEF6FD → #E9F1FA). It goes on the ROOT (the opaque base behind the freight map, tms-glass.css), and the body's own tint
   is cleared, so the map still shows through. Was: one faint sky glow over #EEF4FB → #E6EEF7. */
html:root:not([data-theme="dark"]) { background: radial-gradient(1100px 560px at 12% -8%, rgba(86,194,239,0.46), transparent 62%),
  radial-gradient(900px 520px at 104% 18%, rgba(28,116,166,0.22), transparent 60%),
  radial-gradient(800px 420px at 58% 112%, rgba(52,211,153,0.16), transparent 60%),
  linear-gradient(180deg, #EEF6FD 0%, #E9F1FA 100%) #EEF6FD !important; background-attachment: fixed !important; }
html:root:not([data-theme="dark"]) body { background-image: none !important; background-color: transparent !important; }
/* 11/05 · map haze + map strength = the live CRM's (same freight map and haze layers there). Light: faint navy at the top,
   clear middle, pale only at the bottom; map 0.62. Dark: barely any haze; map 0.95 (Niko: keep the map showing).
   Was: a pale/dark haze over the whole page (tms-glass.css) and map 0.9 / 0.68. */
html:root:not([data-theme="dark"]) body #ctHaze { background: linear-gradient(180deg, rgba(0,50,88,0.06), rgba(246,248,251,0) 42%, rgba(246,248,251,0.55) 100%) !important; }
html:root[data-theme="dark"] body #ctHaze { background: linear-gradient(180deg, rgba(5,8,16,0.16), rgba(5,8,16,0) 38%, rgba(5,8,16,0)) !important; }
html:root:not([data-theme="dark"]) body #freightMap.loaded { opacity: 0.62 !important; }
html:root[data-theme="dark"] body #freightMap.loaded { opacity: 0.95 !important; }
/* 11/05 · light map colours = the live CRM's: pale-blue states #E3ECF5 with #8FB0D1 outlines, lanes rgba(28,116,166,.72),
   origin/dest #1C74A6, hot states #D6E4F2. Was the 8/17 watermark (states at 5% blue, tms-glass.css) — the reason the TMS
   read paler than the CRM. Dark map colours are NOT copied: the CRM's near-white dark map sits under a navy body layer
   that the TMS doesn't use (Niko: keep the map showing), so copied alone it would glare. */
html:root:not([data-theme="dark"]) { --map-state: #E3ECF5; --map-stroke: #8FB0D1; --map-lane: rgba(28,116,166,0.72); --map-laned: rgba(28,116,166,0.40); --map-o: #1C74A6; --map-d: #1C74A6; --map-hot: #D6E4F2; }
html:root:not([data-theme="dark"]) body #freightMap .state { fill: #E3ECF5 !important; stroke: #8FB0D1 !important; stroke-width: 0.6px !important; }
html:root:not([data-theme="dark"]) body #freightMap .state.hot { fill: #D6E4F2 !important; }
/* 11/05 · the load board's red "!" stuck flag: CRM dark red in dark mode (was the light #dc2626 on navy). */
:root[data-theme="dark"] body .stuck-flag.stuck-flag { color: #FCA5A5 !important; background: var(--wash-bad-3, rgba(220,38,38,0.16)) !important; border-color: rgba(252, 165, 165, 0.45) !important; }

/* ───────────────────────────────────────────────────────────────────────────
   STYLE KIT · 3 · THE POPOVER  (2026-10-31)
   ───────────────────────────────────────────────────────────────────────────
   A panel that floats over the page — search suggestions, menus, dropdowns. The frosted
   panel token (--surface-card-solid, 66% in light) is right for cards that sit IN the page
   and wrong for a panel that sits OVER it: the text underneath bleeds through (seen on
   Help Center's suggestions, 10/30). Opt-in by class; first user: Help Center #hcSugg. */
html:root body .ct-popover.ct-popover {
  background: var(--pop-bg) !important;
  -webkit-backdrop-filter: blur(14px) saturate(140%) !important; backdrop-filter: blur(14px) saturate(140%) !important;
  border: 1px solid var(--pop-line) !important;
  box-shadow: var(--sh-deep-pop, 0 18px 44px rgba(5,8,16,0.22), 0 2px 8px rgba(5,8,16,0.08)) !important;
}
:root[data-theme="light"] body .ct-popover.ct-popover,
:root:not([data-theme]) body .ct-popover.ct-popover { --pop-bg: rgba(255,255,255,0.96); --pop-line: #e3e8ee; }
:root[data-theme="dark"] body .ct-popover.ct-popover { --pop-bg: rgba(14,23,41,0.96); --pop-line: var(--line-sky-2); }

/* ───────────────────────────────────────────────────────────────────────────
   STYLE KIT · 4 · THE TABLE  (2026-10-31, Niko picked View Carriers' table over Accounts Payable's)
   ───────────────────────────────────────────────────────────────────────────
   Measured 10/31: 47 pages have tables, in 56 cell looks and 22 header looks. This is the one
   View Carriers / View Customers / Prospects / Trailers render (approved pages). Opt-in by class
   on the <table>; a page that moves over deletes its own th/td typography, padding and lines.

     <table class="ct-table"> <thead><tr><th>…</th></tr></thead> <tbody><tr><td>…</td></tr></tbody> </table>

   Only the LOOK is pinned (type, colour, padding, lines, hover). Column widths, text-align,
   sticky headers, row states (selected / muted / total rows) stay the page's own. */
/* Screen only: a page's own print styles (AP prints thin grey borders, 10pt) keep working on paper. */
@media screen {
/* SEPARATE borders, no gaps (11/01): the kit draws only a line under each row, so this looks the same as collapse — but
   collapsed borders are rounded per cell, and on the Load Board (rows at fractional pixels) the row line stepped 1px at
   column edges, reading as faint vertical lines. Separate keeps every row line straight. */
html:root body table.ct-table.ct-table { border-collapse: separate !important; border-spacing: 0 !important; width: 100%; font-size: var(--fz-13, 13px); }
html:root body table.ct-table.ct-table > thead > tr > th {
  font-family: 'Archivo', 'Inter', -apple-system, system-ui, 'Segoe UI', sans-serif !important;
  font-size: var(--fz-12h, 12.5px) !important; font-weight: 600 !important; line-height: 1.45 !important;
  text-transform: none !important; letter-spacing: normal !important; white-space: nowrap;
  color: var(--tb-head) !important; background: var(--tb-head-bg) !important;
  padding: 10px 12px !important; border-bottom: 1px solid var(--tb-head-line) !important; border-top: 0 !important;
}
/* Header cells read left by default (browsers centre <th>); LOW (:where) so a page's right-aligned money column or
   centred checkbox column still wins. Team Wins (Ops) relied on a page-wide th rule for this. */
:where(table.ct-table) > thead > tr > th { text-align: left; }
/* Cell TYPE + COLOUR are the default, kept LOW (:where → 0,0,3) so a page's column classes
   (.num bold totals, .dim muted dates, .pro mono PRO#, .delta green/red) still win on their own
   columns — at full strength the kit flattened them on Pay Audit + Carriers (11/01). Plain cells
   get exactly this. Spacing and row lines below stay locked. */
:where(table.ct-table) > tbody > tr > td {
  font-family: 'Archivo', 'Inter', -apple-system, system-ui, 'Segoe UI', sans-serif;
  font-size: var(--fz-13, 13px); font-weight: 500; color: var(--tb-cell);
}
html:root body table.ct-table.ct-table > tbody > tr > td {
  vertical-align: middle;
  border-bottom: 1px solid var(--tb-line) !important;
}
/* Standard cell spacing — except a cell that sets its own inline padding: that is the page's
   empty / "no matches" message row (colspan, padding 30-42px). The kit flattened those on 11/01. */
html:root body table.ct-table.ct-table > tbody > tr > td:not([style*="padding"]):not(.empty):not(.empty-state) { padding: 11px 12px !important; line-height: 1.45 !important; }
html:root body table.ct-table.ct-table > tbody > tr:last-child > td { border-bottom-color: transparent !important; }
/* Footer rows (totals) get the same cell spacing + type as body rows (11/01: AP report viewer "All carriers" and Shop
   Vendors' "Vendors who can" totals had lost theirs). Their own divider / bold stays the page's. */
:where(table.ct-table) > tfoot > tr > td { font-family: 'Archivo', 'Inter', -apple-system, system-ui, 'Segoe UI', sans-serif; font-size: var(--fz-13, 13px); color: var(--tb-cell); }
html:root body table.ct-table.ct-table > tfoot > tr > td:not([style*="padding"]) { padding: 11px 12px !important; vertical-align: middle; }
/* hover kept LOW (specificity 0,1,2 via :where) so a page's row-state hover — flagged, DNU, hot, overdue —
   still wins on its own rows; plain rows get this one. */
:where(table.ct-table) > tbody > tr:hover > td { background: var(--surface-card-alt); }
:root[data-theme="light"] body table.ct-table.ct-table,
:root:not([data-theme]) body table.ct-table.ct-table {
  --tb-head: #0A2540; --tb-head-bg: #FDFDFE; --tb-head-line: var(--line-blue-2);
  --tb-cell: #0F172A; --tb-line: var(--line-blue-4);
}
/* 11/05 · CRM colours (sizes unchanged): header ink #0A2540 / #CFE3F4, cell ink #0F172A / #EAF2FB, blue hairlines.
   The CRM's header has no fill; ours stays SOLID so sticky headers don't go see-through over rows, but in the card's own
   colour (80% white / CRM navy glass over the page) so it reads fill-less. Row lines keep Niko's 10/30 'a little more
   darker' strength (.28 / .45), in the CRM's blue. Was: head #5b6b7c on #f0f6fa, cell #050810, navy lines. */
:root[data-theme="dark"] body table.ct-table.ct-table {
  --tb-head: #CFE3F4; --tb-head-bg: #0D203A; --tb-head-line: var(--line-sky-1);
  --tb-cell: #EAF2FB; --tb-line: var(--line-sky-4);
}
/* Row lines (11/01): the Load Board's darker lines (Niko 10/29-30: "a little more darker") are now every table's line.
   Compact rows — the Load Board's Compact / Comfortable switch (10/20, Niko 11/01 "we have so many loads per week, leave
   that") sets body.ct-dense; Comfortable is the standard row above. Works for any ct-table on a page that offers the switch. */
html:root body.ct-dense table.ct-table.ct-table > thead > tr > th { padding: 3px 8px !important; }
html:root body.ct-dense table.ct-table.ct-table > tbody > tr > td:not([style*="padding"]):not(.empty):not(.empty-state) { padding: 2px 8px !important; line-height: 17px !important; }
/* Compact SIZE for narrow side panels (11/02, Niko "lets do it"): same head, colours and lines — only tighter spacing and
   smaller type, so a skinny box (Create Load's Lane history) fits its columns. Use: <table class="ct-table ct-compact">.
   Never for a page's main table. */
html:root body table.ct-table.ct-table.ct-compact > thead > tr > th { padding: 6px 8px !important; font-size: var(--fz-11h, 11.5px) !important; }
html:root body table.ct-table.ct-table.ct-compact > tbody > tr > td:not([style*="padding"]):not(.empty):not(.empty-state) { padding: 6px 8px !important; line-height: 1.35 !important; }
:where(table.ct-table.ct-compact) > tbody > tr > td { font-size: var(--fz-12, 12px); }
} /* end @media screen — STYLE KIT · 4 */

/* =====================================================================================================================
   STYLE KIT · 5 · TABS  (2026-11-02, Niko: Customer Profile's tab row is the standard for every tab — "Lets do it")
   Plain text tabs; the selected tab is brand blue with a 2px underline; a hairline under the row.
   Use:  <div class="ct-tabs"> <button class="ct-tab active">Overview <span class="tcount">7</span></button> … </div>
   Selected = .active, .on, .is-active or [aria-selected="true"]. A page keeps only LAYOUT for its tab row (sticky,
   position, gap between groups) — never its own font, colours, padding or underline. Light and dark differ in colour only.
   ===================================================================================================================== */
@media screen {
:root[data-theme="light"] body, :root:not([data-theme]) body {
  --tab-ink: #5B7189; --tab-ink-hover: #0A2540; --tab-on: #1C74A6; --tab-line: var(--line-blue-2);   /* 11/05 CRM colours (was #6b7280 / #050810 / #e8eaed) */
  --tab-count-bg: var(--tint-blue-2); --tab-count-on-bg: var(--tint-blue-3);   /* 11/15 tints (soft was .08) */
}
:root[data-theme="dark"] body {
  --tab-ink: var(--t-ink-2); --tab-ink-hover: #FFFFFF; --tab-on: #56C2EF; --tab-line: var(--line-sky-1);   /* 11/05 CRM dark (was #c9dcec / #8fd3f4) */
  --tab-count-bg: var(--tint-sky-2); --tab-count-on-bg: var(--tint-sky-3);   /* 11/15 tints */
}
/* LAYOUT stays LOW (:where → 0 specificity) so a page can still HIDE a tab or a whole row (owner-only tabs, role-gated
   tabs, a row that only shows in one view). At full strength the kit's display:flex un-hid them (Reports, 11/03). */
:where(.ct-tabs) { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
html:root body .ct-tabs.ct-tabs { border-bottom: 1px solid var(--tab-line) !important; }
html:root body .ct-tabs.ct-tabs::-webkit-scrollbar { display: none; }
html:root body .ct-tab.ct-tab {
  font-family: 'Archivo', 'Inter', -apple-system, system-ui, 'Segoe UI', sans-serif !important;
  font-size: var(--fz-12h, 12.5px) !important; font-weight: 600 !important; line-height: 1.3 !important;
  letter-spacing: normal !important; text-transform: none !important;
  padding: 12px 14px !important; margin: 0 0 -1px 0 !important;
  color: var(--tab-ink) !important; background: transparent !important; box-shadow: none !important;
  border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important;
  text-decoration: none !important;
}
:where(.ct-tab) { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ct-tab[hidden], .ct-tabs[hidden] { display: none !important; }
html:root body .ct-tab.ct-tab:hover { color: var(--tab-ink-hover) !important; }
html:root body .ct-tab.ct-tab:is(.active, .on, .is-active, [aria-selected="true"]) { color: var(--tab-on) !important; border-bottom-color: var(--tab-on) !important; }
html:root body .ct-tab.ct-tab :is(.tcount, .count) {
  padding: 1px 7px !important; border-radius: 999px !important; font-size: var(--fz-10h, 10.5px) !important; font-weight: 700 !important;
  background: var(--tab-count-bg) !important; color: var(--tab-ink) !important;
}
html:root body .ct-tab.ct-tab:is(.active, .on, .is-active, [aria-selected="true"]) :is(.tcount, .count) { background: var(--tab-count-on-bg) !important; color: var(--tab-on) !important; }
/* Vertical tabs — a side menu that switches panels (Setup rail, Branding rail). Same type and colours; the selected item
   gets a soft blue wash and a 2px bar on the left instead of the underline. Use: class="ct-tab ct-vtab". */
:root[data-theme="light"] body, :root:not([data-theme]) body { --tab-wash: rgba(28,116,166,0.08); }
:root[data-theme="dark"] body { --tab-wash: rgba(86,194,239,0.12); }
html:root body .ct-tab.ct-tab.ct-vtab { padding: 8px 12px !important; margin: 1px 0 !important; border-bottom: 0 !important;
  border-left: 2px solid transparent !important; border-radius: 0 8px 8px 0 !important; white-space: normal; }
html:root body .ct-tab.ct-tab.ct-vtab:hover { background: var(--tab-wash) !important; }
html:root body .ct-tab.ct-tab.ct-vtab:is(.active, .on, .is-active, [aria-selected="true"]) { border-left-color: var(--tab-on) !important; background: var(--tab-wash) !important; }
/* Kit 24 (2026-11-10, Niko: "you can barely see the words" — Coverage & Automation tabs over the pale map in dark). A tab
   row in dark sits on the same navy glass as the page header (Kit 22), so its light-sky words never fall straight onto
   the map. Colour only — same size and spacing in both modes; light keeps a clear row. Vertical tabs (.ct-vtab rails)
   live inside their own panel and are left alone. */
html:root body .ct-tabs.ct-tabs { border-radius: var(--r-ctl) var(--r-ctl) 0 0; }
:root[data-theme="dark"] body .ct-tabs.ct-tabs:not(:has(> .ct-vtab)) {
  background: rgba(15,28,51,0.80) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: inset 0 2px 0 -1px rgba(86,194,239,0.35);
}
} /* end @media screen — STYLE KIT · 5 */
/* Kit 34 (2026-11-10) · the "›" between breadcrumb words was the bright link blue at 2.1–2.6:1 on the header glass. */
@media screen {
:root[data-theme="light"] body .ct-ph .sep, :root:not([data-theme]) body .ct-ph .sep { color: var(--ct-blue-deep) !important; }
:root[data-theme="dark"] body .ct-ph .sep { color: var(--t-ink-2) !important; }
html:root body .ct-ph .sep { opacity: 1 !important; }   /* 11/11: pages also faded it to 50% — that, not the colour, kept it faint */
/* 11/11 · disabled buttons ("Not built yet" on Integrations) were faded to 55% inline — keep them visibly off, but readable */
html:root body :is(button, .btn, .qa)[disabled][style*="opacity"] { opacity: 0.8 !important; }
/* 11/11 · empty-amount dashes / "none" placeholders were 30% white in dark */
:root[data-theme="dark"] body :is(.qp-none, td.amt.zero) { color: var(--t-ink-3) !important; }
}

/* Kit 30 (2026-11-10) · faded states. Niko: nothing too see-through to read. Done tasks, future days, paused / disabled /
   voided rows were faded to 35–55%, which over the map made their words disappear. They stay visibly quieter (80%) —
   their other cues (strike-through, dashed edge, labels) still mark the state. Icons, separators and drag ghosts keep theirs. */
@media screen {
html:root body :is(.rr-day.future, .task.done, .task-row.done, .task-row.completed, .task-row.snoozed, .task-mini.done, .tracker-task.task-done,
  .dd-item.disabled, .tier-card.disabled, .st-card.disabled, .ss-chip.paused, .sl-row.paused, .voided, .tab-chip.ct-inert) { opacity: 0.8 !important; }
html:root body .rr-day.future { border-style: dashed !important; }
html:root body .qbo-logo.qbo-logo { color: #0A2540 !important; }   /* white "QB" on the mint-to-green badge was 1.5:1 */
}

/* Kit 26 (2026-11-10) · page footer line (.pfoot — the "configured in … · sibling views" line under Reminders pages) sat
   straight on the map in dark. Same navy as the tab rows; drawn as a shadow so nothing moves. Colour only. */
@media screen { :root[data-theme="dark"] body .pfoot { background: rgba(15,28,51,0.80); box-shadow: 0 0 0 8px rgba(15,28,51,0.80); border-radius: 4px; } }


/* =====================================================================================================================
   STYLE KIT · 6 · FORM FIELDS  (2026-11-03, Niko: Add Prospect's form is the standard; Create Load gets a compact size)
   One field everywhere: 34px tall, 13px/500 text, 9px corners, the kit's field colours. A page keeps its own WIDTH and
   left/right padding (search boxes leave room for their icon) — never its own height, text size, colours or border.
   Compact (body or any box with .ct-fields-compact): 26px tall, 12.5px text — only for forms that pack dozens of fields on
   one screen (Create Load). Fields inside table cells are left alone (inline cell editors size to their row), and so is
   anything marked data-ct-raw. Light and dark differ in colour only. No display/visibility here (pages still hide fields).
   ===================================================================================================================== */
@media screen {
:root[data-theme="light"] body, :root:not([data-theme]) body { --fld-bg: #FFFFFF; --fld-line: var(--line-blue-3); --fld-ink: #0A2540; }   /* 11/05 CRM field colours (was navy .16 line, #050810 ink) */
:root[data-theme="dark"] body { --fld-bg: rgba(30,53,81,0.80); /* Kit 29 11/10: was 6% white — a field straight on the page left its text on the map */ --fld-line: var(--line-sky-3); --fld-ink: #EAF2FB; }
html:root body :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"], [type="hidden"], [type="submit"], [type="button"], [type="image"], [type="reset"]), select, textarea):not(:is(td, th, .topbar, .tabnav, [data-ct-raw]) *):not([data-ct-raw]) {
  font-size: var(--fz-13, 13px) !important; font-weight: 500 !important; border-radius: var(--r-ctl) !important; box-sizing: border-box !important;
  background-color: var(--fld-bg) !important; border: 1px solid var(--fld-line) !important; color: var(--fld-ink) !important;
}
html:root body :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"], [type="hidden"], [type="submit"], [type="button"], [type="image"], [type="reset"]), select):not(:is(td, th, .topbar, .tabnav, [data-ct-raw]) *):not([data-ct-raw]) {
  height: 34px !important; min-height: 34px !important; padding-top: 0 !important; padding-bottom: 0 !important; line-height: 1.2 !important;
}
html:root body textarea:not(:is(td, th, .topbar, .tabnav, [data-ct-raw]) *):not([data-ct-raw]) { padding-top: 9px !important; padding-bottom: 9px !important; line-height: 1.45 !important; }
html:root body :is(input, select, textarea):not(:is(td, th, .topbar, .tabnav, [data-ct-raw]) *):not([data-ct-raw]):focus { border-color: rgba(86,194,239,0.55) !important; box-shadow: 0 0 0 3px rgba(86,194,239,0.15) !important; outline: none !important; }   /* CRM focus ring 11/05 */
html:root[data-theme="dark"] body :is(input, select, textarea):not(:is(td, th, .topbar, .tabnav, [data-ct-raw]) *):not([data-ct-raw]):focus { border-color: var(--ct-sky) !important; }
/* compact size */
html:root body .ct-fields-compact :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"], [type="hidden"], [type="submit"], [type="button"], [type="image"], [type="reset"]), select):not(:is(td, th, .topbar, .tabnav, [data-ct-raw]) *):not([data-ct-raw]),
html:root body.ct-fields-compact :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"], [type="hidden"], [type="submit"], [type="button"], [type="image"], [type="reset"]), select):not(:is(td, th, .topbar, .tabnav, [data-ct-raw]) *):not([data-ct-raw]) {
  height: 26px !important; min-height: 26px !important; font-size: var(--fz-12h, 12.5px) !important; border-radius: 7px !important;
}
html:root body.ct-fields-compact textarea:not(:is(td, th, .topbar, .tabnav, [data-ct-raw]) *):not([data-ct-raw]),
html:root body .ct-fields-compact textarea:not(:is(td, th, .topbar, .tabnav, [data-ct-raw]) *):not([data-ct-raw]) { font-size: var(--fz-12h, 12.5px) !important; padding-top: 6px !important; padding-bottom: 6px !important; border-radius: 7px !important; }
/* Labels (11/03, Niko "lets do it"): the words above a field — 10.5px/600, sentence case, the same quiet ink as a table header.
   Every field label — above a text box, dropdown, button row, upload box or "$" box (widened 11/03 after measuring
   all 67 label pages: 1,266 labels, 0 checkbox/radio labels caught). Checkbox and radio labels are left alone. Compact forms: 10px. Pages keep their own spacing; required-star colours stay. */
:root[data-theme="light"] body, :root:not([data-theme]) body { --lbl-ink: #5B7189; }
:root[data-theme="dark"] body { --lbl-ink: var(--t-ink-2); }   /* CRM dark secondary 11/05 */
html:root body label:not(:has(input:is([type="checkbox"], [type="radio"]))):not(input:is([type="checkbox"], [type="radio"]) + label):not(input:is([type="checkbox"], [type="radio"]) ~ label:not(:has(~ :is(input, select, textarea)))):not(:is(td, th, .topbar, .tabnav, [data-ct-raw]) *):not([data-ct-raw]) {
  font-family: 'Archivo', 'Inter', -apple-system, system-ui, 'Segoe UI', sans-serif !important;
  font-size: var(--fz-10h, 10.5px) !important; font-weight: 600 !important; line-height: 1.3 !important;
  text-transform: none !important; letter-spacing: normal !important; color: var(--lbl-ink) !important;
}
html:root body.ct-fields-compact label:not(:has(input:is([type="checkbox"], [type="radio"]))):not(input:is([type="checkbox"], [type="radio"]) + label):not(input:is([type="checkbox"], [type="radio"]) ~ label:not(:has(~ :is(input, select, textarea)))):not(:is(td, th, .topbar, .tabnav, [data-ct-raw]) *):not([data-ct-raw]),
html:root body .ct-fields-compact label:not(:has(input:is([type="checkbox"], [type="radio"]))):not(input:is([type="checkbox"], [type="radio"]) + label):not(input:is([type="checkbox"], [type="radio"]) ~ label:not(:has(~ :is(input, select, textarea)))):not(:is(td, th, .topbar, .tabnav, [data-ct-raw]) *):not([data-ct-raw]) {
  font-size: var(--fz-10, 10px) !important;
}
/* Kit 38 (2026-11-12) · checkbox and radio labels. The label rule above deliberately leaves them alone, so every page
   had made up its own: 10px to 14px, weight 600, four different colours (measured on 17 pages). One look now: the words
   beside a tick box read like body text — 13px/500 in the body ink; 12px in compact forms (Create Load). */
html:root body :is(label:has(input:is([type="checkbox"], [type="radio"])), input:is([type="checkbox"], [type="radio"]) + label):not(:is(td, th, .topbar, .tabnav, [data-ct-raw]) *):not([data-ct-raw]) {
  font-family: 'Archivo', 'Inter', -apple-system, system-ui, 'Segoe UI', sans-serif !important;
  font-size: var(--fz-13, 13px) !important; font-weight: 500 !important; letter-spacing: normal !important; text-transform: none !important; color: var(--t-ink) !important;
}
html:root body.ct-fields-compact :is(label:has(input:is([type="checkbox"], [type="radio"])), input:is([type="checkbox"], [type="radio"]) + label):not(:is(td, th, .topbar, .tabnav, [data-ct-raw]) *):not([data-ct-raw]), html:root body .ct-fields-compact :is(label:has(input:is([type="checkbox"], [type="radio"])), input:is([type="checkbox"], [type="radio"]) + label):not(:is(td, th, .topbar, .tabnav, [data-ct-raw]) *):not([data-ct-raw]) { font-size: var(--fz-12, 12px) !important; }
} /* end @media screen — STYLE KIT · 6 */

/* ============================================================================
 * STYLE KIT · 9 — status badges (11/04, Niko: "Yeah, lets do it"; colours = the CRM's pills 11/05 — good #047857/#6EE7B7,
 *   amber #B45309/#FBBF24 (the CRM shows amber on Analytics; its 3.0 file's blue "warn" is not used — amber means late here),
 *   red #DC2626/#FCA5A5, info #1C74A6/#56C2EF, muted #334155 on #EEF2F7 / #CFE3F4)
 * Measured 103 pages: 126 badge styles under 117 class names, none on more than 4 pages. Most lean to a
 * fully rounded pill (690 of ~1,200), sentence case (~1,000), ≤ 20px tall. Standard: 20px pill, 10.5px/700,
 * sentence case, light tint + coloured word; the colour carries the meaning:
 *   .is-good green · .is-warn amber · .is-bad red · .is-info blue · .is-muted grey  (light/dark differ in colour only)
 * Step 1 (this block): .ct-badge + every page-made status badge takes the SIZE and SHAPE. Colours stay the page's
 * until step 2 maps each page's states onto the five tones. Not badges (left alone): initials avatars, "!" flags,
 * PRO chips, count bubbles, keyboard hints. Generic names (status, tag, sp, own, svc, severity, verdict) only on <span>.
 * Display stays low strength so a page can still hide a badge.
 * ========================================================================== */
@media screen {
:where(.ct-badge, .w-pill, .chip-s, .sc-status, .stage-pill, .a-state, .issue-sev, .lc-status, .lr-status, .rep-badge,
  .ctag, .lc-type, .type-pill, .c-chan, .tier-pill-mini, .cust-chip, .it-tag, .sla-chip, .sh-why-chip, .dot-badge, .due-pill,
  .qc-idle, .lc-chip, .dat-chip, .src-chip, span.status, span.tag, span.sp, span.own, span.svc, span.severity, span.verdict) {
  display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
html:root body :is(.ct-badge, .w-pill, .chip-s, .sc-status, .stage-pill, .a-state, .issue-sev, .lc-status, .lr-status, .rep-badge,
  .ctag, .lc-type, .type-pill, .c-chan, .tier-pill-mini, .cust-chip, .it-tag, .sla-chip, .sh-why-chip, .dot-badge, .due-pill,
  .qc-idle, .lc-chip, .dat-chip, .src-chip, span.status, span.tag, span.sp, span.own, span.svc, span.severity, span.verdict) {
  height: 20px !important; min-height: 0 !important; padding: 0 8px !important; box-sizing: border-box !important;
  font-size: var(--fz-10h, 10.5px) !important; font-weight: 700 !important; line-height: 1 !important;
  border-radius: 999px !important; text-transform: none !important; letter-spacing: 0 !important; white-space: nowrap !important;
}
/* the five tones — for .ct-badge (step 2 moves page badges onto these) */
:root[data-theme="light"] body .ct-badge, :root:not([data-theme]) body .ct-badge { background: #EEF2F7; color: #334155; }
:root[data-theme="light"] body .ct-badge.is-good, :root:not([data-theme]) body .ct-badge.is-good { background: var(--wash-good-3, rgba(5,150,105,0.16)); color: var(--ct-good); }
:root[data-theme="light"] body .ct-badge.is-warn, :root:not([data-theme]) body .ct-badge.is-warn { background: var(--wash-warn-3, rgba(245,158,11,0.16)); color: var(--ct-warn); }
:root[data-theme="light"] body .ct-badge.is-bad,  :root:not([data-theme]) body .ct-badge.is-bad  { background: var(--wash-bad-3, rgba(220,38,38,0.16)); color: var(--ct-bad); }
/* 11/17: light info text is the deep blue (#155985) — #1C74A6 on this wash was 4.2:1 and the contrast guard had to stamp it */
:root[data-theme="light"] body .ct-badge.is-info, :root:not([data-theme]) body .ct-badge.is-info { background: var(--tint-blue-3, rgba(28,116,166,0.16)); color: var(--ct-blue-deep, #155985); }
:root[data-theme="dark"] body .ct-badge          { background: var(--tint-white-2, rgba(255,255,255,0.07)); color: #CFE3F4; }
:root[data-theme="dark"] body .ct-badge.is-good  { background: var(--wash-good-3, rgba(5,150,105,0.16)); color: #6EE7B7; }
:root[data-theme="dark"] body .ct-badge.is-warn  { background: var(--wash-warn-bright-3, rgba(251,191,36,0.16)); color: #FBBF24; }
:root[data-theme="dark"] body .ct-badge.is-bad   { background: var(--wash-bad-3, rgba(220,38,38,0.16)); color: #FCA5A5; }
:root[data-theme="dark"] body .ct-badge.is-info  { background: var(--tint-sky-2, rgba(86,194,239,0.12)); color: #56C2EF; }
.ct-badge[hidden] { display: none !important; }
/* Step 2 (11/04): page badges take the five tones by MEANING. Notable re-colours: At-risk blue→amber; Watch/Action
   blue→amber; customer-portal "Finding carrier" red→blue; Draft blue→grey. Category labels (Reefer, OWN, Shipper,
   Brakes, TMS…) are blue. Communications channel tags (email/call/sms/claim) keep their own colours on purpose —
   there the colour tells channels apart. Each list is written twice (:is(L):is(L)) for strength, and the text fill is set
   too, because older page rules colour text with -webkit-text-fill-color. */
html:root[data-theme="light"] body :is(.w-pill.w-green, .a-state.on_cadence, .chip-s.moving, .sla-chip.good, .stage-pill.stage-accepted, .stage-pill.stage-won, span.sp.ok, .due-pill.ok):is(.w-pill.w-green, .a-state.on_cadence, .chip-s.moving, .sla-chip.good, .stage-pill.stage-accepted, .stage-pill.stage-won, span.sp.ok, .due-pill.ok), html:root:not([data-theme]) body :is(.w-pill.w-green, .a-state.on_cadence, .chip-s.moving, .sla-chip.good, .stage-pill.stage-accepted, .stage-pill.stage-won, span.sp.ok, .due-pill.ok):is(.w-pill.w-green, .a-state.on_cadence, .chip-s.moving, .sla-chip.good, .stage-pill.stage-accepted, .stage-pill.stage-won, span.sp.ok, .due-pill.ok) { background: var(--wash-good-3, rgba(5,150,105,0.16)) !important; color: var(--ct-good) !important; -webkit-text-fill-color: var(--ct-good) !important; border-color: transparent !important; }
html:root[data-theme="dark"] body :is(.w-pill.w-green, .a-state.on_cadence, .chip-s.moving, .sla-chip.good, .stage-pill.stage-accepted, .stage-pill.stage-won, span.sp.ok, .due-pill.ok):is(.w-pill.w-green, .a-state.on_cadence, .chip-s.moving, .sla-chip.good, .stage-pill.stage-accepted, .stage-pill.stage-won, span.sp.ok, .due-pill.ok) { background: var(--wash-good-3, rgba(5,150,105,0.16)) !important; color: #6EE7B7 !important; -webkit-text-fill-color: #6EE7B7 !important; border-color: transparent !important; }
html:root[data-theme="light"] body :is(.w-pill.w-amber, .a-state.at_risk, .chip-s.stale, .verdict.v-unreviewed, .lr-status.warn, .issue-sev.action, .qc-idle.idle-stale, span.sp.warn, .dat-chip.due):is(.w-pill.w-amber, .a-state.at_risk, .chip-s.stale, .verdict.v-unreviewed, .lr-status.warn, .issue-sev.action, .qc-idle.idle-stale, span.sp.warn, .dat-chip.due), html:root:not([data-theme]) body :is(.w-pill.w-amber, .a-state.at_risk, .chip-s.stale, .verdict.v-unreviewed, .lr-status.warn, .issue-sev.action, .qc-idle.idle-stale, span.sp.warn, .dat-chip.due):is(.w-pill.w-amber, .a-state.at_risk, .chip-s.stale, .verdict.v-unreviewed, .lr-status.warn, .issue-sev.action, .qc-idle.idle-stale, span.sp.warn, .dat-chip.due) { background: var(--wash-warn-3, rgba(245,158,11,0.16)) !important; color: var(--ct-warn) !important; -webkit-text-fill-color: var(--ct-warn) !important; border-color: transparent !important; }
html:root[data-theme="dark"] body :is(.w-pill.w-amber, .a-state.at_risk, .chip-s.stale, .verdict.v-unreviewed, .lr-status.warn, .issue-sev.action, .qc-idle.idle-stale, span.sp.warn, .dat-chip.due):is(.w-pill.w-amber, .a-state.at_risk, .chip-s.stale, .verdict.v-unreviewed, .lr-status.warn, .issue-sev.action, .qc-idle.idle-stale, span.sp.warn, .dat-chip.due) { background: var(--wash-warn-bright-3, rgba(251,191,36,0.16)) !important; color: #FBBF24 !important; -webkit-text-fill-color: #FBBF24 !important; border-color: transparent !important; }
html:root[data-theme="light"] body :is(.w-pill.w-red, span.severity.high, .lr-status.escalated, .issue-sev.escalate, .sla-chip.over, .stage-pill.stage-lost, .qc-idle.expired, .qc-idle.idle-critical, .dat-chip.gap, .lc-chip.lc-due, .due-pill.overdue):is(.w-pill.w-red, span.severity.high, .lr-status.escalated, .issue-sev.escalate, .sla-chip.over, .stage-pill.stage-lost, .qc-idle.expired, .qc-idle.idle-critical, .dat-chip.gap, .lc-chip.lc-due, .due-pill.overdue), html:root:not([data-theme]) body :is(.w-pill.w-red, span.severity.high, .lr-status.escalated, .issue-sev.escalate, .sla-chip.over, .stage-pill.stage-lost, .qc-idle.expired, .qc-idle.idle-critical, .dat-chip.gap, .lc-chip.lc-due, .due-pill.overdue):is(.w-pill.w-red, span.severity.high, .lr-status.escalated, .issue-sev.escalate, .sla-chip.over, .stage-pill.stage-lost, .qc-idle.expired, .qc-idle.idle-critical, .dat-chip.gap, .lc-chip.lc-due, .due-pill.overdue) { background: var(--wash-bad-3, rgba(220,38,38,0.16)) !important; color: var(--ct-bad) !important; -webkit-text-fill-color: var(--ct-bad) !important; border-color: transparent !important; }
html:root[data-theme="dark"] body :is(.w-pill.w-red, span.severity.high, .lr-status.escalated, .issue-sev.escalate, .sla-chip.over, .stage-pill.stage-lost, .qc-idle.expired, .qc-idle.idle-critical, .dat-chip.gap, .lc-chip.lc-due, .due-pill.overdue):is(.w-pill.w-red, span.severity.high, .lr-status.escalated, .issue-sev.escalate, .sla-chip.over, .stage-pill.stage-lost, .qc-idle.expired, .qc-idle.idle-critical, .dat-chip.gap, .lc-chip.lc-due, .due-pill.overdue) { background: var(--wash-bad-3, rgba(220,38,38,0.16)) !important; color: #FCA5A5 !important; -webkit-text-fill-color: #FCA5A5 !important; border-color: transparent !important; }
html:root[data-theme="light"] body :is(.w-pill:not(.w-red, .w-amber, .w-green, .w-unk), .a-state.new, .ctag, .sc-status.open, .chip-s.loaded, .stage-pill.stage-quoted, .stage-pill.stage-negotiating, .stage-pill.stage-new, .issue-sev.watch, .lc-type, .lc-status, .cust-chip, .type-pill, span.status.with-carrier, span.own, span.svc, .dot-badge, span.tag, .sh-why-chip, .src-chip, .tier-pill-mini, .dat-chip.trk):is(.w-pill:not(.w-red, .w-amber, .w-green, .w-unk), .a-state.new, .ctag, .sc-status.open, .chip-s.loaded, .stage-pill.stage-quoted, .stage-pill.stage-negotiating, .stage-pill.stage-new, .issue-sev.watch, .lc-type, .lc-status, .cust-chip, .type-pill, span.status.with-carrier, span.own, span.svc, .dot-badge, span.tag, .sh-why-chip, .src-chip, .tier-pill-mini, .dat-chip.trk), html:root:not([data-theme]) body :is(.w-pill:not(.w-red, .w-amber, .w-green, .w-unk), .a-state.new, .ctag, .sc-status.open, .chip-s.loaded, .stage-pill.stage-quoted, .stage-pill.stage-negotiating, .stage-pill.stage-new, .issue-sev.watch, .lc-type, .lc-status, .cust-chip, .type-pill, span.status.with-carrier, span.own, span.svc, .dot-badge, span.tag, .sh-why-chip, .src-chip, .tier-pill-mini, .dat-chip.trk):is(.w-pill:not(.w-red, .w-amber, .w-green, .w-unk), .a-state.new, .ctag, .sc-status.open, .chip-s.loaded, .stage-pill.stage-quoted, .stage-pill.stage-negotiating, .stage-pill.stage-new, .issue-sev.watch, .lc-type, .lc-status, .cust-chip, .type-pill, span.status.with-carrier, span.own, span.svc, .dot-badge, span.tag, .sh-why-chip, .src-chip, .tier-pill-mini, .dat-chip.trk) { background: var(--tint-blue-3, rgba(28,116,166,0.16)) !important; color: #1C74A6 !important; -webkit-text-fill-color: #1C74A6 !important; border-color: transparent !important; }
html:root[data-theme="dark"] body :is(.w-pill:not(.w-red, .w-amber, .w-green, .w-unk), .a-state.new, .ctag, .sc-status.open, .chip-s.loaded, .stage-pill.stage-quoted, .stage-pill.stage-negotiating, .stage-pill.stage-new, .issue-sev.watch, .lc-type, .lc-status, .cust-chip, .type-pill, span.status.with-carrier, span.own, span.svc, .dot-badge, span.tag, .sh-why-chip, .src-chip, .tier-pill-mini, .dat-chip.trk):is(.w-pill:not(.w-red, .w-amber, .w-green, .w-unk), .a-state.new, .ctag, .sc-status.open, .chip-s.loaded, .stage-pill.stage-quoted, .stage-pill.stage-negotiating, .stage-pill.stage-new, .issue-sev.watch, .lc-type, .lc-status, .cust-chip, .type-pill, span.status.with-carrier, span.own, span.svc, .dot-badge, span.tag, .sh-why-chip, .src-chip, .tier-pill-mini, .dat-chip.trk) { background: var(--tint-sky-2, rgba(86,194,239,0.12)) !important; color: #56C2EF !important; -webkit-text-fill-color: #56C2EF !important; border-color: transparent !important; }
html:root[data-theme="light"] body :is(.w-pill.w-unk, .a-state.dormant, .chip-s.stopped, .chip-s.empty, span.status.unknown, .rep-badge, .stage-pill.stage-draft, .qc-idle.idle-fresh, span.sp.neutral, .dat-chip.off):is(.w-pill.w-unk, .a-state.dormant, .chip-s.stopped, .chip-s.empty, span.status.unknown, .rep-badge, .stage-pill.stage-draft, .qc-idle.idle-fresh, span.sp.neutral, .dat-chip.off), html:root:not([data-theme]) body :is(.w-pill.w-unk, .a-state.dormant, .chip-s.stopped, .chip-s.empty, span.status.unknown, .rep-badge, .stage-pill.stage-draft, .qc-idle.idle-fresh, span.sp.neutral, .dat-chip.off):is(.w-pill.w-unk, .a-state.dormant, .chip-s.stopped, .chip-s.empty, span.status.unknown, .rep-badge, .stage-pill.stage-draft, .qc-idle.idle-fresh, span.sp.neutral, .dat-chip.off) { background: #EEF2F7 !important; color: #334155 !important; -webkit-text-fill-color: #334155 !important; border-color: transparent !important; }
html:root[data-theme="dark"] body :is(.w-pill.w-unk, .a-state.dormant, .chip-s.stopped, .chip-s.empty, span.status.unknown, .rep-badge, .stage-pill.stage-draft, .qc-idle.idle-fresh, span.sp.neutral, .dat-chip.off):is(.w-pill.w-unk, .a-state.dormant, .chip-s.stopped, .chip-s.empty, span.status.unknown, .rep-badge, .stage-pill.stage-draft, .qc-idle.idle-fresh, span.sp.neutral, .dat-chip.off) { background: var(--tint-white-2, rgba(255,255,255,0.07)) !important; color: #CFE3F4 !important; -webkit-text-fill-color: #CFE3F4 !important; border-color: transparent !important; }
} /* end @media screen — STYLE KIT · 9 */

/* ============================================================================
 * STYLE KIT · 10 — cards (11/04, Niko: "lets do it!" — Home's card is the standard)
 * Measured 102 pages: top-level card corners 12px (347) · 16px (279) · 14px (249) · 10px (138); stat tiles on 43 pages
 * with padding 15–16 × 14–18. Home uses one card everywhere: 14px corners, hairline, the §2 soft shadow, stat tiles
 * 16 × 18 × 14. §2 already says this, but page rules out-rank it — this block holds corners, shadow and stat-tile
 * padding at full strength. Borders are NOT forced: several pages carry a coloured top line on a tile that means
 * something (red = needs attention); those stay. Callouts / banners keep their tint.
 * ========================================================================== */
@media screen {
html:root body :is(.card, .kpi, .kpi-tile, .stat-tile, .panel, .rail-card, .rem-icard, .table-card, .heat-card, .conc-card,
  .donut-card, .mh-tile, .recent-card, .insight-card, .cg-card, .cs-card, .cg-tile, .tpl-card, .qaction-card, .table-wrap):is(
  .card, .kpi, .kpi-tile, .stat-tile, .panel, .rail-card, .rem-icard, .table-card, .heat-card, .conc-card,
  .donut-card, .mh-tile, .recent-card, .insight-card, .cg-card, .cs-card, .cg-tile, .tpl-card, .qaction-card, .table-wrap):not(td *, .modal *, [role="dialog"] *) {
  border-radius: var(--r-panel) !important;
  box-shadow: var(--t-shadow) !important;
}
html:root body :is(.kpi, .kpi-tile, .stat-tile, .mh-tile, .cg-tile):is(.kpi, .kpi-tile, .stat-tile, .mh-tile, .cg-tile):not(td *, .modal *) {
  padding: 16px 18px 14px !important;
}
html:root body :is(.card, .kpi):is(.card, .kpi):not(td *, .modal *):hover { box-shadow: var(--t-shadow-up) !important; }   /* keep §2's lift on hover */
/* 11/04 · panel tints (Niko: "lets do it"). Measured 35 pages: the leftover tint is the old glass look — a see-through
   panel (white at 60–70 percent, or a 135° white→ice gradient) with a 115° shine laid over it by ::before. Home's panels are
   solid. These panels go solid (--t-panel) and lose the shine. NOT touched: the stat-tile accent stripe (kpi
   background-image) and the 3px accent bar on .cg-tile (its ::before is the bar, not a shine). */
html:root body :is(.cg-card, .filterbar, .table-card, .coll-card, .mh-tile, .insight-card, .cg-tile):is(.cg-card, .filterbar, .table-card, .coll-card, .mh-tile, .insight-card, .cg-tile):not(td *, .modal *) { background-image: none !important; }
html:root body :is(.cg-card, .filterbar, .table-card, .coll-card, .mh-tile, .insight-card, .kpi):is(.cg-card, .filterbar, .table-card, .coll-card, .mh-tile, .insight-card, .kpi):not(td *, .modal *)::before { display: none !important; }
html:root body .kpi.kpi:not(td *, .modal *) { background-color: var(--t-panel) !important; }
/* 11/05 · CRM glass (Niko: "I like the CRM better" — colours, not sizes). Light: white at 80%, blue hairline. Dark: navy glass
   rgba(16,40,70,.62), sky hairline (the CRM also blurs behind its cards; the TMS turned blur off app-wide on 6/27 for
   scroll speed — tms-glass.css — so no blur here); the lit top line + glow come from --t-shadow.
   Was solid #FFFFFF / #0F1C33 (11/04, Home's look). Coloured top lines on tiles are borders and are left alone. */
html:root[data-theme="light"] body :is(.card, .kpi, .kpi-tile, .stat-tile, .panel, .rail-card, .rem-icard, .table-card, .heat-card, .conc-card, .donut-card, .mh-tile, .recent-card, .insight-card, .cg-card, .cs-card, .cg-tile, .tpl-card, .qaction-card, .table-wrap, .filterbar, .coll-card):is(.card, .kpi, .kpi-tile, .stat-tile, .panel, .rail-card, .rem-icard, .table-card, .heat-card, .conc-card, .donut-card, .mh-tile, .recent-card, .insight-card, .cg-card, .cs-card, .cg-tile, .tpl-card, .qaction-card, .table-wrap, .filterbar, .coll-card):not(td *, .modal *, [role="dialog"] *), html:root:not([data-theme]) body :is(.card, .kpi, .kpi-tile, .stat-tile, .panel, .rail-card, .rem-icard, .table-card, .heat-card, .conc-card, .donut-card, .mh-tile, .recent-card, .insight-card, .cg-card, .cs-card, .cg-tile, .tpl-card, .qaction-card, .table-wrap, .filterbar, .coll-card):is(.card, .kpi, .kpi-tile, .stat-tile, .panel, .rail-card, .rem-icard, .table-card, .heat-card, .conc-card, .donut-card, .mh-tile, .recent-card, .insight-card, .cg-card, .cs-card, .cg-tile, .tpl-card, .qaction-card, .table-wrap, .filterbar, .coll-card):not(td *, .modal *, [role="dialog"] *) { background-color: rgba(255, 255, 255, 0.80) !important; border-color: var(--line-blue-2, rgba(28,116,166,0.16)); }
html:root[data-theme="dark"] body :is(.card, .kpi, .kpi-tile, .stat-tile, .panel, .rail-card, .rem-icard, .table-card, .heat-card, .conc-card, .donut-card, .mh-tile, .recent-card, .insight-card, .cg-card, .cs-card, .cg-tile, .tpl-card, .qaction-card, .table-wrap, .filterbar, .coll-card):is(.card, .kpi, .kpi-tile, .stat-tile, .panel, .rail-card, .rem-icard, .table-card, .heat-card, .conc-card, .donut-card, .mh-tile, .recent-card, .insight-card, .cg-card, .cs-card, .cg-tile, .tpl-card, .qaction-card, .table-wrap, .filterbar, .coll-card):not(td *, .modal *, [role="dialog"] *) { background-color: var(--t-glass) !important; border-color: var(--line-sky-1, rgba(86,194,239,0.14)); }
/* .cg-tile: dark mode shows a 3px blue accent bar across the top; light mode had the shine there instead. Same bar in both. */
html:root body .cg-tile.cg-tile:not(td *, .modal *)::before { content: "" !important; display: block !important; position: absolute !important; left: 0 !important; right: 0 !important; top: 0 !important; bottom: auto !important; height: 3px !important; background: linear-gradient(90deg, #1C74A6, #56C2EF) !important; opacity: 1 !important; border-radius: 14px 14px 0 0 !important; }
html:root body .cg-tile.cg-tile:not(td *, .modal *) { position: relative; overflow: hidden; }
} /* end @media screen — STYLE KIT · 10 */

/* ============================================================================
 * STYLE KIT · 11 — empty states (11/05, Niko: "everything standard"; Home is the reference)
 * Measured ~40 page-made "nothing here" styles (10.5–14px, italic or not, grey or white-ish, padding 10–60px).
 * Standard = Home's own empty message (.card-empty), measured on the test site: 12.5px/500, italic, centred,
 * 20px × 16px, light #5B7189 · dark #8AA4C0. Whole-list empties get all of it; small in-card empties keep their
 * own padding/alignment and take the type + colour. "empty" alone only where it is the element's ONLY class —
 * pages also use it as a modifier (chip-s.empty, td.empty…). Borders/backgrounds/display untouched.
 * What I got wrong first (871102d6): picked 13px / not italic / --t-ink-3 from the commonest page style instead of
 * measuring Home's — Home is the reference.
 * ========================================================================== */
@media screen {
html:root body :is(.ctms-empty, [class="empty"], .empty-state, .empty-results, .vt-empty, .hc-empty, .pb-empty, .ks-emptyrow, .map-empty, .ov-empty, .rep-empty, .et-empty-search, .card-empty):is(.ctms-empty, [class="empty"], .empty-state, .empty-results, .vt-empty, .hc-empty, .pb-empty, .ks-emptyrow, .map-empty, .ov-empty, .rep-empty, .et-empty-search, .card-empty) {
  text-align: center !important; font-size: var(--fz-12h, 12.5px) !important; font-weight: 500 !important; font-style: italic !important;
  line-height: 1.45 !important; padding: 20px 16px !important; }
html:root body :is(.life-empty, .hub-snap-empty, .role-empty-rules, .rev-empty, .od-empty, .wf-empty, .loc-suggest-empty, .hub-empty-search):is(.life-empty, .hub-snap-empty, .role-empty-rules, .rev-empty, .od-empty, .wf-empty, .loc-suggest-empty, .hub-empty-search) { font-size: var(--fz-12h, 12.5px) !important; font-weight: 500 !important; font-style: italic !important; }
html:root[data-theme="light"] body :is(.ctms-empty, [class="empty"], .empty-state, .empty-results, .vt-empty, .hc-empty, .pb-empty, .ks-emptyrow, .map-empty, .ov-empty, .rep-empty, .et-empty-search, .card-empty, .life-empty, .hub-snap-empty, .role-empty-rules, .rev-empty, .od-empty, .wf-empty, .loc-suggest-empty, .hub-empty-search):is(.ctms-empty, [class="empty"], .empty-state, .empty-results, .vt-empty, .hc-empty, .pb-empty, .ks-emptyrow, .map-empty, .ov-empty, .rep-empty, .et-empty-search, .card-empty, .life-empty, .hub-snap-empty, .role-empty-rules, .rev-empty, .od-empty, .wf-empty, .loc-suggest-empty, .hub-empty-search), html:root:not([data-theme]) body :is(.ctms-empty, [class="empty"], .empty-state, .empty-results, .vt-empty, .hc-empty, .pb-empty, .ks-emptyrow, .map-empty, .ov-empty, .rep-empty, .et-empty-search, .card-empty, .life-empty, .hub-snap-empty, .role-empty-rules, .rev-empty, .od-empty, .wf-empty, .loc-suggest-empty, .hub-empty-search):is(.ctms-empty, [class="empty"], .empty-state, .empty-results, .vt-empty, .hc-empty, .pb-empty, .ks-emptyrow, .map-empty, .ov-empty, .rep-empty, .et-empty-search, .card-empty, .life-empty, .hub-snap-empty, .role-empty-rules, .rev-empty, .od-empty, .wf-empty, .loc-suggest-empty, .hub-empty-search) { color: #5B7189 !important; -webkit-text-fill-color: #5B7189 !important; }
html:root[data-theme="dark"] body :is(.ctms-empty, [class="empty"], .empty-state, .empty-results, .vt-empty, .hc-empty, .pb-empty, .ks-emptyrow, .map-empty, .ov-empty, .rep-empty, .et-empty-search, .card-empty, .life-empty, .hub-snap-empty, .role-empty-rules, .rev-empty, .od-empty, .wf-empty, .loc-suggest-empty, .hub-empty-search):is(.ctms-empty, [class="empty"], .empty-state, .empty-results, .vt-empty, .hc-empty, .pb-empty, .ks-emptyrow, .map-empty, .ov-empty, .rep-empty, .et-empty-search, .card-empty, .life-empty, .hub-snap-empty, .role-empty-rules, .rev-empty, .od-empty, .wf-empty, .loc-suggest-empty, .hub-empty-search) { color: var(--t-ink-2) !important; -webkit-text-fill-color: var(--t-ink-2) !important; }
} /* end @media screen — STYLE KIT · 11 */

/* ============================================================================
 * STYLE KIT · 12 — pop-ups take the CRM's look (11/05, Niko: "the CRM is the source of truth"; colours, not sizes).
 * From the CRM's modals-refresh.css (read only): panel white 94% / navy rgba(10,28,50,.92), hairline, deep shadow;
 * header = the navy → blue gradient strip with white title + a sky underline; footer on a faint tint; backdrop navy 55%.
 * Measured 11/05 on 35 pages: every .modal-head / .ap-modal-head is the panel's FIRST child with 0 panel padding, so
 * the strip sits flush. Only first-child heads are styled (user-admin / create-load have a few nested sub-heads: left).
 * The header also gets a solid #135883 under the gradient so tms-contrast-guard.js (it reads background-color) sees
 * white-on-blue and leaves the white title alone. The module-switcher drawer (.ctms-drawer) is its own dark design: untouched.
 * 11/05 night (style-kit page, light mode): the title came out navy-on-navy — §13c ("every h1–h3 is navy in light", 0,5,3)
 * outranked the white-title rule here (0,5,2). The head class is doubled on the title/sub/close rules so they win by one.
 * ========================================================================== */
@media screen {
html:root body :is(.modal-overlay, .modal-backdrop, .modal-back, .drawer-back, .drawer-backdrop) { background: rgba(2, 12, 26, 0.55) !important; }
html:root[data-theme="light"] body :is(.modal-card, .ap-modal-card, .modal-content, .modal:has(> :is(.modal-head, .ap-modal-head))):is(.modal-card, .ap-modal-card, .modal-content, .modal:has(> :is(.modal-head, .ap-modal-head))),
html:root:not([data-theme]) body :is(.modal-card, .ap-modal-card, .modal-content, .modal:has(> :is(.modal-head, .ap-modal-head))):is(.modal-card, .ap-modal-card, .modal-content, .modal:has(> :is(.modal-head, .ap-modal-head))) {
  background: rgba(255, 255, 255, 0.94) !important; background-image: none !important; border: 1px solid rgba(0, 50, 88, 0.12) !important;
  box-shadow: 0 40px 80px -30px rgba(0, 20, 40, 0.7), 0 0 0 1px rgba(86, 194, 239, 0.08) !important; }
html:root[data-theme="dark"] body :is(.modal-card, .ap-modal-card, .modal-content, .modal:has(> :is(.modal-head, .ap-modal-head))):is(.modal-card, .ap-modal-card, .modal-content, .modal:has(> :is(.modal-head, .ap-modal-head))) {
  background: rgba(10, 28, 50, 0.92) !important; background-image: none !important; border: 1px solid var(--line-sky-2, rgba(86,194,239,0.18)) !important;
  box-shadow: 0 40px 80px -30px rgba(0, 20, 40, 0.7), 0 0 0 1px rgba(86, 194, 239, 0.08) !important; }
/* header strip — same in both modes, as on the CRM */
html:root body :is(.modal-card, .ap-modal-card, .modal-content, .modal) > :is(.modal-head, .ap-modal-head):first-child {
  background: linear-gradient(90deg, rgba(86,194,239,0), #56C2EF, rgba(86,194,239,0)) bottom / 100% 2px no-repeat,
              linear-gradient(90deg, #0A2540, #1C74A6 70%, #2A8EC4) !important;
  background-color: #135883 !important; color: #FFFFFF !important; border-bottom: 0 !important;
  border-radius: var(--r-modal) var(--r-modal) 0 0 !important; }
html:root body :is(.modal-card, .ap-modal-card, .modal-content, .modal) > :is(.modal-head, .ap-modal-head):is(.modal-head, .ap-modal-head):first-child :is(h1, h2, h3, h4, .modal-title, .title) {
  color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
html:root body :is(.modal-card, .ap-modal-card, .modal-content, .modal) > :is(.modal-head, .ap-modal-head):is(.modal-head, .ap-modal-head):first-child :is(.modal-sub, .ap-modal-sub, .sub, p, small) {
  color: rgba(255, 255, 255, 0.78) !important; -webkit-text-fill-color: rgba(255, 255, 255, 0.78) !important; }
html:root body :is(.modal-card, .ap-modal-card, .modal-content, .modal) > :is(.modal-head, .ap-modal-head):is(.modal-head, .ap-modal-head):first-child :is(.modal-close, .ap-modal-close, .modal-x, .close) {
  color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; background: var(--tint-white-3, rgba(255,255,255,0.12)) !important; border-color: var(--line-white-4, rgba(255,255,255,0.25)) !important; }
html:root body :is(.modal-card, .ap-modal-card, .modal-content, .modal) > :is(.modal-head, .ap-modal-head):first-child svg { color: #FFFFFF; stroke: currentColor; }
/* footer on the CRM's faint tint */
html:root[data-theme="light"] body :is(.modal-card, .ap-modal-card, .modal-content, .modal) > :is(.modal-foot, .ap-modal-foot):last-child,
html:root:not([data-theme]) body :is(.modal-card, .ap-modal-card, .modal-content, .modal) > :is(.modal-foot, .ap-modal-foot):last-child {
  background: rgba(0, 50, 88, 0.06) !important; border-top: 1px solid rgba(0, 50, 88, 0.12) !important; border-radius: 0 0 var(--r-modal) var(--r-modal) !important; }
html:root[data-theme="dark"] body :is(.modal-card, .ap-modal-card, .modal-content, .modal) > :is(.modal-foot, .ap-modal-foot):last-child {
  background: var(--tint-white-1, rgba(255,255,255,0.06)) !important; border-top: 1px solid var(--line-sky-2, rgba(86,194,239,0.18)) !important; border-radius: 0 0 var(--r-modal) var(--r-modal) !important; }
} /* end @media screen — STYLE KIT · 12 */

/* ============================================================================
 * STYLE KIT · 13 — toasts take the CRM's look (11/05 night, Niko: "everything standard").
 * Measured 11/05: 18 TMS pages drew three different toasts (navy pill centred at the bottom, green pill, dark-gradient card
 * bottom-right) with three sets of meaning classes (ok / success / err / error / warn). The CRM's toast (app-03.js toast()
 * + modals-refresh.css #toasts) is one solid filled pill, white text, the SAME in light and dark: info slate/navy, success
 * emerald-600, warning amber-600, error rose-600, 14px radius, deep shadow. Colours only — each page keeps its position,
 * padding and type size. Every meaning class a page already uses is accepted. Solid background-color so the contrast
 * guard (reads background-color) sees white-on-colour and leaves the white text alone.
 * The class is repeated 8× because tms-glass.css line 1459 paints light-mode toasts as a white glass pill with a 6×:not()
 * selector (:root + [data-theme] + .toast + six :not = 0,9,0) — measured 11/05 night: .ok / .err toasts came out white-on-white,
 * and 7× still lost the text colour. 8 classes + :root = (0,9,2), one over.
 * ========================================================================== */
@media screen {
html:root body .toast.toast.toast.toast.toast.toast.toast.toast {
  background: #0A2540 !important; background-image: none !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important;
  border: 0 !important; border-radius: var(--r-panel) !important; box-shadow: 0 20px 40px -24px rgba(0, 20, 40, 0.7) !important; }
html:root body .toast.toast.toast.toast.toast.toast.toast.toast:is(.ok, .success, .good, .saved) { background: #059669 !important; }
html:root body .toast.toast.toast.toast.toast.toast.toast.toast:is(.warn, .warning, .late) { background: #D97706 !important; }
html:root body .toast.toast.toast.toast.toast.toast.toast.toast:is(.err, .error, .danger, .bad, .fail) { background: #E11D48 !important; }
html:root body .toast.toast.toast.toast.toast.toast.toast.toast :is(.t-ic, .t-body, .t-meta, .t-title, .t-sub, b, strong, span, small, p) { color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
html:root body .toast.toast.toast.toast.toast.toast.toast.toast .t-meta, html:root body .toast.toast.toast.toast.toast.toast.toast.toast small { opacity: 0.78; }
html:root body .toast.toast.toast.toast.toast.toast.toast.toast .t-ic { background: var(--tint-white-4, rgba(255,255,255,0.18)) !important; border-color: var(--line-white-4, rgba(255,255,255,0.25)) !important; }
html:root body .toast.toast.toast.toast.toast.toast.toast.toast button, html:root body .toast.toast.toast.toast.toast.toast.toast.toast .t-close { color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
} /* end @media screen — STYLE KIT · 13 */

/* ============================================================================
 * STYLE KIT · 14 — stat-tile meaning (11/05 night, Niko: "everything standard").
 * Measured 11/05: 145 plain .kpi tiles; meaning spelled five ways (good 19 · danger 16 · info 15 · alert 15 · red/green via
 * ::before, which §10 already hides) and each page tinting the tile its own way (135° washes at 6–16%, different borders).
 * The standard: a 3px stripe across the top in the meaning colour — the same bar .cg-tile already carries in blue — and the
 * value in that colour. The washes go; the glass surface stays (§10). Colours = the CRM's gradients (emerald / amber / red /
 * blue). Every spelling pages already use is accepted. Sizes untouched.
 * ========================================================================== */
@media screen {
html:root body :is(.kpi, .kpi-tile, .stat-tile):is(.good, .ok, .green, .success, .warn, .warning, .amber, .late, .bad, .danger, .red, .error, .info, .alert, .blue):is(.good, .ok, .green, .success, .warn, .warning, .amber, .late, .bad, .danger, .red, .error, .info, .alert, .blue):not(td *, .modal *) {
  position: relative; overflow: hidden; background-image: none !important; }
html:root body :is(.kpi, .kpi-tile, .stat-tile):is(.good, .ok, .green, .success, .warn, .warning, .amber, .late, .bad, .danger, .red, .error, .info, .alert, .blue):is(.good, .ok, .green, .success, .warn, .warning, .amber, .late, .bad, .danger, .red, .error, .info, .alert, .blue):not(td *, .modal *)::before {
  content: "" !important; display: block !important; position: absolute !important; left: 0 !important; right: 0 !important; top: 0 !important;
  bottom: auto !important; width: auto !important; height: 3px !important; border-radius: var(--r-panel) var(--r-panel) 0 0 !important; opacity: 1 !important;
  transform: none !important; animation: none !important; z-index: 6 !important;   /* the old 115° shine left a translateX on ::before that pushed the stripe off the tile; the dark lit top line is an ::after at z-index 5 — the stripe sits above it (measured 11/05) */
  background: linear-gradient(90deg, #1C74A6, #56C2EF) !important; }
html:root body :is(.kpi, .kpi-tile, .stat-tile):is(.good, .ok, .green, .success):is(.good, .ok, .green, .success):not(td *, .modal *)::before { background: linear-gradient(90deg, #059669, #34D399) !important; }
html:root body :is(.kpi, .kpi-tile, .stat-tile):is(.warn, .warning, .amber, .late):is(.warn, .warning, .amber, .late):not(td *, .modal *)::before { background: linear-gradient(90deg, #D97706, #FBBF24) !important; }
html:root body :is(.kpi, .kpi-tile, .stat-tile):is(.bad, .danger, .red, .error):is(.bad, .danger, .red, .error):not(td *, .modal *)::before { background: linear-gradient(90deg, #DC2626, #F87171) !important; }
html:root body :is(.kpi, .kpi-tile, .stat-tile):is(.good, .ok, .green, .success):is(.good, .ok, .green, .success):not(td *, .modal *) :is(.k-value, .val, .value, .kpi-value, .kpi-val, .num, .stat-value, .kv, .big) { color: var(--ct-good) !important; -webkit-text-fill-color: var(--ct-good) !important; }
html:root body :is(.kpi, .kpi-tile, .stat-tile):is(.warn, .warning, .amber, .late):is(.warn, .warning, .amber, .late):not(td *, .modal *) :is(.k-value, .val, .value, .kpi-value, .kpi-val, .num, .stat-value, .kv, .big) { color: var(--ct-warn) !important; -webkit-text-fill-color: var(--ct-warn) !important; }
html:root body :is(.kpi, .kpi-tile, .stat-tile):is(.bad, .danger, .red, .error):is(.bad, .danger, .red, .error):not(td *, .modal *) :is(.k-value, .val, .value, .kpi-value, .kpi-val, .num, .stat-value, .kv, .big) { color: var(--ct-bad) !important; -webkit-text-fill-color: var(--ct-bad) !important; }
html:root[data-theme="light"] body :is(.kpi, .kpi-tile, .stat-tile):is(.info, .alert, .blue):is(.info, .alert, .blue):not(td *, .modal *) :is(.k-value, .val, .value, .kpi-value, .kpi-val, .num, .stat-value, .kv, .big), html:root:not([data-theme]) body :is(.kpi, .kpi-tile, .stat-tile):is(.info, .alert, .blue):is(.info, .alert, .blue):not(td *, .modal *) :is(.k-value, .val, .value, .kpi-value, .kpi-val, .num, .stat-value, .kv, .big) { color: #1C74A6 !important; -webkit-text-fill-color: #1C74A6 !important; }
html:root[data-theme="dark"] body :is(.kpi, .kpi-tile, .stat-tile):is(.info, .alert, .blue):is(.info, .alert, .blue):not(td *, .modal *) :is(.k-value, .val, .value, .kpi-value, .kpi-val, .num, .stat-value, .kv, .big) { color: #56C2EF !important; -webkit-text-fill-color: #56C2EF !important; }
} /* end @media screen — STYLE KIT · 14 */

/* ==========================================================================
 * STYLE KIT · 16 — the tile label (11/08, Niko: "Sentence case."). Inventory inv3: 52 pages showed LOADS · 12 WEEKS
 * (11px/700 uppercase, letter-spaced) and 41 incl. Home showed Loads · 12 weeks (10.5px/600). Standard: sentence case,
 * --fs-2, 600, secondary ink — every label spelling the tiles use. (Text typed in CAPS in the HTML stays as typed.)
 * ========================================================================== */
@media screen {
html:root body :is(.kpi, .kpi-tile, .stat-tile, .ph-stat) > :is(.lbl, .l, .k, .k-label, .kpi-label, .kpi-lbl, .stat-label, .label, .t):first-child,
html:root body :is(.kpi, .kpi-tile, .stat-tile, .ph-stat) :is(.lbl, .k-label, .kpi-label, .kpi-lbl, .stat-label) {
  font-size: var(--fs-2) !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important;
  color: var(--t-ink-2) !important; -webkit-text-fill-color: var(--t-ink-2) !important; }
} /* end @media screen — STYLE KIT · 16 */

/* ==========================================================================
 * STYLE KIT · 17 — the card title, every spelling (11/08). Inventory inv4: 9 looks; 10 pages put a bare <h3> as the
 * card's first child (13px/700), Home painted its titles ink. Standard = the rule above: --fs-4, 800, navy (dark: ink).
 * Covers a heading that is the FIRST child of a card / panel (deeper headings are content, left alone).
 * ========================================================================== */
@media screen {
html:root body :is(.card, .panel) > :is(h2, h3):first-child, html:root body :is(.card, .panel) > :is(.card-head, .c-head, .section-head, .sec-head) :is(h2, h3) {
  font-size: var(--fs-4) !important; font-weight: 800 !important; letter-spacing: -0.015em !important; text-transform: none !important; }
:root[data-theme="light"] body :is(.card, .panel) > :is(h2, h3):first-child, :root:not([data-theme]) body :is(.card, .panel) > :is(h2, h3):first-child,
:root[data-theme="light"] body :is(.card, .panel) > :is(.c-head, .section-head, .sec-head) :is(h2, h3), :root:not([data-theme]) body :is(.card, .panel) > :is(.c-head, .section-head, .sec-head) :is(h2, h3) { color: var(--ct-navy) !important; }
:root[data-theme="dark"]  body :is(.card, .panel) > :is(h2, h3):first-child, :root[data-theme="dark"] body :is(.card, .panel) > :is(.c-head, .section-head, .sec-head) :is(h2, h3) { color: var(--t-ink) !important; }
} /* end @media screen — STYLE KIT · 17 */

/* ==========================================================================
 * STYLE KIT · 18 — the module-switcher drawer (11/08). Kit 12 left .ctms-drawer as "its own dark design"; the winners
 * audit found that design copy-pasted into 32 pages (the same values everywhere). It stays dark in BOTH modes and keeps
 * its exact values — the kit now owns them so the page copies are dead weight. Backdrop 65% near-black + blur; panel a
 * navy → near-black vertical gradient with a sky hairline on the left; white title.
 * ========================================================================== */
@media screen {
html:root body .ctms-backdrop.ctms-backdrop { background: rgba(5, 8, 16, 0.65) !important; }
html:root body .ctms-drawer.ctms-drawer { background: linear-gradient(180deg, rgba(15, 28, 45, 0.98), rgba(5, 8, 16, 0.98)) !important;
  border-left: 1px solid var(--line-sky-3, rgba(86,194,239,0.25)) !important; box-shadow: -20px 0 60px rgba(0, 0, 0, 0.55) !important; }
html:root body .ctms-drawer .ctms-head { border-bottom: 1px solid var(--line-white-2, rgba(255,255,255,0.08)) !important; }
html:root body .ctms-drawer .ctms-head h2 { color: #FFFFFF !important; }
html:root body .ctms-drawer.ctms-drawer { color: #FFFFFF !important; }
html:root body .ctms-drawer .ctms-head h2 svg { color: var(--ct-sky) !important; }
html:root body .ctms-drawer .ctms-close { background: var(--tint-white-1, rgba(255,255,255,0.05)) !important; border: 1px solid var(--line-white-3, rgba(255,255,255,0.12)) !important; color: rgba(255, 255, 255, 0.65) !important; }
html:root body .ctms-drawer .ctms-search { border-bottom: 1px solid var(--line-white-1, rgba(255,255,255,0.06)) !important; }
html:root body .ctms-drawer .ctms-search svg { color: rgba(255, 255, 255, 0.45) !important; }
html:root body .ctms-drawer .ctms-foot { border-top: 1px solid var(--line-white-2, rgba(255,255,255,0.08)) !important; color: rgba(255, 255, 255, 0.5) !important; }
html:root body .ctms-drawer .ctms-foot .ctms-kbd { background: rgba(0, 0, 0, 0.4) !important; border: 1px solid var(--line-white-4, rgba(255,255,255,0.15)) !important; color: rgba(255, 255, 255, 0.75) !important; }
} /* end @media screen — STYLE KIT · 18 */

/* ============================================================================
 * STYLE KIT · 20 — the legacy text tokens and inline greys become the kit inks (11/09).
 * tms-shell.css / clever-transco-3.0-home.css define --text-primary/-secondary/-muted as #050810/#4B5563/#6B7280
 * (dark: #F1F5F9 and white alphas; 3.0.css dark: rgba(226,240,250,.84)/rgba(196,220,238,.68)), and 49 spots carry
 * style="color:#4b5563" inline. The winners audit never saw either (it tests page <style> only). Niko 11/09: no grey
 * text in dark mode. This sheet loads last, so aliasing here wins everywhere.
 * ========================================================================== */
@media screen {
:root, :root[data-theme="light"], :root[data-theme="dark"] {
  --text-primary:   var(--t-ink);
  --text-secondary: var(--t-ink-2);
  --text-muted:     var(--t-ink-3);
}
html:root body [style*="color:#4b5563"], html:root body [style*="color: #4b5563"], html:root body [style*="color:#4B5563"],
html:root body [style*="color:#6b7280"], html:root body [style*="color: #6b7280"], html:root body [style*="color:#6B7280"],
html:root body [style*="color:#4a5a6e"], html:root body [style*="color: #4a5a6e"],
html:root body [style*="color:#5b6b7e"], html:root body [style*="color: #5b6b7e"],
html:root body [style*="color:#64748b"], html:root body [style*="color: #64748b"],
html:root body [style*="color:#9ca3af"], html:root body [style*="color: #9ca3af"],
html:root body [style*="color:#94a3b8"], html:root body [style*="color: #94a3b8"],
html:root body [style*="color:#3d4f63"], html:root body [style*="color: #3d4f63"],
html:root body [style*="color:#7a8999"], html:root body [style*="color: #7a8999"] { color: var(--t-ink-2) !important; }
} /* end @media screen — STYLE KIT · 20 */

/* ==========================================================================
 * STYLE KIT · 39b (11/12) — two last strays found on the real pages.
 * (1) Text links a page painted "color:inherit" (Idle Recovery trailer numbers, Insurance Watchlist carrier names) showed
 *     as plain ink with a dotted underline. A link is the kit link: blue, no underline. Only text links — an <a> that
 *     wraps a block (card, row, image) is left alone, and so are buttons, chips, pills and the nav.
 * (2) Card titles written as .head > h2 (Add Trailer 15px, Team Reminders / Saved Reports 13px) and .res-title > h2
 *     (Report Builder 16px) take the card-title standard: --fs-4, 800.
 * ========================================================================== */
@media screen {
html:root body a[style*="color:inherit"]:not([class*="btn"]):not([class*="chip"]):not([class*="pill"]):not(:has(div,section,table,img,svg,li,p)):not(:is(.topbar,.tabnav,nav,.ct-ph,[data-ct-raw]) *),
html:root body a[style*="color: inherit"]:not([class*="btn"]):not([class*="chip"]):not([class*="pill"]):not(:has(div,section,table,img,svg,li,p)):not(:is(.topbar,.tabnav,nav,.ct-ph,[data-ct-raw]) *) { color: var(--ct-info) !important; text-decoration: none !important; border-bottom: 0 !important; }
html:root body :is(.card, .panel) > .head > :is(h2, h3), html:root body .res-title > :is(h2, h3) {
  font-size: var(--fs-4) !important; font-weight: 800 !important; letter-spacing: -0.015em !important; text-transform: none !important; }
:root[data-theme="light"] body :is(.card, .panel) > .head > :is(h2, h3), :root:not([data-theme]) body :is(.card, .panel) > .head > :is(h2, h3),
:root[data-theme="light"] body .res-title > :is(h2, h3), :root:not([data-theme]) body .res-title > :is(h2, h3) { color: var(--ct-navy) !important; }
:root[data-theme="dark"] body :is(.card, .panel) > .head > :is(h2, h3), :root[data-theme="dark"] body .res-title > :is(h2, h3) { color: var(--t-ink) !important; }
/* (3) a link in a card head ("View pipeline →" on the CRM dashboard) showed as pale muted text: it is the kit link. */
html:root body .card-head > a:not([class*="btn"]):not([class*="chip"]) { color: var(--ct-info) !important; -webkit-text-fill-color: var(--ct-info) !important; font-weight: 600 !important; }
} /* end @media screen — STYLE KIT · 39b */

/* ==========================================================================
 * STYLE KIT · 41 (11/13) — a link inside a sentence is never underlined.
 * The kit link is blue, 600, no underline. A bare <a> in a paragraph or list item that no page rule had reached kept
 * the browser's own underline ("access audit trail" on API Keys & Webhooks was the one seen on a real page). Only bare
 * text links: anything with a class (buttons, chips, pills), a link that wraps a block, the nav and [data-ct-raw] are
 * left alone. Screen only, so a printed document keeps what it had.
 * ========================================================================== */
@media screen {
html:root body :is(p, li) > a:not([class]):not(:has(div,section,table,img,svg)):not(:is(.topbar,.tabnav,nav,.ct-ph,[data-ct-raw]) *) { text-decoration: none !important; }
} /* end @media screen — STYLE KIT · 41 */
