/* Evolutive X design system 0.3.7.
 * Generated from tokens.json by generate_tokens.py. Edit the JSON source.
 * .ex-theme inherits colour from its nearest theme. Set
 * data-ex-theme="light|dark|system" only to establish a theme boundary.
 */

:root,
.ex-theme,
[data-ex-theme] {
  --ex-font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ex-text-xs: 0.75rem;
  --ex-text-sm: 0.875rem;
  --ex-text-base: 1rem;
  --ex-text-lg: 1.125rem;
  --ex-text-xl: 1.25rem;
  --ex-text-2xl: 1.5rem;
  --ex-text-3xl: 2rem;
  --ex-text-4xl: 2.5rem;
  --ex-leading-tight: 1.15;
  --ex-leading-heading: 1.25;
  --ex-leading-body: 1.55;
  --ex-tracking-heading: -0.035em;
  --ex-tracking-body: 0;
  --ex-weight-regular: 400;
  --ex-weight-medium: 500;
  --ex-weight-semibold: 600;
  --ex-weight-bold: 700;
  --ex-weight-display: 750;
  --ex-space-0: 0;
  --ex-space-1: 0.25rem;
  --ex-space-2: 0.5rem;
  --ex-space-3: 0.75rem;
  --ex-space-4: 1rem;
  --ex-space-5: 1.25rem;
  --ex-space-6: 1.5rem;
  --ex-space-8: 2rem;
  --ex-space-10: 2.5rem;
  --ex-space-12: 3rem;
  --ex-space-16: 4rem;
  --ex-space-20: 5rem;
  --ex-space-24: 6rem;
  --ex-radius-field: 0.625rem;
  --ex-radius-panel: 0.875rem;
  --ex-radius-button: 999px;
  --ex-radius-small: 0.375rem;
  --ex-control-height: 3rem;
  --ex-control-height-compact: 2.75rem;
  --ex-border-width: 1px;
  --ex-border-width-strong: 2px;
  --ex-focus-width: 2px;
  --ex-focus-offset: 3px;
  --ex-duration-fast: 120ms;
  --ex-duration-normal: 180ms;
  --ex-duration-slow: 240ms;
  --ex-ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ex-measure: 65ch;
  --ex-layout-max: 80rem;
  --ex-reading-max: 48rem;
  --ex-radius-secondary: 0.625rem;
  --ex-h1-size: 2.5rem;
  --ex-h1-size-compact: 2rem;
  --ex-h1-weight: 700;
  --ex-h1-leading: 1.12;
  --ex-h2-size: 1.75rem;
  --ex-h2-size-compact: 1.5rem;
  --ex-h2-weight: 650;
  --ex-h2-leading: 1.2;
  --ex-h3-size: 1.25rem;
  --ex-h3-weight: 650;
  --ex-h3-leading: 1.3;
  --ex-body-size: 1rem;
  --ex-body-weight: 400;
  --ex-body-leading: 1.55;
  --ex-compact-size: 0.875rem;
  --ex-compact-leading: 1.5;
  --ex-label-size: 0.875rem;
  --ex-label-weight: 600;
  --ex-label-leading: 1.4;
  --ex-button-size: 1rem;
  --ex-button-weight: 600;
  --ex-button-leading: 1.4;
  --ex-select-icon-size: 1.25rem;
  --ex-select-icon-inset: 1rem;
  --ex-select-text-gap: 0.75rem;
  --ex-dialog-gutter: 1rem;
  --ex-dialog-max-width: 32rem;
}

/* Light is the root fallback. Unthemed .ex-theme wrappers inherit colours;
   only an explicit data attribute establishes a nested theme boundary. */
:root,
[data-ex-theme="light"],
[data-ex-theme="system"] {
  color-scheme: light;
  --ex-bg: #F7F8FC;
  --ex-surface: #FFFFFF;
  --ex-surface-raised: #EEF1F8;
  --ex-text: #141D32;
  --ex-text-secondary: #3F4C66;
  --ex-text-muted: #52617A;
  --ex-border: #D5DCE8;
  --ex-control-border: #6F7D95;
  --ex-focus: #5511D2;
  --ex-link: #5017B7;
  --ex-error: #A00558;
  --ex-error-bg: #FFEDF6;
  --ex-success: #00664B;
  --ex-success-bg: #DFFBEF;
  --ex-warning: #576000;
  --ex-warning-bg: #F4F9D9;
  --ex-disabled-bg: #E6EAF1;
  --ex-disabled-text: #59657A;
  --ex-primary-top: #FFFFFF;
  --ex-primary-bottom: #EEF0FA;
  --ex-primary-hover-top: #FCF8FF;
  --ex-primary-hover-bottom: #E9E4FC;
  --ex-primary-pressed: #E2D8FB;
  --ex-spectrum-1: #007B8D;
  --ex-spectrum-2: #4648DF;
  --ex-spectrum-3: #7835D7;
  --ex-spectrum-4: #BF127F;
  --ex-secondary-hover: #F0EAFF;
  --ex-secondary-pressed: #E7DCFF;
  --ex-selected-bg: #EEE5FF;
  --ex-selected-text: #431094;
  --ex-shadow-raised: 0 8px 28px rgb(20 29 50 / 0.08);
  --ex-shadow-primary-hover: 0 4px 18px rgb(68 78 174 / 0.14);
  --ex-filled-text: #FFFFFF;
  --ex-filled-default-1: #006A83;
  --ex-filled-default-2: #1749D9;
  --ex-filled-default-3: #6924CD;
  --ex-filled-default-4: #AB006A;
  --ex-filled-hover-1: #00768A;
  --ex-filled-hover-2: #1956EF;
  --ex-filled-hover-3: #7A2AE1;
  --ex-filled-hover-4: #BD0077;
  --ex-filled-pressed-1: #004F63;
  --ex-filled-pressed-2: #1037AD;
  --ex-filled-pressed-3: #50189E;
  --ex-filled-pressed-4: #870052;
}

[data-ex-theme="dark"] {
  color-scheme: dark;
  --ex-bg: #070B16;
  --ex-surface: #0D1726;
  --ex-surface-raised: #142136;
  --ex-text: #F7F8FC;
  --ex-text-secondary: #CCD4E2;
  --ex-text-muted: #A6B4CA;
  --ex-border: #334159;
  --ex-control-border: #7488A6;
  --ex-focus: #4AEAFF;
  --ex-link: #5BF1FF;
  --ex-error: #FF72B4;
  --ex-error-bg: #35142C;
  --ex-success: #46ECC0;
  --ex-success-bg: #0C302A;
  --ex-warning: #DBF95B;
  --ex-warning-bg: #252B12;
  --ex-disabled-bg: #1C293D;
  --ex-disabled-text: #99A9C2;
  --ex-primary-top: #0B1628;
  --ex-primary-bottom: #1C1230;
  --ex-primary-hover-top: #172440;
  --ex-primary-hover-bottom: #30204B;
  --ex-primary-pressed: #302549;
  --ex-spectrum-1: #19E6FF;
  --ex-spectrum-2: #7997FF;
  --ex-spectrum-3: #B37BFF;
  --ex-spectrum-4: #FF57D5;
  --ex-secondary-hover: #27203C;
  --ex-secondary-pressed: #382B51;
  --ex-selected-bg: #312050;
  --ex-selected-text: #E3C8FF;
  --ex-shadow-raised: 0 12px 32px rgb(0 0 0 / 0.28);
  --ex-shadow-primary-hover: 0 4px 18px rgb(102 112 230 / 0.2);
  --ex-filled-text: #070B16;
  --ex-filled-default-1: #2DE2E6;
  --ex-filled-default-2: #5399FF;
  --ex-filled-default-3: #AA85FF;
  --ex-filled-default-4: #FF57BA;
  --ex-filled-hover-1: #64F2EF;
  --ex-filled-hover-2: #75AEFF;
  --ex-filled-hover-3: #BF9BFF;
  --ex-filled-hover-4: #FF80D2;
  --ex-filled-pressed-1: #12BFCB;
  --ex-filled-pressed-2: #4286F5;
  --ex-filled-pressed-3: #996EEF;
  --ex-filled-pressed-4: #EF44A9;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-ex-theme]),
  [data-ex-theme="system"] {
    color-scheme: dark;
    --ex-bg: #070B16;
    --ex-surface: #0D1726;
    --ex-surface-raised: #142136;
    --ex-text: #F7F8FC;
    --ex-text-secondary: #CCD4E2;
    --ex-text-muted: #A6B4CA;
    --ex-border: #334159;
    --ex-control-border: #7488A6;
    --ex-focus: #4AEAFF;
    --ex-link: #5BF1FF;
    --ex-error: #FF72B4;
    --ex-error-bg: #35142C;
    --ex-success: #46ECC0;
    --ex-success-bg: #0C302A;
    --ex-warning: #DBF95B;
    --ex-warning-bg: #252B12;
    --ex-disabled-bg: #1C293D;
    --ex-disabled-text: #99A9C2;
    --ex-primary-top: #0B1628;
    --ex-primary-bottom: #1C1230;
    --ex-primary-hover-top: #172440;
    --ex-primary-hover-bottom: #30204B;
    --ex-primary-pressed: #302549;
    --ex-spectrum-1: #19E6FF;
    --ex-spectrum-2: #7997FF;
    --ex-spectrum-3: #B37BFF;
    --ex-spectrum-4: #FF57D5;
    --ex-secondary-hover: #27203C;
    --ex-secondary-pressed: #382B51;
    --ex-selected-bg: #312050;
    --ex-selected-text: #E3C8FF;
    --ex-shadow-raised: 0 12px 32px rgb(0 0 0 / 0.28);
    --ex-shadow-primary-hover: 0 4px 18px rgb(102 112 230 / 0.2);
    --ex-filled-text: #070B16;
    --ex-filled-default-1: #2DE2E6;
    --ex-filled-default-2: #5399FF;
    --ex-filled-default-3: #AA85FF;
    --ex-filled-default-4: #FF57BA;
    --ex-filled-hover-1: #64F2EF;
    --ex-filled-hover-2: #75AEFF;
    --ex-filled-hover-3: #BF9BFF;
    --ex-filled-hover-4: #FF80D2;
    --ex-filled-pressed-1: #12BFCB;
    --ex-filled-pressed-2: #4286F5;
    --ex-filled-pressed-3: #996EEF;
    --ex-filled-pressed-4: #EF44A9;
  }
}

/* Durations are semantic too: consuming components need no special-case
   motion animation to retain a coherent reduced-motion presentation. */
@media (prefers-reduced-motion: reduce) {
  :root,
  .ex-theme,
  [data-ex-theme] {
    --ex-duration-fast: 0ms;
    --ex-duration-normal: 0ms;
    --ex-duration-slow: 0ms;
  }
}
