/* Design tokens — extracted from the PayTracer iOS app (AppPalette). */
:root {
  color-scheme: light dark;

  --accent: #0f5132;            /* AccentColor light */
  --accent-dark: #34d399;       /* AccentColor dark */
  --expense: #dc3545;           /* ExpenseColor light */
  --expense-dark: #ef4444;
  --income: #198754;            /* IncomeColor light */
  --income-dark: #059669;
  --surface: #ffffff;           /* SurfaceColor light */
  --surface-dark: #1e1e22;
  --bg: #f8f9fa;                /* LaunchBackground light */
  --bg-dark: #121214;
  --pending: #f5a623;           /* AppPalette.pendingImport */

  /* Entity palette highlights (AppPalette.entityColors) */
  --entity-1: #cb2a2a;
  --entity-5: #7bcb2a;
  --entity-9: #2acb2e;
  --entity-11: #45d983;
  --entity-17: #2acbae;
  --entity-23: #2a68cb;
  --entity-31: #6c2acb;

  --text: #1a1c1e;
  --text-muted: #55595e;
  --border: #e2e5e9;

  --radius: 12px;               /* AppLayout.cardCornerRadius */
  --radius-lg: 16px;            /* AppLayout.prominentButtonCornerRadius */
  --space-card: 16px;           /* AppLayout.cardPadding */
  --container: 72rem;
  --container-narrow: 48rem;

  /* Liquid glass surface (header + dropdown panels) */
  --glass-bg: rgb(248 249 250 / 0.62);
  --glass-blur: blur(20px) saturate(1.8);
  --glass-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.45),
    0 10px 30px rgb(23 28 33 / 0.12);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
  --step-2: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  --step-4: clamp(2.125rem, 1.6rem + 2.5vw, 3.75rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: var(--accent-dark);
    --expense: var(--expense-dark);
    --income: var(--income-dark);
    --surface: var(--surface-dark);
    --bg: var(--bg-dark);
    --text: #f2f3f5;
    --text-muted: #a8adb3;
    --border: #33363c;

    --glass-bg: rgb(18 18 20 / 0.6);
    --glass-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.08),
      0 10px 30px rgb(0 0 0 / 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
