:root {
  color-scheme: dark;

  --font-family-system: "SF Pro Text", "SF Pro Display", -apple-system,
    BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui,
    "Helvetica Neue", Arial, sans-serif;
  --font-family: var(--font-family-system);
  --font-family-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --text-size-caption2: 0.6875rem;
  --text-size-caption1: 0.75rem;
  --text-size-footnote: 0.8125rem;
  --text-size-subhead: 0.9375rem;
  --text-size-body: 1.0625rem;
  --text-size-callout: 1rem;
  --text-size-headline: 1.0625rem;
  --text-size-title3: 1.25rem;
  --text-size-title2: 1.375rem;
  --text-size-title1: 1.75rem;
  --text-size-large-title: 2.125rem;

  --text-weight-regular: 400;
  --text-weight-semibold: 600;
  --text-weight-bold: 700;
  --line-tight: 1.2;
  --line-body: 1.35;
  --line-relaxed: 1.5;

  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 17px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 80px;
  --space-9: 48px;
  --space-10: 64px;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-pill: 999px;

  --control-height-sm: 36px;
  --control-height: 44px;
  --control-height-lg: 50px;
  --control-pad-x: 16px;
  --control-gap: 8px;
  --icon-size: 20px;
  --icon-size-sm: 16px;
  --icon-size-lg: 24px;

  --content-max: 900px;
  --rail-w: 64px;
  --rail-w-wide: 200px;

  --header-pill-top: 0px;
  --header-pill-h: 0px;
  --header-height: 0px;
  --header-icon-hit: 36px;
  --top-nav-clearance: 0px;
  --bottom-nav-clearance: 0px;
  --app-tab-bar-h: 0px;
  --mobile-brand-bar-h: 0px;

  --label-primary: #ffffff;
  --label-secondary: #8e8e93;
  --label-tertiary: #6b6b70;
  --label-quaternary: #3a3a3c;
  --label-on-accent: #000000;

  --fill-primary: #1c1c1e;
  --fill-secondary: #161618;
  --fill-tertiary: #232325;
  --fill-quaternary: #2a2a2c;
  --fill-elevated: #121213;
  --fill-grouped: #000000;
  --fill-input: #1c1c1e;

  --separator: rgba(255, 255, 255, 0.07);
  --separator-opaque: #2a2a2c;
  --overlay-scrim: rgba(0, 0, 0, 0.6);

  --accent: #ffffff;
  --accent-hover: #d9d9de;
  --accent-soft: color-mix(in srgb, #ffffff 12%, transparent);
  --accent-link: #ffffff;

  --system-green: #30d158;
  --system-red: #ff453a;
  --system-orange: #ff9f0a;
  --system-yellow: #ffd60a;
  --system-purple: #bf5af2;
  --system-blue: #ffffff;
  --system-gray: #8e8e93;

  --chart-plays: var(--system-purple);
  --chart-sales: #ffffff;
  --chart-profit: var(--system-green);
  --chart-followers: #ff375f;
  --chart-likes: var(--system-orange);

  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.6);

  --motion-fast: 120ms;
  --motion-normal: 180ms;
  --motion-slow: 280ms;
  --ease-standard: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-emphasized: cubic-bezier(0.2, 0, 0, 1);

  --bg: var(--fill-grouped);
  --bg-secondary: var(--fill-secondary);
  --text: var(--label-primary);
  --text-secondary: var(--label-secondary);
  --text-tertiary: var(--label-tertiary);
  --text-muted: var(--label-tertiary);
  --card: var(--fill-secondary);
  --card-elevated: var(--fill-primary);
  --card-secondary: var(--fill-tertiary);
  --surface: var(--fill-secondary);
  --surface-raised: var(--fill-tertiary);
  --border: var(--separator-opaque);
  --border-secondary: var(--fill-quaternary);
  --border-hover: var(--fill-quaternary);
  --header-bg: color-mix(in srgb, var(--fill-grouped) 72%, transparent);
  --popup-bg: var(--fill-tertiary);
  --input-bg: var(--fill-grouped);
  --input-bg-soft: var(--fill-input);
  --input-bg-focus: var(--fill-quaternary);
  --button-primary-bg: var(--accent);
  --button-primary-text: var(--label-on-accent);
  --button-secondary-bg: var(--fill-quaternary);
  --button-secondary-text: var(--label-primary);
  --button-hover-bg: color-mix(in srgb, #ffffff 10%, var(--fill-quaternary));
  --alert-warning-bg: color-mix(in srgb, var(--system-orange) 18%, #121213);
  --alert-warning-text: color-mix(in srgb, var(--system-orange) 72%, #ffffff);
  --alert-error-bg: color-mix(in srgb, var(--system-red) 16%, #121213);
  --alert-error-text: var(--system-red);
  --alert-success-bg: color-mix(in srgb, var(--system-green) 16%, #121213);
  --alert-success-text: color-mix(in srgb, var(--system-green) 65%, #ffffff);

  --bm-black: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-fast: 1ms;
    --motion-normal: 1ms;
    --motion-slow: 1ms;
  }
}
