@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,900,100;1,9..144,900,100&family=Poppins:wght@400;500;600&display=swap');
/* =============================================================================
   Cross Hub theme layer  ·  /ch-theme.css  ·  v1 (5 Oct 2026)
   -----------------------------------------------------------------------------
   The official Cross Hub brand guidelines (cream ground, plum ink, bubblegum primary,
   five feature accents, Poppins + one Fraunces headline per screen) with the owner's
   "clean, not bold" override: white cards on cream, 1px plum-tint lines, radius 14-20,
   ONE hard offset shadow per screen (the hero card) plus primary buttons, thin chips,
   ~14px body, medium-weight titles, short labels.

   HOW A PAGE USES IT (classic pages; the reference page is /client.html)
     <html lang="en" data-ch-theme>                        (opt-in for the base styles)
     <script src="/auth-gate.js"></script>
     <link rel="stylesheet" href="/ch-theme.css">
     <script src="/ch-icons.js"></script>                    (window.CHIcon line icons)
   1  Tokens (--cht-*) are on :root for every medium (print too), so a page's own
      :root can point at them:  --ink: var(--cht-plum);  --line: var(--cht-line); ...
   2  Base styles apply only on screen and only under html[data-ch-theme]: the brand
      fonts (they beat crosshub.css's forced Schibsted Grotesk by specificity, no fight),
      plum ink on the cream ground, selection, focus ring, form accent colour.
   3  Components (.cht-*) work on any page that links this file, with or without the
      attribute: page bar, page head, cards, the one hero, buttons, inputs, tables,
      chips, status dots, count pills, tabs, segmented pills, sub-menu, key facts,
      empty states, notes, avatars, icons.
   4  Documents: wrap every client-facing document / print preview in .ch-doc (add the
      class, never rename). Inside it the base layer is undone (fonts go back to what
      crosshub.css gave before), so co-branded "CROSS HUB by FOUR CROSS MEDIA" output,
      reports, decks, letters and invoices look exactly as they did. Print styles are
      untouched: nothing in sections 2 and 4 applies to @media print.
   5  NEW pages (<html data-ch> + fcm-ds.css + the sidebar shell) opt in the same way, adding
      data-ch-theme next to data-ch. The fcm-ds tokens (--ink, --paper, --action, --font ...) are
      re-pointed at the Cross Hub palette INSIDE <main class="ch-main"> only, so the shared sidebar
      (ch-shell.js, another build) is untouched; fcm-ds parts (.ch-btn, .ch-card, .ch-chip ...)
      come out in the theme with no markup change. Primary = Bubblegum with plum text.
   NOTE  auth-gate.js re-skins colour literals and the word "Poppins" inside a page's
      own <style> blocks (window.fcmSkin). This file is a <link>, so it is never
      rewritten. In page <style> blocks use var(--cht-font) / var(--cht-display), never
      the font names, and use the --cht-* colours (the skin leaves var() alone).
   ============================================================================= */

/* ---- Cross Hub tokens: THE one set (CLARITY-SPEC 5.1, owner overrides 5-7). Every other token block
   (the legacy fcm-ds names below, --chui-*, --cht-* in ch-theme.css, crosshub.css) points at these. ---- */
:root{
  --ch-cream:#FFF9E9; --ch-white:#FFFFFF; --ch-plum:#5B1A42; --ch-plum-2:#845371; --ch-plum-deep:#3A1530;
  --ch-line:rgba(91,26,66,.12); --ch-line-strong:rgba(91,26,66,.24); --ch-line-soft:rgba(91,26,66,.07); --ch-wash:rgba(91,26,66,.06);
  --ch-bubblegum:#F9C6D4; --ch-bubblegum-hover:#FFB9D0; --ch-here:#FFE4ED;
  --ch-flamingo:#F6AEC2; --ch-butter:#FBF280; --ch-lilac:#C7B6F5; --ch-lime:#B8D94A; --ch-watermelon:#F6AEC2; --ch-sky:#D897DF; --ch-orchid:#D897DF; --ch-lilac-deep:#9B7FE0;
  --ch-flamingo-tint:#FFE2EB; --ch-butter-tint:#FFF2CC; --ch-lilac-tint:#EBE5FC; --ch-lime-tint:#EAF4C9; --ch-watermelon-tint:#FAD3DE; --ch-sky-tint:#F4DCF2; --ch-orchid-tint:#F4DCF2; --ch-lilac-pale:#F4F0FE;
  /* the department colours (simple Cross Hub Social, stage 0, 22 Oct 2026): 2 new soft tints (Mint = Video editing, Peach =
     Photography) and 2 brand-book shades (Flamingo #FF8AB0 = Design, Marigold #FFD255 = Sales); department colours fill the
     strip, the badge and the menu, the feature colours above stay on the small status chips */
  --ch-mint:#A8E0C8; --ch-mint-tint:#E2F5EC; --ch-peach:#FFC6A5; --ch-peach-tint:#FFEDE2; --ch-flamingo-book:#FF8AB0; --ch-flamingo-book-tint:#FFE0EA; --ch-marigold:#FFD255; --ch-marigold-tint:#FFF1C7;
  /* the colour meanings (owner, 6 Oct): lilac = posts/schedule, lime = live/results, butter = money,
     pink = needs you, pale lilac = scores, orchid = people (owner, 28 Oct 2026: blues became the purple tone; orchid #D897DF is pink-purple, so
     people stay apart from lilac posts; sky = orchid, deep lilac #9B7FE0 for small lines). Pastel fills only; plum is the one strong colour. */
  --ch-m-posts:#E6DDFB; --ch-m-live:#E9F3C6; --ch-m-money:#FFF0C2; --ch-m-needs:#FFDCE7; --ch-m-score:#F3EFFD; --ch-m-people:#F9D2F9;
  --ch-shadow:3px 3px 0 var(--ch-plum); --ch-shadow-hero:3px 3px 0 var(--ch-bubblegum);
  --ch-font:'Poppins',system-ui,-apple-system,'Segoe UI',sans-serif; --ch-display:'Fraunces',Georgia,serif;
  --ch-r-card:16px; --ch-r-hero:20px; --ch-r-input:12px; --ch-r-pop:12px; --ch-r-rail:12px; --ch-r-row:10px; --ch-r-pill:999px;
  --ch-s1:4px; --ch-s2:8px; --ch-s3:12px; --ch-s4:16px; --ch-s5:20px; --ch-s6:24px; --ch-s8:32px; --ch-s12:48px;
  --ch-rail-w:78px; --ch-sub-w:232px; --ch-panel-w:320px;
}

/* 1. Tokens ----------------------------------------------------------------- */
/* (clarity wave 1a: the --cht-* names below are kept for the pages that use them; they point at the one set above) */
:root {
  /* ground and ink */
  --cht-cream: var(--ch-cream);          /* Fresh Cream: the page */
  --cht-cream-2: #FCEEDA;        /* a deeper cream band */
  --cht-wash: #FFFAF3;           /* inside white cards: key facts, table heads, empty states */
  --cht-card: #FFFFFF;
  --cht-plum: var(--ch-plum);           /* Plum Jam: text, outlines, icons */
  --cht-plum-deep: #3A1530;
  --cht-ink: var(--ch-plum);
  --cht-ink-soft: #6E4A60;       /* secondary text (AA on white and cream) */
  --cht-ink-faint: #7E6274;      /* labels, hints, "Not set yet" (AA on white and cream) */
  --cht-line: var(--ch-line);
  --cht-line-strong: var(--ch-line-strong);
  --cht-hover: rgba(91, 26, 66, .045);
  /* Bubblegum: the signature, primary buttons, the selected item */
  --cht-bubble: var(--ch-bubblegum);
  --cht-bubble-soft: #FCE3EA;
  --cht-bubble-deep: #FFB3CC;
  /* the five feature accents (one leads per layout) */
  --cht-flamingo: #F6AEC2;  --cht-flamingo-soft: #FFE1EB;   /* wallet and account */
  --cht-butter: #FBF280;    --cht-butter-soft: #FDF8C0;     /* chat and pending */
  --cht-lilac: #C7B6F5;     --cht-lilac-soft: #ECE5FD;      /* approvals and info */
  --cht-lime: #B8D94A;      --cht-lime-soft: #E8F3C2;       /* live ads and success */
  --cht-melon: #F6AEC2;     --cht-melon-soft: #FFE0E8;      /* needs action (text on it only when large) */
  /* small status text, only where a word alone must carry the colour */
  --cht-good: #1F6B45;
  --cht-bad: #A3243F;
  /* type */
  --cht-font: var(--ch-font);
  --cht-display: var(--ch-display);   /* ONE headline per screen, 24px and up */
  --cht-mono: var(--ch-font);   /* two fonts only (owner override 7) */
  --cht-fs-xs: 12px;     /* chips, table heads, hints */
  --cht-fs-sm: 13px;     /* labels, sub-lines */
  --cht-fs: 14px;        /* body */
  --cht-fs-md: 16px;     /* card titles */
  --cht-fs-lg: 18px;
  --cht-fs-title: 22px;  /* page title (Poppins, medium weight) */
  --cht-fs-display: 30px;/* the one Fraunces headline */
  --cht-w-body: 400;
  --cht-w-medium: 500;
  --cht-w-strong: 600;
  --cht-w-display: 900;
  /* space, radius, line, the one shadow */
  --cht-s1: 4px; --cht-s2: 8px; --cht-s3: 12px; --cht-s4: 16px; --cht-s5: 20px; --cht-s6: 24px; --cht-s8: 32px; --cht-s10: 40px;
  --cht-r-sm: 10px;
  --cht-r: 14px;
  --cht-r-lg: 18px;
  --cht-r-xl: 20px;
  --cht-r-pill: 999px;
  --cht-shadow-hero: var(--ch-shadow-hero);   /* the ONE hero card per screen */
  --cht-shadow-btn: var(--ch-shadow);    /* primary buttons */
  --cht-focus: 0 0 0 3px rgba(255, 138, 176, .45);
}

/* 2. Base (screen only, opt-in with <html data-ch-theme>) ------------------- */
@media screen {
  html[data-ch-theme] {
    /* crosshub.css forces var(--ch-sans) on body and var(--ch-round) on h1-h6 (!important):
       pointing those two at Poppins switches the whole page without an !important fight */
    --ch-sans: var(--cht-font);
    --ch-round: var(--cht-font);
    background: var(--cht-cream);
    color-scheme: light;
  }
  html[data-ch-theme]:not([data-ch]) body {
    font-family: var(--cht-font) !important;
    color: var(--cht-ink);
    background-color: var(--cht-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  html[data-ch-theme]:not([data-ch]) :is(h1, h2, h3, h4, h5, h6):not(.ch-doc *) { letter-spacing: -.005em; }
  html[data-ch-theme] :is(input, select, textarea, button):not(.ch-doc *) { font-family: inherit; }
  html[data-ch-theme] ::selection { background: var(--cht-bubble); color: var(--cht-plum); }
  html[data-ch-theme] :focus-visible { outline: 2px solid var(--cht-flamingo); outline-offset: 2px; }
  html[data-ch-theme] :is(input[type=checkbox], input[type=radio], input[type=range], progress) { accent-color: var(--cht-plum); }

  /* 4. Documents keep their own look: the base layer is undone inside .ch-doc */
  html[data-ch-theme] .ch-doc {
    --ch-sans: var(--ch-font);
    --ch-round: var(--ch-font);
    font-family: var(--ch-sans);
    letter-spacing: normal;
  }
  html[data-ch-theme] .ch-doc ::selection { background: #F8DDE5; color: #2A1A1D; }
}

/* 5. New pages: fcm-ds tokens re-pointed inside .ch-main (screen only) ---------- */
@media screen {
  html[data-ch][data-ch-theme] body { background: var(--cht-cream); }
  html[data-ch-theme] .ch-main {
    --ink: var(--cht-plum); --ink-soft: var(--cht-ink-soft); --ink-faint: var(--cht-ink-faint);
    --paper: var(--cht-cream); --paper-2: var(--cht-wash); --card: #FFFFFF; --line: var(--cht-line-strong); --line-soft: var(--cht-line);
    --brand-pink: var(--cht-bubble); --brand-yellow: var(--cht-butter); --brand-yellow-2: var(--cht-butter-soft);
    --action: var(--cht-bubble); --action-ink: var(--cht-plum); --action-hover: var(--cht-bubble-deep); --action-text: var(--cht-plum); --action-soft: var(--cht-bubble-soft);
    --attention: var(--cht-butter); --attention-soft: var(--cht-butter-soft); --attention-pale: #FFF8E1; --attention-ink: var(--cht-plum);
    --good: var(--cht-good); --good-soft: var(--cht-lime-soft); --danger: var(--cht-bad);
    --shadow-1: none; --shadow-2: none;
    --font: var(--cht-font);
    font-family: var(--cht-font); color: var(--cht-ink);
  }
  html[data-ch-theme] .ch-main .ch-page-title { font-weight: var(--cht-w-strong); font-size: 26px; line-height: 1.2; }
  html[data-ch-theme] .ch-main :is(.ch-h2, .ch-h3, .ch-card-title) { font-weight: var(--cht-w-strong); }
  html[data-ch-theme] .ch-main :is(.ch-eyebrow, .ch-label) { font-weight: var(--cht-w-medium); font-size: 12px; text-transform: none; letter-spacing: .01em; color: var(--cht-ink-faint); }
  html[data-ch-theme] .ch-main .ch-page-sub { font-size: var(--cht-fs); }
  html[data-ch-theme] .ch-main .ch-btn { font-weight: var(--cht-w-medium); min-height: 40px; }
  html[data-ch-theme] .ch-main .ch-btn--primary { border: 1.5px solid var(--cht-plum); box-shadow: var(--cht-shadow-btn); font-weight: var(--cht-w-strong); }
  html[data-ch-theme] .ch-main .ch-btn--primary:active { box-shadow: 0 0 0 var(--cht-plum); transform: translate(3px, 3px); }
  html[data-ch-theme] .ch-main .ch-btn--ghost { border-color: var(--cht-line-strong); }
  html[data-ch-theme] .ch-main .ch-btn--ghost:hover { background: var(--cht-wash); color: var(--cht-plum); border-color: var(--cht-plum); }
  html[data-ch-theme] .ch-main :is(.ch-chip, .ch-count) { font-weight: var(--cht-w-medium); }
  html[data-ch-theme] .ch-main .ch-link { color: var(--cht-plum); font-weight: var(--cht-w-medium); }
  /* a document inside a new page keeps the fcm-ds look it had (the values fcm-ds.css sets on :root) */
  html[data-ch-theme] .ch-main .ch-doc {
    --ink: #2A1A1D; --ink-soft: #5B4548; --ink-faint: #94818A; --paper: #FBF4E4; --paper-2: #F5EBD1; --card: #FFFFFF; --line: #E7DBC4; --line-soft: #EFE6D0;
    --brand-pink: #DB7491; --brand-yellow: #FFE16C; --brand-yellow-2: #FFEDA6;
    --action: #DB7491; --action-ink: #FFFFFF; --action-hover: #C9607F; --action-text: #B5476A; --action-soft: #F8DDE5;
    --attention: #FFE16C; --attention-soft: #FFEDA6; --attention-pale: #FFF6D2; --attention-ink: #6B4D08;
    --good: #3E7A5A; --good-soft: #DDEBD9; --danger: #B2374A;
    --shadow-1: 0 1px 2px rgba(42,26,29,.06), 0 2px 6px rgba(42,26,29,.04); --shadow-2: 0 4px 12px rgba(42,26,29,.08), 0 12px 40px rgba(42,26,29,.06);
    --font: var(--ch-font);
    font-family: var(--font); color: var(--ink);
  }
}

/* 3. Components -------------------------------------------------------------- */
/* icons (CHIcon output) */
.cht-ic { display: inline-block; width: 18px; height: 18px; flex: 0 0 auto; vertical-align: -3px; stroke: currentColor; }
.cht-ic--sm { width: 16px; height: 16px; }
.cht-ic--lg { width: 22px; height: 22px; }

/* page frame: a calm content column, a slim bar (back link + where you are) instead of the old FCM header */
.cht-page { max-width: 1120px; margin: 0 auto; padding: 18px 24px 80px; }
.cht-top { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 0 0 14px; font-size: var(--cht-fs-sm); color: var(--cht-ink-faint); }
.cht-top .cht-crumb { font-weight: var(--cht-w-medium); color: var(--cht-ink-soft); }
.cht-top .cht-crumb::before { content: ''; display: inline-block; width: 1px; height: 14px; margin: 0 10px 0 0; vertical-align: -2px; background: var(--cht-line-strong); }
.cht-top .cht-top-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cht-back { display: inline-flex; align-items: center; gap: 6px; color: var(--cht-ink-soft); font-size: var(--cht-fs-sm); font-weight: var(--cht-w-medium); text-decoration: none; border-radius: var(--cht-r-pill); padding: 4px 10px 4px 6px; margin-left: -6px; }
.cht-back:hover { background: var(--cht-hover); color: var(--cht-plum); }
/* the Cross Hub logo shows here only on phones, where the rail turns into a bottom bar and has no logo */
.cht-applogo { display: none; height: 34px; width: auto; flex: 0 0 auto; object-fit: contain; }
@media screen and (max-width: 760px) {
  html[data-ch-rail] .cht-applogo { display: block; }
  html[data-ch-rail] .cht-top .cht-crumb::before { display: none; }
  .cht-page { padding: 12px 16px 96px; }
}

/* page head: medium-weight title, one short line, one primary action top-right.
   (font-family is !important on these three because crosshub.css forces a font on h1-h6 with !important) */
.cht-pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 0 0 20px; }
.cht-title { margin: 0; font: var(--cht-w-strong) var(--cht-fs-title)/1.25 var(--cht-font); font-family: var(--cht-font) !important; color: var(--cht-plum); letter-spacing: -.01em; }
.cht-display { margin: 0; font-family: var(--cht-display) !important; font-weight: var(--cht-w-display); font-variation-settings: 'SOFT' 100, 'opsz' 96; font-size: var(--cht-fs-display); line-height: 1.08; letter-spacing: -.01em; color: var(--cht-plum); }
.cht-sub { margin: 4px 0 0; font-size: var(--cht-fs-sm); line-height: 1.5; color: var(--cht-ink-soft); }
.cht-eyebrow { margin: 0 0 4px; font-size: var(--cht-fs-xs); font-weight: var(--cht-w-medium); color: var(--cht-ink-faint); letter-spacing: .01em; }
.cht-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media screen and (max-width: 600px) { .cht-display { font-size: 26px; } .cht-title { font-size: 20px; } }

/* cards: white on cream, 1px plum-tint line, no shadow */
.cht-card { background: var(--cht-card); border: 1px solid var(--cht-line); border-radius: var(--cht-r-lg); padding: 20px 22px; margin: 0 0 16px; color: var(--cht-ink); }
.cht-card-title { margin: 0; font: var(--cht-w-strong) var(--cht-fs-md)/1.35 var(--cht-font); font-family: var(--cht-font) !important; color: var(--cht-plum); }
.cht-card-sub { margin: 3px 0 14px; font-size: var(--cht-fs-sm); line-height: 1.5; color: var(--cht-ink-soft); }
.cht-card--flat { background: var(--cht-wash); }
/* the ONE hero card per screen: a plum outline and the hard offset shadow */
.cht-hero { background: var(--cht-card); border: 1.5px solid var(--cht-plum); border-radius: var(--cht-r-xl); box-shadow: var(--cht-shadow-hero); padding: 20px 24px; margin: 0 4px 22px 0; color: var(--cht-ink); }
.cht-hero--plum { background: var(--cht-plum); color: var(--cht-cream); box-shadow: 4px 4px 0 var(--cht-bubble); }
.cht-hero--plum :is(.cht-display, .cht-title, .cht-card-title) { color: var(--cht-cream); }
.cht-hero--plum :is(.cht-sub, .cht-eyebrow) { color: var(--cht-bubble); }

/* buttons: pills. Primary = Bubblegum with the hard shadow; everything else stays quiet */
.cht-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 16px; border: 1px solid var(--cht-line-strong); border-radius: var(--cht-r-pill); background: var(--cht-card); color: var(--cht-plum); font: var(--cht-w-medium) var(--cht-fs)/1 var(--cht-font); text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: none; transition: background-color .12s ease, box-shadow .12s ease, transform .12s ease; }
.cht-btn:hover { background: var(--cht-wash); border-color: var(--cht-plum); }
.cht-btn:disabled, .cht-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.cht-btn--primary { background: var(--cht-bubble); border: 1.5px solid var(--cht-plum); box-shadow: var(--cht-shadow-btn); font-weight: var(--cht-w-strong); }
.cht-btn--primary:hover { background: var(--cht-bubble-deep); }
.cht-btn--primary:active { box-shadow: 0 0 0 var(--cht-plum); transform: translate(3px, 3px); }
.cht-btn--ghost { background: transparent; border-color: transparent; }
.cht-btn--ghost:hover { background: var(--cht-hover); border-color: transparent; }
.cht-btn--dark { background: var(--cht-plum); border-color: var(--cht-plum); color: var(--cht-cream); }
.cht-btn--dark:hover { background: var(--cht-plum-deep); }
.cht-btn--danger { color: var(--cht-bad); }
.cht-btn--danger:hover { background: var(--cht-melon-soft); border-color: var(--cht-bad); }
.cht-btn--sm { min-height: 32px; padding: 0 12px; font-size: var(--cht-fs-sm); }
.cht-btn--primary.cht-btn--sm { box-shadow: 2px 2px 0 var(--cht-plum); }
.cht-btn--primary.cht-btn--sm:active { transform: translate(2px, 2px); }
.cht-iconbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid transparent; border-radius: var(--cht-r-pill); background: transparent; color: var(--cht-plum); cursor: pointer; }
.cht-iconbtn:hover { background: var(--cht-hover); }

/* inputs */
.cht-label { display: block; margin: 0 0 6px; font-size: var(--cht-fs-sm); font-weight: var(--cht-w-medium); color: var(--cht-plum); }
.cht-input, .cht-select, .cht-textarea { width: 100%; min-height: 40px; padding: 9px 12px; border: 1px solid var(--cht-line-strong); border-radius: 12px; background: var(--cht-card); color: var(--cht-plum); font: var(--cht-w-body) var(--cht-fs)/1.4 var(--cht-font); outline: none; transition: border-color .12s ease, box-shadow .12s ease; }
.cht-textarea { min-height: 96px; resize: vertical; }
.cht-input::placeholder, .cht-textarea::placeholder { color: var(--cht-ink-faint); opacity: 1; }
.cht-input:focus, .cht-select:focus, .cht-textarea:focus { border-color: var(--cht-plum); box-shadow: var(--cht-focus); }
.cht-help { margin: 5px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--cht-ink-soft); }

/* tables: the tracker's plum header bar (owner, 12 Oct 2026), thin row lines, numbers right-aligned, a Total row */
.cht-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--cht-fs); color: var(--cht-ink); background: var(--cht-card); border: 1px solid var(--cht-line); border-radius: var(--cht-r); overflow: hidden; }
.cht-table th { padding: 10px 14px; text-align: left; font: 600 12px/1.2 var(--ch-font); font-variant: all-small-caps; letter-spacing: .06em; color: var(--ch-cream); background: var(--ch-plum); border-bottom: 1px solid var(--cht-line); white-space: nowrap; }
.cht-table td { padding: 11px 14px; border-bottom: 1px solid var(--cht-line); vertical-align: middle; }
.cht-table tbody tr:last-child td { border-bottom: 0; }
.cht-table tbody tr:hover td { background: var(--cht-hover); }
.cht-table :is(th, td).cht-num, .cht-num { text-align: right; font-variant-numeric: tabular-nums; }
.cht-table tfoot td, .cht-table tr.cht-total td { font-weight: var(--cht-w-strong); background: var(--cht-wash); border-top: 1px solid var(--cht-line-strong); border-bottom: 0; }

/* chips: thin outline, soft fill, plum text (never white text on an accent) */
.cht-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--cht-line); border-radius: var(--cht-r-pill); background: var(--cht-card); color: var(--cht-plum); font: var(--cht-w-medium) var(--cht-fs-xs)/1.5 var(--cht-font); white-space: nowrap; text-decoration: none; }
a.cht-chip:hover, button.cht-chip:hover { border-color: var(--cht-plum); cursor: pointer; }
.cht-chip--live, .cht-chip--good { background: var(--cht-lime-soft); border-color: rgba(122, 150, 30, .35); }
.cht-chip--pending, .cht-chip--chat { background: var(--cht-butter-soft); border-color: rgba(196, 150, 20, .35); }
.cht-chip--approved, .cht-chip--info { background: var(--cht-lilac-soft); border-color: rgba(120, 96, 200, .30); }
.cht-chip--needs { background: var(--cht-melon-soft); border-color: rgba(255, 92, 138, .40); }
.cht-chip--wallet { background: var(--cht-flamingo-soft); border-color: rgba(255, 138, 176, .45); }
.cht-chip--brand { background: var(--cht-bubble-soft); border-color: rgba(255, 138, 176, .40); }
.cht-chip--draft, .cht-chip--muted { background: var(--cht-card); color: var(--cht-ink-soft); }
.cht-chip.is-on, .cht-chip[aria-pressed="true"] { background: var(--cht-bubble); border-color: var(--cht-plum); }

/* status: a dot plus a word */
.cht-status { display: inline-flex; align-items: center; gap: 7px; font-size: var(--cht-fs-sm); font-weight: var(--cht-w-medium); color: var(--cht-plum); }
.cht-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; background: var(--cht-ink-faint); box-shadow: 0 0 0 1px rgba(91, 26, 66, .18); }
.cht-dot--live, .cht-dot--good { background: var(--cht-lime); }
.cht-dot--pending { background: var(--cht-butter); }
.cht-dot--approved, .cht-dot--info { background: var(--cht-lilac); }
.cht-dot--needs, .cht-dot--bad { background: var(--cht-melon); }
.cht-dot--wallet { background: var(--cht-flamingo); }
.cht-dot--off { background: #D9CBD3; }
/* small grey count pill */
.cht-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--cht-r-pill); background: var(--cht-hover); color: var(--cht-ink-soft); font: var(--cht-w-medium) 11.5px/1 var(--cht-font); font-variant-numeric: tabular-nums; }
.cht-count--needs { background: var(--cht-melon-soft); color: var(--cht-plum); }

/* top tabs: underline on the active one */
.cht-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--cht-line); margin: 0 0 18px; overflow-x: auto; scrollbar-width: none; }
.cht-tabs::-webkit-scrollbar { display: none; }
.cht-tabs > :is(a, button) { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px 11px; border: 0; background: none; color: var(--cht-ink-soft); font: var(--cht-w-medium) var(--cht-fs)/1 var(--cht-font); white-space: nowrap; text-decoration: none; cursor: pointer; }
.cht-tabs > :is(a, button):hover { color: var(--cht-plum); }
.cht-tabs > :is(.is-on, .on, [aria-selected="true"], [aria-current="page"]) { color: var(--cht-plum); font-weight: var(--cht-w-strong); }
.cht-tabs > :is(.is-on, .on, [aria-selected="true"], [aria-current="page"])::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--cht-plum); }

/* segmented pills (filters: All / Mine / ...) */
.cht-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--cht-line); border-radius: var(--cht-r-pill); background: var(--cht-card); }
.cht-seg > :is(a, button) { padding: 6px 14px; border: 0; border-radius: var(--cht-r-pill); background: none; color: var(--cht-ink-soft); font: var(--cht-w-medium) var(--cht-fs-sm)/1.2 var(--cht-font); cursor: pointer; text-decoration: none; white-space: nowrap; }
.cht-seg > :is(a, button):hover { color: var(--cht-plum); background: var(--cht-hover); }
.cht-seg > :is(.is-on, .on, [aria-pressed="true"], [aria-checked="true"]) { background: var(--cht-bubble); color: var(--cht-plum); }

/* sub-menu (a section's own list: icon + one or two words) */
.cht-subnav { display: flex; flex-direction: column; gap: 2px; padding: 8px; background: var(--cht-card); border: 1px solid var(--cht-line); border-radius: var(--cht-r-lg); }
.cht-subnav-item { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border-radius: 12px; color: var(--cht-ink-soft); font: var(--cht-w-medium) var(--cht-fs)/1.2 var(--cht-font); text-decoration: none; white-space: nowrap; cursor: pointer; border: 0; background: none; text-align: left; }
.cht-subnav-item .cht-ic { color: var(--cht-ink-faint); }
.cht-subnav-item:hover { background: var(--cht-hover); color: var(--cht-plum); }
.cht-subnav-item:hover .cht-ic { color: var(--cht-plum); }
.cht-subnav-item:is(.is-on, .on, [aria-current="page"], [aria-selected="true"]) { background: var(--cht-bubble-soft); color: var(--cht-plum); font-weight: var(--cht-w-strong); }
.cht-subnav-item:is(.is-on, .on, [aria-current="page"], [aria-selected="true"]) .cht-ic { color: var(--cht-plum); }
.cht-subnav-item .cht-count { margin-left: auto; }
@media screen and (max-width: 800px) {
  .cht-subnav { flex-direction: row; overflow-x: auto; padding: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cht-subnav::-webkit-scrollbar { display: none; }
  .cht-subnav-item { flex: 0 0 auto; min-height: 36px; padding: 7px 12px; }
}

/* key facts: label over value; an unset value reads calmly */
.cht-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
@media screen and (max-width: 560px) { .cht-kv { grid-template-columns: 1fr; } }
.cht-kv-item { padding: 12px 14px; border: 1px solid var(--cht-line); border-radius: var(--cht-r); background: var(--cht-wash); min-width: 0; }
.cht-kv-k { margin: 0 0 4px; font-size: var(--cht-fs-xs); font-weight: var(--cht-w-medium); color: var(--cht-ink-faint); }
.cht-kv-v { font-size: var(--cht-fs); font-weight: var(--cht-w-medium); line-height: 1.5; color: var(--cht-plum); word-break: break-word; }
.cht-kv-v.is-empty { font-weight: var(--cht-w-body); color: var(--cht-ink-faint); }

/* empty and zero states: plain and honest */
.cht-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 18px; text-align: center; font-size: var(--cht-fs); line-height: 1.55; color: var(--cht-ink-soft); background: var(--cht-wash); border: 1px solid var(--cht-line); border-radius: var(--cht-r-lg); }
.cht-empty-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--cht-bubble-soft); color: var(--cht-plum); }
.cht-empty-title { font-weight: var(--cht-w-strong); color: var(--cht-plum); }
.cht-empty a, .cht-link { color: var(--cht-plum); font-weight: var(--cht-w-medium); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* notes: one soft tint, a thin tinted line, plum text */
.cht-note { padding: 12px 14px; border-radius: var(--cht-r); font-size: var(--cht-fs-sm); line-height: 1.55; color: var(--cht-plum); background: var(--cht-lilac-soft); border: 1px solid rgba(120, 96, 200, .25); }
.cht-note--pending { background: var(--cht-butter-soft); border-color: rgba(196, 150, 20, .30); }
.cht-note--needs { background: var(--cht-melon-soft); border-color: rgba(255, 92, 138, .35); }
.cht-note--good { background: var(--cht-lime-soft); border-color: rgba(122, 150, 30, .30); }

/* avatars: a soft accent disc with plum initials (never white text on an accent) */
.cht-avatar { display: inline-grid; place-items: center; flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px; overflow: hidden; background: var(--cht-bubble); color: var(--cht-plum); border: 1px solid var(--cht-line); font: var(--cht-w-strong) 20px/1 var(--cht-font); }
.cht-avatar img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cht-avatar--sm { width: 32px; height: 32px; border-radius: 10px; font-size: 12.5px; }
.cht-avatar--lg { width: 72px; height: 72px; border-radius: 18px; font-size: 26px; }

/* small helpers */
.cht-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cht-muted { color: var(--cht-ink-soft); }
.cht-faint { color: var(--cht-ink-faint); }
.cht-hr { height: 1px; border: 0; margin: 16px 0; background: var(--cht-line); }
.cht-info { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--cht-line-strong); color: var(--cht-ink-soft); font: 600 10px/1 var(--cht-font); cursor: help; vertical-align: 1px; }

@media (prefers-reduced-motion: reduce) {
  .cht-btn, .cht-input, .cht-select, .cht-textarea { transition: none; }
  .cht-btn--primary:active { transform: none; }
}

/* 6. THE SHARED KIT (clarity wave 1a, 6 Oct 2026) ---------------------------------------------------------
   One look for every page, built by ch-ui.js (CHUI.table / boxes / stat / cpill / state / add / drawer /
   info / sectionHead / dot / clientPanel) or written as plain markup with these classes.
   Owner overrides: tables look like the Live tracker (tracker.html), boxes like Today's Clients grid and
   Team tiles, colour carries meaning (lilac = posts, lime = live, butter = money, pink = needs you,
   pale lilac = scores, orchid = people; owner, 28 Oct 2026: blues became the purple tone), clean not bold: thin plum-tint lines, no shadows here.
   ----------------------------------------------------------------------------------------------------- */
/* tables: the tracker's table card (a plum header bar, roomy rows, bold plum names, outlined pills) */
/* every app page's table header row = the same plum header bar (owner, 12 Oct 2026: "tracker.html-style tables"). The pages
   that still drew a cream or wash header row (access, action tracker, admin, shoots, topicals, wishes, ui-kit ...) get it here,
   on screen only, on pages with the Cross Hub sidebar (html[data-ch-rail] / a client's html[data-ch-cside]). Body rows, row
   headers inside tbody, documents, slides and the mini calendars are untouched; .w2-plain / .plain opt a table out. */
@media screen {
  html:is([data-ch-rail], [data-ch-cside]) table:not(.ch-table):not(.w2-plain):not(.plain):not(.ch-mini):not(.ch-doc table):not(.page-doc table):not(.slide table):not(.ch-week table) > thead > tr > th {
    background: var(--ch-plum, #5B1A42); color: var(--ch-cream, #FFF9E9); font: 600 12px/1.2 var(--ch-font, 'Poppins', sans-serif);
    font-variant: all-small-caps; letter-spacing: .06em; text-transform: none; border-color: transparent; }
  html:is([data-ch-rail], [data-ch-cside]) table:not(.ch-table):not(.w2-plain):not(.plain):not(.ch-mini):not(.ch-doc table):not(.page-doc table):not(.slide table):not(.ch-week table) > thead > tr > th :is(a, button, label, span, small, b, strong, em, i, div):not([class*="pill"]):not([class*="badge"]):not([class*="tag"]):not([class*="chip"]) { color: inherit; }
}
.ch-tcard { background: #fff; border: 1px solid var(--ch-line-strong); border-radius: 20px; overflow: hidden; margin: 0 0 20px; min-width: 0; color: var(--ch-plum); font-family: var(--ch-font); }
.ch-tcard-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 16px 20px 12px; }
.ch-tcard-h h2, .ch-tcard-h h3 { margin: 0; font: 600 16px/1.3 var(--ch-font); font-family: var(--ch-font) !important; color: var(--ch-plum); }
.ch-tcard-h .ch-tcard-meta { font: 500 13px/1.3 var(--ch-font); color: var(--ch-plum-2); }
.ch-tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.ch-table { width: 100%; border-collapse: collapse; font: 400 14px/1.45 var(--ch-font); color: var(--ch-plum); font-variant-numeric: tabular-nums; }
.ch-table thead th { position: sticky; top: 0; background: var(--ch-plum); color: var(--ch-cream); font: 600 12px/1.2 var(--ch-font); font-variant: all-small-caps; letter-spacing: .06em; text-align: left; padding: 12px 16px; white-space: nowrap; }
.ch-table td { padding: 14px 16px; border-top: 1px solid var(--ch-line-soft); vertical-align: middle; }
.ch-table tbody tr:first-child td { border-top: 0; }
.ch-table tbody tr:nth-child(even) td { background: #FFFCF6; }
.ch-table tbody tr:hover td { background: #FFFAF3; }
.ch-table tbody tr.is-on td { background: var(--ch-here); }
.ch-table tbody tr[data-href], .ch-table tbody tr.is-link { cursor: pointer; }
.ch-table .num, .ch-table th.num { text-align: right; }
.ch-table .nil { color: var(--ch-plum-2); }
.ch-table .ch-tname { font-weight: 600; font-size: 15px; color: var(--ch-plum); text-decoration: none; overflow-wrap: anywhere; }
.ch-table a.ch-tname:hover { text-decoration: underline; text-underline-offset: 3px; }
.ch-table .ch-tsub { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ch-plum-2); }
.ch-table tfoot td { font-weight: 600; border-top: 1px solid var(--ch-line-strong); background: #fff; }
.ch-tlogo { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; vertical-align: middle; margin-right: 10px; background: var(--ch-butter-tint); color: var(--ch-plum); font: 600 11px/1 var(--ch-font); overflow: hidden; }
.ch-tlogo img { width: 100%; height: 100%; object-fit: cover; }
.ch-tier { display: inline-block; margin-left: 6px; vertical-align: 1px; font: 600 11px/1 var(--ch-font); padding: 4px 8px; border-radius: 999px; border: 1px solid var(--ch-plum); background: #fff; color: var(--ch-plum); }
.ch-tier--gold { background: var(--ch-butter-tint); } .ch-tier--silver { background: var(--ch-wash); } .ch-tier--bronze { background: var(--ch-flamingo-tint); }
.ch-prog { font: 600 13.5px/1.3 var(--ch-font); margin: 0 0 6px; }
.ch-bar { position: relative; height: 8px; border-radius: 999px; background: var(--ch-wash); overflow: hidden; max-width: 320px; }
.ch-bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--ch-lime); }
.ch-bar.is-behind > i { background: var(--ch-butter); } .ch-bar.is-risk > i { background: var(--ch-watermelon); }
.ch-tempty { padding: 32px 16px; text-align: center; color: var(--ch-plum-2); }
@media (max-width: 760px) { .ch-table [data-pri="2"] { display: none; } .ch-table td, .ch-table thead th { padding: 11px 12px; font-size: 13px; } .ch-tcard-h { padding: 14px 16px 10px; } }

/* count pills: outlined, coloured by meaning; the urgent one is plum with a watermelon ring */
.ch-cpill { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--ch-plum); background: #fff; color: var(--ch-plum); font: 600 12px/1 var(--ch-font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ch-cpill--posts { background: var(--ch-m-posts); } .ch-cpill--live { background: var(--ch-m-live); } .ch-cpill--money { background: var(--ch-m-money); }
.ch-cpill--needs { background: var(--ch-m-needs); } .ch-cpill--score { background: var(--ch-m-score); } .ch-cpill--people { background: var(--ch-m-people); }
.ch-cpill--grey { border-color: transparent; background: var(--ch-wash); color: var(--ch-plum-2); }
.ch-cpill--urgent { background: var(--ch-plum); color: var(--ch-cream); border: 2px solid var(--ch-watermelon); }
.ch-cpill-row { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1px solid var(--ch-line-strong); background: #fff; font: 500 14px/1.2 var(--ch-font); color: var(--ch-plum); text-decoration: none; }
.ch-cpill-row .ch-cpill { min-width: 28px; height: 28px; font-size: 13px; }

/* status: a dot plus a word (the dot has a 1px plum ring so it never rests on colour alone) */
.ch-sdot { display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1.3 var(--ch-font); color: var(--ch-plum); white-space: nowrap; }
.ch-sdot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; background: #fff; box-shadow: 0 0 0 1px var(--ch-plum); }
.ch-sdot--live::before { background: var(--ch-lime); } .ch-sdot--wait::before { background: var(--ch-butter); } .ch-sdot--info::before { background: var(--ch-lilac); }
.ch-sdot--needs::before { background: var(--ch-watermelon); } .ch-sdot--money::before { background: var(--ch-flamingo); } .ch-sdot--off::before { background: rgba(91,26,66,.25); }

/* boxes: Today's Clients grid and the Everything launcher (pastel fill, a small kicker, a Fraunces name, one line, Open) */
.ch-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.ch-box { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 140px; border-radius: 20px; padding: 16px 18px; color: var(--ch-plum); background: #fff; border: 1px solid transparent; text-decoration: none; font-family: var(--ch-font); text-align: left; cursor: pointer; transition: border-color .15s ease; }
a.ch-box:hover, button.ch-box:hover { border-color: var(--ch-plum); }
button.ch-box { font: inherit; width: 100%; }
.ch-box-k { font: 500 12px/1.3 var(--ch-font); color: var(--ch-plum-2); }
.ch-box-n { font-family: var(--ch-display) !important; font-weight: 900; font-variation-settings: 'SOFT' 100, 'opsz' 48; font-size: 22px; line-height: 1.1; letter-spacing: -.005em; overflow-wrap: anywhere; color: var(--ch-plum); margin: 0; }
.ch-box-t { font: 400 13px/1.45 var(--ch-font); color: var(--ch-plum-2); margin: 0; }
.ch-box-go { margin-top: auto; padding-top: 6px; font: 600 12px/1 var(--ch-font); color: var(--ch-plum); }
.ch-box .ch-cpill { position: absolute; top: 12px; right: 12px; }
.ch-box--posts { background: var(--ch-m-posts); } .ch-box--live { background: var(--ch-m-live); } .ch-box--money { background: var(--ch-m-money); }
.ch-box--needs { background: var(--ch-m-needs); } .ch-box--score { background: var(--ch-m-score); } .ch-box--people { background: var(--ch-m-people); }
.ch-box--plain { background: #fff; border-color: var(--ch-line); }
/* the ONE dark plum feature cell of a grid ("Brief me on a client") */
.ch-box--feature { background: var(--ch-plum); color: var(--ch-cream); }
.ch-box--feature .ch-box-n, .ch-box--feature .ch-box-go { color: var(--ch-cream); } .ch-box--feature .ch-box-k, .ch-box--feature .ch-box-t { color: var(--ch-bubblegum); }
a.ch-box--feature:hover, button.ch-box--feature:hover { border-color: var(--ch-bubblegum); }
.ch-box-ring { position: absolute; top: 14px; right: 14px; }
@media (max-width: 760px) { .ch-boxes { grid-template-columns: 1fr 1fr; gap: 10px; } .ch-box { min-height: 120px; padding: 13px 14px; border-radius: 18px; } .ch-box-n { font-size: 18px; } }

/* stat tiles: the Team tiles of Today (a filled pastel tile: icon circle, a big number, the label, one sentence) */
.ch-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0 0 20px; }
.ch-stat { display: flex; flex-direction: column; gap: 8px; min-width: 0; border-radius: 20px; padding: 18px 20px; background: #fff; border: 1px solid transparent; color: var(--ch-plum); text-decoration: none; font-family: var(--ch-font); }
a.ch-stat:hover { border-color: var(--ch-plum); }
.ch-stat-top { display: flex; align-items: center; gap: 12px; }
.ch-stat-ic { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; color: var(--ch-plum); }
.ch-stat-v { font: 600 32px/1.05 var(--ch-font); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ch-stat-l { font: 600 14px/1.3 var(--ch-font); }
.ch-stat-t { margin: 0; font: 400 13px/1.45 var(--ch-font); color: var(--ch-plum-2); }
.ch-stat-go { margin-top: auto; font: 600 12px/1 var(--ch-font); }
.ch-stat--posts { background: var(--ch-m-posts); } .ch-stat--live { background: var(--ch-m-live); } .ch-stat--money { background: var(--ch-m-money); }
.ch-stat--needs { background: var(--ch-m-needs); } .ch-stat--score { background: var(--ch-m-score); } .ch-stat--people { background: var(--ch-m-people); }
.ch-stat--plain { border-color: var(--ch-line); }
.ch-stat--big .ch-stat-v { font-size: 64px; line-height: 1; font-family: var(--ch-display); font-weight: 900; font-variation-settings: 'SOFT' 100, 'opsz' 144; }
@media (max-width: 760px) { .ch-stats { grid-template-columns: 1fr 1fr; gap: 10px; } .ch-stat { padding: 14px; } .ch-stat-v { font-size: 26px; } .ch-stat-t { display: none; } }

/* the section heading (an icon circle, a Fraunces name, one line; an optional link on the right) */
.ch-sechead { display: flex; align-items: center; gap: 12px; margin: 28px 0 12px; }
.ch-sechead-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #fff; border: 1px solid var(--ch-line); color: var(--ch-plum); }
.ch-sechead-n { margin: 0; font-family: var(--ch-display) !important; font-weight: 900; font-variation-settings: 'SOFT' 100, 'opsz' 72; font-size: 26px; line-height: 1.1; color: var(--ch-plum); }
.ch-sechead-s { margin: 2px 0 0; font: 400 13px/1.4 var(--ch-font); color: var(--ch-plum-2); }
.ch-sechead-a { margin-left: auto; font: 600 13px/1 var(--ch-font); color: var(--ch-plum); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; white-space: nowrap; }

/* empty and done states (no dead ends) */
.ch-state { text-align: center; padding: 40px 16px; color: var(--ch-plum); font-family: var(--ch-font); }
.ch-state-ic { width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: var(--ch-m-posts); color: var(--ch-plum); }
.ch-state--done .ch-state-ic { background: var(--ch-m-live); }
.ch-state b, .ch-state-h { display: block; font: 600 16px/1.4 var(--ch-font); margin: 0; }
.ch-state p { margin: 4px auto 0; max-width: 46ch; font: 400 14px/1.55 var(--ch-font); color: var(--ch-plum-2); }
.ch-state .ch-state-a { margin-top: 14px; }

/* the "+" add affordance: wherever a person can add something */
.ch-add { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px 0 6px; border-radius: 999px; border: 1px dashed var(--ch-line-strong); background: #fff; color: var(--ch-plum); font: 600 14px/1 var(--ch-font); cursor: pointer; text-decoration: none; }
.ch-add:hover { border-style: solid; border-color: var(--ch-plum); background: var(--ch-cream); }
.ch-add-i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ch-bubblegum); color: var(--ch-plum); border: 1px solid var(--ch-plum); flex: none; }
.ch-add--icon { padding: 0; width: 36px; justify-content: center; border-style: solid; }
.ch-add--icon .ch-add-i { width: 34px; height: 34px; border: 0; background: transparent; }
.ch-add--tile { flex-direction: column; justify-content: center; height: auto; min-height: 140px; border-radius: 20px; padding: 16px; width: 100%; }
.ch-add--tile .ch-add-i { width: 40px; height: 40px; }

/* the (i): a real button; the bubble is out of the layout until it opens */
.ch-info { display: inline-grid; place-items: center; width: 18px; height: 18px; margin: 0 0 0 6px; padding: 0; border-radius: 50%; border: 1.5px solid var(--ch-plum-2); background: #fff; color: var(--ch-plum-2); font: 600 10px/1 var(--ch-font); cursor: pointer; vertical-align: 1px; position: relative; }
.ch-info:hover, .ch-info[aria-expanded="true"] { border-color: var(--ch-plum); color: var(--ch-plum); }
.ch-info-bubble { position: fixed; z-index: 2147480200; display: none; max-width: min(280px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--ch-line-strong); border-radius: 12px; padding: 10px 12px; font: 400 13px/20px var(--ch-font); color: var(--ch-plum); text-align: left; }
.ch-info-bubble.is-open { display: block; }
.ch-info-bubble a { color: var(--ch-plum); font-weight: 600; }

/* the drawer (right, 480px; 720 wide): white, a thin line, its own one primary in the sticky footer */
.ch-dw-scrim { position: fixed; inset: 0; z-index: 2147480000; background: rgba(91,26,66,.24); }
.ch-dw { position: fixed; top: 0; right: 0; bottom: 0; z-index: 2147480100; width: min(480px, 100vw); background: #fff; border-left: 1px solid var(--ch-line); display: flex; flex-direction: column; font-family: var(--ch-font); color: var(--ch-plum); transform: translateX(12px); opacity: 0; transition: transform .18s ease, opacity .18s ease; }
.ch-dw.is-open { transform: none; opacity: 1; }
.ch-dw--wide { width: min(720px, 100vw); }
.ch-dw-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 8px 12px 8px 20px; border-bottom: 1px solid var(--ch-line); }
.ch-dw-t { margin: 0; font: 600 20px/1.3 var(--ch-font); font-family: var(--ch-font) !important; color: var(--ch-plum); }
.ch-dw-x { width: 36px; height: 36px; border-radius: 10px; border: 0; background: none; color: var(--ch-plum-2); cursor: pointer; display: grid; place-items: center; }
.ch-dw-x:hover { background: var(--ch-wash); color: var(--ch-plum); }
.ch-dw-b { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 16px 20px 24px; }
.ch-dw-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ch-line); }
/* the kit's buttons (pills): one primary per screen */
.ch-kbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ch-line-strong); background: #fff; color: var(--ch-plum); font: 600 14px/1 var(--ch-font); cursor: pointer; text-decoration: none; white-space: nowrap; }
.ch-kbtn:hover { background: var(--ch-cream); }
.ch-kbtn--primary { background: var(--ch-bubblegum); border: 1.5px solid var(--ch-plum); box-shadow: var(--ch-shadow); }
.ch-kbtn--primary:hover { background: var(--ch-bubblegum-hover); }
.ch-kbtn--primary:active { box-shadow: 0 0 0 var(--ch-plum); transform: translate(3px, 3px); }
.ch-kbtn--ghost { border-color: transparent; color: var(--ch-plum-2); font-weight: 500; }
.ch-kbtn--ghost:hover { background: var(--ch-wash); }
.ch-kbtn[disabled] { opacity: .55; cursor: default; box-shadow: none; }
/* the client context panel, docked in a page (the panel itself is ch-client.js) */
.ch-cpanel { background: #fff; border: 1px solid var(--ch-line); border-radius: 16px; padding: 16px; }
@media (prefers-reduced-motion: reduce) { .ch-dw, .ch-box { transition: none; } }
@media print { .ch-dw, .ch-dw-scrim, .ch-info, .ch-info-bubble, .ch-add { display: none !important; } .ch-tcard { border-color: #5B1A42; } .ch-table thead th { background: #fff; color: #5B1A42; border-bottom: 1px solid #5B1A42; } .ch-tcard, .ch-box, .ch-stat, .ch-table tr { break-inside: avoid; } }

/* 7. THE CALM AI LAYER (27 Oct 2026) -----------------------------------------------------------------------------------
   Owner: "make it clean in UI as much as possible, plus should be like AI one, not this text heavy, color balance has to be
   there" (crosshub-work/simple-ui/06-clean-ai-style.md). ch-shell.js puts this file on every page with the sidebar, so these
   rules improve every page at once. Same colours (the --ch-* set above), the 12 Oct sidebar untouched (it is .chs-*, not here).
   A  every page, on screen, inside the content area (.ch-main): more air, sentence-case eyebrows, a short page line, quieter
      cards and empty states (thin plum-tint lines, never a blurred shadow), one main button.
   B  the calm parts any page can use (cc-*): the segmented switch, More, buttons (ONE main), the ONE status dot, initials,
      mini bars, figures, the "Crossy noticed" tip, the More fold, calm rows. */
@media screen {
  /* (review 27 Oct) no --ch-air custom property on .ch-main: it was inherited by every element in the content area, so the
     calendar deck classes showed a new computed property (strategy-facts SF7). Same 24px, set where it is used. */
  .ch-main .ch-eyebrow { font: 500 12.5px/1.3 var(--ch-font); text-transform: none; letter-spacing: 0; color: var(--ch-plum-2); }
  .ch-main .ch-page-head { margin-bottom: 24px; }
  .ch-main .ch-page-sub { max-width: 60ch; font-size: 14.5px; line-height: 1.5; color: var(--ch-plum-2); }
  /* the 2-line cut only on the plain page line under the title: never on a line that holds a link or the (i) button, and
     never on a status line a page draws inside a card (Email journeys' sender note), so nothing a person needs is cut off */
  .ch-main .ch-page-head .ch-page-sub:not([hidden]):not(:has(a, button)) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ch-main .ch-card, .ch-main .cht-card, .ch-main .ch-kpi { border-color: var(--ch-line-soft); border-radius: 18px; }
  .ch-main .ch-card-foot { border-top-color: var(--ch-line-soft); }
  .ch-main .ch-label { text-transform: none; letter-spacing: 0; }
  .ch-main .ch-empty { border: 1px solid var(--ch-line-soft); background: var(--ch-white); gap: 8px; padding: 36px 20px; }
  .ch-main .ch-empty-body { color: var(--ch-plum-2); }
  .ch-main .cht-empty { color: var(--ch-plum-2); }
  .ch-main .ch-tcard { border-color: var(--ch-line); }
  .ch-main .ch-table td { padding-top: 15px; padding-bottom: 15px; }
  .ch-main :is(.ch-btn, .cht-btn):not(.ch-btn--primary):not(.cht-btn--primary) { box-shadow: none; }
}

/* B  the calm parts */
.cc-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--ch-wash); }
.cc-seg > button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--ch-plum-2); font: 500 14px/1 var(--ch-font); cursor: pointer; }
.cc-seg > button:hover { color: var(--ch-plum); }
.cc-seg > button[aria-pressed="true"] { background: var(--ch-white); color: var(--ch-plum); font-weight: 600; }
.cc-morebtn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px 0 16px; border: 1px solid var(--ch-line); border-radius: 999px; background: var(--ch-white); color: var(--ch-plum); font: 500 14px/1 var(--ch-font); cursor: pointer; }
.cc-morebtn[hidden] { display: none; }
.cc-morebtn:hover { background: var(--ch-here); }
.cc-morebtn[aria-expanded="true"] svg { transform: rotate(180deg); }
.cc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--ch-line); border-radius: 999px; background: var(--ch-white); color: var(--ch-plum) !important; font: 500 14.5px/1 var(--ch-font); text-decoration: none !important; cursor: pointer; white-space: nowrap; }
.cc-btn:hover { background: var(--ch-here); }
.cc-btn[disabled] { opacity: .6; cursor: wait; }
.cc-btn--main { background: var(--ch-bubblegum); border-color: var(--ch-bubblegum); font-weight: 600; }
.cc-btn--main:hover { background: var(--ch-bubblegum-hover); }
.cc-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cc-btn:focus-visible, .cc-seg > button:focus-visible, .cc-morebtn:focus-visible { outline: 2px solid var(--ch-plum); outline-offset: 2px; }
/* the ONE status dot: lime on track, butter behind, pink at risk, lilac waiting / no scope */
.cc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--ch-line-strong); }
.cc-dot--ontrack, .cc-dot--done, .cc-dot--ok, .cc-dot--live { background: var(--ch-lime); }
.cc-dot--behind { background: #E8C52A; }
.cc-dot--risk, .cc-dot--missed { background: #F07A9C; }
.cc-dot--noscope, .cc-dot--wait { background: var(--ch-lilac); }
/* initials: 2 letters, one quiet tint */
.cc-ini { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ch-lilac-tint); color: var(--ch-plum); font: 600 11px/1 var(--ch-font); border: 2px solid var(--ch-white); flex: none; }
.cc-ini.is-gap { background: var(--ch-white); border: 1px dashed var(--ch-line-strong); color: var(--ch-plum-2); }
/* a mini progress bar (one series, plum on a soft track) */
.cc-mini { display: block; height: 5px; border-radius: 999px; background: var(--ch-line-soft); overflow: hidden; }
.cc-mini > i { display: block; height: 100%; border-radius: 999px; background: var(--ch-plum); }
/* figures: a big number and a short label (numbers as visuals, not sentences) */
.cc-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
/* (review 27 Oct, from the area passes) phones: exactly three figures sit 3 across (not 2 + 1); a long segmented switch slides
   sideways inside itself instead of wrapping or pushing the page wider */
@media screen and (max-width: 760px) { .cc-figs:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
@media screen and (max-width: 640px) { .cc-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .cc-seg::-webkit-scrollbar { display: none; } .cc-seg > * { flex: none; } }
.cc-fig { background: var(--ch-white); border-radius: 18px; padding: 16px 18px; }
.cc-fig b { display: block; font: 500 30px/1 var(--ch-font); font-variant-numeric: tabular-nums; color: var(--ch-plum); }
.cc-fig span { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--ch-plum-2); }
/* the ONE "Crossy noticed" tip: lilac, one line, one link */
.cc-tip { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--ch-lilac-tint); color: var(--ch-plum); font-size: 14px; }
.cc-tip a { margin-left: auto; font-weight: 600; color: var(--ch-plum); text-decoration: underline; text-underline-offset: 3px; }
/* the More fold: details behind one quiet line */
.cc-more { border-top: 1px solid var(--ch-line); margin-top: 20px; }
.cc-more > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 48px; cursor: pointer; font: 500 14px/1.2 var(--ch-font); color: var(--ch-plum); }
.cc-more > summary::-webkit-details-marker { display: none; }
.cc-more > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg); margin: -3px 0 0 4px; }
.cc-more[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
/* calm rows: name, one bar, at most 3 small chips, one dot; the rest opens on a tap */
.cc-rows { background: var(--ch-white); border-radius: 20px; overflow: hidden; }
.cc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 14px; align-items: center; padding: 15px 20px; border-top: 1px solid var(--ch-line-soft); }
.cc-row:first-child { border-top: 0; }
.cc-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--ch-wash); color: var(--ch-plum-2); font: 500 12px/1.3 var(--ch-font); }
@media (max-width: 640px) { .cc-row { grid-template-columns: minmax(0, 1fr) auto; } .cc-row > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; } }
@media (prefers-reduced-motion: reduce) { .cc-morebtn svg, .lt-open svg { transition: none; } }
@media print { .cc-morebtn, .cc-seg { display: none !important; } }

/* 7. REDUCED MOTION, EVERY SHELLED PAGE (simplify plan 4 Nov 2026, part I-A) -------------------------------------------------------
   The same catch-all as fcm-ds.css "Motion": the shell adds this file to every page it draws, so a page's own spinners and fades
   (sp / fade keyframes) stop for anyone who turned motion off, also on pages that never loaded fcm-ds.css. Specs opt back in with
   html[data-mi-test=move]. */
@media (prefers-reduced-motion: reduce) {
  html:not([data-mi-test=move]) *, html:not([data-mi-test=move]) *::before, html:not([data-mi-test=move]) *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
  }
}
