/* Shared ShopAide design tokens for the business cabinet and the platform admin.
   Three theme states: no attribute (or data-theme="auto") follows the OS; data-theme="light" and
   data-theme="dark" are explicit choices. Direction: quiet and expensive rather than loud. A deep
   marine blue for actions, warm ivory neutrals in light, navy surfaces with ivory text in dark,
   muted gold only as the active-item marker in dark. The mark keeps its own colours; they are not
   UI colours. */
:root {
  color-scheme: light;
  --sa-brand-royal: #0036ec;
  --sa-brand-deep: #001fbb;
  --sa-brand-azure: #0077fe;
  --sa-brand-cyan: #00d6f6;
  --sa-marine: #1b2a4a;
  --sa-camel: #c19a6b;
  --sa-gold: #c5a059;

  --sa-canvas: #f4f2ee;
  --sa-surface: #fdfcfa;
  --sa-surface-subtle: #f3f1ec;
  --sa-surface-hover: #efede8;
  --sa-nav-active: #e8e5de;
  --sa-nav-indicator: #1f3a6e;
  --sa-text: #1a1d24;
  --sa-text-secondary: #4b4e57;
  --sa-text-muted: #616369;
  --sa-border: #e5e1d9;
  --sa-border-strong: #d2ccc1;
  --sa-control-border: #8c877d;
  --sa-primary: #1f3a6e;
  --sa-primary-hover: #162b54;
  --sa-on-primary: #fff;
  --sa-link: #24437f;
  --sa-focus-ring: #3d64b4;
  --sa-avatar: #1f3a6e;
  --sa-success-text: #2c6845;
  --sa-success-bg: #e8f1ea;
  --sa-success-dot: #3e8e5e;
  --sa-warning-text: #87561a;
  --sa-warning-bg: #f7eedf;
  --sa-warning-dot: #c19a6b;
  --sa-danger-text: #8f2b30;
  --sa-danger-bg: #f8e8e7;
  --sa-danger-dot: #b2484c;
  --sa-info-text: #24437f;
  --sa-info-bg: #e9eef6;
  --sa-neutral-dot: #aaa59c;
  --sa-logo-bg: transparent;
  --sa-backdrop: rgb(20 18 14 / 38%);
  --sa-shadow-floating: 0 0 0 1px rgb(26 29 36 / 5%), 0 12px 32px rgb(26 29 36 / 12%), 0 4px 10px rgb(26 29 36 / 6%);

  --sa-font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --sa-font-mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  --sa-space-1: 4px;
  --sa-space-2: 8px;
  --sa-space-3: 12px;
  --sa-space-4: 16px;
  --sa-space-6: 24px;
  --sa-space-8: 32px;
  --sa-space-12: 48px;
  --sa-radius-badge: 4px;
  --sa-radius-control: 6px;
  --sa-radius-card: 8px;
  --sa-radius-panel: 12px;
  --sa-control-height: 36px;
  --sa-sidebar-width: 232px;
  --sa-topbar-height: 56px;
  --sa-tabbar-height: 57px;
  --sa-transition: 140ms ease;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --sa-canvas: #0e121a;
    --sa-surface: #141923;
    --sa-surface-subtle: #1a202b;
    --sa-surface-hover: #1e2531;
    --sa-nav-active: #242c3a;
    --sa-nav-indicator: #c5a059;
    --sa-text: #ece9e3;
    --sa-text-secondary: #b6b3ac;
    --sa-text-muted: #97958f;
    --sa-border: #283040;
    --sa-border-strong: #36404f;
    --sa-control-border: #6a7385;
    --sa-primary: #3b5ea6;
    --sa-primary-hover: #2f4f8f;
    --sa-on-primary: #fff;
    --sa-link: #9fb6e6;
    --sa-focus-ring: #8fb0f0;
    --sa-avatar: #3b5ea6;
    --sa-success-text: #7cc596;
    --sa-success-bg: #15291e;
    --sa-success-dot: #5fae7c;
    --sa-warning-text: #d9b27a;
    --sa-warning-bg: #2b2216;
    --sa-warning-dot: #c5a059;
    --sa-danger-text: #e8908f;
    --sa-danger-bg: #311a1d;
    --sa-danger-dot: #d0686b;
    --sa-info-text: #9fb6e6;
    --sa-info-bg: #18223a;
    --sa-neutral-dot: #5f6676;
    --sa-logo-bg: #ece9e3;
    --sa-backdrop: rgb(0 0 0 / 55%);
    --sa-shadow-floating: 0 0 0 1px #283040, 0 12px 32px rgb(0 0 0 / 40%), 0 4px 10px rgb(0 0 0 / 25%);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --sa-canvas: #0e121a;
  --sa-surface: #141923;
  --sa-surface-subtle: #1a202b;
  --sa-surface-hover: #1e2531;
  --sa-nav-active: #242c3a;
  --sa-nav-indicator: #c5a059;
  --sa-text: #ece9e3;
  --sa-text-secondary: #b6b3ac;
  --sa-text-muted: #97958f;
  --sa-border: #283040;
  --sa-border-strong: #36404f;
  --sa-control-border: #6a7385;
  --sa-primary: #3b5ea6;
  --sa-primary-hover: #2f4f8f;
  --sa-on-primary: #fff;
  --sa-link: #9fb6e6;
  --sa-focus-ring: #8fb0f0;
  --sa-avatar: #3b5ea6;
  --sa-success-text: #7cc596;
  --sa-success-bg: #15291e;
  --sa-success-dot: #5fae7c;
  --sa-warning-text: #d9b27a;
  --sa-warning-bg: #2b2216;
  --sa-warning-dot: #c5a059;
  --sa-danger-text: #e8908f;
  --sa-danger-bg: #311a1d;
  --sa-danger-dot: #d0686b;
  --sa-info-text: #9fb6e6;
  --sa-info-bg: #18223a;
  --sa-neutral-dot: #5f6676;
  --sa-logo-bg: #ece9e3;
  --sa-backdrop: rgb(0 0 0 / 55%);
  --sa-shadow-floating: 0 0 0 1px #283040, 0 12px 32px rgb(0 0 0 / 40%), 0 4px 10px rgb(0 0 0 / 25%);
}
