/* Shared 4-point spacing and semantic color tokens for first-party UI. */
:root {
  --space-hairline: 1px;
  --space-optical: 1.5px;
  --space-2px: 2px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-11: 44px;
  --space-12: 48px;
  --space-13: 52px;
  --space-14: 56px;
  --space-15: 60px;
  --space-16: 64px;
  --space-17: 68px;
  --space-18: 72px;
  --space-19: 76px;
  --space-20: 80px;
  --space-21: 84px;
  --space-22: 88px;
  --space-23: 92px;
  --space-24: 96px;

  --motion-duration-fast: 140ms;
  --motion-duration-base: 200ms;
  --motion-duration-enter: 260ms;
  --motion-duration-slow: 360ms;
  --motion-ease-standard: cubic-bezier(.2, .6, .3, 1);
  --motion-ease-enter: cubic-bezier(.16, 1, .3, 1);

  --gray-50: #f7f9f7;
  --gray-100: #eef1ee;
  --gray-200: #dfe5e0;
  --gray-300: #c5cec7;
  --gray-500: #87928a;
  --gray-700: #4a554d;
  --gray-800: #333d36;
  --gray-900: #222a25;
  --gray-950: #111613;

  --color-bg-primary: #0d100f;
  --color-bg-secondary: #151917;
  --color-bg-tertiary: #1b211e;
  --color-bg-card: #1b231e;
  --color-text-primary: #eef4f1;
  --color-text-secondary: #8f9a96;
  --color-text-inverse: #ffffff;
  --color-border-subtle: #29312e;
  --color-brand-primary: #35c7b0;
  --color-brand-strong: #62dbc7;
  --color-brand-secondary: #adbf92;
  --color-brand-tertiary: #d7e8ad;
  --color-brand-soft: rgba(53, 199, 176, .13);
  --color-action-primary: #d7e8ad;
  --color-on-action-primary: #233026;
  --color-status-success: #4bb47a;
  --color-status-warning: #d99a36;
  --color-status-error: #d66e6e;
  --color-status-info: #5f91d8;
  --color-focus-ring: rgba(53, 199, 176, .48);

  --bg: var(--color-bg-primary);
  --surface: var(--color-bg-secondary);
  --surface-soft: var(--color-bg-tertiary);
  --ink: var(--color-text-primary);
  --muted: var(--color-text-secondary);
  --line: var(--color-border-subtle);
  --accent: var(--color-brand-primary);
  --accent-strong: var(--color-brand-strong);
  --blue: var(--color-status-info);
  --red: var(--color-status-error);
  --product-accent: var(--color-brand-primary);
  --product-accent-soft: var(--color-brand-soft);
  --product-ink: var(--color-text-primary);
  --product-muted: var(--color-text-secondary);
  --product-canvas: var(--color-bg-primary);
}

html[data-ui-theme="light"] {
  --gray-50: #ffffff;
  --gray-100: #f7f8f6;
  --gray-200: #e8ebe7;
  --gray-300: #d6dcd6;
  --gray-500: #7a847b;
  --gray-700: #4c564d;
  --gray-800: #343d35;
  --gray-900: #252c25;
  --gray-950: #151a16;
  --color-bg-card: #ffffff;
  --color-brand-primary: #161616;
  --color-brand-strong: #343434;
  --color-brand-secondary: #57704b;
  --color-brand-tertiary: #354f36;
  --color-brand-soft: #eef2e8;
  --color-action-primary: #354f36;
  --color-on-action-primary: #ffffff;
  --color-focus-ring: rgba(53, 79, 54, .35);
}

/* Page-level compatibility aliases point to the semantic theme roles. */
