/* minimal design tokens v0.5.5 — generated from the same values as tokens.json and the FigCraft variables
   (collection "minimal", modes Light/Dark). Use: @import or <link> in the app shell; custom properties
   inherit into Shadow DOM, so Lit components use var(--ds-…) directly.
   Theme — dark first: dark is the default. <html data-theme="light"> switches to light, data-theme="system" follows the OS. */
:root {
  color-scheme: dark;
  /* palette (primitives — components use the semantic tokens below) */
  --ds-gray-0: #FFFFFF;
  --ds-gray-50: #F6F7F8;
  --ds-gray-100: #EDEFF1;
  --ds-gray-200: #DDE1E4;
  --ds-gray-300: #C5CBD0;
  --ds-gray-400: #9AA3AA;
  --ds-gray-450: #78828A;
  --ds-gray-500: #646E76;
  --ds-gray-600: #555E66;
  --ds-gray-700: #40474E;
  --ds-gray-800: #2B3136;
  --ds-gray-850: #22272B;
  --ds-gray-900: #1B1F23;
  --ds-gray-950: #121518;
  --ds-petrol-50: #E8F4F5;
  --ds-petrol-100: #CDE7EA;
  --ds-petrol-200: #9DCFD5;
  --ds-petrol-300: #64B1BA;
  --ds-petrol-400: #34929D;
  --ds-petrol-500: #167784;
  --ds-petrol-600: #0E6470;
  --ds-petrol-700: #0B515B;
  --ds-petrol-800: #0A3F47;
  --ds-petrol-900: #082F35;
  --ds-red-50: #FDF0EF;
  --ds-red-100: #F9D9D6;
  --ds-red-300: #F2958D;
  --ds-red-400: #EC6E64;
  --ds-red-600: #C2281E;
  --ds-red-700: #9F1F17;
  --ds-red-900: #4A120E;
  --ds-green-50: #EDF7F0;
  --ds-green-100: #D3EBDB;
  --ds-green-300: #7FCB98;
  --ds-green-400: #55B678;
  --ds-green-600: #1E7A3C;
  --ds-green-700: #186331;
  --ds-green-900: #0E3019;
  --ds-amber-50: #FDF6E7;
  --ds-amber-100: #F9E6BD;
  --ds-amber-300: #F2C35E;
  --ds-amber-400: #E9AA2A;
  --ds-amber-600: #9A5A00;
  --ds-amber-700: #7A4700;
  --ds-amber-900: #3B2400;
  /* semantic colours (dark = default) */
  --ds-color-bg: #121518;
  --ds-color-surface: #1B1F23;
  --ds-color-surface-subtle: #22272B;
  --ds-color-surface-sunken: #0D0F11;
  --ds-color-surface-overlay: #22272B;
  --ds-color-text: #EEF0F2;
  --ds-color-text-muted: #A9B1B8;
  --ds-color-text-subtle: #8C959D;
  --ds-color-text-disabled: #555E66;
  --ds-color-text-on-primary: #121518;
  --ds-color-border: #2B3136;
  --ds-color-border-strong: #40474E;
  --ds-color-border-control: #78828A;
  --ds-color-border-field: #30363B; /* resting frame of input fields: quiet; hover → border-control, focus → primary */
  --ds-color-surface-field: var(--ds-color-surface); /* fill of input fields and their attached popups: dark a step lighter than bg, light a step darker; disabled fields have no fill */
  --ds-color-text-placeholder: #7E878F; /* placeholder: weaker than text-subtle, still ≥ 4.5 : 1 on surface */
  --ds-color-primary: #64B1BA;
  --ds-color-primary-hover: #9DCFD5;
  --ds-color-primary-active: #CDE7EA;
  --ds-color-primary-subtle: #0E2A2F;
  --ds-color-primary-text: #9DCFD5;
  --ds-color-focus: #64B1BA;
  --ds-color-danger: #EC6E64;
  --ds-color-danger-subtle: #2E1513;
  --ds-color-danger-text: #F2958D;
  --ds-color-success: #55B678;
  --ds-color-success-subtle: #12261A;
  --ds-color-success-text: #7FCB98;
  --ds-color-warning: #E9AA2A;
  --ds-color-warning-subtle: #2B210E;
  --ds-color-warning-text: #F2C35E;
  --ds-color-info: #64B1BA;
  --ds-color-info-subtle: #0E2A2F;
  --ds-color-info-text: #9DCFD5;
  --ds-color-hover: #FFFFFF0F;
  --ds-color-pressed: #FFFFFF1A;
  --ds-color-scrim: #000000A6;
  --ds-color-scrim-subtle: #00000040;
  --ds-shadow-none: none;
  --ds-shadow-overlay: 0 2px 6px rgba(0,0,0,0.40), 0 12px 32px rgba(0,0,0,0.55);
  /* typography */
  --ds-font-sans: system-ui, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ds-font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ds-weight-regular: 400;
  --ds-weight-semibold: 600;
  --ds-weight-bold: 700;
  --ds-text-display-size: 40px; --ds-text-display-line: 48px; --ds-text-display-weight: 700; --ds-text-display-tracking: -0.02em;
  --ds-font-display: 700 40px/48px var(--ds-font-sans);
  --ds-text-h1-size: 32px; --ds-text-h1-line: 40px; --ds-text-h1-weight: 600; --ds-text-h1-tracking: -0.015em;
  --ds-font-h1: 600 32px/40px var(--ds-font-sans);
  --ds-text-h2-size: 24px; --ds-text-h2-line: 32px; --ds-text-h2-weight: 600; --ds-text-h2-tracking: -0.01em;
  --ds-font-h2: 600 24px/32px var(--ds-font-sans);
  --ds-text-h3-size: 20px; --ds-text-h3-line: 28px; --ds-text-h3-weight: 600; --ds-text-h3-tracking: -0.005em;
  --ds-font-h3: 600 20px/28px var(--ds-font-sans);
  --ds-text-body-lg-size: 18px; --ds-text-body-lg-line: 28px; --ds-text-body-lg-weight: 400; --ds-text-body-lg-tracking: 0;
  --ds-font-body-lg: 400 18px/28px var(--ds-font-sans);
  --ds-text-body-size: 16px; --ds-text-body-line: 24px; --ds-text-body-weight: 400; --ds-text-body-tracking: 0;
  --ds-font-body: 400 16px/24px var(--ds-font-sans);
  --ds-text-body-strong-size: 16px; --ds-text-body-strong-line: 24px; --ds-text-body-strong-weight: 600; --ds-text-body-strong-tracking: 0;
  --ds-font-body-strong: 600 16px/24px var(--ds-font-sans);
  --ds-text-small-size: 14px; --ds-text-small-line: 20px; --ds-text-small-weight: 400; --ds-text-small-tracking: 0;
  --ds-font-small: 400 14px/20px var(--ds-font-sans);
  --ds-text-label-size: 14px; --ds-text-label-line: 20px; --ds-text-label-weight: 600; --ds-text-label-tracking: 0;
  --ds-font-label: 600 14px/20px var(--ds-font-sans);
  --ds-text-caption-size: 12px; --ds-text-caption-line: 16px; --ds-text-caption-weight: 400; --ds-text-caption-tracking: 0.005em;
  --ds-font-caption: 400 12px/16px var(--ds-font-sans);
  --ds-text-caption-strong-size: 12px; --ds-text-caption-strong-line: 16px; --ds-text-caption-strong-weight: 600; --ds-text-caption-strong-tracking: 0.005em;
  --ds-font-caption-strong: 600 12px/16px var(--ds-font-sans);
  --ds-text-code-size: 14px; --ds-text-code-line: 20px; --ds-text-code-weight: 400; --ds-text-code-tracking: 0;
  --ds-font-code: 400 14px/20px var(--ds-font-mono);
  /* space (4-px grid) */
  --ds-space-0: 0;
  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 20px;
  --ds-space-6: 24px;
  --ds-space-8: 32px;
  --ds-space-10: 40px;
  --ds-space-12: 48px;
  --ds-space-16: 64px;
  --ds-space-20: 80px;
  /* sizes */
  --ds-size-control-sm: 32px;
  --ds-size-control-md: 40px;
  --ds-size-control-lg: 48px;
  --ds-size-touch: 44px;
  --ds-size-icon-sm: 16px;
  --ds-size-icon-md: 20px;
  --ds-size-icon-lg: 24px;
  --ds-size-avatar-sm: 24px;
  --ds-size-avatar-md: 32px;
  --ds-size-avatar-lg: 48px;
  /* shape */
  --ds-radius-none: 0;
  --ds-radius-sm: 6px;
  --ds-radius-md: 10px;
  --ds-radius-lg: 16px;
  --ds-radius-xl: 24px;
  --ds-radius-2xl: 32px;
  --ds-radius-full: 9999px;
  --ds-border-thin: 1px;
  --ds-border-thick: 2px;
  --ds-border-focus: 2px;
  --ds-border-focus-offset: 2px;
  /* motion */
  --ds-duration-instant: 0ms;
  --ds-duration-fast: 100ms;
  --ds-duration-base: 160ms;
  --ds-duration-slow: 240ms;
  --ds-ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ds-ease-enter: cubic-bezier(0, 0, 0.2, 1);
  --ds-ease-exit: cubic-bezier(0.4, 0, 1, 1);
  /* breakpoints (reference values — custom properties do not work inside @media) */
  --ds-bp-sm: 480px;
  --ds-bp-md: 768px;
  --ds-bp-lg: 1024px;
  --ds-bp-xl: 1280px;
  /* layout */
  --ds-layout-container-max: 1120px;
  --ds-layout-reading-max: 720px;
  --ds-layout-margin-mobile: 16px;
  --ds-layout-margin-desktop: 32px;
  --ds-layout-columns-mobile: 4;
  --ds-layout-columns-desktop: 12;
  --ds-layout-gutter-mobile: 16px;
  --ds-layout-gutter-desktop: 24px;
  --ds-layout-topbar-height: 56px;
  --ds-layout-tabbar-height: 56px;
  /* backdrop blur (Dialog, Bottom Sheet, open Select) */
  --ds-blur-backdrop: 3px;
  /* layers */
  --ds-z-base: 0;
  --ds-z-sticky: 100;
  --ds-z-dropdown: 200;
  --ds-z-overlay: 300;
  --ds-z-modal: 400;
  --ds-z-toast: 500;
}
:root[data-theme="light"] {
  color-scheme: light;
  --ds-color-bg: #FFFFFF;
  --ds-color-surface: #FFFFFF;
  --ds-color-surface-subtle: #F6F7F8;
  --ds-color-surface-sunken: #EDEFF1;
  --ds-color-surface-overlay: #FFFFFF;
  --ds-color-text: #1B1F23;
  --ds-color-text-muted: #555E66;
  --ds-color-text-subtle: #646E76;
  --ds-color-text-disabled: #9AA3AA;
  --ds-color-text-on-primary: #FFFFFF;
  --ds-color-border: #DDE1E4;
  --ds-color-border-strong: #C5CBD0;
  --ds-color-border-control: #646E76;
  --ds-color-border-field: #D9DDE1; /* resting frame of input fields: quiet; hover → border-control, focus → primary */
  --ds-color-surface-field: #F6F7F8; /* fill of input fields and their attached popups: dark a step lighter than bg, light a step darker; disabled fields have no fill */
  --ds-color-text-placeholder: #6E777F; /* placeholder: weaker than text-subtle, still ≥ 4.5 : 1 on surface */
  --ds-color-primary: #0E6470;
  --ds-color-primary-hover: #0B515B;
  --ds-color-primary-active: #0A3F47;
  --ds-color-primary-subtle: #E8F4F5;
  --ds-color-primary-text: #0B515B;
  --ds-color-focus: #167784;
  --ds-color-danger: #C2281E;
  --ds-color-danger-subtle: #FDF0EF;
  --ds-color-danger-text: #9F1F17;
  --ds-color-success: #1E7A3C;
  --ds-color-success-subtle: #EDF7F0;
  --ds-color-success-text: #186331;
  --ds-color-warning: #E9AA2A;
  --ds-color-warning-subtle: #FDF6E7;
  --ds-color-warning-text: #7A4700;
  --ds-color-info: #0E6470;
  --ds-color-info-subtle: #E8F4F5;
  --ds-color-info-text: #0B515B;
  --ds-color-hover: #1B1F230A;
  --ds-color-pressed: #1B1F2314;
  --ds-color-scrim: #1215188C;
  --ds-color-scrim-subtle: #12151826;
  --ds-shadow-none: none;
  --ds-shadow-overlay: 0 2px 6px rgba(27,31,35,0.08), 0 12px 32px rgba(27,31,35,0.14);
}
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] {
    color-scheme: light;
    --ds-color-bg: #FFFFFF;
    --ds-color-surface: #FFFFFF;
    --ds-color-surface-subtle: #F6F7F8;
    --ds-color-surface-sunken: #EDEFF1;
    --ds-color-surface-overlay: #FFFFFF;
    --ds-color-text: #1B1F23;
    --ds-color-text-muted: #555E66;
    --ds-color-text-subtle: #646E76;
    --ds-color-text-disabled: #9AA3AA;
    --ds-color-text-on-primary: #FFFFFF;
    --ds-color-border: #DDE1E4;
    --ds-color-border-strong: #C5CBD0;
    --ds-color-border-control: #646E76;
    --ds-color-border-field: #D9DDE1; /* resting frame of input fields: quiet; hover → border-control, focus → primary */
    --ds-color-surface-field: #F6F7F8; /* fill of input fields and their attached popups: dark a step lighter than bg, light a step darker; disabled fields have no fill */
    --ds-color-text-placeholder: #6E777F; /* placeholder: weaker than text-subtle, still ≥ 4.5 : 1 on surface */
    --ds-color-primary: #0E6470;
    --ds-color-primary-hover: #0B515B;
    --ds-color-primary-active: #0A3F47;
    --ds-color-primary-subtle: #E8F4F5;
    --ds-color-primary-text: #0B515B;
    --ds-color-focus: #167784;
    --ds-color-danger: #C2281E;
    --ds-color-danger-subtle: #FDF0EF;
    --ds-color-danger-text: #9F1F17;
    --ds-color-success: #1E7A3C;
    --ds-color-success-subtle: #EDF7F0;
    --ds-color-success-text: #186331;
    --ds-color-warning: #E9AA2A;
    --ds-color-warning-subtle: #FDF6E7;
    --ds-color-warning-text: #7A4700;
    --ds-color-info: #0E6470;
    --ds-color-info-subtle: #E8F4F5;
    --ds-color-info-text: #0B515B;
    --ds-color-hover: #1B1F230A;
    --ds-color-pressed: #1B1F2314;
    --ds-color-scrim: #1215188C;
    --ds-color-scrim-subtle: #12151826;
    --ds-shadow-none: none;
    --ds-shadow-overlay: 0 2px 6px rgba(27,31,35,0.08), 0 12px 32px rgba(27,31,35,0.14);
  }
}
@media (prefers-reduced-transparency: reduce) {
  :root {
    --ds-blur-backdrop: 0px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    --ds-duration-instant: 0ms;
    --ds-duration-fast: 0ms;
    --ds-duration-base: 0ms;
    --ds-duration-slow: 0ms;
  }
}
