/* @foundation/ui design tokens — CSS custom-property mirror of tokens.js.
   COMBINATION B "Ivory Study" — The Study's ceremonial structure in the
   Broadsheet's warm cream + gold palette; Playfair Display type. */

:root {
  /* --- Viewport insets ----------------------------------------------------
     ONE owner for the iPhone home-indicator allowance. It used to be applied
     in two places at once (the chat wrapper AND the composer), so the phone
     double-counted it and left ~86px of dead cream under the message box.
     Anything that needs the allowance reads this, and nothing adds env() itself.

     --cc-kb is how much of the layout viewport an on-screen keyboard is
     covering, published by useKeyboardInset(). Zero on desktop and whenever the
     keyboard is down. */
  --cc-kb: 0px;
  --cc-safe-bottom: env(safe-area-inset-bottom, 0px);

  --cc-bg:         #f4f1e9;
  --cc-bg-soft:    #ece7d9;
  --cc-bg-deep:    #e3dcc9;
  --cc-bg-thread: #f1ead7;
  --cc-card:       #fbfaf4;

  --cc-navy:        #171410;
  --cc-navy-soft:   #272219;
  --cc-navy-medium: #332c20;
  --cc-navy-deep:   #0d0b07;

  /* A real navy blue for the "you" chat bubble — the --cc-navy role is a dark
     neutral in this palette (near-black), so the sender bubble needs its own
     genuinely-blue fill that carries white text on both grounds. */
  --cc-chat-mine:   #33466b;

  /* Meeting scratchpad "pens" — the two members write in one shared pad, so
     authorship has to read at a glance without a label: Alice in a dark
     neutral grey, Bob in a dark navy. Both must clear text contrast on
     the cream card, and lighten (never invert) on the dark ground. */
  --cc-pen-member-a:      #4a4a4a;
  --cc-pen-member-b:    #1e3a5f;
  --cc-pen-member-a-bg:   rgba(74, 74, 74, 0.05);
  --cc-pen-member-b-bg: rgba(30, 58, 95, 0.05);

  --cc-gold:       #b07a24;
  --cc-gold-bold:  #8f5f14;
  --cc-gold-soft:  #a67c2e;
  --cc-gold-tint:  #f1e7d3;
  --cc-gold-pale:  #f1e7d3;
  --cc-gold-faint: rgba(176, 122, 36, 0.32);
  /* RGB triplet form of the accent, for rgba(var(--cc-gold-rgb), a) literals
     (masthead rules, borders) that need theme-aware alpha. Light = brass. */
  --cc-gold-rgb:   176, 122, 36;

  /* Interaction-layer accents (hover text, hover borders, hover tints) — kept
     as their own vars so interactions.css hovers turn orange in dark alongside
     the base accent. Light values = the original brass hover palette. */
  --cc-accent-hi:       #d8bf85;
  --cc-accent-line:     #c2a35d;
  --cc-accent-line-2:   #a98b4f;
  --cc-accent-tint-rgb: 169, 139, 79;

  --cc-ink:   #171410;
  --cc-ink-2: #57534a;
  --cc-ink-3: #8a867a;
  --cc-ink-4: #b0ab9b;

  --cc-line:   #e2dccb;
  --cc-line-2: #ece7d9;

  --cc-green: #4d7c54;
  --cc-amber: #b5791f;
  --cc-red:   #b0483e;
  --cc-green-rgb: 77, 124, 84;

  --cc-font-sans:         'Public Sans', system-ui, sans-serif;
  --cc-font-display:      'Playfair Display', Georgia, serif;
  --cc-font-display-soft: 'Playfair Display', Georgia, serif;
  --cc-font-mono:         'IBM Plex Mono', 'SF Mono', Menlo, monospace;
  /* The brand lockup (header wordmark + mobile drawer). Its own token because a
     STAMPED client's wordmark must render in THEIR display face — this was
     hardcoded as 'Cinzel' in three components, so every client's own name was
     drawn in the template's typeface. src/generated/theme.css overrides it. */
  --cc-font-wordmark:     'Cinzel', 'Trajan Pro', Georgia, serif;

  --cc-shadow-card: 0 1px 2px rgba(23, 20, 16, 0.05), 0 10px 30px rgba(23, 20, 16, 0.05);
  --cc-radius:    6px;
  --cc-radius-sm: 4px;

  /* Semantic chrome surfaces — the masthead band and the header button/pill
     "face". Broken out as their own tokens so dark mode can retune them
     without touching the components that consume them. */
  --cc-masthead: #f1ece0;
  --cc-btn-face: rgba(23, 20, 16, 0.03);

  /* Scrollbar + text selection — retuned per theme below. */
  --cc-scrollbar:       #d4cdbc;
  --cc-scrollbar-hover:  #c3bba6;
  --cc-selection: rgba(176, 122, 36, 0.20);

  /* Legacy-compat aliases — federation-remote agents (e.g. Oracle) reference
     these older var names; defined here so they resolve to Ivory values when
     an agent renders IN-SHELL (the agent's own :root only applies standalone). */
  --cc-cloud: var(--cc-bg);
  --cc-white: var(--cc-card);
  --cc-cream: var(--cc-gold-tint);
  --cc-muted: var(--cc-ink-2);
  --cc-serif: var(--cc-font-display);

  /* --- THE AGENT TOKEN BRIDGE -------------------------------------------
     Every agent built by the agent pipeline styles through `--bbl-*`. This
     Command Center defines `--cc-*`. Different namespaces — so before this
     block existed, an agent installed here rendered with EVERY `--bbl-*`
     UNDEFINED.

     That failure is worth spelling out, because it does not look like a
     failure. An undefined custom property does NOT fall back to a sensible
     value: the declaration becomes invalid at computed-value time, so
     `background: var(--bbl-card)` computes to TRANSPARENT while
     `color: var(--bbl-ink)` merely INHERITS. The result is an agent whose text
     is readable and whose cards, borders, badges and accents have all silently
     vanished — it reads as a thin or half-loaded page rather than a broken one,
     which is exactly why it survived a screenshot review. (Measured in a
     browser 2026-08-14: transparent background, inherited colour.)

     Aliases rather than copies, and that is the whole trick: a custom property
     that references another resolves AT USE, not at declaration. So these point
     at `--cc-*` and automatically follow whatever `src/generated/theme.css`
     sets for this client — including the dark-mode block, with no dark
     counterpart needed here. Verified in a browser across a theme flip.

     One block, and every agent this client ever installs inherits their brand
     with ZERO changes to the agent. Keep it exhaustive: a `--bbl-*` an agent
     can reference and this block does not name is an invisible element. */
  --bbl-bg:            var(--cc-bg);
  --bbl-bg-soft:       var(--cc-bg-soft);
  --bbl-bg-deep:       var(--cc-bg-deep);
  --bbl-card:          var(--cc-card);

  --bbl-navy:          var(--cc-navy);
  --bbl-navy-soft:     var(--cc-navy-soft);
  --bbl-navy-medium:   var(--cc-navy-medium);
  --bbl-navy-deep:     var(--cc-navy-deep);

  /* The accent family. Named "gold" in the agent kit for historical reasons —
     it is the ACCENT role, whatever colour the client actually chose. */
  --bbl-gold:          var(--cc-gold);
  --bbl-gold-bold:     var(--cc-gold-bold);
  --bbl-gold-soft:     var(--cc-gold-soft);
  --bbl-gold-tint:     var(--cc-gold-tint);
  --bbl-gold-faint:    var(--cc-gold-faint);
  --bbl-gold-rgb:      var(--cc-gold-rgb);

  --bbl-ink:           var(--cc-ink);
  --bbl-ink-2:         var(--cc-ink-2);
  --bbl-ink-3:         var(--cc-ink-3);
  --bbl-ink-4:         var(--cc-ink-4);

  --bbl-line:          var(--cc-line);
  --bbl-line-2:        var(--cc-line-2);

  --bbl-green:         var(--cc-green);
  --bbl-green-rgb:     var(--cc-green-rgb);
  --bbl-amber:         var(--cc-amber);
  --bbl-red:           var(--cc-red);

  --bbl-font-sans:     var(--cc-font-sans);
  --bbl-font-display:  var(--cc-font-display);
  --bbl-font-mono:     var(--cc-font-mono);

  --bbl-shadow-card:   var(--cc-shadow-card);

  /* Viewport insets: ONE owner (see the top of this file). An agent that reads
     these must get the host's values, never its own — double-counting the home
     indicator is what left ~86px of dead space under a composer. */
  --bbl-safe-bottom:   var(--cc-safe-bottom);
  --bbl-kb:            var(--cc-kb);

  /* The agent kit's own legacy aliases, which some older agents still use. */
  --bbl-cloud:         var(--cc-bg);
  --bbl-white:         var(--cc-card);
  --bbl-cream:         var(--cc-gold-tint);
  --bbl-muted:         var(--cc-ink-2);
  --bbl-serif:         var(--cc-font-display);

  /* Native controls (time picker, checkbox, default scrollbar) follow this. */
  color-scheme: light;
}

/* ---------------------------------------------------------------------------
   DARK MODE — "Ivory Study, after hours".
   The same warm cream + brass system relit on a warm near-black ground
   (browns, not cold grays) so the palette still reads as ivory paper turned
   down for the evening. Activated by data-theme="dark" on <html> (set pre-paint
   from localStorage in index.html; toggled at runtime by shell/theme.js).

   The saturated brass accents (--cc-gold / --cc-gold-soft) are deliberately
   NOT overridden — they read on both grounds and back the SVG icon strokes that
   consume the literal token values. Only --cc-gold-bold (text/links) brightens.
   ------------------------------------------------------------------------- */
:root[data-theme="dark"] {
  color-scheme: dark;

  --cc-bg:         #14120d;
  --cc-bg-soft:    #1b1811;
  --cc-bg-deep:    #201c14;
  --cc-bg-thread: #1d1912;
  --cc-card:       #1e1a13;

  /* "navy" is the raised-fill role (buttons, pills, icon squares, stat bands),
     always paired with light content — so in dark mode it inverts to a warm
     surface that sits ABOVE the card, not below it. Navy-as-text was migrated
     to --cc-ink so this inversion is safe. */
  --cc-navy:        #423a29;
  --cc-navy-soft:   #4d4432;
  --cc-navy-medium: #574d39;
  --cc-navy-deep:   #383021;

  /* Dark ground: lift the chat navy so it still reads blue over the warm-brown
     surface (not a muddy near-black). */
  --cc-chat-mine:   #3d5382;

  /* Scratchpad pens on the dark ground: the light-mode values are near-black
     here and would vanish, so both lift to legible tints that KEEP the
     grey-vs-navy distinction — the whole point of the two colours. */
  --cc-pen-member-a:      #b6b2aa;
  --cc-pen-member-b:    #7fa8d4;
  --cc-pen-member-a-bg:   rgba(182, 178, 170, 0.07);
  --cc-pen-member-b-bg: rgba(127, 168, 212, 0.09);

  /* Dark mode trades the ivory brass for a warm ORANGE accent — it contrasts
     harder against the warm-brown ground and reads more vividly than gold did.
     The base drives the agent-medallion rings/glyphs (via currentColor) and
     every gold fill/border; -bold is the brighter text/link/active tone. */
  --cc-gold:       #e07d33;
  --cc-gold-bold:  #f39a4d;
  --cc-gold-soft:  #cf7330;
  --cc-gold-tint:  #2c1c0f;
  --cc-gold-pale:  #2c1c0f;
  --cc-gold-faint: rgba(224, 125, 51, 0.30);
  --cc-gold-rgb:   224, 125, 51;

  --cc-accent-hi:       #f6a860;
  --cc-accent-line:     #e5893f;
  --cc-accent-line-2:   #cf7734;
  --cc-accent-tint-rgb: 224, 125, 51;

  --cc-ink:   #f2ede1;
  --cc-ink-2: #c4bca9;
  --cc-ink-3: #948c7b;
  --cc-ink-4: #6c6555;

  --cc-line:   #322c20;
  --cc-line-2: #2a251b;

  --cc-green: #6bb07a;
  --cc-amber: #d4972f;
  --cc-red:   #d9695f;
  --cc-green-rgb: 107, 176, 122;

  --cc-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.5);

  --cc-masthead: #1a1610;
  --cc-btn-face: rgba(255, 255, 255, 0.05);

  --cc-scrollbar:       #3a3428;
  --cc-scrollbar-hover:  #4a4334;
  --cc-selection: rgba(215, 165, 63, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  background: var(--cc-bg);
  color: var(--cc-ink);
  font-family: var(--cc-font-sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--cc-selection); }
* { scrollbar-color: var(--cc-scrollbar) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--cc-scrollbar); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--cc-scrollbar-hover); border: 3px solid transparent; background-clip: content-box; }

/* Keyboard up: the keyboard COVERS the home indicator, so the safe-area
   allowance is no longer protecting anything — it just becomes dead space
   between the message box and the top of the keys. Zero it while the keyboard
   is open; useKeyboardInset() puts this class on <html>. */
:root.cc-kb-open {
  --cc-safe-bottom: 0px;
}
/* GENERATED FILE (scaffold-owned) — src/generated/theme.css
 *
 * Frank Benton's palette, generated from
 * clients/frank-benton/client.config.json by scripts/lib/palette.mjs.
 *
 * Source brand colors:
 *   primary #1E0693   accent #03541B
 *   neutral #ebeddf
 *   background #f7f7f8   background (dark) derived
 *   ANCHORED: --cc-bg is the literal colour above; the other grounds hold
 *   their relative offsets from it.
 *
 * Ramps are built in OKLCH (perceptually uniform), so lightness moves without
 * the hue drift plain hex arithmetic produces. Every foreground role is then
 * walked until it clears its WCAG target against the ground it actually sits
 * on — a brand color chosen for a logo is not automatically a legible UI color.
 *
 * Measured contrast, light: ink 16.09:1, ink-2 7.21:1, ink-3 3.65:1, gold-bold 8.57:1, green 4.71:1, amber 5.03:1, red 5.32:1, white on navy 15.07:1, white on chat-mine 9.92:1
 * Measured contrast, dark:  ink 16.44:1, ink-2 10.17:1, ink-3 5.47:1, gold-bold 7.46:1, green 7.92:1, amber 7.54:1, red 7.2:1, white on navy 9.92:1, white on chat-mine 7.66:1
 *
 * Loaded AFTER tokens.css and overrides it. HAND-EDITS ARE WRONG: rebrand by
 * editing the client config and re-running the scaffolder, so the config and
 * the UI can never disagree.
 */

:root {
  --cc-bg: #f7f7f8;
  --cc-bg-soft: #ececed;
  --cc-bg-deep: #e0e0e1;
  --cc-bg-thread: #f0f0f1;
  --cc-card: #ffffff;
  --cc-masthead: #f1f1f2;
  --cc-navy: #1a0087;
  --cc-navy-soft: #241ca0;
  --cc-navy-medium: #3137b7;
  --cc-navy-deep: #150075;
  --cc-chat-mine: #2c2eaf;
  --cc-pen-member-a: #4d4e48;
  --cc-pen-member-b: #2c2eaf;
  --cc-pen-member-a-bg: rgba(77, 78, 72, 0.05);
  --cc-pen-member-b-bg: rgba(44, 46, 175, 0.05);
  --cc-gold: #03541b;
  --cc-gold-bold: #03541b;
  --cc-gold-soft: #00460c;
  --cc-gold-tint: #d4ecd5;
  --cc-gold-pale: #d4ecd5;
  --cc-gold-faint: rgba(3, 84, 27, 0.32);
  --cc-gold-rgb: 3, 84, 27;
  --cc-accent-hi: #3e8348;
  --cc-accent-line: #21682f;
  --cc-accent-line-2: #004c12;
  --cc-accent-tint-rgb: 0, 76, 18;
  --cc-ink: #1a1c12;
  --cc-ink-2: #525448;
  --cc-ink-3: #808275;
  --cc-ink-4: #a4a699;
  --cc-line: #d0d3c1;
  --cc-line-2: #e2e5d5;
  --cc-green: #447b46;
  --cc-amber: #965e00;
  --cc-red: #b24039;
  --cc-green-rgb: 68, 123, 70;
  --cc-shadow-card: 0 1px 2px rgba(26, 28, 18, 0.05), 0 10px 30px rgba(26, 28, 18, 0.05);
  --cc-btn-face: rgba(26, 28, 18, 0.03);
  --cc-scrollbar: #bdc0ab;
  --cc-scrollbar-hover: #a4a793;
  --cc-selection: rgba(3, 84, 27, 0.2);
  --cc-font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --cc-font-display: 'Playfair Display', Georgia, serif;
  --cc-font-display-soft: 'Playfair Display', Georgia, serif;
  --cc-font-wordmark: 'Playfair Display', Georgia, serif;
  --cc-font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;
  --cc-brand-primary: #1E0693;
  --cc-brand-accent: #03541B;
  --cc-brand-background: #f7f7f8;
}

:root[data-theme="dark"] {
  --cc-bg: #10110a;
  --cc-bg-soft: #191a13;
  --cc-bg-deep: #20211a;
  --cc-bg-thread: #1c1d16;
  --cc-card: #1d1e17;
  --cc-masthead: #15160f;
  --cc-navy: #2c2eaf;
  --cc-navy-soft: #3841c1;
  --cc-navy-medium: #4451d3;
  --cc-navy-deep: #241ca0;
  --cc-chat-mine: #3942c3;
  --cc-pen-member-a: #aaaca4;
  --cc-pen-member-b: #7d96ff;
  --cc-pen-member-a-bg: rgba(170, 172, 164, 0.07);
  --cc-pen-member-b-bg: rgba(125, 150, 255, 0.09);
  --cc-gold: #6cb274;
  --cc-gold-bold: #6cb274;
  --cc-gold-soft: #5da265;
  --cc-gold-tint: #0f2512;
  --cc-gold-pale: #0f2512;
  --cc-gold-faint: rgba(108, 178, 116, 0.3);
  --cc-gold-rgb: 108, 178, 116;
  --cc-accent-hi: #88cf8f;
  --cc-accent-line: #72b87a;
  --cc-accent-line-2: #63a86b;
  --cc-accent-tint-rgb: 99, 168, 107;
  --cc-ink: #eef0e2;
  --cc-ink-2: #bdbfb2;
  --cc-ink-3: #898b7e;
  --cc-ink-4: #636559;
  --cc-line: #2e2f24;
  --cc-line-2: #24251c;
  --cc-green: #7cb57d;
  --cc-amber: #d49838;
  --cc-red: #f47c70;
  --cc-green-rgb: 124, 181, 125;
  --cc-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.5);
  --cc-btn-face: rgba(255, 255, 255, 0.05);
  --cc-scrollbar: #38392c;
  --cc-scrollbar-hover: #4d4f41;
  --cc-selection: rgba(108, 178, 116, 0.28);
}
/* Interaction states for the bespoke Clients and Calendar pages.
 *
 * A SEPARATE stylesheet, not additions to foundation-ui/home/interactions.css:
 * that file is frozen core (CORE_MANIFEST hashes it) and these classes exist
 * only in this Command Center. Putting them there would be a core hand-edit,
 * which upgrade-client refuses and conformance reports.
 *
 * Everything resolves through --cc-* tokens, so these states follow the client
 * brand, dark mode, and the member's own colour picks without knowing about any
 * of them. No literal colours.
 *
 * Hover only — every one of these elements is a real <button> or <a>, so
 * :focus-visible is handled here too and keyboard use is never a second class.
 */

/* Roster row in the Clients page.
 *
 * Each row is DIVIDED from the next by a hairline. Without it the roster was a
 * single undifferentiated column of text where three companies read as one
 * block, and the only thing separating "Bronco Industrial" from "United
 * International Partners" was the gap the subtitle line happened to leave.
 *
 * The rule is on the TOP of each row and suppressed on the first, rather than
 * on the bottom of each and suppressed on the last: :first-child is a real
 * selector and :last-child would still draw a line above the card's own bottom
 * edge whenever the list is scrolled. It is drawn with an inset box-shadow, not
 * a border, because these rows have a 3px left border that carries the selected
 * client's colour, and adding a border-top would shift the row's box by 1px the
 * moment it is selected. */
.cc-client-row {
  transition: background 0.12s;
}
.cc-client-row + .cc-client-row {
  box-shadow: inset 0 1px 0 var(--cc-line-2, var(--cc-line));
}
.cc-client-row:hover {
  background: rgba(var(--cc-accent-tint-rgb), 0.10) !important;
}
.cc-client-row:focus-visible {
  outline: 2px solid var(--cc-gold-bold, var(--cc-accent-line));
  outline-offset: -2px;
}

/* An event block or an all-day chip in the calendar. The lift is a shadow
   rather than a colour change: the fill IS the client's identity here, and
   tinting it on hover would make two clients briefly look like each other. */
.cc-cal-event {
  transition: box-shadow 0.12s, transform 0.12s;
}
.cc-cal-event:hover {
  box-shadow: 0 1px 6px rgba(23, 20, 16, 0.18);
}
.cc-cal-event:focus-visible {
  outline: 2px solid var(--cc-gold-bold, var(--cc-accent-line));
  outline-offset: 1px;
}

/* An empty hour cell. It has no visible affordance at rest on purpose — 24
   outlined boxes per day is noise — so hover is what tells you it is clickable. */
.cc-cal-slot {
  transition: background 0.1s;
}
.cc-cal-slot:hover {
  background: rgba(var(--cc-accent-tint-rgb), 0.12);
}
.cc-cal-slot:focus-visible {
  outline: 2px solid var(--cc-gold-bold, var(--cc-accent-line));
  outline-offset: -2px;
}

/* The three ways in to "Add a note" on the dashboard — Dictate, Photo, Type.
   They sit at rest as three outlined tiles; hover tints the fill so the pointer
   says which one it is on, since all three are the same size and shape. */
.cc-note-way {
  transition: background 0.12s, border-color 0.12s;
}
.cc-note-way:hover:not(:disabled) {
  background: rgba(var(--cc-accent-tint-rgb), 0.12);
  border-color: var(--cc-gold-bold, var(--cc-accent-line));
}
.cc-note-way:focus-visible {
  outline: 2px solid var(--cc-gold-bold, var(--cc-accent-line));
  outline-offset: 1px;
}

/* Dialog buttons and the tab row. Kept generic so both pages inherit it. */
[data-testid$="-form"] button:focus-visible,
[role="tab"]:focus-visible {
  outline: 2px solid var(--cc-gold-bold, var(--cc-accent-line));
  outline-offset: 2px;
}
/* Command Center — interaction layer.
 *
 * DESIGN SAMPLE 3 — "The Study" (executive briefing-room dark theme).
 * Hover/motion retuned to the dark charcoal + brass palette; structure and
 * class names unchanged.
 *
 * Scoped TIGHTLY to what inline styles cannot express: :hover states,
 * transitions, and @keyframes. Imported once from src/main.jsx.
 */

/* --------------------------------------------------------------------------
 * Keyframes — live status dots
 * ------------------------------------------------------------------------ */
@keyframes cc-pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(95, 158, 125, 0.22); }
  50%      { box-shadow: 0 0 0 5px rgba(95, 158, 125, 0.1); }
}

.cc-live-dot {
  animation: cc-pulse-dot 2s ease-in-out infinite;
}
.cc-live-pulse {
  animation: cc-pulse-dot 1.8s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
 * Masthead nav links + roster medallions
 * ------------------------------------------------------------------------ */
.cc-masthead-link {
  transition: color 0.15s, border-color 0.15s;
}
.cc-masthead-link:hover {
  color: var(--cc-accent-hi);
}

.cc-medallion {
  transition: transform 0.18s, filter 0.18s;
}
.cc-medallion:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 6px 14px rgba(var(--cc-accent-tint-rgb), 0.25));
}
.cc-medallion:hover span:first-of-type {
  color: var(--cc-accent-hi);
}

/* --------------------------------------------------------------------------
 * Top bar buttons + member pill
 * ------------------------------------------------------------------------ */
.cc-top-btn,
.cc-member-pill {
  transition: background 0.15s, border-color 0.15s;
}
.cc-top-btn:hover,
.cc-member-pill:hover {
  border-color: var(--cc-accent-line);
  background: rgba(var(--cc-accent-tint-rgb), 0.14);
}

/* Sticky agent ribbon removed 2026-07-23 (it leaked across page
   navigations). Its classes (.cc-sticky-ribbon / .cc-ribbon-*) are
   intentionally gone; the roster grid is the sole agent-nav surface. */

/* --------------------------------------------------------------------------
 * Agents grid — tile hover lift + brass top-border scaleX reveal
 * ------------------------------------------------------------------------ */
.cc-agent-tile {
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s, color 0.18s;
}
.cc-agent-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cc-accent-line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s;
}
.cc-agent-item:hover .cc-agent-tile {
  border-color: var(--cc-accent-line-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  color: var(--cc-accent-hi);
}
.cc-agent-item:hover .cc-agent-tile::before {
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------
 * Quick Actions — primary + secondary button hovers
 * ------------------------------------------------------------------------ */
.cc-qa-primary {
  transition: background 0.15s, border-color 0.15s;
}
.cc-qa-primary:hover {
  background: #33466a;
  border-color: var(--cc-accent-line);
}
.cc-qa-btn {
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.cc-qa-btn:hover {
  background: #33466a;
  border-color: var(--cc-accent-line);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
.cc-qa-arrow {
  transition: transform 0.15s, color 0.15s;
}
.cc-qa-btn:hover .cc-qa-arrow {
  color: var(--cc-accent-hi);
  transform: translateX(2px);
}


/* --------------------------------------------------------------------------
 * Sign-offs — approve / reject buttons
 * ------------------------------------------------------------------------ */
.cc-signoff-btn {
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.cc-signoff-btn-approve:hover { background: #4c8467; }
.cc-signoff-btn-reject:hover  { border-color: #b0413e; color: #cd6a63; }

/* --------------------------------------------------------------------------
 * Needs Attention — item row hover
 * ------------------------------------------------------------------------ */
.cc-attn-item {
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.cc-attn-item:hover {
  transform: translateX(2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  border-color: var(--cc-accent-line-2);
}

/* --------------------------------------------------------------------------
 * Live Activity — event row hover
 * ------------------------------------------------------------------------ */
.cc-activity-row {
  transition: background 0.12s;
}
.cc-activity-row:hover {
  background: rgba(var(--cc-accent-tint-rgb), 0.06);
}

/* Messages panel search — placeholder + clear button on the dark title bar. */
[data-testid="messages-search"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
[data-testid="messages-search"]::-webkit-search-cancel-button {
  filter: invert(1);
  opacity: 0.5;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
 * Week Calendar — day cell hover (today cell keeps its slate fill)
 * ------------------------------------------------------------------------ */
.cc-week-day {
  transition: border-color 0.15s, background 0.15s;
}
.cc-week-day:hover {
  border-color: var(--cc-accent-line);
}
/* Today's cell is a soft gold wash set inline per cell (2026-07-23), no longer
   a navy fill; this only carries its gold hover border. */
.cc-week-day.is-today:hover {
  border-color: var(--cc-gold, var(--cc-accent-line));
}

/* --------------------------------------------------------------------------
 * Generic agent-tile / cost-row / signoff-item — subtle shared hovers
 * ------------------------------------------------------------------------ */
.cc-hoverable {
  transition: background 0.15s, border-color 0.15s;
}

/* --------------------------------------------------------------------------
 * Masthead BB monogram — the asset is a black-on-transparent PNG, invisible on
 * the dark masthead. In dark mode recolor it to white (brightness(0) forces the
 * silhouette solid black preserving alpha, invert(1) flips black -> white).
 * Light mode leaves the original black lockup on the cream masthead untouched.
 * ------------------------------------------------------------------------ */
:root[data-theme="dark"] [data-testid="header-home-logo"] img {
  filter: brightness(0) invert(1);
}

/* --------------------------------------------------------------------------
 * Header focus rings — dark surfaces take a brass ring
 * ------------------------------------------------------------------------ */
[data-testid="header-home-logo"]:focus-visible,
[data-testid="header-home-title"]:focus-visible,
[data-testid="feedback-button"]:focus-visible,
[data-testid="header-notif-btn"]:focus-visible,
[data-testid="mobile-nav-toggle"]:focus-visible,
[data-testid="member-switcher"]:focus-visible {
  outline: 2px solid var(--cc-gold-bold, var(--cc-accent-line));
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
 * Stat band — clickable figure cells (tickets → Feedback, tasks → Tasks,
 * spend → Costs). Subtle tint + focus ring; the repo cell is static.
 * ------------------------------------------------------------------------ */
.cc-stat-cell {
  transition: background 0.15s;
}
.cc-stat-cell:hover {
  background: rgba(var(--cc-gold-rgb), 0.07);
}
.cc-stat-cell:focus-visible {
  outline: 2px solid var(--cc-gold-bold, var(--cc-accent-line));
  outline-offset: -2px;
}

/* --------------------------------------------------------------------------
 * Mobile masthead / drawer BB mark — same black-on-transparent PNG as the
 * desktop lockup, so recolor it to white in dark mode.
 * ------------------------------------------------------------------------ */
:root[data-theme="dark"] .cc-mobile-mark {
  filter: brightness(0) invert(1);
}

/* --------------------------------------------------------------------------
 * Mobile nav drawer — scrim fade + panel slide-in
 * ------------------------------------------------------------------------ */
@keyframes cc-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes cc-drawer-in {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  [data-testid="mobile-nav-drawer"],
  [data-testid="mobile-nav-scrim"] {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
 * Skip-link + surface focus rings
 * ------------------------------------------------------------------------ */
.cc-skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  padding: 8px 16px;
  background: var(--cc-navy, #2a3a58);
  color: #ece7dc;
  border-radius: 4px;
  z-index: 10000;
  text-decoration: none;
  font-family: var(--cc-font-sans, system-ui);
  font-size: 13px;
}
.cc-skip-link:focus,
.cc-skip-link:focus-visible {
  top: 8px;
  outline: 2px solid var(--cc-gold-bold, var(--cc-accent-line));
  outline-offset: 2px;
}

[data-testid^="goal-row-"]:focus-visible,
[data-testid^="feedback-row-"]:focus-visible,
[data-testid^="feedback-bucket-header-"]:focus-visible,
[role="menuitem"]:focus-visible {
  outline: 2px solid var(--cc-gold-bold, var(--cc-accent-line));
  outline-offset: 2px;
}

/* Dashboard month calendar — day cells are only interactive when a bespoke
   `calendar` page exists to receive the click (CalendarPanel renders a <div>
   otherwise, which these rules never match). The hover is a tint rather than a
   border so the grid's rules stay unbroken as the cursor crosses it. */
.cc-cal-day {
  transition: background 0.12s;
}
.cc-cal-day:hover {
  background: rgba(var(--cc-accent-tint-rgb), 0.14);
}
.cc-cal-day:focus-visible {
  outline: 2px solid var(--cc-gold-bold, var(--cc-accent-line));
  outline-offset: -2px;
}
/*$vite$:1*/