:root {
    --violet-400: #a78bfa;
    --violet-600: #7c3aed;
    --brand-rgb: 124 58 237;
    --gray-950: #0b1220;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-200: #e5e7eb;
    --gray-100: #f0f0f0;
    --gray-50:  #f9fafb;
    --white:    #ffffff;
    --blue-300:   #93c5fd;
    --indigo-300: #a5b4fc;
    --green-400: #4ade80;
    --amber-400: #fbbf24;
    --red-500:   #ef4444;
    --green-rgb: 74 222 128;
    --amber-rgb: 251 191 36;
    --red-rgb:   239 68 68;
    color-scheme: dark;
    --color-bg:              var(--gray-900);
    --color-surface:         var(--gray-800);
    --color-surface-raised:  var(--gray-700);
    --color-surface-sunken:  var(--gray-950);
    --color-overlay:         rgb(0 0 0 / .65);
    --color-overlay-strong:  rgb(0 0 0 / .90);
    --color-overlay-flash:   rgb(0 0 0 / .93);
    --color-text:            var(--gray-100);
    --color-text-secondary:  var(--gray-400);
    --color-text-muted:      var(--gray-500);
    --color-text-inverse:    var(--white);
    --color-border:          var(--gray-600);
    --color-border-strong:   var(--gray-500);
    --color-border-subtle:   rgb(255 255 255 / .07);
    --color-brand:           var(--violet-600);
    --color-brand-hover:     color-mix(in oklab, var(--violet-600) 85%, var(--white));
    --color-brand-active:    color-mix(in oklab, var(--violet-600) 85%, black);
    --color-brand-contrast:  var(--white);
    --color-brand-text:      var(--violet-400);
    --color-id-order:        var(--blue-300);
    --color-id-sku:          var(--indigo-300);
    --color-brand-wash:      rgb(var(--brand-rgb) / .05);
    --color-brand-soft:      rgb(var(--brand-rgb) / .12);
    --color-brand-muted:     rgb(var(--brand-rgb) / .15);
    --color-brand-ring:      rgb(var(--brand-rgb) / .30);
    --color-success:         var(--green-400);
    --color-success-bg:      rgb(var(--green-rgb) / .12);
    --color-success-border:  rgb(var(--green-rgb) / .30);
    --color-warning:         var(--amber-400);
    --color-warning-bg:      rgb(var(--amber-rgb) / .12);
    --color-warning-border:  rgb(var(--amber-rgb) / .30);
    --color-warning-solid:   color-mix(in oklab, var(--amber-400) 65%, black);
    --color-success-solid:   color-mix(in oklab, var(--green-400) 55%, black);
    --color-danger-solid:    color-mix(in oklab, var(--red-500) 80%, black);
    --color-danger:          var(--red-500);
    --color-danger-bg:       rgb(var(--red-rgb) / .12);
    --color-danger-border:   rgb(var(--red-rgb) / .30);
    --color-info:            var(--color-brand-text);
    --color-info-bg:         var(--color-brand-soft);
    --color-info-border:     var(--color-brand-ring);
    --color-focus-ring:      var(--violet-400);
    --focus-ring-width:      2px;
    --focus-ring-offset:     2px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
                 "Liberation Mono", monospace;
    --text-2xs:  0.625rem;
    --text-xs:   0.75rem;
    --text-sm:   0.8125rem;
    --text-base: 0.9375rem;
    --text-lg:   1.0625rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  1.875rem;
    --text-table:   0.6875rem;
    --table-cell-y: 0.25rem;
    --table-cell-x: 0.375rem;
    --weight-normal:   400;
    --weight-medium:   500;
    --weight-semibold: 600;
    --weight-bold:     700;
    --leading-tight:   1.25;
    --leading-normal:  1.5;
    --leading-relaxed: 1.65;
    --tracking-tight: -0.011em;
    --tracking-wide:   0.04em;
    --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;
    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   12px;
    --radius-xl:   16px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .40);
    --shadow-md: 0 6px 16px rgb(0 0 0 / .45),
                 0 0 0 1px rgb(255 255 255 / .04);
    --shadow-lg: 0 18px 44px rgb(0 0 0 / .55),
                 0 0 0 1px rgb(255 255 255 / .06);
    --transition-fast: 120ms;
    --transition-base: 180ms;
    --transition-slow: 280ms;
    --ease-out:    cubic-bezier(.22, 1, .36, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
    --width-content: 64rem;
    --width-narrow:  25rem;
    --header-height: 3.5rem;
    --sidebar-width: 13.75rem;
    --gutter:        var(--space-4);
    --z-dropdown: 100;
    --z-sticky:   200;
    --z-flash:    250;
    --z-modal:    300;
    --z-above-modal: 350;
    --z-zoom:     380;
    --z-toast:    400;
    --z-ready:    420;
    --chart-1: #3987e5;
    --chart-2: #d95926;
    --chart-3: #199e70;
    --chart-4: #c98500;
    --chart-5: #d55181;
    --chart-6: #008300;
    --chart-7: #9085e9;
    --chart-8: #e66767;
    --chart-other: var(--gray-500);
    --chart-seq-0: var(--gray-800);
    --chart-seq-1: #104281;
    --chart-seq-2: #1c5cab;
    --chart-seq-3: #2a78d6;
    --chart-seq-4: #5598e7;
    --chart-seq-5: #9ec5f4;
}
:root[data-theme="light"] {
    color-scheme: light;
    --color-bg:              var(--gray-50);
    --color-surface:         var(--white);
    --color-surface-raised:  var(--white);
    --color-surface-sunken:  var(--gray-50);
    --color-overlay:         rgb(17 24 39 / .45);
    --color-overlay-strong:  rgb(17 24 39 / .88);
    --color-text:            var(--gray-900);
    --color-text-secondary:  var(--gray-600);
    --color-text-muted:      var(--gray-500);
    --color-text-inverse:    var(--white);
    --color-border:          var(--gray-200);
    --color-border-strong:   var(--gray-400);
    --color-border-subtle:   rgb(17 24 39 / .08);
    --color-brand-text:      var(--violet-600);
    --color-brand-hover:     color-mix(in oklab, var(--violet-600) 88%, black);
    --color-brand-active:    color-mix(in oklab, var(--violet-600) 75%, black);
    --color-success:         color-mix(in oklab, var(--green-400) 62%, black);
    --color-warning:         color-mix(in oklab, var(--amber-400) 62%, black);
    --color-danger:          color-mix(in oklab, var(--red-500) 88%, black);
    --color-success-bg:      rgb(var(--green-rgb) / .14);
    --color-warning-bg:      rgb(var(--amber-rgb) / .18);
    --color-danger-bg:       rgb(var(--red-rgb) / .10);
    --color-focus-ring:      var(--violet-600);
    --shadow-sm: 0 1px 2px rgb(17 24 39 / .06);
    --shadow-md: 0 6px 16px rgb(17 24 39 / .08),
                 0 0 0 1px rgb(17 24 39 / .04);
    --shadow-lg: 0 18px 44px rgb(17 24 39 / .12),
                 0 0 0 1px rgb(17 24 39 / .05);
    --chart-1: #2a78d6;
    --chart-2: #eb6834;
    --chart-3: #1baf7a;
    --chart-4: #eda100;
    --chart-5: #e87ba4;
    --chart-6: #008300;
    --chart-7: #6250d6;
    --chart-8: #e34948;
    --chart-other: var(--gray-400);
    --chart-seq-0: var(--gray-100);
    --chart-seq-1: #cde2fb;
    --chart-seq-2: #9ec5f4;
    --chart-seq-3: #5598e7;
    --chart-seq-4: #2a78d6;
    --chart-seq-5: #184f95;
}
@media (prefers-reduced-motion: reduce) {
    :root {
        --transition-fast: 0ms;
        --transition-base: 0ms;
        --transition-slow: 0ms;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
:root {
    --label-ink:   #000000;
    --label-paper: #ffffff;
}
