:root,
:root[data-theme="dark"] {
    --ec-color-scheme: dark;
    color-scheme: dark;
    --ec-color-canvas: #0c111d;
    --ec-color-surface: #141b2a;
    --ec-color-surface-raised: #1b2537;
    --ec-color-surface-hover: #243149;
    --ec-color-border: #2c3a52;
    --ec-color-border-strong: #42526d;
    --ec-color-text: #f4f7fb;
    --ec-color-text-muted: #aab6c8;
    --ec-color-text-subtle: #9aa8bb;
    --ec-color-accent: #8fa8ff;
    --ec-color-accent-strong: #b7c5ff;
    --ec-color-accent-soft: #263455;
    --ec-color-accent-contrast: #101933;
    --ec-color-danger: #ff9a9a;
    --ec-color-success: #72d49b;
    --ec-color-success-contrast: #10281f;
    --ec-color-success-bg: #173a2a;
    --ec-color-success-border: #2f7552;
    --ec-color-success-text: #9ce8ba;
    --ec-color-warning-bg: #3a2c15;
    --ec-color-warning-border: #82622a;
    --ec-color-warning-text: #ffe2a8;
    --ec-color-overlay: rgb(3 7 18 / 68%);
    --ec-shadow-raised: 0 18px 48px rgb(0 0 0 / 32%);
    --ec-shadow-modal: 0 24px 72px rgb(0 0 0 / 48%);
    --ec-focus-ring: 0 0 0 3px rgb(143 168 255 / 35%);
    --ec-radius-sm: 0.5rem;
    --ec-radius-md: 0.75rem;
    --ec-radius-lg: 1rem;
    --ec-space-1: 0.25rem;
    --ec-space-2: 0.5rem;
    --ec-space-3: 0.75rem;
    --ec-space-4: 1rem;
    --ec-space-5: 1.25rem;
    --ec-space-6: 1.5rem;
    --ec-space-8: 2rem;
    --ec-target-size: 44px;
    --ec-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
    --ec-color-scheme: light;
    color-scheme: light;
    --ec-color-canvas: #f4f6fa;
    --ec-color-surface: #ffffff;
    --ec-color-surface-raised: #f8fafc;
    --ec-color-surface-hover: #edf1f7;
    --ec-color-border: #d8e0eb;
    --ec-color-border-strong: #b8c4d4;
    --ec-color-text: #1b2738;
    --ec-color-text-muted: #526176;
    --ec-color-text-subtle: #5b697c;
    --ec-color-accent: #405da8;
    --ec-color-accent-strong: #2f4d94;
    --ec-color-accent-soft: #e8edfb;
    --ec-color-accent-contrast: #ffffff;
    --ec-color-danger: #a91c1c;
    --ec-color-success: #18794e;
    --ec-color-success-contrast: #ffffff;
    --ec-color-success-bg: #e7f6ed;
    --ec-color-success-border: #82c99e;
    --ec-color-success-text: #155e3c;
    --ec-color-warning-bg: #fff5dc;
    --ec-color-warning-border: #d9b45f;
    --ec-color-warning-text: #624711;
    --ec-color-overlay: rgb(15 23 42 / 48%);
    --ec-shadow-raised: 0 18px 48px rgb(35 54 77 / 14%);
    --ec-shadow-modal: 0 24px 72px rgb(35 54 77 / 24%);
    --ec-focus-ring: 0 0 0 3px rgb(64 93 168 / 24%);
}
