/* =============================================================
   ZARAS — Command Board hero (production: /platform hero)
   Tokens + board grid + cards + chips + invoice panel + hero
   layout + route-mesh background + elevation/glow + motion.
   Grounded in the production Zaras tokens (platform.html).

   ACCENT LANES (load-bearing):
     - teal/mint (--signal family) = the ONLY data/active accent
       — status pips, on-site card, payment timeline, pills,
       eyebrow dot, the single live route trace/node.
     - blue (--plat-rgb / --plat-hot, from page-glow.v6.css) =
       AMBIENT light ONLY — never on a data element.
     They are adjacent hues; mixing them in the same layer reads
     as muddy teal. Keep them in their lanes.

   v2 (this file): tone/colour pass on the hero ambient only.
     Base warm-black → deep blue-black (--cb-bg). Added a soft
     blue radial glow top-left (.cb-substrate-zone--blue) reusing
     the existing --plat-rgb/--plat-hot platform-blue tokens. The
     former teal ambient blob is now a faint cool reinforcement
     (--cool); the static route mesh + grid are cooled toward
     neutral so the blue reads through. No data accent changed;
     no layout changed.

   v3 (this file): extend the blue into a full envelope. Phase-1
     was top-weighted (blue top-left, near-black below). Added a
     wide, low, very-diffuse lower glow (.cb-substrate-zone--floor)
     whose hot centre sits behind the opaque board (occluded, by
     design) so only its soft falloff reaches the black side gutters
     flanking the board's lower half + the space below it — the
     bottom of the envelope, a continuation of --blue, not a ring or
     new hotspot. The inward vignette (.cb-hero::after) was eased at
     the bottom so the floor glow survives it. Same tokens (--plat-
     rgb/--plat-hot); still strictly ambient, green untouched.
   ============================================================= */

:root {
  --bg:        #0b0a09;
  --bg-sub:    #0e0d0b;
  --bg-raise:  #13110f;
  --ink:       #efece6;
  --ink-sub:   #b2aea4;
  --ink-mute:  #a8a39a;
  --ink-faint: #3a3935;

  --rule:      rgba(255,250,240,0.08);
  --rule-hi:   rgba(255,250,240,0.16);
  --rule-soft: rgba(255,250,240,0.05);

  --signal:        #76c7b2;
  --signal-ink:    #cde9e0;
  --signal-weak:   rgba(118,199,178,0.16);
  --signal-rule:   rgba(118,199,178,0.38);

  /* Hero ambient field (v2) — consumed only by .cbx/.cb-hero +
     substrate, so the rest of the page (warm --bg) is untouched.
     --cb-bg: deep blue-black, cool + desaturated, near-black with
     a blue cast (~hsl(220 32% 6%)) — NOT navy.
     --cb-grid-line: cool-neutral, fainter than --rule-soft, so the
     blue ambient reads through the grid instead of fighting it.
     The blue GLOW colour itself reuses --plat-rgb / --plat-hot
     (defined in css/page-glow.v6.css :root — the platform page's
     existing blue identity); not redeclared here. */
  --cb-bg:         #0a0d14;
  --cb-grid-line:  rgba(208,217,238,0.040);

  /* dispatch status palette */
  --c-onsite:   #76c7b2;
  --c-enroute:  #e4c46b;
  --c-hold:     #c47a7a;
  --c-done:     #3a3935;
  --c-upcoming: #a8a39a;

  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* =============================================================
   HERO SHELL — the framed artboard interior
   ============================================================= */
.cb-hero {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--cb-bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  isolation: isolate;
  font-feature-settings: "ss01", "cv11";
}
.cb-hero *, .cb-hero *::before, .cb-hero *::after { box-sizing: border-box; }
.cb-hero ::selection { background: var(--signal); color: #001714; }

/* ---- Route-mesh / grid substrate ---- */
.cb-substrate { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.cb-substrate-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right,  var(--cb-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--cb-grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 120% at var(--mesh-x, 70%) 42%, #000 0%, #000 52%, transparent 92%);
          mask-image: radial-gradient(120% 120% at var(--mesh-x, 70%) 42%, #000 0%, #000 52%, transparent 92%);
}
.cb-substrate-zone {
  position: absolute; border-radius: 50%; filter: blur(80px);
}
.cb-substrate-zone--blue {
  /* primary ambient glow — soft, diffuse, top-left, behind the
     headline. Reuses the platform-blue tokens; the base zone's
     blur(80px) keeps it ambient lighting, not a spotlight. */
  width: 1120px; height: 840px; left: -200px; top: -28%;
  background: radial-gradient(closest-side,
    rgb(var(--plat-hot) / 0.10),
    rgb(var(--plat-rgb) / 0.13) 40%,
    transparent 76%);
}
.cb-substrate-zone--cool {
  /* faint cool reinforcement, upper-right — same blue hue at low
     alpha so the top reads as one ambient blue wash, no second
     colour. Replaces the former teal blob that competed with it. */
  width: 820px; height: 660px; right: -120px; top: -6%;
  background: radial-gradient(closest-side,
    rgb(var(--plat-rgb) / 0.055), transparent 70%);
}
.cb-substrate-zone--floor {
  /* lower envelope — wide, low, very diffuse. The hot centre sits
     behind the board's lower half (occluded by the opaque surface,
     like the original page-glow), so only the soft falloff spills
     into the black side gutters + below the board: the bottom of
     the envelope, a continuation of --blue — not a hotspot/ring. */
  width: 2400px; height: 900px; left: 50%; bottom: -42%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side,
    rgb(var(--plat-rgb) / 0.17),
    rgb(var(--plat-rgb) / 0.07) 48%,
    transparent 78%);
}
.cb-substrate svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cb-route       { fill: none; stroke: rgba(208,217,238,0.055); stroke-width: 1; }
.cb-route.hi    { stroke: rgba(208,217,238,0.10); }
.cb-route.trace {
  stroke: rgba(118,199,178,0.62); stroke-width: 1.5;
  stroke-dasharray: 8 460;
  filter: drop-shadow(0 0 5px rgba(118,199,178,0.5));
  animation: cb-trace 15s linear infinite;
}
@keyframes cb-trace {
  0%   { stroke-dashoffset: 0;    opacity: 0; }
  7%   { opacity: 0.9; }
  93%  { opacity: 0.9; }
  100% { stroke-dashoffset: -468; opacity: 0; }
}
.cb-node      { fill: rgba(208,217,238,0.15); }
.cb-node.hi   { fill: rgba(208,217,238,0.28); }
.cb-node.live {
  fill: var(--signal);
  filter: drop-shadow(0 0 7px rgba(118,199,178,0.85));
  animation: cb-node-breath 2.6s ease-in-out infinite;
}
@keyframes cb-node-breath { 0%,100% { opacity: 0.65; } 50% { opacity: 1; } }
/* inward vignette — eased in v3 (0.5→0.34, clear radius 54%→60%) so
   the blue envelope's edge/floor washes survive instead of being
   crushed black at the gutters. Still gives the board gentle
   center-focus + depth, just less aggressively. */
.cb-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(125% 100% at 50% 38%, transparent 60%, rgba(0,0,0,0.34) 100%);
}

/* =============================================================
   HERO LAYOUT — content sits above substrate
   ============================================================= */
.cb-stage { position: relative; z-index: 2; width: 100%; height: 100%; display: flex; }

/* ---- narrative column ---- */
.cb-copy { display: flex; flex-direction: column; justify-content: center; }
.cb-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  align-self: flex-start;
  padding: 7px 15px 7px 12px;
  border: 1px solid var(--rule-hi);
  border-radius: 999px;
  background: rgba(255,255,255,0.018);
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-sub);
  backdrop-filter: blur(4px);
}
.cb-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--signal);
  animation: cb-pulse 2.4s ease-out infinite;
}
/* separator between the identity ("ZARAS · Platform") and live-state groups.
   Renders as a middot to match the in-text separators (was a vertical rule).
   Still acts as the mobile two-row line-break below — its glyph is hidden there. */
.cb-eyebrow .sep { align-self: center; color: var(--ink-mute); }
.cb-eyebrow .sep::before { content: "\00B7"; }
.cb-eyebrow .mute { color: var(--ink-mute); }
@keyframes cb-pulse {
  0%   { box-shadow: 0 0 0 0 var(--signal-weak); }
  70%  { box-shadow: 0 0 0 9px rgba(118,199,178,0); }
  100% { box-shadow: 0 0 0 0 rgba(118,199,178,0); }
}

.cb-h1 {
  font-family: var(--sans);
  font-weight: 500; letter-spacing: -0.036em; line-height: 0.94;
  color: var(--ink); margin: 0; text-wrap: balance;
}
.cb-h1 em { font-style: normal; color: var(--signal-ink); }

.cb-sub {
  color: var(--ink-sub); line-height: 1.55; text-wrap: pretty;
}
.cb-sub strong { color: var(--ink); font-weight: 500; }

.cb-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cb-btn-primary {
  display: inline-flex; align-items: center; gap: 13px;
  padding: 14px 18px 14px 22px;
  background: var(--ink); color: #0a0a0a;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.10em; text-transform: uppercase;
  border-radius: 9px; border: 1px solid var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 16px 34px -16px rgba(255,255,255,0.18), 0 2px 4px -2px rgba(0,0,0,0.5);
  transition: transform 240ms cubic-bezier(.2,.6,.1,1), background 240ms ease;
}
.cb-btn-primary .arr { border-left: 1px solid rgba(0,0,0,0.18); padding-left: 13px; transition: transform 240ms ease; }
.cb-btn-primary:hover { transform: translateY(-1px); background: #fff; }
.cb-btn-primary:hover .arr { transform: translateX(3px); }
.cb-btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-sub); padding: 13px 2px; transition: color 180ms ease;
}
.cb-btn-ghost:hover { color: var(--ink); }
.cb-btn-ghost .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }

/* trust/qualifier note under the CTA row — mirrors home's .home-hero-cta-note */
.cb-cta-note {
  display: flex; align-items: center; gap: 8px;
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1;
}
.cb-cta-note .tick { color: var(--signal); font-size: 12px; }

/* small stat strip */
.cb-stats { display: flex; gap: 0; border-top: 1px solid var(--rule); }
.cb-stat { display: flex; flex-direction: column; gap: 5px; padding: 16px 22px 0 0; }
.cb-stat + .cb-stat { padding-left: 22px; border-left: 1px solid var(--rule); }
.cb-stat .k {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); white-space: nowrap;
}
.cb-stat .v { color: var(--ink); font-size: 15px; font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cb-stat .v em { font-style: normal; color: var(--signal-ink); }

/* =============================================================
   THE BOARD — dimensional, lit dispatch surface
   ============================================================= */
.cb-board-frame {
  position: relative;
  border-radius: 16px;
  /* elevation + restrained teal aura */
}
.cb-board-aura {
  position: absolute; inset: -10% -8%; z-index: 0; pointer-events: none;
  background: radial-gradient(54% 60% at 56% 46%, rgba(118,199,178,0.16) 0%, rgba(118,199,178,0.04) 42%, transparent 76%);
  filter: blur(12px);
}
.cb-board-shadow {
  position: absolute; left: 6%; right: 6%; bottom: -5%; height: 64px; z-index: 0;
  background: radial-gradient(60% 100% at 50% 0%, rgba(0,0,0,0.7), transparent 72%);
  filter: blur(14px); pointer-events: none;
}
.cb-board {
  position: relative; z-index: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.028) 0%, transparent 14%),
    var(--bg-sub);
  border: 1px solid var(--rule-hi);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 2px 0 rgba(0,0,0,0.4),
    0 60px 120px -44px rgba(0,0,0,0.95),
    0 20px 44px -24px rgba(0,0,0,0.7);
}
/* specular sweep across the glass */
.cb-board-sheen { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; border-radius: 14px; mix-blend-mode: screen; }
.cb-board-sheen::before {
  content: ""; position: absolute; top: -60%; bottom: -60%; left: -40%; width: 18%;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.012) 42%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0.012) 58%, transparent 100%);
  transform: skewX(-14deg);
  animation: cb-sheen 10s ease-in-out infinite;
}
@keyframes cb-sheen {
  0%, 32% { transform: skewX(-14deg) translateX(-60px); opacity: 0; }
  42%     { opacity: 0.55; }
  54%     { opacity: 0.55; }
  62%     { transform: skewX(-14deg) translateX(760px); opacity: 0; }
  100%    { transform: skewX(-14deg) translateX(760px); opacity: 0; }
}

/* ---- board header ---- */
.cb-board-head {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--rule);
  background: rgba(255,250,240,0.012);
}
.cb-board-head-l { display: inline-flex; align-items: baseline; gap: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.cb-board-title { color: var(--ink-sub); display: inline-flex; align-items: center; gap: 9px; }
.cb-board-title .live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 8px var(--signal);
  animation: cb-pulse 2.3s ease-out infinite;
}
.cb-board-clock { color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.cb-board-legend { display: inline-flex; gap: 16px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.cb-board-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cb-lg { width: 8px; height: 8px; border-radius: 2px; background: var(--ink-faint); }
.cb-lg-onsite  { background: var(--c-onsite); }
.cb-lg-enroute { background: var(--c-enroute); }
.cb-lg-hold    { background: var(--c-hold); }
.cb-lg-done    { background: var(--c-done); }

/* ---- grid ---- */
.cb-grid {
  display: grid;
  grid-template-columns: var(--cb-time-col, 64px) repeat(var(--cb-crews, 4), minmax(0, 1fr));
  position: relative;
}
.cb-colhead {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-mute);
  padding: 11px 13px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule-soft);
  display: flex; align-items: center; gap: 8px;
  min-height: 40px;
}
.cb-colhead:last-child { border-right: 0; }
.cb-colhead.cb-colhead--time { background: rgba(255,250,240,0.012); }
.cb-colhead .crew-id { color: var(--ink-sub); }
.cb-colhead .crew-st {
  margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint);
}
.cb-colhead .crew-st[data-st="onsite"]  { background: var(--c-onsite); box-shadow: 0 0 0 2px rgba(118,199,178,0.16); }
.cb-colhead .crew-st[data-st="enroute"] { background: var(--c-enroute); }
.cb-colhead .crew-st[data-st="hold"]    { background: var(--c-hold); }

.cb-hour {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; color: var(--ink-mute);
  padding: 7px 11px;
  border-right: 1px solid var(--rule-soft);
  border-top: 1px solid var(--rule-soft);
  display: flex; align-items: flex-start;
  font-variant-numeric: tabular-nums;
}
.cb-cell {
  border-right: 1px solid var(--rule-soft);
  border-top: 1px solid var(--rule-soft);
  position: relative;
  padding: 4px;
}
.cb-cell:nth-child(var(--last)) { border-right: 0; }

/* ---- now-line ---- */
.cb-nowline {
  position: absolute; left: var(--cb-time-col, 64px); right: 0;
  height: 1px; background: var(--c-onsite);
  z-index: 5; pointer-events: none;
  box-shadow: 0 0 8px rgba(118,199,178,0.4);
}
.cb-nowline::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px;
  border-radius: 50%; background: var(--c-onsite); transform: translate(-50%,-50%);
  box-shadow: 0 0 10px var(--signal);
}
.cb-nowline-label {
  position: absolute; right: 100%; top: 50%; transform: translateY(-50%);
  margin-right: 10px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-onsite); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.cb-nowline .sweep {
  position: absolute; left: 0; top: 0; height: 1px; width: 22%;
  background: linear-gradient(90deg, transparent, var(--signal), transparent);
  filter: blur(0.5px);
  animation: cb-now-sweep 6s ease-in-out infinite;
}
@keyframes cb-now-sweep {
  0%   { transform: translateX(0); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateX(360%); opacity: 0; }
}

/* =============================================================
   JOB CARDS — brightness gradient by time-state
   ============================================================= */
.cb-job {
  position: absolute; left: 4px; right: 4px;
  border-radius: 5px;
  border: 1px solid var(--rule);
  background: rgba(255,250,240,0.02);
  padding: 8px 11px 9px;
  display: flex; flex-direction: column; gap: 3px;
  overflow: hidden;
  z-index: 2;
  transition: opacity 500ms ease, box-shadow 600ms ease, border-color 600ms ease, background 600ms ease, transform 500ms ease;
}
.cb-job-status {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute); display: inline-flex; align-items: center; gap: 6px;
}
.cb-pip { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); flex-shrink: 0; }
.cb-pip[data-st="onsite"]   { background: var(--c-onsite); box-shadow: 0 0 0 2px rgba(118,199,178,0.18); }
.cb-pip[data-st="enroute"]  { background: var(--c-enroute); }
.cb-pip[data-st="hold"]     { background: var(--c-hold); }
.cb-pip[data-st="done"]     { background: var(--c-done); }
.cb-pip[data-st="upcoming"] { background: var(--c-upcoming); }
.cb-job-t {
  color: var(--ink); font-weight: 500; font-size: 12.5px; letter-spacing: -0.008em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cb-job-t .tag {
  margin-left: 6px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em;
  color: var(--ink-mute); font-weight: 400;
}
.cb-job-m {
  color: var(--ink-sub); font-family: var(--mono); font-size: 10px; letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cb-job-money {
  color: var(--ink-mute); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums; margin-top: auto;
}
.cb-job-money em { font-style: normal; color: var(--signal-ink); }

/* ---- time-state brightness gradient ---- */
.cb-job[data-time="past"]   { opacity: 0.46; border-color: var(--rule-soft); }
.cb-job[data-time="past"] .cb-job-t { color: var(--ink-sub); font-weight: 400; }
.cb-job[data-time="future"] { opacity: 0.82; }

/* ---- status treatments ---- */
.cb-job[data-st="done"] .cb-job-status { color: var(--ink-mute); }
.cb-job[data-st="enroute"] {
  background: rgba(228,196,107,0.06); border-color: rgba(228,196,107,0.24);
}
.cb-job[data-st="enroute"] .cb-job-status { color: var(--c-enroute); }
.cb-job[data-st="enroute"] .cb-job-t { color: #f2dfa8; }
.cb-job[data-st="hold"] {
  background: rgba(196,122,122,0.06); border: 1px dashed rgba(196,122,122,0.34);
}
.cb-job[data-st="hold"] .cb-job-status { color: #dba6a6; }
.cb-job[data-st="hold"] .cb-job-t { color: #ecc0c0; }
.cb-job[data-st="upcoming"] {
  background: transparent; border: 1px dashed var(--rule-soft);
}
.cb-job[data-st="upcoming"] .cb-job-status { color: var(--c-upcoming); }
.cb-job[data-st="upcoming"] .cb-job-t { color: var(--ink-sub); font-weight: 400; }

/* ---- the live focal job (teal) ---- */
.cb-job[data-st="onsite"], .cb-job.is-live {
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(118,199,178,0.10) 0%, rgba(118,199,178,0.03) 100%);
  border-color: var(--signal-rule);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 1px rgba(118,199,178,0.18),
    0 0 28px rgba(118,199,178,0.20),
    0 14px 30px -18px rgba(0,0,0,0.8);
  z-index: 4;
}
.cb-job[data-st="onsite"] .cb-job-status { color: var(--c-onsite); }
.cb-job[data-st="onsite"] .cb-job-t { color: var(--signal-ink); }
.cb-job.is-live .cb-pip[data-st="onsite"] { animation: cb-pip-pulse 2.2s ease-out infinite; }
@keyframes cb-pip-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(118,199,178,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(118,199,178,0); }
  100% { box-shadow: 0 0 0 0 rgba(118,199,178,0); }
}
.cb-job.is-live::after {
  content: ""; position: absolute; inset: 0; border-radius: 5px; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(118,199,178,0.0);
  animation: cb-live-halo 2.8s ease-in-out infinite;
}
@keyframes cb-live-halo {
  0%,100% { box-shadow: 0 0 22px rgba(118,199,178,0.12) inset; }
  50%     { box-shadow: 0 0 34px rgba(118,199,178,0.22) inset; }
}

/* SLA tight chip */
.cb-sla { display: inline-flex; align-items: center; gap: 4px; }
.cb-sla .tag {
  padding: 1px 5px; background: rgba(228,196,107,0.16); color: var(--c-enroute);
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; border-radius: 3px;
}

/* compact card (single-row hold/upcoming) */
.cb-job--compact { gap: 2px; justify-content: center; }
.cb-job--compact .cb-job-status { font-size: 8.5px; }

/* status-change flash for the live dispatch moment */
.cb-job.just-changed {
  animation: cb-job-flash 800ms ease-out 1;
}
@keyframes cb-job-flash {
  0%   { box-shadow: 0 0 0 0 rgba(118,199,178,0.55), inset 0 1px 0 rgba(255,255,255,0.06); }
  60%  { box-shadow: 0 0 0 12px rgba(118,199,178,0), inset 0 1px 0 rgba(255,255,255,0.06); }
  100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 0 1px rgba(118,199,178,0.18), 0 0 28px rgba(118,199,178,0.20); }
}

/* =============================================================
   ACTIVE-DISPATCH CALLOUT (variant B focal annotation)
   ============================================================= */
.cb-callout {
  position: absolute; z-index: 7;
  background: rgba(14,13,11,0.92);
  border: 1px solid var(--signal-rule);
  border-radius: 10px;
  padding: 13px 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(118,199,178,0.10), 0 18px 40px -20px rgba(0,0,0,0.9), 0 0 30px rgba(118,199,178,0.14);
  width: 234px;
}
.cb-callout-k { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--signal-ink); display: inline-flex; align-items: center; gap: 7px; }
.cb-callout-k .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px var(--signal); animation: cb-pulse 2.2s ease-out infinite; }
.cb-callout-t { color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: -0.01em; margin-top: 8px; line-height: 1.25; }
.cb-callout-m { color: var(--ink-sub); font-family: var(--mono); font-size: 10px; letter-spacing: 0.02em; margin-top: 6px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.cb-callout-m em { font-style: normal; color: var(--signal-ink); }
.cb-callout-leader { position: absolute; z-index: 6; height: 1px; background: linear-gradient(90deg, var(--signal-rule), transparent); }

/* =============================================================
   INVOICE / PAYMENT PROOF PANEL (variant C + chips elsewhere)
   ============================================================= */
.cb-invoice {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.022) 0%, transparent 16%), var(--bg-sub);
  border-left: 1px solid var(--rule);
}
.cb-inv-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px; border-bottom: 1px solid var(--rule);
}
.cb-inv-issuer { display: inline-flex; align-items: center; gap: 10px; }
.cb-inv-mark {
  width: 26px; height: 26px; border-radius: 6px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--rule-hi);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; color: var(--ink-sub); letter-spacing: 0.04em;
}
.cb-inv-issuer-name { font-size: 12.5px; font-weight: 500; color: var(--ink-sub); letter-spacing: -0.005em; }
.cb-inv-id { text-align: right; }
.cb-inv-id .type { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; color: var(--ink-mute); }
.cb-inv-id .num  { display: block; font-family: var(--mono); font-size: 12px; color: var(--ink-sub); letter-spacing: 0.04em; margin-top: 2px; }

.cb-inv-billto { padding: 16px 20px 14px; border-bottom: 1px solid var(--rule); }
.cb-inv-k { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.cb-inv-v { color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: -0.01em; margin-top: 6px; }
.cb-inv-sub { color: var(--ink-sub); font-family: var(--mono); font-size: 10px; letter-spacing: 0.02em; margin-top: 3px; line-height: 1.5; }

.cb-inv-events { padding: 16px 20px; border-bottom: 1px solid var(--rule); position: relative; }
.cb-inv-rail { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 13px; }
.cb-inv-rail::before {
  content: ""; position: absolute; left: 4px; top: 7px; bottom: 7px; width: 1px; background: var(--rule);
}
.cb-inv-event { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 8px; padding-left: 20px; }
.cb-inv-event::before {
  content: ""; position: absolute; left: 1px; top: 4px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-faint); border: 1px solid var(--bg-sub); z-index: 1;
}
.cb-inv-event--done::before { background: var(--ink-sub); }
.cb-inv-event-k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-sub); }
.cb-inv-event-v { font-family: var(--mono); font-size: 10px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.cb-inv-event--pending .cb-inv-event-k { color: var(--ink-mute); }
.cb-inv-event--pending::before {
  background: var(--signal); box-shadow: 0 0 0 3px var(--signal-weak);
  animation: cb-pulse 2.2s ease-out infinite;
}
.cb-inv-event.is-cleared::before { background: var(--signal); box-shadow: 0 0 10px var(--signal); animation: none; }
.cb-inv-event.is-cleared .cb-inv-event-k { color: var(--signal-ink); }
.cb-inv-event.is-cleared .cb-inv-event-v { color: var(--signal-ink); }

/* payment payoff block */
.cb-pay {
  margin-top: auto; padding: 18px 20px 20px; border-top: 1px solid var(--rule);
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(255,250,240,0.012));
  transition: background 600ms ease;
}
.cb-pay::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 2px;
  background: transparent; transition: background 500ms ease, box-shadow 500ms ease;
}
.cb-pay.is-paid::before { background: var(--signal); box-shadow: 0 0 16px rgba(118,199,178,0.7); animation: cb-accent-pulse 3.2s ease-in-out infinite; }
@keyframes cb-accent-pulse { 0%,100% { box-shadow: 0 0 12px rgba(118,199,178,0.5); } 50% { box-shadow: 0 0 24px rgba(118,199,178,0.95); } }
.cb-pay.is-paid { background: linear-gradient(180deg, rgba(118,199,178,0.10), rgba(118,199,178,0.02)); }
.cb-pay-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(80% 120% at 16% 50%, rgba(118,199,178,0.34), transparent 70%); }
.cb-pay.just-paid .cb-pay-flash { animation: cb-paid-flash 1100ms ease-out 1; }
@keyframes cb-paid-flash { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }
.cb-pay-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); transition: color 500ms ease; }
.cb-pay.is-paid .cb-pay-label { color: var(--signal-ink); }
.cb-pay-label .pip { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-mute); transition: background 500ms ease, box-shadow 500ms ease; }
.cb-pay.is-paid .cb-pay-label .pip { background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.cb-pay-amount { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 13px; }
.cb-pay-lead { display: flex; align-items: center; gap: 13px; }
.cb-pay-seal {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--signal-rule);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.6);
  transition: opacity 400ms ease, transform 500ms cubic-bezier(.22,1,.36,1), background 500ms ease, box-shadow 500ms ease;
}
.cb-pay-seal svg { width: 18px; height: 18px; }
.cb-pay-seal svg path { stroke: var(--signal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; fill: none; stroke-dasharray: 22; stroke-dashoffset: 22; }
.cb-pay.is-paid .cb-pay-seal { opacity: 1; transform: scale(1); background: var(--signal-weak); box-shadow: 0 0 0 5px rgba(118,199,178,0.07), 0 0 22px rgba(118,199,178,0.4); }
.cb-pay.is-paid .cb-pay-seal svg path { animation: cb-check-draw 520ms cubic-bezier(.65,0,.35,1) 180ms forwards; }
@keyframes cb-check-draw { to { stroke-dashoffset: 0; } }
.cb-pay-value { font-family: var(--sans); font-size: 32px; font-weight: 500; letter-spacing: -0.024em; color: var(--ink-mute); font-variant-numeric: tabular-nums; line-height: 1; transition: color 600ms ease; }
.cb-pay.is-paid .cb-pay-value { color: var(--ink); }
.cb-pay-meta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); text-align: right; line-height: 1.5; transition: color 500ms ease; }
.cb-pay.is-paid .cb-pay-meta { color: var(--signal-ink); }
.cb-pay-meta strong { display: block; font-weight: 400; color: inherit; }

/* =============================================================
   PAYMENT-CLEARED TOAST (compact proof chip for A & B)
   ============================================================= */
.cb-paytoast {
  position: absolute; z-index: 7;
  display: flex; align-items: center; gap: 11px;
  padding: 11px 15px;
  background: rgba(14,13,11,0.92);
  border: 1px solid var(--signal-rule);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(118,199,178,0.10), 0 18px 40px -20px rgba(0,0,0,0.9), 0 0 30px rgba(118,199,178,0.14);
  opacity: 0; transform: translateY(8px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(.22,1,.36,1);
}
.cb-paytoast.is-shown { opacity: 1; transform: translateY(0); }
.cb-paytoast-seal {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--signal-weak); border: 1.5px solid var(--signal-rule);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(118,199,178,0.35);
}
.cb-paytoast-seal svg { width: 16px; height: 16px; }
.cb-paytoast-seal svg path { stroke: var(--signal); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; fill: none; stroke-dasharray: 22; stroke-dashoffset: 22; }
.cb-paytoast.is-shown .cb-paytoast-seal svg path { animation: cb-check-draw 520ms cubic-bezier(.65,0,.35,1) 200ms forwards; }
.cb-paytoast-k { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--signal-ink); }
.cb-paytoast-v { color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: -0.01em; margin-top: 3px; font-variant-numeric: tabular-nums; }
.cb-paytoast-v .sub { color: var(--ink-mute); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.04em; font-weight: 400; margin-left: 6px; }

@media (prefers-reduced-motion: reduce) {
  .cb-hero *, .cb-hero *::before, .cb-hero *::after { animation: none !important; }
}

/* =============================================================
   CONNECTED-PAYMENTS RAIL — secondary surface (final hero)
   Lower visual weight than the board; readable, not a hero card.
   ============================================================= */
.cb-rail {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.014) 0%, transparent 18%),
    #0b0a09;
  position: relative;
}
.cb-rail::before { /* recessed seam shadow so the board reads as primary */
  content: ""; position: absolute; left: 0; top: 58px; bottom: 0; width: 26px;
  background: linear-gradient(90deg, rgba(0,0,0,0.42), transparent);
  pointer-events: none; z-index: 1;
}
.cb-rail-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 22px;
  position: relative; z-index: 2; background: #0b0a09;
  box-shadow: 0 1px 0 var(--rule); /* hairline sits BELOW the row, never through the label */
}
.cb-rail-k {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute);
}
.cb-rail-linked {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  color: var(--signal-ink);
  padding: 4px 9px; border: 1px solid var(--signal-rule); border-radius: 999px;
  background: var(--signal-weak);
}
.cb-rail-linked .dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 8px var(--signal); animation: cb-pulse 2.3s ease-out infinite;
}
.cb-rail-client { padding: 16px 22px 15px; border-bottom: 1px solid var(--rule); }
.cb-rail-name { color: var(--ink); font-size: 15px; font-weight: 500; letter-spacing: -0.012em; }
.cb-rail-scope { color: var(--ink-sub); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.02em; margin-top: 5px; }
/* Fill the events region so the connected-record timeline spans the panel
   height and its spine threads down toward the settlement block — closing the
   void between the last event and the job-total without moving the settlement
   (which stays aligned with where the board→rail connector lands). */
.cb-rail-events { flex: 1; display: flex; flex-direction: column; }
.cb-rail .cb-inv-rail { flex: 1; align-content: space-between; }
.cb-rail .cb-inv-event-k { font-size: 10.5px; }
.cb-rail .cb-inv-event-v { font-size: 10.5px; }

/* compact pay block — total present, not the focal point */
.cb-pay--rail { padding: 16px 22px 18px; }
.cb-pay--rail::before { display: none; } /* drop the accent bar; hierarchy is carried by the numerals */

/* payment hierarchy — the JOB TOTAL is the largest numeral; the
   deposit is the active/teal state but deliberately smaller, so the
   rail never implies the job is worth only the deposit. */
.cb-pay-headline {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.cb-pay-k {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
}
.cb-pay-total {
  font-family: var(--sans); font-size: 30px; font-weight: 500; letter-spacing: -0.024em;
  line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums;
}
.cb-pay-deposit {
  display: flex; align-items: center; gap: 11px;
  margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--rule-soft);
}
.cb-pay--rail .cb-pay-seal { width: 26px; height: 26px; }
.cb-pay--rail .cb-pay-seal svg { width: 14px; height: 14px; }
.cb-pay-deposit-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cb-pay-deposit .cb-pay-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-sub); transition: color 500ms ease;
}
.cb-pay-deposit .cb-pay-meta {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.02em; color: var(--ink-mute);
  font-variant-numeric: tabular-nums; transition: color 500ms ease;
}
.cb-pay-deposit-amt {
  margin-left: auto; font-family: var(--sans); font-size: 15px; font-weight: 500;
  letter-spacing: -0.01em; color: var(--ink-sub); font-variant-numeric: tabular-nums;
  transition: color 500ms ease;
}
.cb-pay--rail.is-paid .cb-pay-deposit .cb-pay-label,
.cb-pay--rail.is-paid .cb-pay-deposit-amt { color: var(--signal-ink); }
.cb-pay--rail.is-paid .cb-pay-deposit .cb-pay-meta { color: var(--signal-ink); }
.cb-pay-balance {
  margin-top: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em;
  color: var(--ink-mute); font-variant-numeric: tabular-nums;
}
.cb-pay-balance [data-pay-balance] { color: var(--ink-sub); }

/* now-line glides as the clock advances across phases */
.cb-nowline { transition: top 1100ms cubic-bezier(.4,0,.2,1); }

/* focal card keeps its teal "featured/live" surface through the
   EN ROUTE → ON SITE change; only the status chip + pip recolor */
.cb-job.is-live[data-st="enroute"] {
  background: linear-gradient(180deg, rgba(118,199,178,0.10) 0%, rgba(118,199,178,0.03) 100%);
  border-color: var(--signal-rule);
}
.cb-job.is-live .cb-job-t { color: var(--signal-ink); }

/* =============================================================
   BOARD → RAIL CONNECTOR WIRE (final hero)
   Elbow route from the live job up into the JOB-7402 header.
   ============================================================= */
.cbf-wire {
  position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: visible;
  opacity: 0; transition: opacity 600ms ease;
}
.cbf-wire.is-on { opacity: 1; }
.cbf-wire-line {
  fill: none; stroke: rgba(118,199,178,0.62); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 3px rgba(118,199,178,0.3));
}
.cbf-wire-flow {
  fill: none; stroke: var(--signal); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 26 150;
  filter: drop-shadow(0 0 5px rgba(118,199,178,0.7));
  animation: cbf-wire-flow 4.6s cubic-bezier(.5,0,.5,1) infinite;
}
@keyframes cbf-wire-flow {
  0%   { stroke-dashoffset: 176; opacity: 0; }
  16%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.cbf-wire-node {
  fill: var(--signal);
  filter: drop-shadow(0 0 6px rgba(118,199,178,0.9));
}
.cbf-wire-dock { /* landing node at the rail's edge */
  fill: var(--bg-sub); stroke: var(--signal); stroke-width: 1.5;
  filter: drop-shadow(0 0 6px rgba(118,199,178,0.7));
}
/* JOB-7402 pill lights when the connector is live */
.cb-rail-linked.is-linked {
  border-color: var(--signal); color: var(--signal-ink);
  box-shadow: 0 0 0 1px rgba(118,199,178,0.18), 0 0 16px rgba(118,199,178,0.22);
}

/* ------ contrast floor: keep the brightness gradient (past dim,
   live brightest, future medium) but lift supporting elements so
   the axis, headers, and inactive content stay readable ------ */
.cb-hour { color: #b8b3a9; font-size: 10.5px; }
.cb-colhead .crew-id { color: var(--ink); }
.cb-colhead { color: var(--ink-sub); }
.cb-job[data-time="past"] { opacity: 0.62; }            /* was 0.46 — still clearly ghosted */
.cb-job[data-time="past"] .cb-job-t { color: var(--ink-sub); }
.cb-job[data-st="done"] .cb-job-m,
.cb-job[data-st="done"] .cb-job-money { color: var(--ink-mute); }
.cb-job[data-st="hold"] .cb-job-m { color: #cfa9a9; }   /* hold body — readable */
.cb-job[data-st="upcoming"] { opacity: 0.9; }
.cb-job[data-st="upcoming"] .cb-job-t { color: var(--ink-sub); }
.cb-job[data-st="upcoming"] .cb-job-m { color: var(--ink-mute); }

@media (prefers-reduced-motion: reduce) {
  /* render the deposit-received check statically (no draw-in) */
  .cb-pay.is-paid .cb-pay-seal svg path { stroke-dashoffset: 0 !important; }
  .cbf-wire-flow { display: none; }
  .cbf-wire-line { stroke: rgba(118,199,178,0.7); }
}

/* =============================================================
   MINI FOCAL CALLOUT — clearer active-job tag (board-internal)
   ============================================================= */
.cb-mini {
  position: absolute; z-index: 9; pointer-events: none;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 12px;
  background: rgba(14,13,11,0.94);
  border: 1px solid var(--signal-rule); border-radius: 8px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(118,199,178,0.08), 0 14px 30px -16px rgba(0,0,0,0.9), 0 0 22px rgba(118,199,178,0.16);
  white-space: nowrap;
}
.cb-mini .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px var(--signal); animation: cb-pulse 2.3s ease-out infinite; flex: none; }
.cb-mini > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.cb-mini-k { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal-ink); display: block; }
.cb-mini-v { color: var(--ink); font-size: 11.5px; font-weight: 500; letter-spacing: -0.005em; display: block; }
.cb-mini-v .sub { color: var(--ink-mute); font-family: var(--mono); font-size: 9.5px; font-weight: 400; margin-left: 6px; letter-spacing: 0.02em; }

/* =============================================================
   BOARD + RAIL SURFACE (.cbf-surface / .cbf-merge)
   The merged operating surface used by the final hero and the
   in-page module: board (primary) + connected-payments rail.
   ============================================================= */
.cbf-surface { position: relative; }
.cbf-aura {
  position: absolute; inset: -7% -5% -9% -5%; z-index: 0; pointer-events: none;
  background: radial-gradient(46% 62% at 60% 46%, rgba(118,199,178,0.16) 0%, rgba(118,199,178,0.04) 44%, transparent 78%);
  filter: blur(14px);
}
.cbf-floor {
  position: absolute; left: 8%; right: 8%; bottom: -3.5%; height: 60px; z-index: 0;
  background: radial-gradient(60% 100% at 50% 0%, rgba(0,0,0,0.72), transparent 72%);
  filter: blur(14px); pointer-events: none;
}
.cbf-merge {
  position: relative; z-index: 1; height: 100%;
  display: flex; align-items: stretch;
  border: 1px solid var(--rule-hi); border-radius: 15px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 13%), var(--bg-sub);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 2px 0 rgba(0,0,0,0.45),
    0 64px 120px -42px rgba(0,0,0,0.96),
    0 22px 48px -26px rgba(0,0,0,0.72);
}
.cbf-merge [data-board] { flex: 1 1 auto; min-width: 0; display: flex; }
.cbf-merge [data-board] .cb-board-frame { flex: 1; border-radius: 0; }
.cbf-merge [data-invoice] { flex: 0 0 358px; display: flex; }
.cbf-merge .cb-board-aura, .cbf-merge .cb-board-shadow { display: none; }
.cbf-merge .cb-board { border: 0; border-radius: 0; box-shadow: none; background: transparent; width: 100%; }
.cbf-merge .cb-invoice { height: 100%; width: 100%; }
.cbf-merge::after {
  content: ""; position: absolute; inset: 0; z-index: 7; pointer-events: none; overflow: hidden; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 44%, rgba(255,255,255,0.025) 50%, transparent 56%);
  background-size: 280% 100%; background-position: 120% 0;
  animation: cbf-sheen 11s ease-in-out infinite;
}
@keyframes cbf-sheen { 0%, 34% { background-position: 120% 0; } 60% { background-position: -40% 0; } 100% { background-position: -40% 0; } }

/* =============================================================
   IN-PAGE HERO MODULE (.cbx) — responsive drop-in for the
   Platform page. Fluid copy band + a board surface that scales
   to the container; a readable compact stack below ~720px.
   Breakpoints are CONTAINER queries so the module adapts to its
   own width (works identically in-page and in test harnesses).
   ============================================================= */
.cbx {
  position: relative; isolation: isolate; height: auto;
  background: var(--cb-bg); color: var(--ink);
  font-family: var(--sans); -webkit-font-smoothing: antialiased;
  overflow: hidden; container-type: inline-size;
  --mesh-x: 62%;
}
.cbx-inner {
  position: relative; z-index: 2;
  max-width: 1320px; margin: 0 auto;
  padding: 60px 48px 64px;
}
.cbx-top {
  display: grid; grid-template-columns: 1.12fr 1fr; align-items: end; gap: 56px;
  margin-bottom: 30px;
}
.cbx-lead .cb-eyebrow { margin-bottom: 20px; }
.cbx .cb-h1 { font-size: clamp(30px, 4.6cqw, 46px); max-width: 18ch; }
.cbx-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 52ch; padding-bottom: 4px; }
.cbx .cb-sub { font-size: clamp(14px, 1.5cqw, 16px); }

.cbx-stats { display: flex; align-items: stretch; gap: 0; margin: 20px 0 0; border-top: 1px solid var(--rule); }
.cbx-stat { display: flex; flex-direction: column; gap: 5px; padding: 15px 26px 0 0; }
.cbx-stat + .cbx-stat { padding-left: 26px; border-left: 1px solid var(--rule); }
.cbx-stat .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-mute); white-space: nowrap; }
.cbx-stat .v { color: var(--ink); font-size: 17px; font-weight: 500; letter-spacing: -0.014em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cbx-stat .v em { font-style: normal; color: var(--signal-ink); }

/* scaled board surface */
.cbx-stage { position: relative; }
.cbx-scaler { position: relative; width: 100%; }
.cbx-scaler .cbf-surface {
  position: absolute; top: 0; left: 50%;
  transform-origin: top center; transform: translateX(-50%) scale(1);
  width: 1240px; height: 620px;
}
.cbx-compact { display: none; }

/* thread caption — names the live job so the sections below read as one story */
.cbx-caption {
  margin: 22px auto 0; max-width: 72ch;
  font-family: var(--sans); font-size: 13px; line-height: 1.55;
  letter-spacing: 0.005em; color: var(--ink-mute); text-align: center;
}
.cbx-caption .thread { color: var(--signal-ink); font-weight: 500; white-space: nowrap; }

/* ≤960px (matches the site-nav hamburger breakpoint): stack the copy
   band, retire the scaled board, and show a compact command summary
   instead of a cramped Gantt. */
@container (max-width: 960px) {
  .cbx-top { grid-template-columns: 1fr; gap: 24px; }
  .cbx-aside { max-width: 64ch; }
  .cbx-inner { padding: 48px 32px 52px; }
  .cbx-stage .cbx-scaler { display: none; }
  .cbx-compact { display: block; }

  /* hero→body TONE SEAM. On mobile the hero's blue band ends high, so its
     cool --cb-bg meets the warm body --bg at a hard horizontal edge. Fade
     the hero's bottom into --bg so the boundary reads as one continuous
     surface darkening into the next section — the section-divider hairline
     (.workflow border-top, page-wide) then sits warm-on-warm like every
     other one, not across a cool/warm jump. Sits ABOVE the substrate so it
     also resolves the floor-glow's residual blue, and BELOW the content
     (the compact card paints over it). No new tokens; mobile only. */
  .cbx::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 150px; z-index: 2; pointer-events: none;
    background: linear-gradient(to bottom, transparent, var(--bg));
  }
}
@container (max-width: 600px) {
  /* #3 · tighten the lead stack so the operating surface arrives sooner */
  .cbx-inner { padding: 28px 20px 40px; }
  .cbx-stats { flex-wrap: wrap; gap: 0; margin-top: 16px; }
  .cbx-stat { padding: 13px 16px 0 0; }
  .cbx-stat + .cbx-stat { padding-left: 16px; }

  /* #1 · eyebrow lightened to a kicker — pill chrome dropped + smaller, so it
     sits below the headline in weight. Still two rows (identity / live-state);
     the .sep is the line-break, its middot glyph hidden. */
  .cbx-lead .cb-eyebrow {
    flex-wrap: wrap; row-gap: 4px; column-gap: 9px;
    padding: 0; border: 0; background: none; border-radius: 0; backdrop-filter: none;
    font-size: 10px; letter-spacing: 0.14em; color: var(--ink-mute); margin-bottom: 14px;
  }
  .cbx-lead .cb-eyebrow > span:not(.sep):not(.dot) { white-space: nowrap; }
  .cbx-lead .cb-eyebrow .sep { flex-basis: 100%; width: 100%; height: 0; background: none; margin: 0; font-size: 0; }

  /* #3 · tighten the stacked headline → stats → subcopy → CTA rhythm */
  .cbx-top { gap: 16px; }
  .cbx-aside { gap: 13px; }
  .cbx-aside .cb-cta-row { gap: 12px 16px; margin: 0; }

  /* deliberate two-row compact header */
  .cbx-compact .cbx-c-head { flex-direction: column; align-items: flex-start; gap: 5px; }
}

/* command summary — compact, readable; same story (live day,
   active Riverbend job, connected deposit/payment), no tiny board */
.cbx-compact {
  max-width: 520px; margin-inline: auto;   /* phones stay full-width (narrower); caps the card on the 600–960 tablet band so the stack doesn't read sparse */
  border: 1px solid var(--rule-hi); border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 12%), var(--bg-sub);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 36px 70px -38px rgba(0,0,0,0.92);
}
.cbx-c-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-sub);
}
.cbx-c-head .live { display: inline-flex; align-items: center; gap: 8px; }
.cbx-c-head .live .d { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px var(--signal); animation: cb-pulse 2.3s ease-out infinite; }
.cbx-c-head .clk { color: var(--ink-mute); }

/* crew status rows — three UNIFORM peers (closed / hold / on-site) so they
   read as one operating system; the on-site crew is the selected member.
   #2 (system visible) + #4 (HOLD is a peer here, not an orphan footer). */
.cbx-c-crews { list-style: none; margin: 0; padding: 0; }
.cbx-c-crew {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 11px 18px; border-bottom: 1px solid var(--rule-soft);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
}
.cbx-c-crew-id { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-sub); text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; flex: none; }
.cbx-c-crew-id .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); flex: none; }
.cbx-c-crew-st { color: var(--ink-mute); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbx-c-crew[data-st="hold"] .pip { background: var(--c-hold); }
.cbx-c-crew[data-st="hold"] .cbx-c-crew-st { color: #cfa9a9; }
.cbx-c-crew[data-st="onsite"] .pip { background: var(--c-onsite); box-shadow: 0 0 0 3px rgba(118,199,178,0.16); }
/* v6: en-route crew (CREW 04) — gold pip + tinted status, matching the desktop
   board's enroute treatment. Without this rule the pip fell back to neutral
   --ink-faint (done-grey), reading as idle while the label says "En route". */
.cbx-c-crew[data-st="enroute"] .pip { background: var(--c-enroute); }
.cbx-c-crew[data-st="enroute"] .cbx-c-crew-st { color: #f2dfa8; }
/* selected (on-site) member — highlighted by colour/tint only, NOT enlarged,
   so the three rows stay a parallel set. Connects to its detail below. */
.cbx-c-crew.is-selected { background: rgba(118,199,178,0.08); border-bottom-color: transparent; }
.cbx-c-crew.is-selected .cbx-c-crew-id { color: var(--signal-ink); }
.cbx-c-crew.is-selected .cbx-c-crew-st { color: var(--c-onsite); }

/* selected crew's expanded detail — a SUBORDINATE child of the on-site row:
   indented + lighter, with a thin teal spine dropping from the row's pip,
   so the three-row set stays legible above it (not a featured card). */
.cbx-c-focal {
  position: relative; padding: 7px 18px 14px 34px;
  background: linear-gradient(180deg, rgba(118,199,178,0.05), transparent 70%);
}
.cbx-c-focal::before {
  content: ""; position: absolute; left: 20px; top: -2px; bottom: 16px; width: 2px;
  border-radius: 1px; background: var(--signal-rule);
}
.cbx-c-title { color: var(--signal-ink); font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.cbx-c-title .tag { font-family: var(--mono); font-size: 10px; color: var(--ink-mute); margin-left: 8px; font-weight: 400; }
.cbx-c-meta { color: var(--ink-sub); font-family: var(--mono); font-size: 11px; margin-top: 4px; }

/* connected payment — the differentiated mobile payoff; the teal deposit
   seal carries the record thread from the selected job. */
.cbx-c-pay { padding: 16px 18px; border-top: 1px solid var(--rule); }
.cbx-c-pay-k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.cbx-c-pay-total { font-family: var(--sans); font-size: 26px; font-weight: 500; letter-spacing: -0.022em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; margin-top: 4px; }
.cbx-c-pay-dep { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--rule-soft); }
.cbx-c-pay-seal { width: 22px; height: 22px; border-radius: 50%; flex: none; background: var(--signal-weak); border: 1.5px solid var(--signal-rule); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 14px rgba(118,199,178,0.3); }
.cbx-c-pay-seal svg { width: 12px; height: 12px; }
.cbx-c-pay-seal svg path { stroke: var(--signal); stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cbx-c-pay-dep .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal-ink); }
.cbx-c-pay-dep .m { font-family: var(--mono); font-size: 9.5px; color: var(--ink-mute); display: block; margin-top: 2px; }
.cbx-c-pay-dep .amt { margin-left: auto; font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--signal-ink); font-variant-numeric: tabular-nums; }
.cbx-c-pay-bal { margin-top: 10px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.04em; color: var(--ink-mute); }
.cbx-c-pay-bal em { font-style: normal; color: var(--ink-sub); }
