/* Product shell tokens. B07 color, type, and radius live in ds/b07.css.
   This file maps the stable product names and the dark theme.
   Hex here is only the B07 scale, used where B07 has no dark theme.
   Do not add a second palette. */

:root {
  color-scheme: light;
  --ios-ink: var(--ios-text-primary);
  --ios-ink-soft: var(--ios-text-secondary);
  --ios-line: var(--ios-border);
  --ios-bg: var(--ios-background);
  --ios-sidebar: var(--ios-primary);
  --ios-sidebar-ink: var(--ios-primary-50);
  --ios-sidebar-muted: var(--ios-primary-300);
  --ios-sidebar-line: var(--ios-primary-700);
  --ios-sidebar-active: var(--ios-primary-900);
  --ios-sidebar-indicator: var(--ios-primary-100);
  --ios-topbar: var(--ios-surface);
  --ios-field: var(--ios-surface-2);
  --ios-field-line: var(--ios-border);
  --ios-button: var(--ios-surface-3);
  --ios-action: var(--ios-primary);
  --ios-action-ink: #FFFFFF;
  --ios-accent-ink: #FFFFFF;
  --ios-accent-text: var(--ios-link);
  --ios-accent-wash: var(--ios-selected);
  --ios-elevation: var(--ios-shadow-overlay-1);
  /* Status text and chips. Values are the B07 semantic colors. */
  --info: var(--ios-info);
  --info-bg: var(--ios-info-bg);
  --ok: var(--ios-success);
  --ok-bg: var(--ios-success-bg);
  --warn: var(--ios-warning);
  --warn-bg: var(--ios-warning-bg);
  --bad: var(--ios-danger);
  --bad-bg: var(--ios-danger-bg);
  --idle: var(--ios-neutral);
  --idle-bg: var(--ios-neutral-bg);
  /* Instrument Sans and Inter are the B07 faces. The package does not
     ship the font files, so the loaded stack stays the system UI. */
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-mono: var(--ios-font-mono);
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-md: 0.875rem;
  --text-lg: 1.125rem;
  --text-xl: 1.35rem;
  --leading-tight: 1.25;
  --leading-body: 1.45;
  --space-1: var(--ios-space-4);
  --space-2: var(--ios-space-8);
  --space-3: var(--ios-space-12);
  --space-4: var(--ios-space-16);
  --space-5: var(--ios-space-24);
  --space-6: var(--ios-space-32);
  --space-7: var(--ios-space-40);
  --space-8: var(--ios-space-56);
  --radius: var(--ios-radius-card);
  --gap: var(--space-4);
  --touch: 44px;
  --shell-top: 60px;
  --nav-width: 236px;
}
html[data-nav="collapsed"] {
  --nav-width: 4.5rem;
}

/* Dark is the peer. Surfaces stay on the B07 primary scale. */
html[data-theme="dark"] {
  color-scheme: dark;
  --ios-background: #001739;
  --ios-surface: #062144;
  --ios-surface-2: #102C52;
  --ios-surface-3: #284368;
  --ios-border: #284368;
  --ios-border-strong: #839ABA;
  --ios-divider: #284368;
  --ios-text-primary: #F2F7FF;
  --ios-text-secondary: #C8DBF5;
  --ios-text-tertiary: #ABBFDC;
  --ios-link: #C8DBF5;
  --ios-link-hover: #E2EEFE;
  --ios-focus: var(--ios-focus-on-dark);
  --ios-sidebar: #001739;
  --ios-topbar: #062144;
  --ios-field: #102C52;
  --ios-field-line: #284368;
  --ios-button: #102C52;
  --ios-action: #E2EEFE;
  --ios-action-ink: #102C52;
  --ios-accent-text: #C8DBF5;
  --ios-accent-wash: #102C52;
  --ios-elevation: var(--ios-shadow-overlay-2);
  --info: #ABBFDC;
  --info-bg: #102C52;
  --ok: #2E9D62;
  --ok-bg: #062144;
  --warn: #E5A50A;
  --warn-bg: #062144;
  --bad: #D93B4E;
  --bad-bg: #062144;
  --idle: #ABBFDC;
  --idle-bg: #102C52;
}
