/* ==========================================================================
   Monkey Alignment — Design Tokens (Single Source of Color & Font Identity)
   Atlas-derived palette with full light and dark themes (WCAG AA verified).
   System font stacks only; zero external fonts or embedded font rules.
   ========================================================================== */

:root {
  /* Core Atlas Palette Primitives */
  --atlas-lime: #82C232;
  --atlas-charcoal: #222629;
  --atlas-offwhite: #f3f5f4;
  --atlas-ink: #25292b;
  --atlas-muted: #626b70;
  --atlas-green-text: #446e19;

  /* System Typography Stacks (no embedded font rules, no external CDN) */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  --font-serif: Georgia, "Times New Roman", Times, serif;

  /* Type Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;
  --text-3xl: clamp(1.875rem, 3.2vw, 2.5rem);

  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.7;

  --tracking-tight: -0.02em;
  --tracking-normal: 0em;
  --tracking-wide: 0.04em;
  --tracking-caps: 0.07em;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Layout & Geometry */
  --container-max: 72rem;
  --measure: 68ch;
  --header-height: 4.25rem;

  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 9999px;

  --border-width: 1px;
  --border-strong-width: 2px;
  --border-accent-width: 4px;
  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;

  /* Motion & Layering */
  --transition-fast: 150ms ease;
  --z-base: 1;
  --z-header: 40;
  --z-nav: 50;
  --z-skip: 100;

  /* Shared Constants */
  --color-transparent: transparent;
  --color-accent: var(--atlas-lime);
  --color-accent-ink: #222629;
  --color-border-brand: var(--atlas-lime);

  /* Hero Band (dark Atlas mesh surface across both themes for image harmony) */
  --color-hero-bg: #222629;
  --color-hero-text: #f3f5f4;
  --color-hero-muted: #c3cbc7;
  --color-hero-accent: #82C232;
  --color-hero-link: #a6df57;
  --color-hero-link-hover: #c5ee88;
  --color-hero-border: #363c41;
  --color-hero-chip-bg: rgba(243, 245, 244, 0.08);
  --color-hero-chip-border: rgba(243, 245, 244, 0.24);
  --hero-scrim: linear-gradient(
    105deg,
    rgba(22, 25, 27, 0.94) 0%,
    rgba(34, 38, 41, 0.86) 54%,
    rgba(22, 25, 27, 0.74) 100%
  );

  /* Footer (dark Atlas anchor band) */
  --color-footer-bg: #222629;
  --color-footer-text: #d5dcda;
  --color-footer-muted: #9ba5a9;
  --color-footer-link: #a6df57;
  --color-footer-link-hover: #c5ee88;
  --color-footer-border: #363c41;
}

/* ==========================================================================
   Light Theme (Default & Explicit [data-theme="light"])
   ========================================================================== */

:root,
[data-theme="light"] {
  color-scheme: light;

  /* Surfaces */
  --color-bg: var(--atlas-offwhite);
  --color-bg-subtle: #e9edea;
  --color-surface: #ffffff;
  --color-surface-raised: #fafbfa;
  --color-surface-inset: #edf1ee;
  --color-surface-brand-tint: #eef5e5;

  /* Text & Links */
  --color-text: var(--atlas-ink);
  --color-text-muted: var(--atlas-muted);
  --color-text-strong: #171a1c;
  --color-text-inverse: var(--atlas-offwhite);
  --color-link: var(--atlas-green-text);
  --color-link-hover: #315111;

  /* Borders & Interactive States */
  --color-border: #d4dbd7;
  --color-border-strong: #9aa49f;
  --color-accent-hover: #73ad2a;
  --color-accent-text: var(--atlas-green-text);
  --color-focus: var(--atlas-green-text);
  --color-selection-bg: #d9ecc0;
  --color-selection-text: #171a1c;

  /* Header & Controls */
  --color-header-bg: #ffffff;
  --color-header-border: #d4dbd7;
  --color-nav-text: var(--atlas-ink);
  --color-nav-hover-bg: #edf1ee;
  --color-nav-active-text: var(--atlas-green-text);
  --color-nav-active-border: var(--atlas-green-text);
  --color-control-bg: var(--atlas-offwhite);
  --color-control-text: var(--atlas-ink);
  --color-control-border: #bcc5c0;
  --color-control-hover-bg: #e5eae7;

  /* Code & Tables */
  --color-code-bg: #eaeef0;
  --color-code-text: var(--atlas-ink);
  --color-code-border: #d4dbd7;
  --color-table-head-bg: #e8ecea;
  --color-table-head-text: var(--atlas-ink);
  --color-table-stripe-bg: #f8faf9;
  --color-table-hover-bg: #eef5e5;
  --color-table-border: #d4dbd7;

  /* Semantic Status: Pass */
  --color-pass-bg: #e8f4dd;
  --color-pass-text: #2c500d;
  --color-pass-border: #9ec973;
  --color-pass-dot: #446e19;
  --color-pass-surface: #f2f8ec;

  /* Semantic Status: Fail */
  --color-fail-bg: #fdeceb;
  --color-fail-text: #8e1c16;
  --color-fail-border: #e4a39e;
  --color-fail-dot: #b42820;
  --color-fail-surface: #fdf3f2;

  /* Semantic Status: Caveat / Warning */
  --color-warn-bg: #fdf4de;
  --color-warn-text: #754c00;
  --color-warn-border: #dfc17b;
  --color-warn-dot: #9e6800;
  --color-warn-surface: #fcf6e6;

  /* Semantic Status: Parked */
  --color-parked-bg: #e9edef;
  --color-parked-text: #3f484d;
  --color-parked-border: #bcc5ca;
  --color-parked-dot: #626b70;

  /* Semantic Status: In Progress */
  --color-progress-bg: #e6f1f5;
  --color-progress-text: #155166;
  --color-progress-border: #99c5d4;
  --color-progress-dot: #1f6f8b;

  /* Semantic Status: Public / Cleared */
  --color-public-bg: #eef5e5;
  --color-public-text: #355812;
  --color-public-border: #a8cf7e;
  --color-public-dot: #446e19;

  /* Semantic Status: What Is Not Shown */
  --color-not-shown-bg: #eef1f0;
  --color-not-shown-text: var(--atlas-ink);
  --color-not-shown-border: #626b70;

  /* Semantic Status: DRAFT - NOT CLEARED FOR PUBLIC */
  --color-draft-banner-bg: #fff0c2;
  --color-draft-banner-text: #222629;
  --color-draft-banner-border: #b87d00;
  --color-draft-badge-bg: #222629;
  --color-draft-badge-text: #ffd65c;
  --color-draft-surface-bg: #fffaf0;
  --color-draft-surface-border: #c98b00;
  --color-draft-pill-bg: #fff0c2;
  --color-draft-pill-text: #6b4700;
  --color-draft-pill-border: #c98b00;
  --color-draft-pill-dot: #9e6800;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(34, 38, 41, 0.06);
  --shadow-md: 0 4px 12px rgba(34, 38, 41, 0.08);
  --shadow-nav: 0 8px 20px rgba(34, 38, 41, 0.12);

  /* Charts, SVG Graphics & Track Accents (Light) */
  --chart-primary: #446e19;
  --chart-secondary: #1b627a;
  --chart-tertiary: #8c5c00;
  --chart-muted: #626b70;
  --chart-grid: #dde3df;
  --chart-axis: #747e84;
  --chart-label: #464e52;
  --chart-pass: #346112;
  --chart-fail: #b42820;
  --chart-warn: #8c5c00;
  --chart-target: #3f6b17;
  --chart-target-fill: rgba(130, 194, 50, 0.14);
  --chart-surface: #ffffff;
  --chart-tooltip-bg: #222629;
  --chart-tooltip-text: #f3f5f4;
  --chart-node-bg: #f3f5f4;
  --chart-node-border: #8d979c;
  --chart-node-loop-bg: #e6f1f5;
  --chart-node-invariant-bg: #fdf4de;
  --chart-node-active-bg: #eef5e5;
  --chart-heat-0: #edf1ef;
  --chart-heat-1: #d2decb;
  --chart-heat-2: #a5cf6f;
  --chart-heat-3: #82C232;
  --chart-heat-4: #446e19;
  --project-qwen-accent: #446e19;
  --project-qwen-tint: #eef5e5;
  --project-inkling-accent: #155166;
  --project-inkling-tint: #e6f1f5;

  /* Inkling Atlas Explorer Tokens (Light) */
  --atlas-role-general: #15637a;
  --atlas-role-specialist: #446E19;
  --atlas-role-userturn: #8c5c00;
  --atlas-role-tested: #5b666c;
  --atlas-role-stagea: #9e3328;
  --atlas-role-rare: #626b70;
  --atlas-usage-low: #667075;
  --atlas-usage-mid: #4c761c;
  --atlas-usage-high: #2f520e;
  --atlas-effect-neg: #a62b22;
  --atlas-effect-zero: #626b70;
  --atlas-effect-pos: #446E19;
  --atlas-topic-multilingual: #3d5285;
  --atlas-topic-everyday: #8c5c00;
  --atlas-topic-fiction: #78416c;
  --atlas-topic-chemistry: #1b6e4d;
  --atlas-topic-general-prose: #5a6922;
  --atlas-topic-blender: #9e471e;
  --atlas-topic-sql: #166178;
  --atlas-topic-math: #23598c;
  --atlas-topic-code: #446E19;
  --atlas-topic-mixed: #626b70;
  --atlas-canvas-bg: #f3f5f4;
  --atlas-cell-active: #222629;
  --atlas-tooltip-bg: #222629;
  --atlas-tooltip-fg: #f3f5f4;
  --atlas-tooltip-border: #446E19;

  /* Editorial Direction Tokens (Light, strictly Atlas palette) */
  --dir-ink-strong: #222629;
  --dir-surface-inv: #222629;
  --dir-lime-vivid: #82C232;
  --dir-rule-heavy: 3px solid #222629;
  --dir-shadow-hard: 4px 4px 0 #222629;
}

/* ==========================================================================
   Dark Theme (Explicit [data-theme="dark"] & System Fallback)
   ========================================================================== */

[data-theme="dark"] {
  color-scheme: dark;

  /* Surfaces */
  --color-bg: #16191b;
  --color-bg-subtle: #1c2023;
  --color-surface: var(--atlas-charcoal);
  --color-surface-raised: #2a2f33;
  --color-surface-inset: #1b1f22;
  --color-surface-brand-tint: #212c1a;

  /* Text & Links */
  --color-text: var(--atlas-offwhite);
  --color-text-muted: #adb6bb;
  --color-text-strong: #ffffff;
  --color-text-inverse: var(--atlas-charcoal);
  --color-link: #9ad84b;
  --color-link-hover: #b3e66e;

  /* Borders & Interactive States */
  --color-border: #363c41;
  --color-border-strong: #525a61;
  --color-accent-hover: #94d342;
  --color-accent-text: #9ad84b;
  --color-focus: var(--atlas-lime);
  --color-selection-bg: #354b1c;
  --color-selection-text: var(--atlas-offwhite);

  /* Header & Controls */
  --color-header-bg: #1c2023;
  --color-header-border: #363c41;
  --color-nav-text: #e4e8e6;
  --color-nav-hover-bg: #2a2f33;
  --color-nav-active-text: #9ad84b;
  --color-nav-active-border: var(--atlas-lime);
  --color-control-bg: #2a2f33;
  --color-control-text: var(--atlas-offwhite);
  --color-control-border: #485057;
  --color-control-hover-bg: #343a40;

  /* Code & Tables */
  --color-code-bg: #16191b;
  --color-code-text: #e4e8e6;
  --color-code-border: #363c41;
  --color-table-head-bg: #2a2f33;
  --color-table-head-text: var(--atlas-offwhite);
  --color-table-stripe-bg: #1d2124;
  --color-table-hover-bg: #262e23;
  --color-table-border: #363c41;

  /* Semantic Status: Pass */
  --color-pass-bg: #1d2e14;
  --color-pass-text: #a3e062;
  --color-pass-border: #4f7f24;
  --color-pass-dot: #82C232;
  --color-pass-surface: #1b2815;

  /* Semantic Status: Fail */
  --color-fail-bg: #361918;
  --color-fail-text: #f59b95;
  --color-fail-border: #943c36;
  --color-fail-dot: #eb6f67;
  --color-fail-surface: #2b1716;

  /* Semantic Status: Caveat / Warning */
  --color-warn-bg: #33270d;
  --color-warn-text: #f0c45d;
  --color-warn-border: #87671d;
  --color-warn-dot: #e0ad38;
  --color-warn-surface: #282111;

  /* Semantic Status: Parked */
  --color-parked-bg: #2a2f34;
  --color-parked-text: #c2cbd0;
  --color-parked-border: #525c64;
  --color-parked-dot: #9aa4aa;

  /* Semantic Status: In Progress */
  --color-progress-bg: #152c35;
  --color-progress-text: #81cde6;
  --color-progress-border: #2e6e85;
  --color-progress-dot: #5bb8d9;

  /* Semantic Status: Public / Cleared */
  --color-public-bg: #1e2d15;
  --color-public-text: #a3e062;
  --color-public-border: #4f7f24;
  --color-public-dot: #82C232;

  /* Semantic Status: What Is Not Shown */
  --color-not-shown-bg: #1e2225;
  --color-not-shown-text: #e4e8e6;
  --color-not-shown-border: #7c868c;

  /* Semantic Status: DRAFT - NOT CLEARED FOR PUBLIC */
  --color-draft-banner-bg: #3b2a06;
  --color-draft-banner-text: #ffe8a3;
  --color-draft-banner-border: #d99b16;
  --color-draft-badge-bg: #ffd65c;
  --color-draft-badge-text: #16191b;
  --color-draft-surface-bg: #262012;
  --color-draft-surface-border: #c98b00;
  --color-draft-pill-bg: #3b2a06;
  --color-draft-pill-text: #ffd65c;
  --color-draft-pill-border: #b87d00;
  --color-draft-pill-dot: #ffd65c;

  /* Footer darker backdrop on dark canvas */
  --color-footer-bg: #121416;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-nav: 0 10px 24px rgba(0, 0, 0, 0.55);

  /* Charts, SVG Graphics & Track Accents (Dark) */
  --chart-primary: #9ad84b;
  --chart-secondary: #6cc4e0;
  --chart-tertiary: #eab94e;
  --chart-muted: #98a2a8;
  --chart-grid: #31373c;
  --chart-axis: #7d878d;
  --chart-label: #c2cbd0;
  --chart-pass: #92d650;
  --chart-fail: #f2817a;
  --chart-warn: #eab94e;
  --chart-target: #82C232;
  --chart-target-fill: rgba(130, 194, 50, 0.16);
  --chart-surface: #1e2226;
  --chart-tooltip-bg: #f3f5f4;
  --chart-tooltip-text: #16191b;
  --chart-node-bg: #262b2f;
  --chart-node-border: #606970;
  --chart-node-loop-bg: #152c35;
  --chart-node-invariant-bg: #33270d;
  --chart-node-active-bg: #1d2e14;
  --chart-heat-0: #262b2f;
  --chart-heat-1: #313d29;
  --chart-heat-2: #446421;
  --chart-heat-3: #689f28;
  --chart-heat-4: #82C232;
  --project-qwen-accent: #82C232;
  --project-qwen-tint: #1f2b18;
  --project-inkling-accent: #6cc4e0;
  --project-inkling-tint: #152b34;

  /* Inkling Atlas Explorer Tokens (Dark) */
  --atlas-role-general: #5cc2df;
  --atlas-role-specialist: #82C232;
  --atlas-role-userturn: #eab94e;
  --atlas-role-tested: #9aa5ab;
  --atlas-role-stagea: #ea8379;
  --atlas-role-rare: #859096;
  --atlas-usage-low: #838e94;
  --atlas-usage-mid: #7db834;
  --atlas-usage-high: #a9e655;
  --atlas-effect-neg: #ef7f75;
  --atlas-effect-zero: #889399;
  --atlas-effect-pos: #82C232;
  --atlas-topic-multilingual: #8ba4e0;
  --atlas-topic-everyday: #eab94e;
  --atlas-topic-fiction: #d48ec4;
  --atlas-topic-chemistry: #59cfa0;
  --atlas-topic-general-prose: #a9c44f;
  --atlas-topic-blender: #eb936a;
  --atlas-topic-sql: #63bfe0;
  --atlas-topic-math: #73b2ed;
  --atlas-topic-code: #82C232;
  --atlas-topic-mixed: #9ba5ab;
  --atlas-canvas-bg: #141718;
  --atlas-cell-active: #ffffff;
  --atlas-tooltip-bg: #f3f5f4;
  --atlas-tooltip-fg: #141718;
  --atlas-tooltip-border: #82C232;

  /* Editorial Direction Tokens (Dark, strictly Atlas palette) */
  --dir-ink-strong: #ffffff;
  --dir-surface-inv: #f3f5f4;
  --dir-lime-vivid: #82C232;
  --dir-rule-heavy: 3px solid #82C232;
  --dir-shadow-hard: 4px 4px 0 #82C232;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    /* Surfaces */
    --color-bg: #16191b;
    --color-bg-subtle: #1c2023;
    --color-surface: var(--atlas-charcoal);
    --color-surface-raised: #2a2f33;
    --color-surface-inset: #1b1f22;
    --color-surface-brand-tint: #212c1a;

    /* Text & Links */
    --color-text: var(--atlas-offwhite);
    --color-text-muted: #adb6bb;
    --color-text-strong: #ffffff;
    --color-text-inverse: var(--atlas-charcoal);
    --color-link: #9ad84b;
    --color-link-hover: #b3e66e;

    /* Borders & Interactive States */
    --color-border: #363c41;
    --color-border-strong: #525a61;
    --color-accent-hover: #94d342;
    --color-accent-text: #9ad84b;
    --color-focus: var(--atlas-lime);
    --color-selection-bg: #354b1c;
    --color-selection-text: var(--atlas-offwhite);

    /* Header & Controls */
    --color-header-bg: #1c2023;
    --color-header-border: #363c41;
    --color-nav-text: #e4e8e6;
    --color-nav-hover-bg: #2a2f33;
    --color-nav-active-text: #9ad84b;
    --color-nav-active-border: var(--atlas-lime);
    --color-control-bg: #2a2f33;
    --color-control-text: var(--atlas-offwhite);
    --color-control-border: #485057;
    --color-control-hover-bg: #343a40;

    /* Code & Tables */
    --color-code-bg: #16191b;
    --color-code-text: #e4e8e6;
    --color-code-border: #363c41;
    --color-table-head-bg: #2a2f33;
    --color-table-head-text: var(--atlas-offwhite);
    --color-table-stripe-bg: #1d2124;
    --color-table-hover-bg: #262e23;
    --color-table-border: #363c41;

    /* Semantic Status: Pass */
    --color-pass-bg: #1d2e14;
    --color-pass-text: #a3e062;
    --color-pass-border: #4f7f24;
    --color-pass-dot: #82C232;
    --color-pass-surface: #1b2815;

    /* Semantic Status: Fail */
    --color-fail-bg: #361918;
    --color-fail-text: #f59b95;
    --color-fail-border: #943c36;
    --color-fail-dot: #eb6f67;
    --color-fail-surface: #2b1716;

    /* Semantic Status: Caveat / Warning */
    --color-warn-bg: #33270d;
    --color-warn-text: #f0c45d;
    --color-warn-border: #87671d;
    --color-warn-dot: #e0ad38;
    --color-warn-surface: #282111;

    /* Semantic Status: Parked */
    --color-parked-bg: #2a2f34;
    --color-parked-text: #c2cbd0;
    --color-parked-border: #525c64;
    --color-parked-dot: #9aa4aa;

    /* Semantic Status: In Progress */
    --color-progress-bg: #152c35;
    --color-progress-text: #81cde6;
    --color-progress-border: #2e6e85;
    --color-progress-dot: #5bb8d9;

    /* Semantic Status: Public / Cleared */
    --color-public-bg: #1e2d15;
    --color-public-text: #a3e062;
    --color-public-border: #4f7f24;
    --color-public-dot: #82C232;

    /* Semantic Status: What Is Not Shown */
    --color-not-shown-bg: #1e2225;
    --color-not-shown-text: #e4e8e6;
    --color-not-shown-border: #7c868c;

    /* Semantic Status: DRAFT - NOT CLEARED FOR PUBLIC */
    --color-draft-banner-bg: #3b2a06;
    --color-draft-banner-text: #ffe8a3;
    --color-draft-banner-border: #d99b16;
    --color-draft-badge-bg: #ffd65c;
    --color-draft-badge-text: #16191b;
    --color-draft-surface-bg: #262012;
    --color-draft-surface-border: #c98b00;
    --color-draft-pill-bg: #3b2a06;
    --color-draft-pill-text: #ffd65c;
    --color-draft-pill-border: #b87d00;
    --color-draft-pill-dot: #ffd65c;

    /* Footer darker backdrop on dark canvas */
    --color-footer-bg: #121416;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
    --shadow-nav: 0 10px 24px rgba(0, 0, 0, 0.55);

    /* Charts, SVG Graphics & Track Accents (Dark) */
    --chart-primary: #9ad84b;
    --chart-secondary: #6cc4e0;
    --chart-tertiary: #eab94e;
    --chart-muted: #98a2a8;
    --chart-grid: #31373c;
    --chart-axis: #7d878d;
    --chart-label: #c2cbd0;
    --chart-pass: #92d650;
    --chart-fail: #f2817a;
    --chart-warn: #eab94e;
    --chart-target: #82C232;
    --chart-target-fill: rgba(130, 194, 50, 0.16);
    --chart-surface: #1e2226;
    --chart-tooltip-bg: #f3f5f4;
    --chart-tooltip-text: #16191b;
    --chart-node-bg: #262b2f;
    --chart-node-border: #606970;
    --chart-node-loop-bg: #152c35;
    --chart-node-invariant-bg: #33270d;
    --chart-node-active-bg: #1d2e14;
    --chart-heat-0: #262b2f;
    --chart-heat-1: #313d29;
    --chart-heat-2: #446421;
    --chart-heat-3: #689f28;
    --chart-heat-4: #82C232;
    --project-qwen-accent: #82C232;
    --project-qwen-tint: #1f2b18;
    --project-inkling-accent: #6cc4e0;
    --project-inkling-tint: #152b34;

    /* Inkling Atlas Explorer Tokens (Dark) */
    --atlas-role-general: #5cc2df;
    --atlas-role-specialist: #82C232;
    --atlas-role-userturn: #eab94e;
    --atlas-role-tested: #9aa5ab;
    --atlas-role-stagea: #ea8379;
    --atlas-role-rare: #859096;
    --atlas-usage-low: #838e94;
    --atlas-usage-mid: #7db834;
    --atlas-usage-high: #a9e655;
    --atlas-effect-neg: #ef7f75;
    --atlas-effect-zero: #889399;
    --atlas-effect-pos: #82C232;
    --atlas-topic-multilingual: #8ba4e0;
    --atlas-topic-everyday: #eab94e;
    --atlas-topic-fiction: #d48ec4;
    --atlas-topic-chemistry: #59cfa0;
    --atlas-topic-general-prose: #a9c44f;
    --atlas-topic-blender: #eb936a;
    --atlas-topic-sql: #63bfe0;
    --atlas-topic-math: #73b2ed;
    --atlas-topic-code: #82C232;
    --atlas-topic-mixed: #9ba5ab;
    --atlas-canvas-bg: #141718;
    --atlas-cell-active: #ffffff;
    --atlas-tooltip-bg: #f3f5f4;
    --atlas-tooltip-fg: #141718;
    --atlas-tooltip-border: #82C232;

    /* Editorial Direction Tokens (Dark, strictly Atlas palette) */
    --dir-ink-strong: #ffffff;
    --dir-surface-inv: #f3f5f4;
    --dir-lime-vivid: #82C232;
    --dir-rule-heavy: 3px solid #82C232;
    --dir-shadow-hard: 4px 4px 0 #82C232;
  }
}
