/**
 * Access design tokens — aligned with ios/Access/DesignSystem/Theme.swift.
 *
 * Money is pale violet, warn/VIP is the warm edge (#E44499), risk/brand-3 is
 * Access Coral (#FF2E54). Never teal, amber or gold.
 * Surfaces step up by elevation; depth comes from lift shadows, not hard borders.
 * Brand is used as light (glow, gradient CTA), not as flat paint on every surface.
 */
:root {
  /* Ink — Theme.ink / ink2 / ink3 (system label on dark) */
  --ink: #f2f2f7;
  --ink-2: #aeaeb2;
  --ink-3: #8e8e93;

  /* Elevation — Theme.bg / surface / deepMetal (= surface2) / surface3 / line / line2 */
  --bg: #0b0b0d;
  --surface: #141416;
  --surface-2: #1c1c1e;
  --surface-3: #2c2c2e;
  --line: #2c2c2e;
  --line-2: #3a3a3c;

  /* Brand — Theme.brand (Access Violet) / brand2 (readable highlight) */
  --brand: #c959dd;
  --brand-2: #e294ed;
  /* Theme.brand3 is Access Coral (= --risk): the far end of the brand gradient.
     Captain / VIP marks paint with --warn (Theme.vip = warn), not with this. */
  --brand-3: #ff2e54;
  --brand-soft: rgba(201, 89, 221, 0.18);

  /* Money = pale violet (Theme.money #E8B7F0), NOT teal */
  --money: #e8b7f0;
  --money-soft: rgba(232, 183, 240, 0.16);
  /* Ink on money fills — Theme.onAccent, Deep Metal */
  --money-ink: #1c1c1e;

  /* Warn / VIP = where the brand gradient turns violet to coral (Theme.warn #E44499), NOT amber */
  --warn: #e44499;
  --warn-soft: rgba(228, 68, 153, 0.15);

  /* Risk — Theme.risk (Access Coral) */
  --risk: #ff2e54;
  --risk-soft: rgba(255, 46, 84, 0.15);

  /* Primary action gradient — Theme.brandGradient */
  --brand-gradient: linear-gradient(135deg, #e294ed 0%, #c959dd 50%, #ff2e54 100%);
  --hero-gradient: linear-gradient(180deg, #242126 0%, #141416 100%);

  /* Lift — soft drop shadow + hairline top highlight (Theme Card) */
  --lift: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.35);
  --lift-2: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 8px rgba(0, 0, 0, 0.25);
  --aurora: radial-gradient(60% 70% at 30% 20%, rgba(201, 89, 221, 0.22), transparent 70%);

  --mono: "SF Mono", ui-monospace, Menlo, monospace;
  --r-sm: 8px;
  --r: 16px;
  --r-lg: 24px;
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand);
  --space: 8px;
  /* Host-stand shell width (backoffice) */
  --shell: 1320px;
  /* Alias used by host-stand chrome */
  --grad: var(--brand-gradient);
}

@media (prefers-contrast: more) {
  :root {
    --ink-2: #c3c3cf;
    --ink-3: #9a9aac;
    --line: #3a3a48;
    --line-2: #4c4c5c;
  }
}
