/* Color tokens: the ONLY place color values are defined (plus the page-local
   token blocks in a few templates, each in a :root rule).
   Light is the default. Dark applies when the person chose it
   (<html data-theme="dark">, from the vc_theme cookie) or, with no choice
   (System), when the device prefers it. The dark values are written twice
   (media query + attribute) because CSS cannot share one block between a
   media query and a selector; tests/test_theme_tokens.py keeps the two
   identical. To add a color: define a token here for BOTH themes, then use
   var(--token) (or color-mix on tokens) everywhere else. */
:root {
    color-scheme: light;
    /* surfaces and text */
    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --plate: #ffffff;
    --slate-50: #f9fafb;
    --slate-100: #f3f4f6;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-700: #334155;
    --border: #e5e7eb;
    --border-2: #d1d5db;
    --text: #111827;
    --text-2: #4b5563;
    --text-3: #8a94a3;
    --text-th: #707a89;
    --text-faint: #b6bec9;
    --brand: #111827;
    --brand-2: #1f2937;
    --brand-3: #334155;
    --on-brand: #ffffff;
    --on-brand-2: #cbd5e1;
    --on-brand-3: #e2e8f0;
    --brand-hover: rgba(255, 255, 255, .12);
    --on-accent: #ffffff;
    --topbar-bg: rgba(255, 255, 255, 0.82);
    --topbar-line: rgba(17, 24, 39, 0.06);
    --scrim: rgba(15, 23, 42, .45);
    --scrim-soft: rgba(15, 23, 42, .35);
    --sel-bg: #dbeafe;
    --sel-text: #1e3a8a;
    --code-bg: #f3f4f6;
    --stripe: #f9fafb;
    --grid-line: rgba(148, 163, 184, 0.18);
    --forecast-fill: rgba(148, 163, 184, 0.10);
    --crosshair: rgba(15, 23, 42, 0.18);
    --tip-bg: rgba(15, 23, 42, .94);
    --tip-text: #ffffff;
    --lc-lift: 0;
    --logo-filter: none;
    --avatar-s: 55%;
    --avatar-l: 46%;
    /* shadows */
    --shade: #0f172a;
    --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04);
    --shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 1px 4px rgba(17, 24, 39, 0.04);
    --shadow-md: 0 10px 30px rgba(17, 24, 39, 0.10), 0 2px 8px rgba(17, 24, 39, 0.05);
    /* blue */
    --blue: #2563eb;
    --blue-hover: #1d4ed8;
    --blue-dark: #1d4ed8;
    --blue-text: #2563eb;
    --blue-light: #eff6ff;
    --blue-soft: #dbeafe;
    --blue-line: #bfdbfe;
    --blue-line-2: #93c5fd;
    --blue-bright: #3b82f6;
    --blue-mid: #60a5fa;
    --blue-ink: #1e40af;
    --blue-ink-2: #1e3a8a;
    --blue-wash: #f8fbff;
    --blue-ring: rgba(37, 99, 235, 0.16);
    --blue-io-bg: #e0eafc;
    --blue-io-ink: #2f56c6;
    --blue-io-bar: #a8c1f2;
    --blue-pi-bar: #2f56c6;
    /* green (emerald) */
    --green: #059669;
    --green-hover: #047857;
    --green-dark: #047857;
    --green-light: #ecfdf5;
    --green-soft: #d1fae5;
    --green-line: #a7f3d0;
    --green-bright: #10b981;
    --green-bright-2: #34d399;
    --green-ink: #065f46;
    /* ok (Tailwind green) */
    --ok-light: #f0fdf4;
    --ok-soft: #dcfce7;
    --ok-line: #bbf7d0;
    --ok-line-2: #86efac;
    --ok-bright: #22c55e;
    --ok-ink: #15803d;
    --ok-ink-2: #166534;
    /* red */
    --red: #dc2626;
    --red-text: #dc2626;
    --red-light: #fef2f2;
    --red-soft: #fee2e2;
    --red-line: #fecaca;
    --red-line-2: #fca5a5;
    --red-bright: #ef4444;
    --red-ink: #b91c1c;
    --red-ink-2: #991b1b;
    --red-ink-3: #7f1d1d;
    --red-wash: #fffafa;
    /* amber */
    --amber: #d97706;
    --amber-text: #d97706;
    --amber-light: #fffbeb;
    --amber-soft: #fef3c7;
    --amber-line: #fde68a;
    --amber-line-2: #fcd34d;
    --amber-bright: #f59e0b;
    --amber-ink: #b45309;
    --amber-ink-2: #92400e;
    --amber-ink-3: #78350f;
    --amber-wash: #fffdf7;
    /* yellow */
    --yellow-light: #fefce8;
    --yellow-soft: #fef9c3;
    --yellow-bright: #facc15;
    --yellow-bright-2: #eab308;
    --yellow-ink: #a16207;
    /* violet */
    --violet-light: #f5f3ff;
    --violet-soft: #ede9fe;
    --violet-line: #ddd6fe;
    --violet-line-2: #c4b5fd;
    --violet-bright: #7c3aed;
    --violet-bright-2: #a78bfa;
    --violet-ink: #6d28d9;
    --violet-ink-2: #5b21b6;
    --violet-ring: rgba(139, 92, 246, .22);
    --purple-bright: #9333ea;
    /* indigo */
    --indigo-light: #eef2ff;
    --indigo-soft: #e0e7ff;
    --indigo-line: #c7d2fe;
    --indigo-bright: #4f46e5;
    --indigo-ink: #4338ca;
    --indigo-ink-2: #3730a3;
    /* cyan, teal, pink, lime */
    --cyan-light: #ecfeff;
    --cyan-soft: #cffafe;
    --cyan-line: #a5f3fc;
    --cyan-bright: #0891b2;
    --cyan-bright-2: #22d3ee;
    --cyan-ink: #0e7490;
    --teal-bright: #0d9488;
    --pink-bright: #db2777;
    --lime-bright: #65a30d;
    --chevron-12: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    --chevron-10: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    /* chart series */
    --chart-1: #1e3a8a;
    --chart-2: #0d9488;
    --chart-3: #d97706;
    --chart-4: #7c3aed;
    --chart-5: #db2777;
    --chart-6: #65a30d;
    --chart-7: #0891b2;
    --chart-8: #475569;
    --chart-select: rgba(29, 78, 216, 0.55);
    /* sign-in pages */
    --auth-bg: radial-gradient(circle at 50% -20%, #26344d 0, #111827 48%, #0b1020 100%);
    --auth-card-line: rgba(255, 255, 255, .12);
    --auth-shadow: 0 28px 70px rgba(0, 0, 0, .38), 0 4px 14px rgba(0, 0, 0, .18);
    --auth-text-3: #94a3b8;
    --auth-note: #cbd5e1;
    --auth-note-strong: #e2e8f0;
    --auth-link: #93c5fd;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
    color-scheme: dark;
        /* surfaces and text */
        --bg: #0b1220;
        --surface: #121a2b;
        --surface-raised: #19243a;
        --plate: #ffffff;
        --slate-50: #172136;
        --slate-100: #1d2940;
        --slate-200: #283652;
        --slate-500: #94a3b8;
        --slate-700: #cbd5e1;
        --border: #243049;
        --border-2: #34435e;
        --text: #e6ebf4;
        --text-2: #a9b5c9;
        --text-3: #7f8da5;
        --text-th: #8b98ae;
        --text-faint: #56647d;
        --brand: #2a3855;
        --brand-2: #1d2940;
        --brand-3: #34435e;
        --on-brand: #f1f5f9;
        --on-brand-2: #cbd5e1;
        --on-brand-3: #e2e8f0;
        --brand-hover: rgba(255, 255, 255, .12);
        --on-accent: #ffffff;
        --topbar-bg: rgba(11, 18, 32, 0.82);
        --topbar-line: rgba(148, 163, 184, 0.14);
        --scrim: rgba(2, 6, 14, .66);
        --scrim-soft: rgba(2, 6, 14, .55);
        --sel-bg: #1e3a6e;
        --sel-text: #dbeafe;
        --code-bg: #0e1626;
        --stripe: #151f33;
        --grid-line: rgba(148, 163, 184, 0.16);
        --forecast-fill: rgba(148, 163, 184, 0.08);
        --crosshair: rgba(226, 232, 240, 0.30);
        --tip-bg: rgba(38, 51, 77, .97);
        --tip-text: #f1f5f9;
        --lc-lift: 26;
        --logo-filter: invert(1) hue-rotate(180deg);
        --avatar-s: 50%;
        --avatar-l: 40%;
        /* shadows */
        --shade: #000000;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 1px 4px rgba(0, 0, 0, 0.25);
        --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.35);
        /* blue */
        --blue: #2f6fed;
        --blue-hover: #2563eb;
        --blue-dark: #8ab6ff;
        --blue-text: #7db0ff;
        --blue-light: #15233d;
        --blue-soft: #1b315a;
        --blue-line: #2a4a82;
        --blue-line-2: #3b62a3;
        --blue-bright: #3b82f6;
        --blue-mid: #60a5fa;
        --blue-ink: #a8c8ff;
        --blue-ink-2: #c3d9ff;
        --blue-wash: #101c33;
        --blue-ring: rgba(96, 165, 250, 0.38);
        --blue-io-bg: #1c2d52;
        --blue-io-ink: #9db8f5;
        --blue-io-bar: #6f8fd6;
        --blue-pi-bar: #5b86ee;
        /* green (emerald) */
        --green: #059669;
        --green-hover: #047857;
        --green-dark: #3fdc9a;
        --green-light: #0e2921;
        --green-soft: #12382d;
        --green-line: #1f5a45;
        --green-bright: #10b981;
        --green-bright-2: #34d399;
        --green-ink: #86efc6;
        /* ok (Tailwind green) */
        --ok-light: #0f2a1b;
        --ok-soft: #14391f;
        --ok-line: #1f5a33;
        --ok-line-2: #2f7d49;
        --ok-bright: #22c55e;
        --ok-ink: #6ee79b;
        --ok-ink-2: #8ef0b3;
        /* red */
        --red: #ef4444;
        --red-text: #f87171;
        --red-light: #2c1519;
        --red-soft: #3f1a20;
        --red-line: #6b2832;
        --red-line-2: #8f3441;
        --red-bright: #ef4444;
        --red-ink: #fca5a5;
        --red-ink-2: #fecaca;
        --red-ink-3: #fee2e2;
        --red-wash: #25141a;
        /* amber */
        --amber: #f59e0b;
        --amber-text: #fbbf24;
        --amber-light: #2a2010;
        --amber-soft: #3a2a0d;
        --amber-line: #6a4a10;
        --amber-line-2: #8f6514;
        --amber-bright: #f59e0b;
        --amber-ink: #fbbf24;
        --amber-ink-2: #fcd34d;
        --amber-ink-3: #fde68a;
        --amber-wash: #231c12;
        /* yellow */
        --yellow-light: #29250f;
        --yellow-soft: #393310;
        --yellow-bright: #facc15;
        --yellow-bright-2: #eab308;
        --yellow-ink: #fde047;
        /* violet */
        --violet-light: #1f1a38;
        --violet-soft: #2a2250;
        --violet-line: #42377d;
        --violet-line-2: #5b4ea5;
        --violet-bright: #8b5cf6;
        --violet-bright-2: #a78bfa;
        --violet-ink: #c4b5fd;
        --violet-ink-2: #ddd6fe;
        --violet-ring: rgba(167, 139, 250, .35);
        --purple-bright: #c084fc;
        /* indigo */
        --indigo-light: #1a1f42;
        --indigo-soft: #232a58;
        --indigo-line: #384385;
        --indigo-bright: #6366f1;
        --indigo-ink: #a5b4fc;
        --indigo-ink-2: #c7d2fe;
        /* cyan, teal, pink, lime */
        --cyan-light: #0e2a31;
        --cyan-soft: #123a44;
        --cyan-line: #1b5b68;
        --cyan-bright: #06b6d4;
        --cyan-bright-2: #22d3ee;
        --cyan-ink: #67e8f9;
        --teal-bright: #2dd4bf;
        --pink-bright: #f472b6;
        --lime-bright: #a3e635;
        --chevron-12: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
        --chevron-10: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
        /* chart series */
        --chart-1: #6f94f0;
        --chart-2: #2dd4bf;
        --chart-3: #f5a524;
        --chart-4: #a78bfa;
        --chart-5: #f472b6;
        --chart-6: #a3e635;
        --chart-7: #22d3ee;
        --chart-8: #94a3b8;
        --chart-select: rgba(138, 182, 255, 0.65);
        /* sign-in pages */
        --auth-bg: radial-gradient(circle at 50% -20%, #1b2740 0, #0b1220 55%, #060a14 100%);
        --auth-card-line: rgba(148, 163, 184, .18);
        --auth-shadow: 0 28px 70px rgba(0, 0, 0, .6), 0 4px 14px rgba(0, 0, 0, .35);
        --auth-text-3: #7f8da5;
        --auth-note: #cbd5e1;
        --auth-note-strong: #e2e8f0;
        --auth-link: #93c5fd;
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    /* surfaces and text */
    --bg: #0b1220;
    --surface: #121a2b;
    --surface-raised: #19243a;
    --plate: #ffffff;
    --slate-50: #172136;
    --slate-100: #1d2940;
    --slate-200: #283652;
    --slate-500: #94a3b8;
    --slate-700: #cbd5e1;
    --border: #243049;
    --border-2: #34435e;
    --text: #e6ebf4;
    --text-2: #a9b5c9;
    --text-3: #7f8da5;
    --text-th: #8b98ae;
    --text-faint: #56647d;
    --brand: #2a3855;
    --brand-2: #1d2940;
    --brand-3: #34435e;
    --on-brand: #f1f5f9;
    --on-brand-2: #cbd5e1;
    --on-brand-3: #e2e8f0;
    --brand-hover: rgba(255, 255, 255, .12);
    --on-accent: #ffffff;
    --topbar-bg: rgba(11, 18, 32, 0.82);
    --topbar-line: rgba(148, 163, 184, 0.14);
    --scrim: rgba(2, 6, 14, .66);
    --scrim-soft: rgba(2, 6, 14, .55);
    --sel-bg: #1e3a6e;
    --sel-text: #dbeafe;
    --code-bg: #0e1626;
    --stripe: #151f33;
    --grid-line: rgba(148, 163, 184, 0.16);
    --forecast-fill: rgba(148, 163, 184, 0.08);
    --crosshair: rgba(226, 232, 240, 0.30);
    --tip-bg: rgba(38, 51, 77, .97);
    --tip-text: #f1f5f9;
    --lc-lift: 26;
    --logo-filter: invert(1) hue-rotate(180deg);
    --avatar-s: 50%;
    --avatar-l: 40%;
    /* shadows */
    --shade: #000000;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 1px 4px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.35);
    /* blue */
    --blue: #2f6fed;
    --blue-hover: #2563eb;
    --blue-dark: #8ab6ff;
    --blue-text: #7db0ff;
    --blue-light: #15233d;
    --blue-soft: #1b315a;
    --blue-line: #2a4a82;
    --blue-line-2: #3b62a3;
    --blue-bright: #3b82f6;
    --blue-mid: #60a5fa;
    --blue-ink: #a8c8ff;
    --blue-ink-2: #c3d9ff;
    --blue-wash: #101c33;
    --blue-ring: rgba(96, 165, 250, 0.38);
    --blue-io-bg: #1c2d52;
    --blue-io-ink: #9db8f5;
    --blue-io-bar: #6f8fd6;
    --blue-pi-bar: #5b86ee;
    /* green (emerald) */
    --green: #059669;
    --green-hover: #047857;
    --green-dark: #3fdc9a;
    --green-light: #0e2921;
    --green-soft: #12382d;
    --green-line: #1f5a45;
    --green-bright: #10b981;
    --green-bright-2: #34d399;
    --green-ink: #86efc6;
    /* ok (Tailwind green) */
    --ok-light: #0f2a1b;
    --ok-soft: #14391f;
    --ok-line: #1f5a33;
    --ok-line-2: #2f7d49;
    --ok-bright: #22c55e;
    --ok-ink: #6ee79b;
    --ok-ink-2: #8ef0b3;
    /* red */
    --red: #ef4444;
    --red-text: #f87171;
    --red-light: #2c1519;
    --red-soft: #3f1a20;
    --red-line: #6b2832;
    --red-line-2: #8f3441;
    --red-bright: #ef4444;
    --red-ink: #fca5a5;
    --red-ink-2: #fecaca;
    --red-ink-3: #fee2e2;
    --red-wash: #25141a;
    /* amber */
    --amber: #f59e0b;
    --amber-text: #fbbf24;
    --amber-light: #2a2010;
    --amber-soft: #3a2a0d;
    --amber-line: #6a4a10;
    --amber-line-2: #8f6514;
    --amber-bright: #f59e0b;
    --amber-ink: #fbbf24;
    --amber-ink-2: #fcd34d;
    --amber-ink-3: #fde68a;
    --amber-wash: #231c12;
    /* yellow */
    --yellow-light: #29250f;
    --yellow-soft: #393310;
    --yellow-bright: #facc15;
    --yellow-bright-2: #eab308;
    --yellow-ink: #fde047;
    /* violet */
    --violet-light: #1f1a38;
    --violet-soft: #2a2250;
    --violet-line: #42377d;
    --violet-line-2: #5b4ea5;
    --violet-bright: #8b5cf6;
    --violet-bright-2: #a78bfa;
    --violet-ink: #c4b5fd;
    --violet-ink-2: #ddd6fe;
    --violet-ring: rgba(167, 139, 250, .35);
    --purple-bright: #c084fc;
    /* indigo */
    --indigo-light: #1a1f42;
    --indigo-soft: #232a58;
    --indigo-line: #384385;
    --indigo-bright: #6366f1;
    --indigo-ink: #a5b4fc;
    --indigo-ink-2: #c7d2fe;
    /* cyan, teal, pink, lime */
    --cyan-light: #0e2a31;
    --cyan-soft: #123a44;
    --cyan-line: #1b5b68;
    --cyan-bright: #06b6d4;
    --cyan-bright-2: #22d3ee;
    --cyan-ink: #67e8f9;
    --teal-bright: #2dd4bf;
    --pink-bright: #f472b6;
    --lime-bright: #a3e635;
    --chevron-12: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    --chevron-10: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    /* chart series */
    --chart-1: #6f94f0;
    --chart-2: #2dd4bf;
    --chart-3: #f5a524;
    --chart-4: #a78bfa;
    --chart-5: #f472b6;
    --chart-6: #a3e635;
    --chart-7: #22d3ee;
    --chart-8: #94a3b8;
    --chart-select: rgba(138, 182, 255, 0.65);
    /* sign-in pages */
    --auth-bg: radial-gradient(circle at 50% -20%, #1b2740 0, #0b1220 55%, #060a14 100%);
    --auth-card-line: rgba(148, 163, 184, .18);
    --auth-shadow: 0 28px 70px rgba(0, 0, 0, .6), 0 4px 14px rgba(0, 0, 0, .35);
    --auth-text-3: #7f8da5;
    --auth-note: #cbd5e1;
    --auth-note-strong: #e2e8f0;
    --auth-link: #93c5fd;
}
