:root {
    --authenticated-gap: 24px;
    --authenticated-gutter: 32px;
    --authenticated-inset: 24px;
    --authenticated-navbar-height: 76px;
    --color-accent: #7a3e9d;
    --color-accent-dark: #5f2e7a;
    --color-accent-soft: rgba(122, 62, 157, 0.08);
    --color-accent-text: #6e3592;
    --color-accent-text-strong: #4f2369;
    --color-brand-ink: #ffffff;
    --color-brand-solid: #7a3e9d;
    --color-attention-bg: #fff8ec;
    --color-attention-border: #f1d9ae;
    --color-attention-ink: #7a4300;
    --color-attention-line: #f6e6c8;
    --color-backdrop: #f6f5f8;
    --color-danger: #c62f3b;
    --color-danger-soft: rgba(198, 47, 59, 0.12);
    --color-danger-solid: #c62f3b;
    --color-disabled: #b5aebf;
    --color-faint: #8a8296;
    --color-field-bg: rgba(255, 255, 255, 0.7);
    --color-field-border: rgba(27, 21, 35, 0.45);
    --color-field-line: #dcd6e3;
    --color-heading: #1b1523;
    --color-line: #e8e4ed;
    --color-line-bold: #cfc8d8;
    --color-line-faint: #eeeaf2;
    --color-line-soft: #f0edf3;
    --color-line-strong: #d6d0dd;
    --color-muted-strong: #6b6377;
    --color-neutral-soft: #edeaf1;
    --color-outline: rgba(122, 62, 157, 0.8);
    --color-overlay: rgba(27, 21, 35, 0.35);
    --color-page: #f6f5f8;
    --color-recovery-seen: #cdb8dd;
    --color-scrim: rgba(27, 21, 35, 0.13);
    --color-segment: #f1eef4;
    --color-sidebar: #ffffff;
    --color-sidebar-danger: #c62f3b;
    --color-sidebar-edge: #e8e4ed;
    --color-sidebar-hover: rgba(122, 62, 157, 0.08);
    --color-sidebar-line: #e8e4ed;
    --color-sidebar-meter: #7a3e9d;
    --color-sidebar-muted: #625a6e;
    --color-sidebar-submenu: #fbfafc;
    --color-sidebar-text: #3d3548;
    --color-sidebar-warning: #b45309;
    --color-success: #17724a;
    --color-success-dot: #1a7f4b;
    --color-success-soft: rgba(27, 122, 75, 0.14);
    --color-surface: #ffffff;
    --color-surface-muted: color-mix(in srgb, var(--color-heading) 4%, transparent);
    --color-surface-subtle: #fbfafc;
    --color-text: #3d3548;
    --color-text-soft: #4a4256;
    --color-tint: rgba(122, 62, 157, 0.04);
    --color-warning: #7a4f00;
    --color-warning-dot: #d97706;
    --color-warning-soft: rgba(245, 170, 20, 0.22);
    --container: 1120px;
    --dash-spring: linear(0, 0.0644, 0.2042, 0.3654, 0.5186, 0.6502, 0.7559, 0.8365, 0.8954, 0.9367, 0.9645, 0.9824, 0.9933, 0.9995, 1.0027, 1.0039, 1.0041, 1.0037, 1.0031, 1.0024, 1.0018, 1.0013, 1.0009, 1.0006, 1);
    --ease-standard: cubic-bezier(0.2, 0, 0, 1);
    --font-display: "Inter Display", var(--font-sans);
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --glass-bar-bg: rgba(255, 255, 255, 0.86);
    --glass-blur: blur(28px) saturate(150%);
    --glass-border: rgba(255, 255, 255, 0.85);
    --glass-inner-bg: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 14px 44px rgba(27, 21, 35, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(255, 255, 255, 0.4);
    --glass-solid: #ffffff;
    --motion-fast: 0.15s;
    --motion-slow: 0.35s;
    --navbar-height: 76px;
    --radius: 14px;
    --radius-pill: 999px;
    --radius-sm: 10px;
    --series-1: #dc2626;
    --series-2: #ea580c;
    --series-3: #ca8a04;
    --series-4: #65a30d;
    --series-5: #16a34a;
    --series-other: #9a98a0;
    --shadow-field: inset 0 1px 3px rgba(27, 21, 35, 0.1);
    --shadow-glass-inner: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 3px rgba(27, 21, 35, 0.1);
    --space-1: 4px;
    --splash-hold: 3s;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --text-lg: 18px;
    --text-md: 16px;
    --text-sm: 14px;
    --text-xs: 12px;
    --tone-attention-text: #5c3300;
    --tone-danger-bg: #fdecea;
    --tone-danger-edge: #f3c9c3;
    --tone-danger-faint: #fdf6f5;
    --tone-danger-ink: #b42318;
    --tone-danger-quiet: #7e2a1e;
    --tone-danger-strong: #5e1a12;
    --tone-danger-text: #8a1c12;
    --tone-danger-wash: #fdf1ef;
    --tone-info-bg: #eaf0fb;
    --tone-info-ink: #2f5fb3;
    --tone-orange-ink: #9a3412;
    --tone-success-bg: #e6f4ec;
    --tone-success-dot: #1a7f4b;
    --tone-success-edge: #cbe7d6;
    --tone-success-ink: #146c40;
    --tone-success-quiet: #2f6146;
    --tone-success-strong: #0f4d2d;
    --tone-success-wash: #f1f9f4;
    --tone-warning-bg: #fff4e0;
    --tone-warning-dot: #d97706;
    --tone-warning-ink: #8a4b00;
    --tone-warning-strong: #b45309;
    --z-banner: 100;
    --z-drawer: 20;
    --z-drawer-backdrop: 19;
    --z-dropdown: 10;
    --z-navbar: 5;
    --z-progress: 110;
    --z-splash: 200;
    --z-toast: 60;
    --z-tooltip: 50;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --color-accent: #9358bc;
    --color-accent-dark: #7a3e9d;
    --color-accent-soft: rgba(147, 88, 188, 0.22);
    --color-accent-text: #c9a2e6;
    --color-accent-text-strong: #dec4f0;
    --color-attention-bg: #2b2212;
    --color-attention-border: #57421f;
    --color-attention-ink: #e6bf86;
    --color-attention-line: #4a3a1e;
    --color-backdrop: #131116;
    --color-brand-solid: #9358bc;
    --color-danger: #f28b80;
    --color-danger-soft: rgba(242, 139, 128, 0.16);
    --color-danger-solid: #cf4a45;
    --color-disabled: #5f5769;
    --color-faint: #80778b;
    --color-field-bg: rgba(28, 25, 34, 0.7);
    --color-field-border: rgba(241, 237, 245, 0.45);
    --color-field-line: #3d3746;
    --color-heading: #f1edf5;
    --color-line: #2f2a37;
    --color-line-bold: #4a4354;
    --color-line-faint: #2c2733;
    --color-line-soft: #29242f;
    --color-line-strong: #3d3746;
    --color-muted-strong: #8c8397;
    --color-neutral-soft: #2e2a35;
    --color-outline: rgba(201, 162, 230, 0.8);
    --color-overlay: rgba(0, 0, 0, 0.55);
    --color-page: #131116;
    --color-recovery-seen: #5b4a6e;
    --color-scrim: rgba(0, 0, 0, 0.35);
    --color-segment: #2a2631;
    --color-sidebar: #1c1922;
    --color-sidebar-danger: #f28b80;
    --color-sidebar-edge: #2f2a37;
    --color-sidebar-hover: rgba(147, 88, 188, 0.22);
    --color-sidebar-line: #2f2a37;
    --color-sidebar-meter: #9358bc;
    --color-sidebar-muted: #a69db1;
    --color-sidebar-submenu: #221e28;
    --color-sidebar-text: #d9d2e0;
    --color-sidebar-warning: #efa346;
    --color-success: #74d29c;
    --color-success-dot: #45b877;
    --color-success-soft: rgba(69, 184, 119, 0.2);
    --color-surface: #1c1922;
    --color-surface-subtle: #221e28;
    --color-text: #d9d2e0;
    --color-text-soft: #c6bed0;
    --color-tint: rgba(147, 88, 188, 0.08);
    --color-warning: #f0b45e;
    --color-warning-dot: #e79a2e;
    --color-warning-soft: rgba(240, 180, 94, 0.2);
    --glass-bar-bg: rgba(28, 25, 34, 0.86);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-inner-bg: rgba(255, 255, 255, 0.04);
    --glass-shadow: 0 14px 44px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -1px 0 rgba(255, 255, 255, 0.02);
    --glass-solid: #1c1922;
    --shadow-field: inset 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-glass-inner: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 3px rgba(0, 0, 0, 0.4);
    --tone-attention-text: #f6d7a0;
    --tone-danger-bg: #3a1b19;
    --tone-danger-edge: #5a2b28;
    --tone-danger-faint: #2c1719;
    --tone-danger-ink: #f28b80;
    --tone-danger-quiet: #f1a199;
    --tone-danger-strong: #f6b6ad;
    --tone-danger-text: #f4a39a;
    --tone-danger-wash: #33191a;
    --tone-info-bg: #17233a;
    --tone-info-ink: #8fb4f2;
    --tone-orange-ink: #f2996e;
    --tone-success-bg: #16301f;
    --tone-success-dot: #45b877;
    --tone-success-edge: #24503a;
    --tone-success-ink: #74d29c;
    --tone-success-quiet: #7fcba0;
    --tone-success-strong: #9be3b8;
    --tone-success-wash: #112519;
    --tone-warning-bg: #3a2a12;
    --tone-warning-dot: #e79a2e;
    --tone-warning-ink: #f0b45e;
    --tone-warning-strong: #efa346;
}

@media (prefers-reduced-transparency: reduce) {
    :root {
        --glass-bar-bg: var(--glass-solid);
        --glass-blur: none;
        --glass-inner-bg: rgba(255, 255, 255, 0.92);
    }
}

@media (max-width: 768px) {
    :root {
        --authenticated-gutter: 16px;
    }
}
