/* ============================================================
   ATLAS V6 · T2b — CYAN KILL  (2026-06-29, account B fleet)
   ------------------------------------------------------------
   Eradicates the last V5 dark-cyber cyan/teal leaks so the
   single-gold-accent rule holds across every view. Additive,
   LOAD-LAST — wired immediately before css/v6-lock.css, after
   every V5 bundle + V6 + T2 sheet, so these win.

   Root cause: bundle-base.css pins `:root{ --accent:#00d6ff
   !important; --accent-rgb:0,214,255 !important; --border:
   rgba(0,190,255,..) !important }`. That !important block beats
   v6-tokens.css (which is non-!important), so every V5 token
   consumer (--accent / --accent-rgb / --da / --border) rendered
   CYAN in the live DOM. Re-asserting those four tokens to the V6
   gold/neutral values (below) flips the bulk of the leaks in one
   move — including the `stroke="var(--accent)"` Pipeline-trend
   sparkline and the voice orb. The rest are hardcoded cyan hexes
   with !important, overridden explicitly after the token block.

   Scope discipline: ZERO blanket `*` rules. Semantic green
   (--good) + rose (--bad) are left untouched. Voice IDs (#orb /
   .vd-* / #tag-voice) get COLOR-only changes — size, position,
   and animation are never touched.
   ============================================================ */

/* ── 1. TOKEN RE-ASSERT — the linchpin ───────────────────────────────────────
   Win over the bundle-base/north_star `:root{ ... !important }` cyan block by
   equal-or-higher specificity loading later. Covers plain :root AND the
   [data-theme="light"] root the product locks to. Literal gold avoids any
   var() resolution edge case. */
:root,
[data-theme="light"],
:root[data-theme="light"] {
  --accent:      #c18a25 !important;   /* was #00d6ff cyan  → gold        */
  --accent-rgb:  193, 138, 37 !important; /* was 0,214,255 → gold rgb     */
  --border:      var(--line, #d7d0c3) !important;      /* was rgba(0,190,255,.11) cyan */
  --border2:     var(--surface-2, #ebe7de) !important; /* was rgba(0,190,255,.06) cyan */
}

/* ── 2. DEPT KPI STRIP (Pipeline / CRM / Listings / Marketing / Admin …) ──────
   Confirmed offenders from the Playwright scan. The big "—" value rendered
   cyan (color:var(--accent)); the tile carried a cyan background gradient
   (rgba(var(--da-rgb),.06) where --da-rgb == --accent-rgb). The token re-assert
   above already neutralizes both — these make it explicit + calm. */
.dept-kpis .dept-kpi,
.dept-kpi {
  background: var(--surface, #fffdf8) !important;  /* flat cream — no tint */
  border-color: var(--line, #d7d0c3) !important;
}
.dept-kpi-val {
  color: var(--gold, #c18a25) !important;
  text-shadow: none !important;
}
/* Text-valued KPI (e.g. Top Organic Query) reads better as ink than gold. */
.dept-kpi-val.dept-kpi-text {
  color: var(--ink, #101722) !important;
  text-shadow: none !important;
}
/* Thin top-accent bar on each tile — keep it, recolor gold (was --da cyan). */
.dept-kpi::before,
.tc-stat::before {
  background: linear-gradient(90deg, transparent, var(--gold, #c18a25), transparent) !important;
}

/* ── 3. V5 SOURCE LABEL ("LOFTY · Refreshed —") ──────────────────────────────
   Was color:var(--accent) → cyan. A provenance label should read quiet, so
   take it to muted slate (≥4.5:1 on cream) rather than gold. */
.v5-source-label { color: var(--muted, #647184) !important; }

/* ── 4. PIPELINE TREND sparkline ─────────────────────────────────────────────
   Markup (index.html:3655-3658) is an inline SVG whose line + gradient use
   `stroke="var(--accent)"` / `stop-color="var(--accent)"`. The §1 token
   re-assert ALREADY turns these gold (presentation attrs resolve the live
   custom-property value). Class overrides below are belt-and-suspenders and
   also win over any future inline stroke. */
.v5-trend-chart path,
.v5-trend-chart polyline,
.v5-trend-chart line { stroke: var(--gold, #c18a25) !important; }
.kpi-spark-line,
.kpi-strip .kpi-spark-line,
.cw-spark polyline { stroke: var(--gold, #c18a25) !important; }
.kpi-spark-fill,
.kpi-strip .kpi-spark-fill,
.cw-spark circle { fill: var(--gold, #c18a25) !important; }

/* ── 5. KPI STRIP — the one cyan per-metric accent ───────────────────────────
   .kpi-tile[data-metric="upcoming_closings"] hardcodes --ka:#00e5ff (cyan).
   The other --ka values (green/purple/amber/orange) are non-cyan → left alone. */
.kpi-tile[data-metric="upcoming_closings"] { --ka: var(--gold, #c18a25) !important; }

/* ── 6. LEFT RAIL — active + hover state ─────────────────────────────────────
   The live nav carries BOTH .rail-item (routing) and .v6-nav-item (visual) on
   each item. bundle-layout.css paints a CYAN active state
   ([data-theme="light"] .rail-item.active → cyan gradient bg + #00d6ff inset
   bar + cyan label glow) that out-specifies v6-nav.css's gold one. Re-assert
   the canonical V6 look (per atlas-cur-today.png): subtle white wash + GOLD
   inset bar + WHITE label, no glow. */
[data-theme="light"] .rail-item.active,
.sidebar-nav .rail-item.active,
.sidebar-nav .v6-nav-item.active,
[data-theme] .sidebar-nav .v6-nav-item.active,
.v6-nav-item.active {
  background: rgba(255, 255, 255, .10) !important;
  box-shadow: inset 3px 0 0 var(--gold, #c18a25) !important;
  color: var(--nav-text, #edf4fb) !important;
}
[data-theme="light"] .rail-item.active .ri-label,
.sidebar-nav .rail-item.active .ri-label,
.v6-nav-item.active .v6-nav-label,
.v6-nav-item.active .ri-label {
  color: var(--nav-text, #edf4fb) !important;
  text-shadow: none !important;
}
/* active sub-line + hover wash were cyan-tinted → neutral */
.rail-item.active .ri-sub { color: rgba(237, 244, 251, .62) !important; }
[data-theme="light"] .rail-item:hover {
  background: rgba(255, 255, 255, .05) !important;
}

/* ── 7. VOICE ORB — color only (size / position / animation untouched) ────────
   bundle-base.css:3128-3134 hardcodes the orb cyan with !important. Recast to
   a calm gold; #orb border per brief. Only background/border/shadow change. */
.orb {
  background: radial-gradient(circle at 34% 34%,
    rgba(193, 138, 37, .55), rgba(120, 85, 20, .12)) !important;
  border-color: rgba(193, 138, 37, .50) !important;
  box-shadow: 0 0 16px rgba(193, 138, 37, .40), 0 0 32px rgba(160, 120, 40, .20) !important;
}
.orb-ring { border-color: rgba(193, 138, 37, .22) !important; }
#orb { border-color: rgba(193, 138, 37, .50) !important; }

/* ── 8. NAMED hardcoded-cyan text/icon classes that can surface on data views ─
   (Day Brief table dates, calendar times, team-activity, intel sparks, sales-
   pipeline values, goal meters.) Cheap color-only fixes so a stray render is
   gold, never cyan. The retired V5 legacy-home HUD (.eh-*/.qbv-*/.qb-*/.pp-*)
   is display:none via v6-lock, so it never scans — not duplicated here. */
.pps-val-cyan,
.goal-pct,
.bp-td-date,
.ta-feed-who,
.cal-time,
.alerts-intel .intel-spark { color: var(--gold, #c18a25) !important; text-shadow: none !important; }
.goal-bar-fill { background: linear-gradient(90deg, var(--gold, #c18a25), #d7a13a) !important; }
