/*
 * @soar-awesome/theme
 *
 * Load AFTER Web Awesome's own stylesheet:
 *   @import '@awesome.me/webawesome/dist/styles/webawesome.css';
 *   @import '@soar-awesome/soar/theme/soar.css';
 *
 * Load order doesn't actually matter for correctness: tokens.css declares
 * the full layer order (WA's layers, then ax-tokens, ax-theme, ax-parts), so
 * our layers outrank WA's whichever file the browser sees first.
 */
/* GENERATED by @soar-awesome/tokens from figma/export.json. Do not edit: changes are overwritten and fail CI. */
@layer wa-native, wa-base, wa-utilities, wa-color-palette, wa-color-variant, wa-theme, wa-theme-dimension, wa-theme-overrides, ax-tokens, ax-theme, ax-parts;

@layer ax-tokens {
  :where(:root),
  .ax-theme {
    --ax-border-width-l: 0.1875rem;
    --ax-border-width-m: 0.125rem;
    --ax-border-width-s: 0.0625rem;
    --ax-breakpoint-lg: 64rem;
    --ax-breakpoint-md: 48rem;
    --ax-breakpoint-sm: 40rem;
    --ax-breakpoint-xl: 80rem;
    --ax-color-brand-05: #090049;
    --ax-color-brand-10: #100066;
    --ax-color-brand-20: #1e1594;
    --ax-color-brand-30: #2d34af;
    --ax-color-brand-40: #3f4eca;
    --ax-color-brand-50: #495bd7;
    --ax-color-brand-60: #7992ff;
    --ax-color-brand-70: #9aaffe;
    --ax-color-brand-80: #bcccff;
    --ax-color-brand-90: #e0e7fe;
    --ax-color-brand-95: #f2f5ff;
    --ax-color-brand-on: #ffffff;
    --ax-color-danger-05: #2e0003;
    --ax-color-danger-10: #420106;
    --ax-color-danger-20: #69020f;
    --ax-color-danger-30: #8e0318;
    --ax-color-danger-40: #b60020;
    --ax-color-danger-50: #cc2631;
    --ax-color-danger-60: #fe5c5c;
    --ax-color-danger-70: #fe908a;
    --ax-color-danger-80: #febab4;
    --ax-color-danger-90: #fee0dd;
    --ax-color-danger-95: #fff2f0;
    --ax-color-danger-on: #ffffff;
    --ax-color-neutral-05: #0f141c;
    --ax-color-neutral-10: #1b1f28;
    --ax-color-neutral-20: #30363f;
    --ax-color-neutral-30: #454b54;
    --ax-color-neutral-40: #5b616b;
    --ax-color-neutral-50: #636974;
    --ax-color-neutral-60: #959ca7;
    --ax-color-neutral-70: #aeb5c0;
    --ax-color-neutral-80: #c7ceda;
    --ax-color-neutral-90: #e1e8f4;
    --ax-color-neutral-95: #f0f5ff;
    --ax-color-neutral-on: #ffffff;
    --ax-color-success-05: #001a08;
    --ax-color-success-10: #01270f;
    --ax-color-success-20: #01411e;
    --ax-color-success-30: #045a2c;
    --ax-color-success-40: #037439;
    --ax-color-success-50: #05773b;
    --ax-color-success-60: #42b56b;
    --ax-color-success-70: #5fcf83;
    --ax-color-success-80: #7aea9c;
    --ax-color-success-90: #aaffc1;
    --ax-color-success-95: #deffe6;
    --ax-color-success-on: #ffffff;
    --ax-color-warning-05: #1f1000;
    --ax-color-warning-10: #2f1a00;
    --ax-color-warning-20: #4c2e02;
    --ax-color-warning-30: #684001;
    --ax-color-warning-40: #865400;
    --ax-color-warning-50: #c88004;
    --ax-color-warning-60: #d48807;
    --ax-color-warning-70: #f0a133;
    --ax-color-warning-80: #fec076;
    --ax-color-warning-90: #ffe3c3;
    --ax-color-warning-95: #fef3e7;
    --ax-color-warning-on: #221201;
    --ax-color-white: #ffffff;
    --ax-focus-ring-width: 0.125rem;
    --ax-font-family-body: Inter, ui-sans-serif, system-ui, sans-serif;
    --ax-font-family-code: JetBrains Mono, ui-monospace, monospace;
    --ax-font-family-heading: Inter, ui-sans-serif, system-ui, sans-serif;
    --ax-font-line-height-condensed: 1.25;
    --ax-font-line-height-expanded: 1.9;
    --ax-font-line-height-normal: 1.5;
    --ax-font-size-base: 1rem;
    --ax-font-weight-bold: 650;
    --ax-font-weight-light: 300;
    --ax-font-weight-normal: 400;
    --ax-font-weight-semibold: 550;
    --ax-motion-duration-fast: 80ms;
    --ax-motion-duration-normal: 160ms;
    --ax-motion-duration-slow: 320ms;
    --ax-radius-l: 1rem;
    --ax-radius-m: 0.5rem;
    --ax-radius-pill: 9999px;
    --ax-radius-s: 0.25rem;
    --ax-space-2xl: 2.5rem;
    --ax-space-2xs: 0.25rem;
    --ax-space-3xl: 3rem;
    --ax-space-3xs: 0.125rem;
    --ax-space-4xl: 4rem;
    --ax-space-5xl: 5rem;
    --ax-space-l: 1.5rem;
    --ax-space-m: 1rem;
    --ax-space-s: 0.75rem;
    --ax-space-xl: 2rem;
    --ax-space-xs: 0.5rem;
  }
}
/* GENERATED by @soar-awesome/tokens from figma/export.json. Do not edit: changes are overwritten and fail CI. */
@layer ax-tokens {
  :where(:root),
  .wa-light,
  .wa-dark .wa-invert {
    --ax-color-brand-border-loud: var(--ax-color-brand-60);
    --ax-color-brand-border-normal: var(--ax-color-brand-80);
    --ax-color-brand-border-quiet: var(--ax-color-brand-90);
    --ax-color-brand-fill-loud: var(--ax-color-brand-50);
    --ax-color-brand-fill-normal: var(--ax-color-brand-90);
    --ax-color-brand-fill-quiet: var(--ax-color-brand-95);
    --ax-color-brand-on-loud: var(--ax-color-brand-on);
    --ax-color-brand-on-normal: var(--ax-color-brand-30);
    --ax-color-brand-on-quiet: var(--ax-color-brand-40);
    --ax-color-focus: var(--ax-color-brand-60);
    --ax-color-surface-border: var(--ax-color-neutral-90);
    --ax-color-surface-default: var(--ax-color-white);
    --ax-color-surface-lowered: var(--ax-color-neutral-95);
    --ax-color-surface-raised: var(--ax-color-white);
    --ax-color-text-link: var(--ax-color-brand-40);
    --ax-color-text-normal: var(--ax-color-neutral-10);
    --ax-color-text-quiet: var(--ax-color-neutral-40);
  }
}
/* GENERATED by @soar-awesome/tokens from figma/export.json. Do not edit: changes are overwritten and fail CI. */
@layer ax-tokens {
  .wa-dark,
  .wa-invert,
  .wa-light .wa-invert {
    --ax-color-brand-border-loud: var(--ax-color-brand-40);
    --ax-color-brand-border-normal: var(--ax-color-brand-30);
    --ax-color-brand-border-quiet: var(--ax-color-brand-20);
    --ax-color-brand-fill-loud: var(--ax-color-brand-50);
    --ax-color-brand-fill-normal: var(--ax-color-brand-20);
    --ax-color-brand-fill-quiet: var(--ax-color-brand-10);
    --ax-color-brand-on-loud: var(--ax-color-brand-on);
    --ax-color-brand-on-normal: var(--ax-color-brand-70);
    --ax-color-brand-on-quiet: var(--ax-color-brand-60);
    --ax-color-focus: var(--ax-color-brand-60);
    --ax-color-surface-border: var(--ax-color-neutral-20);
    --ax-color-surface-default: var(--ax-color-neutral-05);
    --ax-color-surface-lowered: var(--ax-color-neutral-05);
    --ax-color-surface-raised: var(--ax-color-neutral-10);
    --ax-color-text-link: var(--ax-color-brand-70);
    --ax-color-text-normal: var(--ax-color-neutral-95);
    --ax-color-text-quiet: var(--ax-color-neutral-70);
  }
}
/* GENERATED by @soar-awesome/tokens from src/alias-map.mjs. Do not edit: changes are overwritten and fail CI. */
@layer ax-theme {
  :where(:root),
  .wa-light,
  .wa-dark,
  .wa-invert,
  .ax-theme {
    --wa-border-radius-l: var(--ax-radius-l);
    --wa-border-radius-m: var(--ax-radius-m);
    --wa-border-radius-pill: var(--ax-radius-pill);
    --wa-border-radius-s: var(--ax-radius-s);
    --wa-border-width-l: var(--ax-border-width-l);
    --wa-border-width-m: var(--ax-border-width-m);
    --wa-border-width-s: var(--ax-border-width-s);
    --wa-color-brand: var(--ax-color-brand-50);
    --wa-color-brand-05: var(--ax-color-brand-05);
    --wa-color-brand-10: var(--ax-color-brand-10);
    --wa-color-brand-20: var(--ax-color-brand-20);
    --wa-color-brand-30: var(--ax-color-brand-30);
    --wa-color-brand-40: var(--ax-color-brand-40);
    --wa-color-brand-50: var(--ax-color-brand-50);
    --wa-color-brand-60: var(--ax-color-brand-60);
    --wa-color-brand-70: var(--ax-color-brand-70);
    --wa-color-brand-80: var(--ax-color-brand-80);
    --wa-color-brand-90: var(--ax-color-brand-90);
    --wa-color-brand-95: var(--ax-color-brand-95);
    --wa-color-brand-border-loud: var(--ax-color-brand-border-loud);
    --wa-color-brand-border-normal: var(--ax-color-brand-border-normal);
    --wa-color-brand-border-quiet: var(--ax-color-brand-border-quiet);
    --wa-color-brand-fill-loud: var(--ax-color-brand-fill-loud);
    --wa-color-brand-fill-normal: var(--ax-color-brand-fill-normal);
    --wa-color-brand-fill-quiet: var(--ax-color-brand-fill-quiet);
    --wa-color-brand-on: var(--ax-color-brand-on);
    --wa-color-brand-on-loud: var(--ax-color-brand-on-loud);
    --wa-color-brand-on-normal: var(--ax-color-brand-on-normal);
    --wa-color-brand-on-quiet: var(--ax-color-brand-on-quiet);
    --wa-color-danger: var(--ax-color-danger-50);
    --wa-color-danger-05: var(--ax-color-danger-05);
    --wa-color-danger-10: var(--ax-color-danger-10);
    --wa-color-danger-20: var(--ax-color-danger-20);
    --wa-color-danger-30: var(--ax-color-danger-30);
    --wa-color-danger-40: var(--ax-color-danger-40);
    --wa-color-danger-50: var(--ax-color-danger-50);
    --wa-color-danger-60: var(--ax-color-danger-60);
    --wa-color-danger-70: var(--ax-color-danger-70);
    --wa-color-danger-80: var(--ax-color-danger-80);
    --wa-color-danger-90: var(--ax-color-danger-90);
    --wa-color-danger-95: var(--ax-color-danger-95);
    --wa-color-danger-on: var(--ax-color-danger-on);
    --wa-color-focus: var(--ax-color-focus);
    --wa-color-neutral: var(--ax-color-neutral-50);
    --wa-color-neutral-05: var(--ax-color-neutral-05);
    --wa-color-neutral-10: var(--ax-color-neutral-10);
    --wa-color-neutral-20: var(--ax-color-neutral-20);
    --wa-color-neutral-30: var(--ax-color-neutral-30);
    --wa-color-neutral-40: var(--ax-color-neutral-40);
    --wa-color-neutral-50: var(--ax-color-neutral-50);
    --wa-color-neutral-60: var(--ax-color-neutral-60);
    --wa-color-neutral-70: var(--ax-color-neutral-70);
    --wa-color-neutral-80: var(--ax-color-neutral-80);
    --wa-color-neutral-90: var(--ax-color-neutral-90);
    --wa-color-neutral-95: var(--ax-color-neutral-95);
    --wa-color-neutral-on: var(--ax-color-neutral-on);
    --wa-color-success: var(--ax-color-success-50);
    --wa-color-success-05: var(--ax-color-success-05);
    --wa-color-success-10: var(--ax-color-success-10);
    --wa-color-success-20: var(--ax-color-success-20);
    --wa-color-success-30: var(--ax-color-success-30);
    --wa-color-success-40: var(--ax-color-success-40);
    --wa-color-success-50: var(--ax-color-success-50);
    --wa-color-success-60: var(--ax-color-success-60);
    --wa-color-success-70: var(--ax-color-success-70);
    --wa-color-success-80: var(--ax-color-success-80);
    --wa-color-success-90: var(--ax-color-success-90);
    --wa-color-success-95: var(--ax-color-success-95);
    --wa-color-success-on: var(--ax-color-success-on);
    --wa-color-surface-border: var(--ax-color-surface-border);
    --wa-color-surface-default: var(--ax-color-surface-default);
    --wa-color-surface-lowered: var(--ax-color-surface-lowered);
    --wa-color-surface-raised: var(--ax-color-surface-raised);
    --wa-color-text-link: var(--ax-color-text-link);
    --wa-color-text-normal: var(--ax-color-text-normal);
    --wa-color-text-quiet: var(--ax-color-text-quiet);
    --wa-color-warning: var(--ax-color-warning-50);
    --wa-color-warning-05: var(--ax-color-warning-05);
    --wa-color-warning-10: var(--ax-color-warning-10);
    --wa-color-warning-20: var(--ax-color-warning-20);
    --wa-color-warning-30: var(--ax-color-warning-30);
    --wa-color-warning-40: var(--ax-color-warning-40);
    --wa-color-warning-50: var(--ax-color-warning-50);
    --wa-color-warning-60: var(--ax-color-warning-60);
    --wa-color-warning-70: var(--ax-color-warning-70);
    --wa-color-warning-80: var(--ax-color-warning-80);
    --wa-color-warning-90: var(--ax-color-warning-90);
    --wa-color-warning-95: var(--ax-color-warning-95);
    --wa-color-warning-on: var(--ax-color-warning-on);
    --wa-color-warning-on-loud: var(--ax-color-warning-on);
    --wa-focus-ring-width: var(--ax-focus-ring-width);
    --wa-font-family-body: var(--ax-font-family-body);
    --wa-font-family-code: var(--ax-font-family-code);
    --wa-font-family-heading: var(--ax-font-family-heading);
    --wa-font-size-m: var(--ax-font-size-base);
    --wa-font-weight-bold: var(--ax-font-weight-bold);
    --wa-font-weight-light: var(--ax-font-weight-light);
    --wa-font-weight-normal: var(--ax-font-weight-normal);
    --wa-font-weight-semibold: var(--ax-font-weight-semibold);
    --wa-line-height-condensed: var(--ax-font-line-height-condensed);
    --wa-line-height-expanded: var(--ax-font-line-height-expanded);
    --wa-line-height-normal: var(--ax-font-line-height-normal);
    --wa-space-2xl: var(--ax-space-2xl);
    --wa-space-2xs: var(--ax-space-2xs);
    --wa-space-3xl: var(--ax-space-3xl);
    --wa-space-3xs: var(--ax-space-3xs);
    --wa-space-4xl: var(--ax-space-4xl);
    --wa-space-5xl: var(--ax-space-5xl);
    --wa-space-l: var(--ax-space-l);
    --wa-space-m: var(--ax-space-m);
    --wa-space-s: var(--ax-space-s);
    --wa-space-xl: var(--ax-space-xl);
    --wa-space-xs: var(--ax-space-xs);
    --wa-transition-fast: var(--ax-motion-duration-fast);
    --wa-transition-normal: var(--ax-motion-duration-normal);
    --wa-transition-slow: var(--ax-motion-duration-slow);
  }
}
/*
 * HAND-AUTHORED. The only stylesheet in this package a person edits.
 *
 * Rules for this file (enforced by `npm run check:ownership`):
 *   1. Only for corrections WA's tokens can't express. If a --wa-* token
 *      exists for it, map the token in alias-map.mjs instead.
 *   2. No literal visual values. Reference var(--ax-*) or var(--wa-*) only.
 *      Escape hatch: register an exception in tools/audit/exceptions.json
 *      (reason, owner, review date) and mark the line /* audit-allow <id> *\/.
 *   3. Never declare --wa-* or --ax-* properties here. Token values have one
 *      writer, the generator.
 *   4. Every ::part() must exist in upstream/webawesome.parts.json, so an
 *      upstream rename fails the build instead of silently un-styling.
 *   5. Everything lives in @layer ax-parts so consumers' unlayered CSS wins.
 */

@layer ax-parts {
  /* Figma "Card": header sits on the lowered surface with a hairline divider.
     WA cards have no header-background token. Accent cards are excluded:
     their text is on-loud (white), which fails contrast on a light header. */
  wa-card:not([appearance~='accent'])::part(header) {
    background: var(--wa-color-surface-lowered);
    border-block-end: var(--wa-panel-border-width) var(--wa-panel-border-style) var(--wa-color-surface-border);
  }

  /* Figma "Field/Label": labels are one step smaller than the value text.
     WA has label color/weight/line-height tokens, but not label size. */
  wa-input::part(form-control-label),
  wa-select::part(form-control-label),
  wa-textarea::part(form-control-label) {
    font-size: var(--wa-font-size-s);
  }

  /* Figma "Dialog": titles use the heading family. */
  wa-dialog::part(title) {
    font-family: var(--wa-font-family-heading);
    font-weight: var(--wa-font-weight-heading);
  }

  /* Figma "Drawer" (1 of 2): wider panel, roomier padding. Both are the
     drawer's own CSS properties, so no part selector is needed. */
  wa-drawer {
    --size: 30rem; /* audit-allow drawer-width-no-token (see tools/audit/exceptions.json) */
    --spacing: var(--wa-space-xl);
  }

  /* Figma "Drawer" (2 of 2): header separated from the body by a hairline.
     WA has no token for a drawer header divider. */
  wa-drawer::part(header) {
    border-block-end: var(--wa-border-width-s) var(--wa-border-style) var(--wa-color-surface-border);
  }

  /* ax-control-info shows its own label and info text, and passes the same
     text to Web Awesome controls through their label/hint API. That is the only
     way it reaches the input inside WA's shadow DOM. These rules visually hide
     WA's copy while keeping it for screen readers. The data-ax-proxy-*
     markers are only set when ax-control-info filled the label or hint itself.
     The tag list mirrors WA_LABEL_PROPERTY / WA_LABEL_SLOT in ax-control-info.ts. */
  ax-control-info > wa-checkbox-group[data-ax-proxy-label]::part(form-control-label),
  ax-control-info > wa-color-picker[data-ax-proxy-label]::part(form-control-label),
  ax-control-info > wa-input[data-ax-proxy-label]::part(form-control-label),
  ax-control-info > wa-number-input[data-ax-proxy-label]::part(form-control-label),
  ax-control-info > wa-radio-group[data-ax-proxy-label]::part(form-control-label),
  ax-control-info > wa-select[data-ax-proxy-label]::part(form-control-label),
  ax-control-info > wa-tag-input[data-ax-proxy-label]::part(form-control-label),
  ax-control-info > wa-textarea[data-ax-proxy-label]::part(form-control-label),
  ax-control-info > wa-time-input[data-ax-proxy-label]::part(form-control-label),
  ax-control-info > wa-checkbox[data-ax-proxy-label]::part(label),
  ax-control-info > wa-switch[data-ax-proxy-label]::part(label),
  ax-control-info > wa-checkbox-group[data-ax-proxy-hint]::part(hint),
  ax-control-info > wa-color-picker[data-ax-proxy-hint]::part(hint),
  ax-control-info > wa-input[data-ax-proxy-hint]::part(hint),
  ax-control-info > wa-number-input[data-ax-proxy-hint]::part(hint),
  ax-control-info > wa-radio-group[data-ax-proxy-hint]::part(hint),
  ax-control-info > wa-select[data-ax-proxy-hint]::part(hint),
  ax-control-info > wa-tag-input[data-ax-proxy-hint]::part(hint),
  ax-control-info > wa-textarea[data-ax-proxy-hint]::part(hint),
  ax-control-info > wa-time-input[data-ax-proxy-hint]::part(hint),
  ax-control-info > wa-checkbox[data-ax-proxy-hint]::part(hint),
  ax-control-info > wa-switch[data-ax-proxy-hint]::part(hint) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}
