/* skin-v2.css — the "Raveno" redesign for Z-TARK: a clean, restrained light theme (with a dark
   toggle), layered on the existing token-driven UI. Everything here is scoped under
   html[data-skin="v2"], so with the skin off (the default) this file changes nothing — the current
   look is untouched. Turned on per-device via ?skin=v2. Light is the default; the sidebar toggle
   flips data-theme="dark". The Z-TARK logo is unchanged (just placed on a dark chip so it reads on
   the light sidebar). No data or dashboard logic is affected. */

/* ---- palette: redefining the existing tokens flips the whole app at once ---- */
html[data-skin="v2"]{
  --bg:#f3f3f6; --panel:#ffffff; --panel-2:#f0f0f4;
  --line:#e8e8ee; --line-2:rgba(20,22,30,.12); --raise:#ececf1;
  --text:#15161b; --ink:#15161b; --muted:#8a8c95;
  --pos:#12924f; --neg:#d23b3b; --warn:#b4791a; --blue:#2b6fd0;
  --accent:#e11d2a; --accent-2:#ff3b46;
  --active-bg:#17181e; --active-fg:#ffffff;       /* active nav pill */
  --radius:12px;
  color-scheme:light;
}
html[data-skin="v2"][data-theme="dark"]{
  /* deeper, neutral near-black surfaces (less blue-grey) + brighter whites, so
     dark mode reads black-and-white rather than muddy grey. Cards sit just
     above the black ground and are defined by the hairline border. */
  --bg:#060607; --panel:#0f0f11; --panel-2:#17171a;
  --line:#242428; --line-2:rgba(255,255,255,.14); --raise:#1b1b1e;
  --text:#f5f5f7; --ink:#f5f5f7; --muted:#86888f;
  --pos:#35c98f; --neg:#e5484d; --warn:#e8a13a; --blue:#6aa7ff;
  --accent:#e11d2a; --accent-2:#ff3b46;
  --active-bg:#f5f5f7; --active-fg:#0f0f11;        /* inverts to a white pill on black */
  color-scheme:dark;
}

/* ---- shape language: rounded cards, pill nav, softer controls ---- */
html[data-skin="v2"] .zt-mark{ background:#141519; border-radius:10px; padding:6px; box-sizing:border-box; }
html[data-skin="v2"] .sidebar .tab{ border-radius:11px; }
html[data-skin="v2"] .sidebar .tab.active{ background:var(--active-bg); color:var(--active-fg); box-shadow:none; }
html[data-skin="v2"] .sidebar .tab.active .wcb-badge,
html[data-skin="v2"] .sidebar .tab.active .mta-badge{ background:rgba(255,255,255,.18); }
html[data-skin="v2"] .btn{ border-radius:10px; }
html[data-skin="v2"] .btn-sm{ border-radius:9px; }
html[data-skin="v2"] .card,
html[data-skin="v2"] .lp-panel,
html[data-skin="v2"] .menu-row{ border-radius:14px; }
html[data-skin="v2"] input,
html[data-skin="v2"] textarea,
html[data-skin="v2"] .sel,
html[data-skin="v2"] #cust-search,
html[data-skin="v2"] #allcust-filter{ border-radius:10px; }
html[data-skin="v2"] .icon{ border-radius:12px; }

/* ---- a few spots that hardcoded light text for the old dark surfaces ---- */
html[data-skin="v2"] table.rep-table tr.grand td{ color:var(--text); }
html[data-skin="v2"] .zt-word span{ background:#ff1f2e; }   /* keep the brand red hyphen */

/* =====================================================================
   LIGHT-MODE AUDIT FIXES — the app was built dark, so these rules
   hardcoded dark backgrounds / light text / bright semantic hex that
   break on the light v2 surfaces. Each remaps to a v2 token tuned for
   a light background. All scoped to v2; default look untouched.
   ===================================================================== */

/* --- structural dark blocks → light surfaces --- */
html[data-skin="v2"] .map-msg{ background:var(--panel); color:var(--text); border:1px solid var(--line); }
html[data-skin="v2"] .loading{ background:var(--panel); color:var(--muted); border:1px solid var(--line); }
html[data-skin="v2"] .fc-quick .fc-act{ background:var(--panel-2); color:var(--text); border:1px solid var(--line); }
html[data-skin="v2"] .fc-q-custom{ background:var(--panel); color:var(--text); border:1px solid var(--line); }
html[data-skin="v2"] .mc-mo.live{ background:color-mix(in srgb,var(--pos) 12%,transparent); border-color:color-mix(in srgb,var(--pos) 40%,var(--line)); }
html[data-skin="v2"] .mc-mo.live .s{ color:var(--pos); }
html[data-skin="v2"] .mc-mo.locked .s{ color:var(--muted); }
html[data-skin="v2"] #lp-map .leaflet-bar a:hover{ background:var(--panel-2); color:var(--text); }

/* --- invisible light-on-light text --- */
html[data-skin="v2"] table.rep-table tr.rep-head td{ color:var(--text); }
html[data-skin="v2"] .brand-mark{ color:var(--text); }
html[data-skin="v2"] .lp-hbig{ color:var(--text); text-shadow:none; }
html[data-skin="v2"] .lp-click:hover{ background:color-mix(in srgb,var(--text) 5%,transparent); }
html[data-skin="v2"] .lp-ev.lp-click:hover .lp-etitle{ color:var(--text); }
html[data-skin="v2"] .oh-cell.has{ color:var(--pos); }
html[data-skin="v2"] .mta-head .mta-n{ color:var(--blue); background:color-mix(in srgb,var(--blue) 14%,transparent); }

/* --- bright semantic hex → light-tuned tokens --- */
/* home winner's-circle strip → monochrome: gold label/name → ink, the badge
   medallions + trophy emoji grayscale. */
html[data-skin="v2"] .wc-strip .wc-nm b{ color:var(--text); }
html[data-skin="v2"] .wc-strip .wc-k{ color:var(--muted); filter:grayscale(1); }
html[data-skin="v2"] .wc-strip .wc-med,
html[data-skin="v2"] .wc-strip .wc-mini{ filter:grayscale(1); }
html[data-skin="v2"] a[href^="mailto:"],
html[data-skin="v2"] a[href^="tel:"]{ color:var(--blue) !important; }
html[data-skin="v2"] a[href^="mailto:"]:hover,
html[data-skin="v2"] a[href^="tel:"]:hover{ color:var(--accent) !important; }
html[data-skin="v2"] #leads-table td.ac-contact a{ color:var(--blue); }
html[data-skin="v2"] #leads-table td.ac-contact a:hover{ color:var(--accent); }
html[data-skin="v2"] .up{ color:var(--pos); }
html[data-skin="v2"] .down{ color:var(--neg); }
html[data-skin="v2"] .kchip.ok{ color:var(--pos); }
html[data-skin="v2"] .kchip.over{ color:var(--neg); }
html[data-skin="v2"] .g-green{ color:var(--pos); }
html[data-skin="v2"] .g-amber{ color:var(--warn); }
html[data-skin="v2"] .g-red{ color:var(--neg); }
html[data-skin="v2"] .pp-ws.covered{ color:var(--pos); }
html[data-skin="v2"] .pp-ws.light{ color:var(--warn); }
html[data-skin="v2"] .grade.A,
html[data-skin="v2"] .grade.B{ color:var(--pos); }
html[data-skin="v2"] .grade.C{ color:var(--warn); }
html[data-skin="v2"] .grade.D,
html[data-skin="v2"] .grade.F{ color:var(--neg); }

/* =====================================================================
   MONOCHROME DATA-VIZ — tone the colorful charts down to ink/gray with
   only a whisper of color, to match the restrained "Raveno" reference.
   (Companion JS-gated changes in dashboard.js: paceStatus / homeSpark /
   momChip / donutCard — those emit inline color CSS can't cleanly beat.)
   ===================================================================== */

/* month actual-vs-goal bars (class-driven, CSS wins cleanly) */
html[data-skin="v2"] .mc-bar,
html[data-skin="v2"] .mc-bar.hit{ background:var(--ink); }
html[data-skin="v2"] .mc-bar.miss{ background:var(--muted); }   /* faint gray = the only miss cue */
html[data-skin="v2"] .mc-goal{ border-color:var(--line-2); background:rgba(20,22,30,.04); }
html[data-skin="v2"] .mc-tip .pg.up,
html[data-skin="v2"] .mc-tip .pg.dn{ color:var(--ink); }

/* Live Pulse feed — override the var(--c) consumers (no !important needed
   except the inline legend swatch); the ORD/REG/CLM tag TEXT stays the cue */
html[data-skin="v2"] .lp-ev::before,
html[data-skin="v2"] .lp-stat::after{ background:var(--ink); }
html[data-skin="v2"] .lp-tag{ color:var(--ink); border-color:var(--line-2); }
html[data-skin="v2"] .lp-chip.lp-on{ color:var(--ink); border-color:var(--line-2); background:color-mix(in srgb,var(--ink) 8%,transparent); }
html[data-skin="v2"] .lp-pin{ background:var(--ink); box-shadow:0 0 6px 1px rgba(20,22,30,.25); }
html[data-skin="v2"] .lp-pin::after{ border-color:var(--line-2); }
html[data-skin="v2"] .lp-lg i{ background:var(--muted) !important; }   /* legend swatch is inline bg */
/* map overlay FX: drop the red + blue radial tints and blue grid for a neutral monochrome wash */
html[data-skin="v2"] .lp-mapfx{
  background:
    radial-gradient(115% 80% at 26% 10%, rgba(20,22,30,.05), transparent 52%),
    radial-gradient(135% 120% at 50% 48%, transparent 60%, rgba(20,22,30,.05) 100%);
}
html[data-skin="v2"][data-theme="dark"] .lp-mapfx{
  background:
    radial-gradient(115% 80% at 26% 10%, rgba(255,255,255,.035), transparent 52%),
    radial-gradient(135% 120% at 50% 48%, transparent 56%, rgba(5,8,13,.5) 100%);
}
/* map tiles: crisper black-and-white (higher contrast, less faded, no blur) */
html[data-skin="v2"] #lp-map .leaflet-tile-pane{
  opacity:.92; filter:grayscale(1) contrast(1.14) brightness(1.02);
}
html[data-skin="v2"][data-theme="dark"] #lp-map .leaflet-tile-pane{
  opacity:.9; filter:grayscale(1) invert(.94) contrast(1.22) brightness(.98);
}

/* MetroTech analytics series purple → a deeper, less garish tone on light */
html[data-skin="v2"] #mt-analytics{ --mta-bc:#6c5ce7; }

/* =====================================================================
   dashboard.js color audit (70 confirmed breakages) — the inline-literal
   ones are gated in JS via the SK() helper; these are the few that are
   class-driven or that read an undefined --err with a bright fallback.
   ===================================================================== */
/* Many el.style.color = bad ? "var(--err, #f87171)" : … sites: --err was
   never defined, so they fell back to bright #f87171 in BOTH skins. Define
   it under v2 only → those reds become the light-tuned token; the default
   look still falls back to #f87171 (team untouched). */
html[data-skin="v2"]{ --err:var(--neg); }
/* rep-scorecard class-driven marks */
html[data-skin="v2"] .st-rank{ background:color-mix(in srgb,var(--pos) 14%,transparent); color:var(--pos); }
html[data-skin="v2"] .st-row.me{ background:color-mix(in srgb,var(--blue) 12%,transparent); }
html[data-skin="v2"] .st-short{ color:var(--neg); }

/* =====================================================================
   STANDALONE PAGES (warranty / labels / mpp / expenses / agenthq).
   Each page is its own document with an inline <style> + its own :root
   token names. They don't share the main app's tokens, so map their
   vocabulary onto the core v2 tokens here. Because the core tokens carry
   BOTH light and dark values, these aliases flip correctly in both modes
   (dark support comes free). The main app never uses these names, so this
   block is inert there. --ink/--text/--bg/--line/--muted/--accent/--panel
   are already handled by the core block above. --accent-ink (white text on
   the red button) is intentionally NOT remapped. */
html[data-skin="v2"]{
  --card:var(--panel); --card-2:var(--panel-2); --panel2:var(--panel-2);
  --chip:var(--panel-2); --sel:var(--blue);
  --ok:var(--pos); --bad:var(--neg); --mut:var(--muted); --none:var(--muted); --down:var(--neg); --amber:var(--warn);
  --accent-soft:color-mix(in srgb,var(--accent) 14%,transparent);
  --okbg:color-mix(in srgb,var(--pos) 12%,transparent);
  --warnbg:color-mix(in srgb,var(--warn) 13%,transparent);
  --errbg:color-mix(in srgb,var(--neg) 11%,transparent);
  --glow:color-mix(in srgb,var(--accent) 28%,transparent);
  --grad:linear-gradient(135deg,var(--accent),var(--accent-2));
}

/* =====================================================================
   STANDALONE PAGES — hardcoded-color fixes (per-page audit, 41 findings).
   Each remaps a hardcoded literal to a mode-aware core token, so one
   html[data-skin="v2"] rule fixes the broken mode and leaves the other
   correct. All scoped to v2; the default page look is untouched.
   ===================================================================== */

/* ---- warranty.html ---- */
html[data-skin="v2"] [style*="color:#fbbf24"]{ color:var(--warn) !important; }
html[data-skin="v2"] #t-print-note{ color:var(--warn) !important; }
html[data-skin="v2"] [style*="color:#4ade80"]{ color:var(--pos) !important; }
html[data-skin="v2"] [style*="color:#f87171"]{ color:var(--neg) !important; }
html[data-skin="v2"] .capinfo{ color:var(--muted); }
html[data-skin="v2"] .wcs-btn.placeholder,
html[data-skin="v2"] .wcs-opt.disabled{ color:var(--muted); }

/* ---- labels.html ---- */
html[data-skin="v2"] input,html[data-skin="v2"] select{ background:var(--panel); }
html[data-skin="v2"] .modal{ background:var(--panel); }
html[data-skin="v2"] .seg button.on{ color:var(--active-fg); }
html[data-skin="v2"] .tmplpick button.on{ color:var(--active-fg); }
html[data-skin="v2"] .seg button{ background:var(--panel); }
html[data-skin="v2"] .tmplpick button{ background:var(--panel); }
html[data-skin="v2"] .pv{ background:var(--panel); }
html[data-skin="v2"] .dark{ background:var(--ink); color:var(--active-fg); }
html[data-skin="v2"] .danger{ background:var(--panel); border-color:color-mix(in srgb,var(--neg) 35%,var(--line)); }
html[data-skin="v2"] .canvaswrap{ background:var(--panel-2); }
html[data-skin="v2"] .bstat.ok,html[data-skin="v2"] .pmsg.ok{ background:var(--okbg); color:var(--pos); }
html[data-skin="v2"] .bstat.bad{ background:var(--warnbg); color:var(--warn); }
html[data-skin="v2"] .pmsg.bad{ background:var(--errbg); color:var(--neg); }
html[data-skin="v2"] .ghost:hover{ background:var(--raise); }
html[data-skin="v2"] .prow select,html[data-skin="v2"] .prow input.pfx{ background:var(--panel); border-color:var(--line); }
html[data-skin="v2"] .prow .del{ background:var(--panel-2); color:var(--neg); }
html[data-skin="v2"] .prow input.pname,html[data-skin="v2"] .addrow input{ border-color:var(--line); }
html[data-skin="v2"] .modal h3{ border-bottom-color:var(--line); } html[data-skin="v2"] .modal .mfoot{ border-top-color:var(--line); }
html[data-skin="v2"] .prow .del:hover{ background:var(--errbg); }
html[data-skin="v2"] .phead{ color:var(--muted); }
html[data-skin="v2"] #bSetupWin span{ color:var(--muted)!important; }

/* ---- mpp.html ---- */
html[data-skin="v2"] input[type=text],
html[data-skin="v2"] input[type=email],
html[data-skin="v2"] input[type=url],
html[data-skin="v2"] input[type=date],
html[data-skin="v2"] select,
html[data-skin="v2"] textarea{ background:var(--panel); }
html[data-skin="v2"] .act-info{ background:var(--panel-2); }
html[data-skin="v2"] #actUsage{ background:var(--panel-2)!important; border-color:var(--line)!important; }
html[data-skin="v2"] .drop:hover,
html[data-skin="v2"] .drop.over{ background:color-mix(in srgb,var(--accent) 8%,transparent); }
html[data-skin="v2"] .msg.ok{ border-color:color-mix(in srgb,var(--pos) 35%,transparent); }
html[data-skin="v2"] .msg.warn{ border-color:color-mix(in srgb,var(--warn) 35%,transparent); }
html[data-skin="v2"] .msg.err{ border-color:color-mix(in srgb,var(--neg) 35%,transparent); }

/* ---- expenses.html ---- */
html[data-skin="v2"] .tab.active,
html[data-skin="v2"] .tab:hover{ color:var(--text); }
html[data-skin="v2"] .status.draft{ color:var(--muted); }
html[data-skin="v2"] .status.submitted{ color:var(--warn); }
html[data-skin="v2"] .status.approved{ color:var(--blue); }
html[data-skin="v2"] .status.paid{ color:var(--pos); }
html[data-skin="v2"] .status.rejected{ color:var(--neg); }
html[data-skin="v2"] .btn-reject{ color:var(--neg); border-color:var(--neg); }
html[data-skin="v2"] .btn.btn-reject:hover{ color:var(--neg); border-color:var(--neg); background:color-mix(in srgb,var(--neg) 12%,transparent); }
html[data-skin="v2"] .ocr-badge,
html[data-skin="v2"] .qbo-conn,
html[data-skin="v2"] .banner.ok{ color:var(--pos); }
html[data-skin="v2"] .banner.err{ color:var(--neg); }
html[data-skin="v2"] .rcpt-thumb{ background:var(--panel-2); }
html[data-skin="v2"] #vqc-exp .vqc-bar i{ background:var(--blue) !important; }
/* (expenses "Reports by Status" donut is recolored in the page's inline <script>, gated on v2) */

/* ---- agenthq.html ---- */
html[data-skin="v2"] .state.ok{ color:var(--pos); }
html[data-skin="v2"] .state.warn{ color:var(--warn); }
html[data-skin="v2"] .state.down{ color:var(--neg); }
html[data-skin="v2"] .state.none{ color:var(--muted); }
html[data-skin="v2"] .top{ background:var(--bg); }
html[data-skin="v2"] .act.danger{ color:var(--neg); }
html[data-skin="v2"] .sw span::after{ box-shadow:0 1px 2px rgba(0,0,0,.2); }

/* =====================================================================
   MOTION — a restrained take on the Raveno template's animation system.
   Signature easing + a subtle hover "push", a one-time app boot-in, and
   micro-interactions. All scoped to v2, and all event/load-triggered
   (hover, active, click, first paint) so nothing replays on the live
   dashboard's 10-second data refresh. Honors prefers-reduced-motion.
   ===================================================================== */
html[data-skin="v2"]{
  --ease-land:cubic-bezier(.2,.7,.2,1);    /* smooth decelerate — Raveno's base */
  --ease-scry:cubic-bezier(.22,1,.36,1);   /* ease-out-back */
}
/* keyframes (prefixed zt- so they never collide with a page's own) */
@keyframes zt-app-in{ from{ opacity:0; } }
@keyframes zt-slide-left{ from{ opacity:0; transform:translateX(-14px); } }
@keyframes zt-rise{ from{ opacity:0; transform:translateY(10px); } }
@keyframes zt-pop{ 0%{ transform:scale(.4); } 55%{ transform:scale(1.25); } 100%{ transform:scale(1); } }
@keyframes zt-glyph-spin{ from{ opacity:0; transform:rotate(-150deg) scale(.5); } }

@media (prefers-reduced-motion: no-preference){
  /* one-time app boot: the page fades in, the sidebar eases in from the left */
  html[data-skin="v2"] body{ animation:zt-app-in .30s var(--ease-land) both; }
  html[data-skin="v2"] .sidebar{ animation:zt-slide-left .36s var(--ease-scry) both; }

  /* the Raveno "push" — a subtle lift toward the top-left with a crisp offset
     shadow. Kept restrained (2px + a light ink shadow) rather than brutalist. */
  html[data-skin="v2"] .card,
  html[data-skin="v2"] .menu-row{
    transition:transform .2s var(--ease-land), box-shadow .2s var(--ease-land), border-color .2s var(--ease-land);
  }
  html[data-skin="v2"] .card:hover,
  html[data-skin="v2"] .menu-row:hover{
    transform:translate(-2px,-2px);
    box-shadow:3px 3px 0 color-mix(in srgb, var(--ink) 12%, transparent);
  }
  /* the big interactive panels shouldn't lift (map, pulse feed) */
  html[data-skin="v2"] .lp-panel:hover,
  html[data-skin="v2"] .lp-mapwrap:hover,
  html[data-skin="v2"] .card.lp-panel:hover{ transform:none; box-shadow:none; }

  /* buttons lift on hover, press down on click */
  html[data-skin="v2"] .btn{ transition:transform .16s var(--ease-land), background .16s var(--ease-land), box-shadow .16s var(--ease-land), color .16s var(--ease-land); }
  html[data-skin="v2"] .btn:hover{ transform:translateY(-2px); }
  html[data-skin="v2"] .btn:active{ transform:translateY(0); transition-duration:.05s; }

  /* nav pills nudge right on hover */
  html[data-skin="v2"] .sidebar .tab{ transition:background .18s var(--ease-land), color .18s var(--ease-land), box-shadow .18s var(--ease-land), transform .18s var(--ease-land); }
  html[data-skin="v2"] .sidebar .tab:not(.active):hover{ transform:translateX(3px); }

  /* sidebar count badges pop in */
  html[data-skin="v2"] .wcb-badge,
  html[data-skin="v2"] .mta-badge{ animation:zt-pop .42s var(--ease-land) both; }

  /* theme-toggle icon spin (one-shot, re-armed by the toggle handler in dashboard.js) */
  html[data-skin="v2"] .zt-ticon{ display:inline-block; }
  html[data-skin="v2"] .zt-ticon.zt-spin{ animation:zt-glyph-spin .5s var(--ease-land); }
}

/* =====================================================================
   FULL MONOCHROME (David wants the dashboard black-and-white like Raveno).
   Strip the red accent + semantic color from the UI chrome. Only the LOGO
   keeps its red (hardcoded in .zt-mark / .zt-word, untouched here).
   ===================================================================== */
/* primary buttons / toggles / active chips: red fill -> the ink "active pill"
   (--active-bg/--active-fg invert correctly in dark, like the nav pill, so
   the hardcoded white button text stays readable in both modes). */
html[data-skin="v2"] .btn-primary,
html[data-skin="v2"] #bulk-add,
html[data-skin="v2"] .btn-create,
html[data-skin="v2"] .btn-save,
html[data-skin="v2"] .pp-go,
html[data-skin="v2"] .pp-mode.active,
html[data-skin="v2"] .pp-rank,
html[data-skin="v2"] .pp-itin-num,
html[data-skin="v2"] .fc-act,
html[data-skin="v2"] .fc-mode button.on,
html[data-skin="v2"] .fc-dot.now,
html[data-skin="v2"] .ar-chip.on,
html[data-skin="v2"] #heat-toggle.on,
html[data-skin="v2"] .act-range .act-on,
html[data-skin="v2"] .cm-send,
html[data-skin="v2"] .cm-approve-dec,
html[data-skin="v2"] .vp-dock-fab,
html[data-skin="v2"] .vp-ic-btn.on{
  background:var(--active-bg) !important;
  border-color:var(--active-bg) !important;
  color:var(--active-fg) !important;
}
html[data-skin="v2"] .btn-primary:hover,
html[data-skin="v2"] #bulk-add:hover,
html[data-skin="v2"] .btn-create:hover,
html[data-skin="v2"] .pp-go:hover,
html[data-skin="v2"] .cm-send:hover,
html[data-skin="v2"] .cm-approve-dec:hover,
html[data-skin="v2"] .vp-dock-fab:hover{
  background:color-mix(in srgb, var(--active-bg) 85%, var(--panel)) !important;
  border-color:color-mix(in srgb, var(--active-bg) 85%, var(--panel)) !important;
}
/* rep / customer name links: red -> ink (underline on hover keeps the affordance) */
html[data-skin="v2"] .rep-link{ color:var(--text); }
html[data-skin="v2"] .rep-link:hover{ color:var(--text); text-decoration:underline; text-underline-offset:2px; }
/* status / grade / tier badges -> neutral monochrome. The number/letter/word
   inside (110%, A, GOAL) carries the meaning, so color is no longer needed. */
html[data-skin="v2"] .g-green,
html[data-skin="v2"] .g-amber,
html[data-skin="v2"] .g-red,
html[data-skin="v2"] .g-god,
html[data-skin="v2"] .grade.A,
html[data-skin="v2"] .grade.B,
html[data-skin="v2"] .grade.C,
html[data-skin="v2"] .grade.D,
html[data-skin="v2"] .grade.F{
  background:color-mix(in srgb, var(--ink) 8%, transparent) !important;
  color:var(--ink) !important;
}

/* ---- halloffame.html (gamified page → monochrome) ---- */
/* its own token vocabulary: layout grays + the red/gold/green accents → ink/gray.
   (The header "Z" chip's letter is hardcoded #fff, so an ink chip still reads.) */
html[data-skin="v2"]{
  --bg2:var(--panel-2); --line2:var(--line-2); --faint:var(--muted);
  --red:var(--ink); --red-dk:color-mix(in srgb, var(--ink) 78%, var(--panel));
  --gold:var(--muted); --green:var(--muted);
}
/* badge medallions → grayscale so the whole wall reads monochrome; the emoji +
   shape stay legible, and a hairline keeps them off the light card. */
html[data-skin="v2"] .medal{ filter:grayscale(1); }
html[data-skin="v2"] .medal.locked{ filter:grayscale(1) opacity(.65); }
/* person avatars (per-person color gradient) → grayscale; dept chip + its dot
   (inline-styled dept color) → neutral. White initials stay white. */
html[data-skin="v2"] .ava{ filter:grayscale(1); }
html[data-skin="v2"] .chip{ color:var(--muted) !important; }
html[data-skin="v2"] .chip .cdot{ background:var(--muted) !important; }

/* =====================================================================
   SLIDING NAV PILL (Raveno): one highlight that slides between menu items
   instead of the active highlight jumping. A .zt-navpill element is placed
   in nav.tabs by dashboard.js and moved to the active tab; here it's styled
   and the active tab goes transparent so the pill shows through. Only under
   prefers-reduced-motion:no-preference — otherwise the solid active pill
   (base rule) stays and no pill is created.
   ===================================================================== */
@media (prefers-reduced-motion: no-preference){
  html[data-skin="v2"] .sidebar .tabs{ position:relative; }
  html[data-skin="v2"] .zt-navpill{
    position:absolute; left:0; top:0; height:0; width:0;
    border-radius:11px; background:var(--active-bg);
    z-index:0; pointer-events:none; opacity:0; will-change:transform;
    transition:transform .34s var(--ease-land), width .34s var(--ease-land),
               height .28s var(--ease-land), opacity .2s var(--ease-land), background .2s;
  }
  html[data-skin="v2"] .sidebar .tab{ position:relative; z-index:1; }
  html[data-skin="v2"] .sidebar .tab.active{ background:transparent !important; box-shadow:none !important; }
}
