/* Design tokens — :root (dark) + html[data-theme=light]. Do not put layout here. */

/* â”€â”€ CSS Variables â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
    color-scheme: dark;
    /* Neutral near-black (avoid navy/blue cast under sticky ticker header) */
    --bg-primary:    #05070c;
    --bg-surface:    rgba(0, 240, 255, 0.02);
    --bg-card:       rgba(0, 240, 255, 0.03);
    --bg-hover:      rgba(0, 240, 255, 0.06);
    --bg-sidebar:    #05070c;
    --bg-input:      rgba(0, 240, 255, 0.05);
    --bg-header:     rgba(5, 7, 12, 0.97);
    --bg-elevated:   #0d121b;
    --bg-secondary:  var(--bg-elevated);
    --bg-chart:      #0a0f16;
    --overlay-scrim: rgba(0, 0, 0, 0.55);

    --border:        rgba(0, 200, 255, 0.10);
    --border-active: rgba(0, 240, 255, 0.30);
    --line-row:      rgba(0, 200, 255, 0.07);
    --nl-filter-rule: rgba(0, 200, 255, 0.10);
    --nl-pill-border: rgba(0, 200, 255, 0.18);
    --nl-pill-text: rgba(255, 255, 255, 0.80);
    --nl-bar-accent: #00d4e8;
    --nl-event-loss: #d66a6a;
    --fc-text:           #e8e8e8;
    --fc-chip-bg:        rgba(255, 255, 255, 0.06);
    --fc-row-line:       rgba(255, 255, 255, 0.05);
    --fc-info-border:    rgba(255, 255, 255, 0.32);
    --border-toolbar: rgba(0, 200, 255, 0.22);
    --text-toolbar:  rgba(255, 255, 255, 0.85);
    --segmented-bar-on-bg:    rgba(0, 240, 255, 0.10);
    --segmented-bar-on-border: rgba(0, 240, 255, 0.50);
    --segmented-bar-on-color: var(--neon-cyan-lit);
    --tag-chip-border: rgba(0, 200, 255, 0.18);
    --tag-chip-accent-bg: rgba(0, 240, 255, 0.06);
    --tag-chip-accent-border: rgba(0, 240, 255, 0.40);
    --filter-chip-accent-border: rgba(0, 240, 255, 0.45);
    --filter-chip-violet-border: rgba(167, 139, 250, 0.45);
    --filter-chip-violet-bg: rgba(167, 139, 250, 0.08);
    --filter-chip-green-border: rgba(77, 158, 110, 0.45);
    --filter-chip-green-bg: rgba(77, 158, 110, 0.08);
    --filter-chip-violet-text: #c4b5fd;
    --filter-chip-green-text: #86d1a1;
    --filter-chip-label: rgba(255, 255, 255, 0.75);
    --filter-chip-max-label: rgba(255, 255, 255, 0.5);
    --filter-chip-add-border: rgba(0, 200, 255, 0.25);
    --filter-chip-select-border: rgba(0, 200, 255, 0.16);
    --filter-chip-divider: rgba(255, 255, 255, 0.12);

    --text-primary:  #e8eef5;
    --text-secondary: rgba(255, 255, 255, 0.60);
    --text-faint:    rgba(255, 255, 255, 0.55);
    --text-muted:    rgba(255, 255, 255, 0.40);

    --neon-cyan:     #00d4e8;
    --neon-cyan-lit: #00f0ff;
    --cyan-edge:     #00c8ff;
    --neon:          var(--neon-cyan);
    --cyan:          #00f0ff;
    --neon-violet:   #a855f7;
    --accent-violet: #b48cff;
    --gain:          #4d9e6e;
    --loss:          #b05252;
    --lean-split-neutral: rgba(255, 255, 255, 0.22);
    --lean-split-track: rgba(255, 255, 255, 0.06);
    --lean-row-rule: rgba(255, 255, 255, 0.05);
    --lean-mark-bg: #64748b;
    --lean-mark-orange: #c2410c;
    --lean-mark-teal: #0f766e;
    --blue:          #3b82f6;
    --claim-ink:             #e8e8e8;
    --claim-body-ink:        rgba(255, 255, 255, 0.80);
    --claim-quote-ink:       rgba(255, 255, 255, 0.88);
    --claim-quote-font:      Georgia, serif;
    --claim-outside-bar:     rgba(255, 255, 255, 0.25);
    --claim-kept-pill-bg:    rgba(77, 158, 110, 0.12);
    --claim-wait-pill-bg:    rgba(210, 153, 34, 0.12);
    --claim-out-pill-bg:     rgba(255, 255, 255, 0.06);
    --font-quote:    Georgia, "Times New Roman", Times, serif;
    --claim-table-head-bg: #080b10;

    --glow-sm:       0 0 10px rgba(0, 240, 255, 0.06);
    --glow-md:       0 0 20px rgba(0, 240, 255, 0.10);
    --glow-lg:       0 0 40px rgba(0, 240, 255, 0.08);
    --accent-primary: #00f0ff;

    /* Settings billing mockup parity (plans + usage meter). */
    --plan-accent:           #00d4e8;
    --plan-accent-ink:       #04111a;
    --plan-card-surface:     rgba(255, 255, 255, 0.02);
    --plan-card-border:      rgba(0, 200, 255, 0.14);
    --plan-card-current-bg:  rgba(0, 240, 255, 0.05);
    --plan-card-current-border: rgba(0, 240, 255, 0.5);
    --plan-btn-border:       rgba(0, 200, 255, 0.22);
    --usage-track-bg:        rgba(255, 255, 255, 0.06);
    --pill-cy-bg:            rgba(0, 240, 255, 0.06);
    --pill-cy-border:        rgba(0, 240, 255, 0.4);
    --plan-period:           rgba(255, 255, 255, 0.55);
    --plan-feature:          rgba(255, 255, 255, 0.85);
    --plan-feature-off:      rgba(255, 255, 255, 0.5);
    --plan-mark-no:          #d66a6a;
    --plan-btn-ink:          rgba(255, 255, 255, 0.85);

    /* Section outline (ToolsStrategy mock parity). */
    --so-border-faint:     rgba(255, 255, 255, 0.04);
    --so-border-soft:      rgba(255, 255, 255, 0.06);
    --so-ink-soft:         rgba(255, 255, 255, 0.7);
    --so-ink-muted:        rgba(255, 255, 255, 0.55);
    --so-ink-faint:        rgba(255, 255, 255, 0.35);
    --so-ink-link:         rgba(255, 255, 255, 0.75);
    --so-border-cyan-16:   rgba(0, 200, 255, 0.16);
    --so-border-cyan-18:   rgba(0, 200, 255, 0.18);
    --so-view-on-bg:       rgba(0, 240, 255, 0.12);
    --so-chip-ok-bg:       rgba(77, 158, 110, 0.08);
    --so-chip-ok-border:   rgba(77, 158, 110, 0.4);
    --so-chip-warn-bg:     rgba(224, 165, 107, 0.08);
    --so-chip-warn-border: rgba(224, 165, 107, 0.45);
    --so-chip-warn:        #e0a56b;
    --list-tag-loss:       #e79a9a;
    --list-row-bg:         rgba(255, 255, 255, 0.022);
    --list-row-edge:       rgba(0, 212, 232, 0.35);

    /* Research document reader (Tools Library mock). Dark aliases site paint. */
    --doc-paper-bg:            var(--bg-primary);
    --doc-paper-surface:       var(--bg-elevated);
    --doc-paper-ink:           var(--text-primary);
    --doc-paper-ink-secondary: var(--text-secondary);
    --doc-paper-muted:         var(--text-muted);
    --doc-paper-rule:          var(--border);
    --doc-paper-accent:        var(--blue);
    --doc-paper-gain:          var(--gain);
    --doc-paper-loss:          var(--loss);
    --doc-paper-warn:          var(--usage-warn);
    --doc-paper-on-accent:     var(--bg-primary);
    --doc-paper-pill-fg:       var(--bg-card);
    --doc-paper-accent-soft:   var(--bg-hover);

    --font-sans:     ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono:     Inter, system-ui, sans-serif;
    --sans:          var(--font-mono);
    --mono:          var(--font-mono);

    /* Legacy StockThesis strip aliases (mock page variable names). */
    --text:       var(--text-primary);
    --faint:      var(--strip-period-faint);
    --muted:      #8a97a9;
    --surface-2:  var(--strip-period-active-bg);
    --red:        var(--strip-line-down);

    /* Thesis price strip (legacy spark colors and session grid). */
    --strip-line-up:         #3ddc97;
    --strip-line-down:       #f87171;
    --strip-area-up:         rgba(61, 220, 151, 0.16);
    --strip-area-down:       rgba(248, 113, 113, 0.14);
    --strip-session-fill:    rgba(8, 18, 30, 0.5);
    --strip-session-grid:    rgba(0, 180, 200, 0.15);
    --strip-session-grid-mid: rgba(0, 180, 200, 0.07);
    --strip-session-rule:    rgba(0, 180, 200, 0.25);
    --strip-period-faint:    #5c6878;
    --strip-period-active-bg: #121926;
    --strip-live:            #3ddc97;
    --strip-range-accent:    #2dd4bf;
    --strip-border:          #1c2532;
    --strip-border-soft:     #151d28;
    --strip-plot-label:      rgba(255, 255, 255, 0.42);
    --strip-plot-baseline:   rgba(255, 255, 255, 0.18);
    --strip-r52-grad-0:      #2a3548;
    --strip-r52-grad-1:      #1c6e64;
    --strip-r52-marker-ring: #070a10;
    --strip-r52-vals:        #8a97a9;
    --font-sherif:   ui-sans-serif, system-ui, sans-serif;

    --radius-sm:     6px;
    --radius-md:     10px;
    --radius-lg:     16px;
    --radius-full:   9999px;

    --transition:    all 0.2s ease;

    /* Usage split on Integrations. Fills, not body text. */
    --usage-c0: #2ee6e6;
    --usage-c1: #4c8dff;
    --usage-c2: #f2a93b;
    --usage-c3: #b58cff;
    --usage-c4: #e86fb0;
    --usage-c5: #5b6b76;
    --usage-warn: #f2a93b;
    --tone-mixed: #d29922;
    --usage-danger: #ff7b7b;

    /* Role timeline spans (kit RoleTimeline) */
    --role-timeline-sky: #22d3ee;
    --role-timeline-purple: #a78bfa;
    --role-timeline-teal: #2dd4bf;
    --role-timeline-amber: #d29922;
    --role-timeline-body: rgba(255, 255, 255, 0.85);
    --role-timeline-axis: rgba(255, 255, 255, 0.45);
    --role-timeline-title: #e8e8e8;

    /* Kit XYChart series strokes and the selected series chip. */
    --xy-line-0: #00d4e8;
    --xy-line-1: var(--gain);
    --xy-line-2: var(--tone-mixed);
    --xy-chip-on: #7fe9f5;
    --xy-series-violet: #a371f7;
    --xy-series-gray: #6e7681;
    --xy-series-orange: #f0883e;
    /* Summary report / thesis card (.sr-root in summary-report.css) */
    --summary-text: #e8eef5;
    --summary-muted: #8a97a9;
    --summary-faint: #5c6878;
    --summary-border-soft: #151d28;
    --summary-green: #3ddc97;
    --summary-amber: #fbbf24;
    --summary-red: #f87171;
    --summary-suggest: #00ff9d;
    --summary-follow-bg: rgba(0, 255, 157, 0.06);
    --summary-follow-border: rgba(0, 255, 157, 0.25);
    --summary-follow-text: rgba(255, 255, 255, 0.85);
    --summary-green-track: rgba(61, 220, 151, 0.22);
    --summary-amber-track: rgba(251, 191, 36, 0.22);
    --summary-red-track: rgba(248, 113, 113, 0.22);
    --summary-shell-bg: #070a10;
    --summary-shell-surface: #0d121b;
    --summary-shell-surface-2: #121926;
    --summary-shell-border: #1c2532;
    --summary-shell-card-border: #141b27;
    --summary-shell-glow: #0c1a22;
    --summary-accent-cyan: #2dd4bf;

    /* Heatmap scale. Same ramps as M.heatScale() in static/market-shared.js. */
    --heat-mid: #1e2028;
    --heat-svg-bg: #0d0e14;
    --heat-header-bg: rgba(10, 11, 16, 0.82);
    --heat-header-text: rgba(255, 255, 255, 0.70);
    --heat-header-muted: rgba(255, 255, 255, 0.55);
    --heat-gain-0: rgb(20, 32, 40);
    --heat-gain-1: rgb(93, 184, 127);
    --heat-loss-0: rgb(20, 32, 40);
    --heat-loss-1: rgb(196, 94, 94);
    --heat-stroke: #050a14;
    --heat-tip-bg: rgba(13, 14, 20, 0.96);
    --heat-tip-border: rgba(0, 240, 255, 0.2);
    --heat-tip-text: #fff;
    --heat-tip-muted: rgba(255, 255, 255, 0.5);
    --pred-label-muted: rgba(255, 255, 255, 0.55);
    --pred-link: #00d4e8;
    --pred-ladder-grid: rgba(0, 200, 255, 0.07);
    --pred-ladder-guide: rgba(0, 200, 255, 0.18);
    --pred-ladder-options: rgba(255, 255, 255, 0.55);
    --heat-logo-bg: #1a1b26;
    --heat-ink: #111827;
    --heat-ink-invert: #e8e8e8;
    --heat-corr-pos: rgb(0, 200, 255);
    --heat-corr-neg: rgb(230, 140, 60);
    --heat-corr-neutral: rgba(255, 255, 255, 0.04);

    /* Journal kit (ToolsJournalDay mockup parity). */
    --kit-jb-label: rgba(255, 255, 255, 0.45);
    --kit-jb-hint: rgba(255, 255, 255, 0.55);
    --kit-jb-info-border: rgba(255, 255, 255, 0.32);
    --kit-jb-body: rgba(255, 255, 255, 0.82);
    --kit-jb-summary: rgba(255, 255, 255, 0.78);
    --kit-jb-border-strong: rgba(0, 200, 255, 0.12);
    --kit-jb-purple: #a78bfa;
    --kit-jb-purple-soft: #c4b5fd;
    --kit-jb-amber: #e0a56b;
    --kit-jb-pill-border: rgba(0, 200, 255, 0.18);
    --kit-jb-pill-text: rgba(255, 255, 255, 0.75);
    --kit-jb-tile-bg: rgba(255, 255, 255, 0.02);
    --kit-jb-logo-bg: #1e293b;
    --kit-jb-detail: rgba(255, 255, 255, 0.8);
    --kit-jb-pill-muted: rgba(255, 255, 255, 0.45);
    --kit-pill-gain-border: rgba(77, 158, 110, 0.45);
    --kit-pill-loss-border: rgba(176, 82, 82, 0.45);
    --kit-pill-neutral-border: rgba(224, 165, 107, 0.45);
    --kit-pill-library-border: rgba(167, 139, 250, 0.45);
    --kit-sf-accent-bg: rgba(0, 242, 254, 0.06);
    --kit-sf-nav-div-edge: rgba(0, 242, 254, 0.15);
    --kit-sf-item-hover-bg: rgba(255, 255, 255, 0.03);
    --kit-sf-nav-shadow: rgba(0, 0, 0, 0.4);

    /* Stacked share bars (funds letters mockup). */
    --stack-share-culture: #a78bfa;
    --stack-share-capital: #22d3ee;
    --stack-share-neutral: rgba(255, 255, 255, 0.4);
    --stack-share-economy: rgba(255, 255, 255, 0.45);
    --stack-share-aside-ink: rgba(255, 255, 255, 0.55);
    --stack-share-info-border: rgba(255, 255, 255, 0.32);
    --stack-share-info-ink: rgba(255, 255, 255, 0.6);
    --stack-share-detail-surface: rgba(255, 255, 255, 0.03);
    --stack-share-legend-ink: rgba(255, 255, 255, 0.7);
    --stack-share-chip-ink: rgba(255, 255, 255, 0.75);
    --stack-share-chip-bg: rgba(255, 255, 255, 0.06);
    --stack-share-summary-ink: rgba(255, 255, 255, 0.78);

    /* Fear-to-greed strip. Same five colors in light and dark. */
    --mood-0: #d9534f;
    --mood-1: #e8862a;
    --mood-2: #e9dcaa;
    --mood-3: #8fd1ad;
    --mood-4: #4d9e6e;

    /* Price chart (single-names lc mockup parity). */
    --price-lc-plot: #070a0f;
    --price-lc-control-bg: #0b1016;
    --price-lc-series-up: #3fb68b;
    --price-lc-series-down: #e05d5d;

    /* Stocks Price mockup colours that are not already tokens. */
    --price-map-base: #1a222b;
    --price-mood-soft: #bfe6d6;
    --price-heat-loss: rgb(176, 82, 82);
    --price-map-loss: rgb(196, 82, 82);
    --price-heat-mid: rgb(34, 40, 46);
    --price-map-mid: rgb(40, 48, 56);
    --price-heat-gain: rgb(77, 158, 110);
    --price-map-gain: rgb(77, 178, 110);
    --price-focus-clear: rgba(0, 240, 255, 0);
    --price-focus-25: rgba(0, 240, 255, 0.25);
    --price-focus-35: rgba(0, 240, 255, 0.35);
    --price-focus-55: rgba(0, 240, 255, 0.55);
    --price-focus-60: rgba(0, 240, 255, 0.6);
    --price-cyan-04: rgba(0, 212, 232, 0.04);
    --price-cyan-08: rgba(0, 212, 232, 0.08);
    --price-cyan-12: rgba(0, 212, 232, 0.12);
    --price-cyan-25: rgba(0, 212, 232, 0.25);
    --price-rich-60: rgba(176, 82, 82, 0.6);
    --price-cheap-60: rgba(77, 158, 110, 0.6);
    --price-white-30: rgba(255, 255, 255, 0.3);

    /* Dated event pages: sticky header, day tile, now line, session marks, focus glow. */
    --event-sticky: #080b10;
    --event-star: #e8c96a;
    --event-day: #0b0f16;
    --event-now: #ff4d4d;
    --session-pre: #f0a24a;
    --session-post: #6ea8ff;
    --event-pill-bg: rgba(0, 212, 232, 0.06);
    --event-day-on: rgba(0, 212, 232, 0.08);
    --event-info-ring: rgba(255, 255, 255, 0.32);
    --event-glow-0: rgba(0, 240, 255, 0);
    --event-glow-mid: rgba(0, 240, 255, 0.55);
    --event-glow-hot: rgba(0, 240, 255, 0.6);
    --event-glow-soft: rgba(0, 240, 255, 0.25);
    --event-glow-btn: rgba(0, 240, 255, 0.35);
    --stock-tip: #0d1219;
    --stock-tip-ink: #1c2333;
    --stock-mint: #34d399;
    --stock-sky: #60a5fa;
    --stock-lilac: #b39dff;
    --stock-pink: #f472b6;
    --stock-orange: #fb923c;
    --stock-cyan-03: rgba(0, 200, 255, 0.03);
    --stock-cyan-04: rgba(0, 200, 255, 0.04);
    --stock-cyan-06: rgba(0, 200, 255, 0.06);
    --stock-cyan-08: rgba(0, 200, 255, 0.08);
    --stock-cyan-15: rgba(0, 200, 255, 0.15);
    --stock-cyan-28: rgba(0, 200, 255, 0.28);
    --stock-lit-07: rgba(0, 240, 255, 0.07);
    --stock-lit-14: rgba(0, 240, 255, 0.14);
    --stock-violet-14: rgba(124, 77, 255, 0.14);
    --stock-violet-45: rgba(124, 77, 255, 0.45);
    --stock-purple-07: rgba(138, 92, 246, 0.07);
    --stock-purple-25: rgba(138, 92, 246, 0.25);
    --stock-loss-14: rgba(176, 82, 82, 0.14);
    --stock-white-025: rgba(255, 255, 255, 0.025);
    --stock-white-07: rgba(255, 255, 255, 0.07);
    --stock-teal-08: rgba(45, 212, 191, 0.08);
    --stock-teal-35: rgba(45, 212, 191, 0.35);
    --stock-slate-35: rgba(48, 54, 61, 0.35);
}

html[data-theme="light"] {
    color-scheme: light;
    --bg-primary:    #f4f6f8;
    --bg-surface:    #ffffff;
    --bg-card:       #ffffff;
    --bg-hover:      #e8ecf0;
    --bg-sidebar:    #eef1f4;
    --bg-input:      #e8ecf0;
    --bg-header:     rgba(255, 255, 255, 0.96);
    --bg-elevated:   #ffffff;
    --bg-secondary:  var(--bg-elevated);
    --bg-chart:      #f4f6f8;
    --overlay-scrim: rgba(15, 23, 42, 0.35);

    --border:        #d5dbe3;
    --border-active: #94a3b8;
    --tag-chip-border: rgba(14, 116, 144, 0.22);
    --tag-chip-accent-bg: color-mix(in srgb, var(--neon-cyan) 6%, var(--bg-primary));
    --tag-chip-accent-border: rgba(14, 116, 144, 0.45);
    --filter-chip-accent-border: rgba(14, 116, 144, 0.45);
    --filter-chip-violet-border: rgba(124, 58, 237, 0.4);
    --filter-chip-violet-bg: rgba(124, 58, 237, 0.08);
    --filter-chip-green-border: rgba(61, 139, 92, 0.45);
    --filter-chip-green-bg: rgba(61, 139, 92, 0.08);
    --filter-chip-violet-text: #7c3aed;
    --filter-chip-green-text: #3d8b5c;
    --filter-chip-label: rgba(17, 24, 39, 0.85);
    --filter-chip-max-label: rgba(17, 24, 39, 0.55);
    --filter-chip-add-border: rgba(14, 116, 144, 0.28);
    --filter-chip-select-border: rgba(14, 116, 144, 0.22);
    --filter-chip-divider: rgba(15, 23, 42, 0.12);
    --line-row:      rgba(0, 200, 255, 0.12);
    --nl-filter-rule: var(--border);
    --nl-pill-border: var(--border);
    --nl-pill-text: var(--text-secondary);
    --nl-bar-accent: var(--neon-cyan);
    --nl-event-loss: var(--loss);
    --fc-text:           #111827;
    --fc-chip-bg:        rgba(0, 0, 0, 0.06);
    --fc-row-line:       rgba(0, 0, 0, 0.06);
    --fc-info-border:    rgba(0, 0, 0, 0.18);

    --text-primary:  #111827;
    --text-secondary:#374151;
    --text-faint:    #4b5563;
    --text-muted:    #6b7280;

    --neon-cyan:     #0e7490;
    --neon:          var(--neon-cyan);
    --cyan:          #0e7490;
    --neon-violet:   #7c3aed;
    --gain:          #3d8b5c;
    --loss:          #b05252;
    --blue:          #2563eb;

    --glow-sm:       0 1px 2px rgba(15, 23, 42, 0.06);
    --glow-md:       0 2px 8px rgba(15, 23, 42, 0.08);
    --glow-lg:       0 8px 24px rgba(15, 23, 42, 0.08);
    --accent-primary: #0e7490;

    --usage-warn: #9a3412;
    --tone-mixed: #b45309;
    --role-timeline-body: rgba(15, 19, 27, 0.88);
    --role-timeline-axis: rgba(15, 19, 27, 0.45);
    --summary-text: #111827;
    --summary-muted: #4b5563;
    --summary-faint: #6b7280;
    --summary-border-soft: #e5e7eb;
    --summary-green: #3d8b5c;
    --summary-amber: #b45309;
    --summary-red: #b05252;
    --summary-suggest: #047857;
    --summary-follow-bg: rgba(4, 120, 87, 0.08);
    --summary-follow-border: rgba(4, 120, 87, 0.22);
    --summary-follow-text: var(--text-primary);
    --summary-green-track: rgba(61, 142, 92, 0.22);
    --summary-amber-track: rgba(180, 83, 9, 0.22);
    --summary-red-track: rgba(176, 82, 82, 0.22);
    --summary-shell-bg: var(--bg-primary);
    --summary-shell-surface: var(--bg-surface);
    --summary-shell-surface-2: var(--bg-hover);
    --summary-shell-border: var(--border);
    --summary-shell-card-border: var(--border);
    --summary-shell-glow: transparent;
    --kit-sf-accent-bg: color-mix(in srgb, var(--neon-cyan) 6%, var(--bg-primary));
    --kit-sf-nav-div-edge: rgba(14, 116, 144, 0.15);
    --kit-sf-item-hover-bg: rgba(15, 23, 42, 0.03);
    --kit-sf-nav-shadow: rgba(15, 23, 42, 0.12);
    --summary-accent-cyan: var(--neon-cyan);
    --mood-0: #c0392b;
    --mood-1: #d9731a;
    --mood-2: #a68a1f;
    --mood-3: #4f9f73;
    --mood-4: #2e7d4f;
    --usage-danger: #b05252;

    --heat-mid: #c5cad3;
    --heat-svg-bg: #eef1f4;
    --heat-header-bg: rgba(255, 255, 255, 0.9);
    --heat-header-text: #111827;
    --heat-header-muted: #6b7280;
    --heat-gain-0: rgb(197, 202, 211);
    --heat-gain-1: rgb(45, 138, 88);
    --heat-loss-0: rgb(197, 202, 211);
    --heat-loss-1: rgb(176, 82, 82);
    --heat-stroke: #eef1f4;
    --heat-tip-bg: rgba(255, 255, 255, 0.97);
    --heat-tip-border: #d5dbe3;
    --heat-tip-text: #111827;
    --heat-tip-muted: #6b7280;
    --heat-logo-bg: #eef1f4;
    --pred-label-muted: rgba(17, 24, 39, 0.55);
    --pred-link: #0e7490;
    --pred-ladder-grid: rgba(0, 160, 200, 0.12);
    --pred-ladder-guide: rgba(0, 160, 200, 0.22);
    --pred-ladder-options: rgba(17, 24, 39, 0.45);

    --price-lc-plot: var(--bg-chart);
    --price-lc-control-bg: var(--bg-elevated);
    --price-lc-series-up: var(--gain);
    --price-lc-series-down: var(--loss);

    /* Research document reader mock paper (does not override site chrome tokens). */
    --doc-paper-bg:            #f2f4f7;
    --doc-paper-surface:       #fbfbfd;
    --doc-paper-ink:           #0f131b;
    --doc-paper-ink-secondary: #4b5361;
    --doc-paper-muted:         #818a99;
    --doc-paper-rule:          #dde1e8;
    --doc-paper-accent:        #2a78d6;
    --doc-paper-gain:          #0f8f3c;
    --doc-paper-loss:          #cf3a36;
    --doc-paper-warn:          #d08700;
    --doc-paper-on-accent:     #f2f4f7;
    --doc-paper-pill-fg:       #ffffff;
    --doc-paper-accent-soft:   #e6eefb;
}

/* stock.technicals mockup palette. Scoped to the page so the light theme does not repaint it. */
.st-tech {
    --st-000000-a055: rgba(0, 0, 0, 0.55);
    --st-00c8ff-a007: rgba(0, 200, 255, 0.07);
    --st-00c8ff-a01: rgba(0, 200, 255, 0.1);
    --st-00c8ff-a015: rgba(0, 200, 255, 0.15);
    --st-00c8ff-a018: rgba(0, 200, 255, 0.18);
    --st-00c8ff-a028: rgba(0, 200, 255, 0.28);
    --st-00d4e8: #00d4e8;
    --st-00f0ff: #00f0ff;
    --st-00f0ff-a003: rgba(0, 240, 255, 0.03);
    --st-00f0ff-a007: rgba(0, 240, 255, 0.07);
    --st-00f0ff-a014: rgba(0, 240, 255, 0.14);
    --st-00f0ff-a025: rgba(0, 240, 255, 0.25);
    --st-00f0ff-a06: rgba(0, 240, 255, 0.6);
    --st-047857-a008: rgba(4, 120, 87, 0.08);
    --st-047857-a022: rgba(4, 120, 87, 0.22);
    --st-05070c: #05070c;
    --st-080b10: #080b10;
    --st-0d1219: #0d1219;
    --st-111111: #111111;
    --st-1c2333: #1c2333;
    --st-22d3ee: #22d3ee;
    --st-2dd4bf: #2dd4bf;
    --st-2dd4bf-a008: rgba(45, 212, 191, 0.08);
    --st-2dd4bf-a035: rgba(45, 212, 191, 0.35);
    --st-4d9e6e: #4d9e6e;
    --st-7fe9f5: #7fe9f5;
    --st-7fe9f5-a045: rgba(127, 233, 245, 0.45);
    --st-8a5cf6-a007: rgba(138, 92, 246, 0.07);
    --st-8a5cf6-a025: rgba(138, 92, 246, 0.25);
    --st-a78bfa: #a78bfa;
    --st-b05252: #b05252;
    --st-e8e8e8: #e8e8e8;
    --st-f59e0b: #f59e0b;
    --st-f59e0b-a016: rgba(245, 158, 11, 0.16);
    --st-f87171: #f87171;
    --st-ff5a6e: #ff5a6e;
    --st-ffffff: #ffffff;
    --st-ffffff-a012: rgba(255, 255, 255, 0.12);
    --st-ffffff-a032: rgba(255, 255, 255, 0.32);
    --st-ffffff-a035: rgba(255, 255, 255, 0.35);
    --st-ffffff-a04: rgba(255, 255, 255, 0.4);
    --st-ffffff-a05: rgba(255, 255, 255, 0.5);
    --st-ffffff-a055: rgba(255, 255, 255, 0.55);
    --st-ffffff-a06: rgba(255, 255, 255, 0.6);
    --st-ffffff-a075: rgba(255, 255, 255, 0.75);
    --st-ffffff-a08: rgba(255, 255, 255, 0.8);
    --st-ffffff-a085: rgba(255, 255, 255, 0.85);
}
