/* Growth Console | D1-01 | Revision 1.3 (2026-11-02).
   Frozen visual reference: attached index.html, EFFECTIVE v0.0.0086
   (its document title is stale; final CSS layer and scripts identify v0.0.0086).
   Semantic colours use one light-dark() declaration; no polyfill.
   Reference values adopted unless the Drop 1 4.5:1 text / 3:1 non-text
   matrix or <=200ms motion contract would fail. See DROP.md for each decision.
   Light/dark tokens: color-scheme defaults to device; data-theme pins either.
*/
:root {
  color-scheme: light dark;

  /* Neutral page, panels, and interactive surfaces. */
  --color-page: light-dark(#ffffff, #212121);
  --color-sidebar: light-dark(#ffffff, #212121);
  --color-canvas: light-dark(#f5f5f7, #242424);
  --color-surface: light-dark(#ffffff, #272727);
  --color-surface-raised: light-dark(#fbfbfc, #262626);
  --color-surface-recessed: light-dark(#f5f5f7, #262626);
  --color-control: light-dark(#f5f5f7, #2b2b2b);
  --color-hover: light-dark(#f2f2f4, #353535);
  --color-selected: light-dark(#e9e9ed, #343434);
  --color-border-subtle: light-dark(#e9e9ec, #3b3b3b);
  --color-border-strong: light-dark(#dedee2, #4b4b4b);
  --color-border-interactive: light-dark(#85858c, #929292);
  --color-divider: light-dark(#ebebee, #3c3c3c);

  /* Text colours have been tightened relative to low-contrast prototype labels. */
  --color-text-primary: light-dark(#1d1d1f, #f5f5f5);
  --color-text-secondary: light-dark(#62626a, #b4b4b4);
  --color-text-tertiary: light-dark(#65656d, #b4b4b4);
  --color-text-inverse: light-dark(#ffffff, #212121);
  --color-text-placeholder: light-dark(#65656d, #bebebe);
  --color-accent: light-dark(#292a30, #f7f7f9);
  --color-accent-hover: light-dark(#404149, #ffffff);
  --color-on-accent: light-dark(#ffffff, #212121);
  --color-focus: light-dark(#666670, #b4b4b4);
  --color-selection: light-dark(#d8d8dd, #565656);
  --color-shadow: light-dark(rgb(24 29 38 / 7%), rgb(0 0 0 / 20%));
  /* Opaque artwork remains undisturbed; overlays alone use this scrim. */
  --color-scrim: light-dark(rgb(12 12 16 / 55%), rgb(0 0 0 / 76%));

  /* Each message is neutral; meaning comes from its dot and readable text. */
  --color-message-surface: light-dark(#f7f7f8, #262626);
  --color-message-text: light-dark(#393941, #bebebe);
  --color-message-link: light-dark(#56565c, #d3d3d3);
  --color-status-good: light-dark(#4f5a57, #d3d3d3);
  --color-status-warning: light-dark(#74695b, #d2c1ad);
  --color-status-bad: light-dark(#8c6147, #d2bbac);
  --color-status-quiet: light-dark(#696b73, #d3d3d3);
  --color-status-good-surface: light-dark(#f2f5f3, #2b2b2b);
  --color-status-warning-surface: light-dark(#f7f5f1, #2b2b2b);
  --color-status-bad-surface: light-dark(#faf3f0, #2b2b2b);
  --color-status-quiet-surface: light-dark(#f7f7f8, #262626);
  --color-dot-good: light-dark(#557a62, #9dc9a9);
  --color-dot-warning: light-dark(#987045, #d8b078);
  --color-dot-bad: light-dark(#a3534b, #dc9991);
  --color-dot-quiet: light-dark(#717987, #aeb6c1);

  /* Glass is limited to navigation/popovers; solid fallback for transparency. */
  --color-material-popover: light-dark(rgb(255 255 255 / 72%), rgb(39 39 39 / 72%));
  --color-material-nav: light-dark(rgb(255 255 255 / 61%), rgb(33 33 33 / 61%));
  --material-blur: 16.7px;

  /* Typography: 14px desktop reading baseline; 11px minimum type token.
     At <=600px base.css raises reading text to 16px for mobile. */
  --type-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif;
  --type-family-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --type-size-2xs: 0.6875rem;
  --type-size-xs: 0.6875rem;
  --type-size-sm: 0.75rem;
  --type-size-md: 0.8125rem;
  --type-size-base: 0.875rem;
  --type-size-lg: 1rem;
  --type-size-xl: 1.0625rem;
  --type-size-2xl: 1.1875rem;
  --type-size-3xl: 1.4375rem;
  --type-size-4xl: 1.8125rem;
  --type-size-5xl: 2.25rem;
  --type-size-6xl: 2.9375rem;
  --type-size-display: clamp(2.5rem, 7.2vw, 4.875rem);
  --type-weight-regular: 400;
  --type-weight-medium: 550;
  --type-weight-semibold: 650;
  --type-weight-bold: 730;
  --type-leading-tight: 1.15;
  --type-leading-normal: 1.5;
  --type-leading-relaxed: 1.75;
  --type-tracking-tight: -0.035em;
  --type-tracking-normal: 0em;
  --type-tracking-wide: 0.1em;

  /* Spacing and dimensions, including the 44px mobile hit area. */
  --space-0: 0px;
  --space-1: 2px;
  --space-2: 4px;
  --space-3: 6px;
  --space-4: 8px;
  --space-5: 10px;
  --space-6: 12px;
  --space-7: 14px;
  --space-8: 16px;
  --space-9: 20px;
  --space-10: 24px;
  --space-11: 28px;
  --space-12: 32px;
  --space-13: 40px;
  --space-14: 48px;
  --space-15: 56px;
  --space-16: 64px;
  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius-md: 12px;
  --radius-lg: 17px;
  --radius-xl: 22px;
  --radius-pill: 999px;
  --size-icon: 18px;
  --size-control: 38px;
  --size-touch-target: 44px;
  --size-message-dot: 6px;
  --size-audit-swatch: 44px;
  --size-audit-bar: 10px;
  --size-content-max: 1160px;
  --size-catalog-min: 260px;
  --border-width: 1px;
  --focus-width: 2px;
  --focus-offset: 3px;
  --opacity-disabled: 0.58;

  /* Elevation: shared geometry and theme-aware shadow colour. */
  --elevation-none: none;
  --elevation-sm: 0 3px 10px var(--color-shadow);
  --elevation-md: 0 4px 17px var(--color-shadow);
  --elevation-lg: 0 14px 38px var(--color-shadow);

  /* Motion budget is <=200ms; no transition or animation needs longer. */
  --motion-none: 0ms;
  --motion-fast: 135ms;
  --motion-standard: 155ms;
  --motion-emphasis: 186ms;
  --motion-max: 200ms;
  --motion-ease: cubic-bezier(.2,.7,.2,1);
  --motion-ease-standard: ease;

  /* Predictable compositing order; no arbitrary component z-indices. */
  --layer-base: 0;
  --layer-raised: 10;
  --layer-sticky: 20;
  --layer-popover: 40;
  --layer-drawer: 60;
  --layer-overlay: 80;
  --layer-dialog: 100;
  --layer-announcement: 120;
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-fast: 0ms;
    --motion-standard: 0ms;
    --motion-emphasis: 0ms;
    --motion-max: 0ms;
  }
}
@media (prefers-reduced-transparency: reduce) {
  :root {
    --color-material-popover: var(--color-surface);
    --color-material-nav: var(--color-page);
    --material-blur: 0px;
  }
}
