/* Oakmont CRM · NEON theme tokens (design spec THEME-NEON.md, Sep 29, 2026 · design only, not live).
   A third theme on the theme-v2 token system: load AFTER shell.css and set <html data-theme="neon">.
   Every name shell.css reads is redefined here, so Slices are not redone; anything not listed falls back to the dark
   theme (:root). New names: --desk-*, --st-*, --risk-*, --glow-*, --fx-conf-*, --r-*, --dur-* and --ease-* overrides.
   Meaning rules (unchanged): green = Live only · red = Overdue, Breached and errors only · Hot is magenta, never red ·
   Lost is the only dead-lead name · risk = word + ring, never colour alone · gold = actions + active state (+ the Won moment).
   Every text/background pair is checked by contrast_neon.py → contrast-neon.md (build fails on any FAIL). */

[data-theme="neon"]{
  color-scheme:dark;
  /* ---- shape: crisp, sharp (Brent: "crisp sharp edges") ---- */
  --radius-card:4px; --radius-ctl:3px; --radius-icon:1px;
  --r-bar:0px; --r-mark:2px; --r-kbd:2px; --r-item:3px; --r-sm:3px; --r-btn:3px; --r-md:4px; --r-lg:4px; --r-sheet:8px; --r-pill:2px; --r-round:50%;
  /* ---- motion ---- */
  --dur-1:90ms; --dur-2:160ms; --dur-3:220ms; --dur-move:280ms; --dur-page:200ms;
  --dur-bp:900ms; --dur-bp-first:700ms; --dur-truss:900ms; --dur-conf:1050ms; --conf-delay:700ms; --dur-won-glow:1600ms;
  --ease-out:cubic-bezier(.16,.84,.24,1); --ease-in-out:cubic-bezier(.5,0,.2,1); --ease-snap:cubic-bezier(.3,1.25,.5,1);
  --lift-hover:-2px;
  /* ---- type ---- */
  --font-ui:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --font-mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --ls-neon:.14em; --ls-label:.09em; --fw-neon:650;

  /* ---- surfaces: near-black, cool, layered (never pure #000) ---- */
  --bg-0:#07080b; --bg-1:#0d0f14; --bg-2:#13161d; --bg-3:#1b1f29;
  --topbar:rgba(7,8,11,.78); --glass:rgba(13,15,20,.80);
  --border-1:rgba(47,227,255,.22);          /* row separators, cyan so a list still reads as neon */
  --border-2:#3dcfef;                        /* tube core: card, column, panel (≥3:1 vs bg-0/bg-1) */
  --border-input:#7ae7ff;                    /* inputs, secondary buttons (≥3:1 vs bg-2) */
  --light-edge:inset 0 1px 0 rgba(255,255,255,.07);
  /* ---- text ---- */
  --text-1:#f2f5fa; --text-2:#bcc4d3; --text-3:#98a1b4;
  --text-3-glass:#ccd4e2; --accent-text-glass:#ffd36b;   /* was #b8c0d0, then #c0c8d6: raised so captions stay AA over a photo (#fff) under the glass, with the shimmer peak left at .10 */
  --desk-sales-glass:#bdbcff; --desk-jobs-glass:#ffb070; --practice-glass:#cfc0ff;   /* desk/pill text on glass (shimmer-safe) */
  /* ---- action accent: neon gold (Oakmont's bronze, lit up) ---- */
  --accent-fill:#ffc53d; --accent-hover:#ffd466; --accent-press:#eab22c; --on-accent:#140e00; --accent-text:#ffcc55;
  --accent-tint:rgba(255,197,61,.12); --accent-line:rgba(255,204,85,.60);
  --accent-glow:0 0 0 1px #fff6cc,0 0 8px rgba(255,204,85,.75),0 0 16px rgba(255,82,238,.45),0 0 22px rgba(47,227,255,.30);
  --focus:0 0 0 2px var(--bg-0),0 0 0 4px #fff6cc,0 0 12px 2px rgba(255,204,85,.70),0 0 20px 2px rgba(47,227,255,.45);
  /* ---- depth ---- */
  --shadow-1:var(--light-edge),0 1px 0 rgba(0,0,0,.6);
  --shadow-2:var(--light-edge),0 10px 28px rgba(0,0,0,.65),0 2px 6px rgba(0,0,0,.5);
  --shadow-3:0 22px 60px rgba(0,0,0,.75);
  --shadow-call:inset 0 1px 0 rgba(255,255,255,.55),0 0 8px rgba(255,197,61,.55);
  --hover-wash:rgba(170,200,255,.045); --press-wash:rgba(170,200,255,.08);
  /* ---- status ---- */
  --danger:#ff6666; --danger-tint:rgba(255,102,102,.12);
  --danger-solid:#d8233c; --danger-solid-hover:#bf1d33; --on-danger:#ffffff;
  --live:#3dff9a; --live-text:#5effae; --live-tint:rgba(61,255,154,.10);     /* Live pill ONLY */
  --practice:#c7b5ff; --practice-line:rgba(170,140,255,.60); --practice-tint:rgba(170,140,255,.12);
  --backdrop:rgba(0,0,0,.66);
  --cue-overdue:#ff6666; --cue-due:#5cb2ff; --cue-hot:#ff52ee;
  --cue-new:#f2f5fa; --cue-new-a:#f2f5fa; --cue-new-b:#f2f5fa; --cue-new-text:#f2f5fa;
  --cue-needs:#b5bdcc; --cue-tint:13%; --cue-worked:#a2afc4;
  /* pipeline status (chips on cards + card edge); each also has a word and an icon */
  --st-new:#f2f5fa;       /* bright neutral + filled dot */
  --st-hot:var(--cue-hot);
  --st-bid:#c9b6ff;       /* Bid out: lavender */
  --st-won:#ffd978;       /* Won: champagne gold, truss icon (the one status that shares the gold family: it IS the moment) */
  --st-lost:#98a1b4;      /* Lost: neutral + ✕, the only dead-lead name */
  --st-later:#9fb4d0;     /* Later: slate + clock, dimmed card */
  /* going-cold risk: ring + word. Low and Medium are neutral; High and Breached use the error red. */
  --risk-low:#7d879c; --risk-med:#dfe4ee; --risk-high:#ff6666; --risk-breach:#ff6666; --risk-track:#39414f;
  /* desks (owner bands: 2px column-header band, person tab underline, avatar ring; never a status chip) */
  --desk-prescreen:#2fe3ff; /* Jamison */
  --desk-sales:#a3a1ff;     /* Shaun */
  --desk-jobs:#ff9b45;      /* Brent · owner */
  /* ---- mini timeline ---- */
  --tl-done:#bcc4d3; --tl-line:#8b94a8; --tl-future:#6b7590; --tl-now:#ffcc55; --tl-lost:#ff6666; --tl-later:#98a1b4;
  /* ---- glass (navigation, controls, overlays ONLY) ---- */
  --glass-bg:rgba(13,15,20,.60); --glass-bg-dense:rgba(13,15,20,.74); --glass-solid:#13161d;
  --glass-blur:24px; --glass-saturate:1.8;
  --glass-backdrop:blur(24px) saturate(1.8) brightness(.45);
  --glass-backdrop-dense:blur(28px) saturate(1.6) brightness(.5);
  --glass-sheen:linear-gradient(180deg,rgba(200,230,255,.10),rgba(200,230,255,0) 30%);
  --glass-fill:var(--glass-sheen),linear-gradient(var(--glass-bg),var(--glass-bg));
  --glass-fill-dense:var(--glass-sheen),linear-gradient(var(--glass-bg-dense),var(--glass-bg-dense));
  --glass-border:#5ae3ff;                    /* lit tube hairline, ≥3:1 vs bg-0 */
  --glass-edge:inset 0 1px 0 rgba(210,235,255,.28),inset 0 0 0 1px rgba(255,255,255,.03),inset 0 -1px 0 rgba(0,0,0,.4);
  --glass-shadow:0 1px 0 rgba(0,0,0,.5),0 12px 28px -8px rgba(0,0,0,.6),0 36px 80px -20px rgba(0,0,0,.75);
  --glass-shadow-bar:0 1px 0 rgba(0,0,0,.5),0 10px 30px -10px rgba(0,0,0,.6);
  /* ambient light behind glass: cool cyan + violet + a little gold (desktop drift only) */
  --bg-glow:radial-gradient(820px 520px at 0% -8%,rgba(47,227,255,.34),transparent 58%),radial-gradient(740px 480px at 100% -4%,rgba(255,82,238,.30),transparent 56%),radial-gradient(900px 560px at 78% 108%,rgba(163,161,255,.26),transparent 60%),radial-gradient(680px 420px at 12% 112%,rgba(255,197,61,.22),transparent 62%);
  --bg-grid:rgba(47,227,255,.11);
  --fx-sheen:rgba(200,230,255,.07); --fx-sheen-band:rgba(200,230,255,.10);
  --fx-amber:#b5bdcc; --fx-worked:#a2afc4; --fx-gold:#ffd978; --fx-gold-tint:rgba(255,217,120,.22);
  /* ---- glow budget: max blur 12px steady (20px only during the 1.6 s Won moment), max alpha .45, spread ≤ 2px ---- */
  --glow-focus:0 0 10px 2px rgba(255,204,85,.40);
  --glow-step:drop-shadow(0 0 5px rgba(255,204,85,.55));
  --glow-live:0 0 8px rgba(61,255,154,.40);
  --glow-won:0 0 20px 2px rgba(255,217,120,.45);
  --glow-drop:0 0 12px rgba(255,204,85,.25);
  /* ---- confetti: gold + the three desk colours + white (never green = Live, never red = error) ---- */
  --fx-conf-1:#ffc53d; --fx-conf-2:#2fe3ff; --fx-conf-3:#a3a1ff; --fx-conf-4:#ff9b45; --fx-conf-5:#f2f5fa; --fx-conf-6:#ffd978;
  /* ---- blueprint signature, neon ink ---- */
  --bp-line:rgba(47,227,255,.42); --bp-grid:rgba(47,227,255,.14); --bp-ink:#2fe3ff;
  /* ---- shimmer (Brent, Sep 29 5:54 PM via CoS: "animation and shimmer", keep them prominent) ----
     A highlight band on a pseudo-element, moved with transform only. Peaks are CAPPED by contrast_neon.py:
     every text pair still passes AA with the band at its brightest (plus the static top sheen) right over it. */
  --shimmer-rgb:225,240,255;
  --shimmer-glass-peak:.10;   /* glass: nav, column headers, sheets, toasts. Cap stays .10 so captions stay AA. The stronger read is the rim, not the wash over letters. */
  --shimmer-btn-peak:.55;     /* gold buttons: Call/primary, Send text, Won (dark label only gets MORE contrast) */
  --shimmer-won-peak:.24;     /* the Won chip on a solid card (still under the .26 cap) */
  --shimmer-edge-peak:1;      /* the 2 px glint that rides the glass rim with the band: full tube, never over text */
  --shimmer-band:48%; --shimmer-angle:100deg;
  --ease-sweep:cubic-bezier(.37,0,.63,1);   /* even speed across the bar so the streak reads as one pass */
  --dur-shimmer:780ms;        /* one glass sweep, faster so the streak reads as a neon pass */
  --dur-shimmer-btn:480ms;    /* one button sweep on hover or focus */
  --shimmer-first:280ms;      /* first ambient sweep after the page is ready */
  --shimmer-every:16s;        /* then at most one ambient sweep per 16 s (phone 24 s), tab visible only */
  --shimmer-every-phone:24s;
  /* ---- animated neon edges ---- */
  --dur-hot-pulse:1300ms; --hot-pulse-min:.15; --hot-pulse-max:1;   /* Hot only: a clearly visible magenta tube breathe */
  --glow-hot:inset 0 0 0 1px #ffb3f8,inset 0 0 0 2px rgba(255,82,238,.95),inset 0 0 12px rgba(255,82,238,.70);   /* INSET because live .bcard/.q clip (overflow:hidden) */
  --dur-focus-pulse:1400ms;   /* keyboard focus: edge breathes twice, then holds bright */
  --edge-focus:inset 0 0 0 2px #ffcc55,inset 0 0 10px -2px rgba(255,204,85,.40);   /* inner edge; the outer --focus ring on the element stays static */
  --dur-breach-once:600ms;    /* Breached: ONE pulse when it turns Breached while you watch, never loops */
  /* ---- livelier transitions (transform + opacity only) ---- */
  --ease-spring:cubic-bezier(.34,1.45,.64,1);        /* ≈ 6 % overshoot: cards landing, toast in, view enter */
  --ease-spring-soft:cubic-bezier(.25,1.2,.5,1);     /* ≈ 3 %: sheets, column reflow */
  --ease-exit:cubic-bezier(.4,0,1,1);
  --dur-enter:240ms; --dur-exit:160ms; --enter-stagger:30ms;   /* stagger capped at 8 cards (240 ms) */
  --dur-reflow:300ms; --dur-view:260ms; --dur-sheet-in:320ms; --dur-sheet-out:200ms; --dur-toast-in:280ms; --dur-toast-out:180ms;
  /* ---- MAYA items built with Neon (THEME-NEON.md §0 · live parts only; nothing here claims an unbuilt feature) ---- */
  /* #2 handoff baton: the note that travels, its receipt, the back flag, the slide */
  --note-edge:var(--text-2);          /* fallback; the sender's desk colour when lead-flow.js sets data-from-desk on .hnote */
  --baton-bg:var(--bg-1);             /* solid: the note is content, never glass */
  --baton-rcpt-wait:var(--border-input);   /* hollow dot + "Not opened by Shaun yet" */
  --baton-rcpt-open:var(--text-1);         /* filled dot + "Shaun opened it 9:31 AM" (no green: green = Live only) */
  --cue-back:#e6eaf2;                 /* "↩ Back from Shaun": neutral bright + arrow (Dark's #b197fc would sit on Bid out lavender) */
  --dur-baton:320ms;                  /* the card leaves toward the next desk */
  /* #5 Thing 2 board change card and #12 "From the call": a suggestion waits for a person */
  --sug-bg:var(--accent-tint); --sug-line:#9a7d33;   /* dashed = not applied yet (≥3:1 on its own tint) */
  --sug-mark:var(--accent-text);      /* ◆ to review */
  --sug-done:var(--text-2);           /* ✓ Applied · value · Undo */
  /* #13 hook (styles only): the live Quo status pill; the Connections page itself isn't scheduled */
  --quo-ok:var(--live); --quo-down:var(--danger); --quo-unk:var(--text-3); --quo-off:var(--border-input);
  /* #14 customer bubble: a neutral ink, not Prescreen cyan or any desk colour (critic blocker 1) */
  --cust:#d5dbe6; --cust-tint:rgba(213,219,230,.10); --cust-line:#9aa3b5;
  /* board */
  --board-col-bg:var(--bg-1); --board-card-bg:var(--bg-2);
  /* neon-sign tubes (0.1.40.1). Halo sits outside the box. --neon-live flickers 0→1 once on load, then holds at 1. */
  --glow-head:0 0 1px #fff,0 0 7px rgb(255 204 85 / calc(var(--neon-live) * .95)),0 0 14px rgb(47 227 255 / calc(var(--neon-live) * .6));
  --glow-num:0 0 1px #fff6cc,0 0 8px rgb(255 204 85 / calc(var(--neon-live) * .9)),0 0 16px rgb(255 82 238 / calc(var(--neon-live) * .45));
  --tube-card:inset 0 0 0 1px rgb(255 255 255 / calc(var(--neon-live) * .55)),0 0 0 1px color-mix(in srgb,var(--edge,#2fe3ff) calc(var(--neon-live) * 90%),transparent),0 0 8px color-mix(in srgb,var(--edge,#2fe3ff) calc(var(--neon-live) * 65%),transparent),0 0 16px rgb(255 204 85 / calc(var(--neon-live) * .5)),0 0 24px rgb(255 82 238 / calc(var(--neon-live) * .38));
  --tube-card-hover:inset 0 0 0 1px #fff,0 0 0 1px #bff9ff,0 0 12px rgb(47 227 255 / calc(var(--neon-live) * .85)),0 0 22px rgb(255 204 85 / calc(var(--neon-live) * .7)),0 0 32px rgb(255 82 238 / calc(var(--neon-live) * .55));
  --tube-col:inset 0 0 0 1px color-mix(in srgb,var(--desk,#ffcc55) calc(var(--neon-live) * 75%),transparent),0 0 12px color-mix(in srgb,var(--desk,#2fe3ff) calc(var(--neon-live) * 50%),transparent),0 0 22px rgb(255 82 238 / calc(var(--neon-live) * .28));
  --tube-nav:inset 0 -2px 0 #fff6cc,inset 0 -3px 0 rgb(255 204 85 / calc(var(--neon-live) * 1)),inset 0 -4px 0 rgb(47 227 255 / calc(var(--neon-live) * .85)),0 0 10px rgb(255 204 85 / calc(var(--neon-live) * .55)),0 8px 18px rgb(47 227 255 / calc(var(--neon-live) * .4)),0 12px 28px rgb(255 82 238 / calc(var(--neon-live) * .32));
  --tube-tab:inset 0 2px 0 #fff6cc,inset 0 3px 0 rgb(47 227 255 / calc(var(--neon-live) * .9)),0 0 10px rgb(255 82 238 / calc(var(--neon-live) * .4)),0 -8px 18px rgb(255 204 85 / calc(var(--neon-live) * .4));
  --tube-panel:inset 0 0 0 1px rgb(255 255 255 / calc(var(--neon-live) * .4)),0 0 0 1px rgb(47 227 255 / calc(var(--neon-live) * .75)),0 0 12px rgb(255 204 85 / calc(var(--neon-live) * .4)),0 0 22px rgb(255 82 238 / calc(var(--neon-live) * .3)),var(--shadow-2);
  --tube-btn:inset 0 0 0 1px rgb(255 255 255 / calc(var(--neon-live) * .5)),0 0 8px rgb(255 197 61 / calc(var(--neon-live) * .8)),0 0 16px rgb(255 82 238 / calc(var(--neon-live) * .55)),0 0 24px rgb(47 227 255 / calc(var(--neon-live) * .32));
  --tube-btn-hover:inset 0 0 0 1px #fff,0 0 12px rgb(255 214 102 / calc(var(--neon-live) * 1)),0 0 22px rgb(255 82 238 / calc(var(--neon-live) * .7)),0 0 30px rgb(47 227 255 / calc(var(--neon-live) * .45));
  --tube-ghost:0 0 0 1px rgb(47 227 255 / calc(var(--neon-live) * .8)),0 0 8px rgb(47 227 255 / calc(var(--neon-live) * .45)),0 0 16px rgb(163 161 255 / calc(var(--neon-live) * .35));
  --tube-ghost-hover:0 0 0 1px #e8fbff,0 0 12px rgb(47 227 255 / calc(var(--neon-live) * .7)),0 0 20px rgb(255 82 238 / calc(var(--neon-live) * .4));
  --bc-gold:#ffcc55; --bc-sky:#2fe3ff; --bc-sage:#9fb4d0; --bc-lilac:#b9a6ff;
  --bc-rose:#ff52ee; --bc-orchid:#e58ae0; --bc-sand:#ffc75d; --bc-slate:#c9d4e4;
}
