/* Obzio Academy design tokens.
 * GENERATED from design/tokens/tokens.json by app/scripts/build-tokens.ts. Do not edit by hand.
 * Layers: --ref-* primitives (raw values, used only inside this file) -> semantic tokens
 * (--color-*, --space-*, --radius-*, --size-*, --text-*, --motion-* ...) -> component tokens
 * (--switch-width, --ring-track ...), which alias semantic tokens only. Components use semantic
 * and component tokens only.
 * Light is the default theme; [data-theme="dark"] switches, [data-theme="system"] follows the OS.
 * Arabic type metrics switch in :lang(ar) (R-15). --dir is 1 in LTR and -1 in RTL (R-05). */

:root {
  /* ---- primitives ---- */
  --ref-white: #FFFFFF;
  --ref-paper-50: #FAF8F4;
  --ref-paper-100: #F3F0EA;
  --ref-paper-200: #ECE7DF;
  --ref-sand-300: #E2DCD2;
  --ref-ink-900: #14202B;
  --ref-slate-600: #55616E;
  --ref-slate-500: #76828E;
  --ref-slate-300: #C9D1D8;
  --ref-teal-950: #0B3D4A;
  --ref-teal-800: #0B4A59;
  --ref-teal-700: #0F5C6E;
  --ref-teal-300: #5FC3D6;
  --ref-teal-250: #86D3E1;
  --ref-teal-200: #A9E0EA;
  --ref-teal-100: #E3F0F2;
  --ref-teal-50: #F0F7F8;
  --ref-teal-900-night: #12343D;
  --ref-teal-950-night: #123A45;
  --ref-amber-800: #8A4A06;
  --ref-amber-700: #B4600B;
  --ref-amber-100: #FBEEDD;
  --ref-amber-400-night: #E8A25A;
  --ref-amber-300-night: #F0B470;
  --ref-amber-950-night: #33240F;
  --ref-green-800: #0F5A37;
  --ref-green-700: #146C43;
  --ref-green-100: #E6F2EB;
  --ref-green-300-night: #6FCF97;
  --ref-green-200-night: #93DDB2;
  --ref-green-950-night: #123024;
  --ref-red-800: #8C1D17;
  --ref-red-700: #B3261E;
  --ref-red-100: #FCEBE9;
  --ref-red-300-night: #FF8A80;
  --ref-red-200-night: #FFB4AB;
  --ref-red-950-night: #3A1C1A;
  --ref-yellow-800: #7A4B00;
  --ref-yellow-100: #FFF3D6;
  --ref-yellow-600: #A07400;
  --ref-yellow-300-night: #F2C46B;
  --ref-yellow-400-night: #E6C229;
  --ref-yellow-950-night: #2A2412;
  --ref-night-950: #0B1219;
  --ref-night-900: #0F1720;
  --ref-night-800: #17212C;
  --ref-night-700: #1D2A37;
  --ref-night-600: #26323F;
  --ref-night-500: #2B3846;
  --ref-night-400: #6B7885;
  --ref-mist-200: #A3AEBB;
  --ref-mist-50: #EDEFF2;
  --ref-hero-muted: #B4CDD3;
  --ref-hero-muted-night: #A9C3C9;
  --ref-alpha-ink-6: rgba(20, 32, 43, 0.06);
  --ref-alpha-ink-10: rgba(20, 32, 43, 0.10);
  --ref-alpha-ink-16: rgba(20, 32, 43, 0.16);
  --ref-alpha-ink-48: rgba(20, 32, 43, 0.48);
  --ref-alpha-night-64: rgba(4, 8, 12, 0.64);
  --ref-alpha-black-32: rgba(0, 0, 0, 0.32);
  --ref-alpha-black-48: rgba(0, 0, 0, 0.48);
  --ref-alpha-player-0: rgba(11, 18, 25, 0);
  --ref-alpha-player-72: rgba(11, 18, 25, 0.72);
  --ref-alpha-player-80: rgba(11, 18, 25, 0.80);
  --ref-alpha-player-86: rgba(11, 18, 25, 0.86);
  --ref-alpha-white-12: rgba(255, 255, 255, 0.12);
  --ref-alpha-white-28: rgba(255, 255, 255, 0.28);
  --ref-alpha-white-42: rgba(255, 255, 255, 0.42);
  --ref-alpha-white-86: rgba(255, 255, 255, 0.86);
  --ref-size-1: 1px;
  --ref-size-1-5: 1.5px;
  --ref-size-2: 2px;
  --ref-size-3: 3px;
  --ref-size-4: 4px;
  --ref-size-5: 5px;
  --ref-size-6: 6px;
  --ref-size-8: 8px;
  --ref-size-10: 10px;
  --ref-size-12: 12px;
  --ref-size-14: 14px;
  --ref-size-16: 16px;
  --ref-size-18: 18px;
  --ref-size-20: 20px;
  --ref-size-22: 22px;
  --ref-size-24: 24px;
  --ref-size-26: 26px;
  --ref-size-28: 28px;
  --ref-size-30: 30px;
  --ref-size-32: 32px;
  --ref-size-36: 36px;
  --ref-size-40: 40px;
  --ref-size-44: 44px;
  --ref-size-46: 46px;
  --ref-size-48: 48px;
  --ref-size-52: 52px;
  --ref-size-56: 56px;
  --ref-size-60: 60px;
  --ref-size-64: 64px;
  --ref-size-76: 76px;
  --ref-size-80: 80px;
  --ref-size-100: 100px;
  --ref-size-112: 112px;
  --ref-size-128: 128px;
  --ref-size-150: 150px;
  --ref-size-200: 200px;
  --ref-size-248: 248px;
  --ref-size-336: 336px;
  --ref-size-360: 360px;
  --ref-size-400: 400px;
  --ref-size-600: 600px;
  --ref-size-720: 720px;
  --ref-size-760: 760px;
  --ref-size-960: 960px;
  --ref-size-1200: 1200px;
  --ref-size-999: 999px;
  --ref-font-13: 0.8125rem;
  --ref-font-14: 0.875rem;
  --ref-font-15: 0.9375rem;
  --ref-font-16: 1rem;
  --ref-font-17: 1.0625rem;
  --ref-font-18: 1.125rem;
  --ref-font-20: 1.25rem;
  --ref-font-22: 1.375rem;
  --ref-font-24: 1.5rem;
  --ref-font-26: 1.625rem;
  --ref-font-28: 1.75rem;
  --ref-font-34: 2.125rem;
  --ref-font-36: 2.25rem;
  --ref-weight-400: 400;
  --ref-weight-500: 500;
  --ref-weight-600: 600;
  --ref-weight-700: 700;
  --ref-duration-0: 0ms;
  --ref-duration-80: 80ms;
  --ref-duration-100: 100ms;
  --ref-duration-150: 150ms;
  --ref-duration-240: 240ms;
  --ref-duration-360: 360ms;
  --ref-duration-700: 700ms;
  --ref-duration-900: 900ms;
  --ref-duration-1200: 1200ms;
  --ref-duration-1600: 1600ms;
  --ref-duration-3000: 3000ms;
  --ref-ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ref-ease-enter: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ref-ease-exit: cubic-bezier(0.3, 0, 0.8, 0.15);

  /* ---- semantic: colour (light) ---- */
  --color-bg: var(--ref-paper-50);
  --color-surface: var(--ref-white);
  --color-surface-raised: var(--ref-white);
  --color-surface-sunken: var(--ref-paper-100);
  --color-text: var(--ref-ink-900);
  --color-text-muted: var(--ref-slate-600);
  --color-border: var(--ref-sand-300);
  --color-border-strong: var(--ref-slate-500);
  --color-primary: var(--ref-teal-700);
  --color-primary-hover: var(--ref-teal-800);
  --color-on-primary: var(--ref-white);
  --color-primary-soft: var(--ref-teal-100);
  --color-on-primary-soft: var(--ref-teal-800);
  --color-hero: var(--ref-teal-950);
  --color-on-hero: var(--ref-white);
  --color-on-hero-muted: var(--ref-hero-muted);
  --color-hero-action: var(--ref-white);
  --color-on-hero-action: var(--ref-teal-950);
  --color-reward: var(--ref-amber-700);
  --color-on-reward: var(--ref-white);
  --color-reward-text: var(--ref-amber-800);
  --color-reward-soft: var(--ref-amber-100);
  --color-success: var(--ref-green-700);
  --color-success-soft: var(--ref-green-100);
  --color-on-success-soft: var(--ref-green-800);
  --color-danger: var(--ref-red-700);
  --color-danger-soft: var(--ref-red-100);
  --color-on-danger-soft: var(--ref-red-800);
  --color-warning: var(--ref-yellow-600);
  --color-warning-soft: var(--ref-yellow-100);
  --color-on-warning-soft: var(--ref-yellow-800);
  --color-focus: var(--ref-teal-700);
  --color-track: var(--ref-paper-200);
  --color-skeleton: var(--ref-paper-200);
  --color-skeleton-highlight: var(--ref-paper-100);
  --color-player: var(--ref-night-950);
  --color-on-player: var(--ref-white);
  --color-player-accent: var(--ref-teal-300);
  --color-hero-art: var(--ref-teal-300);
  --color-hero-accent: var(--ref-amber-400-night);
  --color-scrim: var(--ref-alpha-ink-48);
  --color-player-chrome: var(--ref-alpha-player-72);
  --color-caption-plate: var(--ref-alpha-player-80);
  --color-player-scrim: var(--ref-alpha-player-86);
  --color-player-scrim-end: var(--ref-alpha-player-0);
  --color-player-track: var(--ref-alpha-white-28);
  --color-player-buffer: var(--ref-alpha-white-42);
  --color-player-hover: var(--ref-alpha-white-12);
  --color-on-player-muted: var(--ref-alpha-white-86);
  --elevation-0: none;
  --elevation-1: 0 var(--ref-size-1) var(--ref-size-2) var(--ref-alpha-ink-6);
  --elevation-2: 0 var(--ref-size-8) var(--ref-size-24) var(--ref-alpha-ink-10);
  --elevation-3: 0 var(--ref-size-24) var(--ref-size-48) var(--ref-alpha-ink-16);
  color-scheme: light;

  /* ---- semantic: type (Latin defaults; Arabic overrides in :lang(ar)) ---- */
  --font-sans: "IBM Plex Sans Arabic", "Inter", "Noto Sans Arabic", system-ui, sans-serif;
  --font-latin: "IBM Plex Sans Arabic", "Inter", "Noto Sans Arabic", system-ui, sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Inter", system-ui, sans-serif;
  --font-numeric: "IBM Plex Sans Arabic", "Inter", "Noto Sans Arabic", system-ui, sans-serif;
  --text-display: var(--ref-font-34); --lh-display: 1.2;
  --text-h1: var(--ref-font-26); --lh-h1: 1.25;
  --text-h2: var(--ref-font-20); --lh-h2: 1.3;
  --text-h3: var(--ref-font-17); --lh-h3: 1.35;
  --text-body-lg: var(--ref-font-17); --lh-body-lg: 1.6;
  --text-body: var(--ref-font-15); --lh-body: 1.5;
  --text-label: var(--ref-font-14); --lh-label: 1.4;
  --text-caption: var(--ref-font-13); --lh-caption: 1.4;
  --weight-regular: var(--ref-weight-400);
  --weight-medium: var(--ref-weight-500);
  --weight-semibold: var(--ref-weight-600);
  --weight-bold: var(--ref-weight-700);
  --text-latin-sm: var(--ref-font-13);
  --text-latin-md: var(--ref-font-14);
  --text-brand: var(--ref-font-17);
  --text-numeral-lg: var(--ref-font-28);
  --weight-latin-regular: var(--ref-weight-400);
  --weight-latin-medium: var(--ref-weight-500);
  --weight-latin-semibold: var(--ref-weight-600);
  --weight-latin-bold: var(--ref-weight-700);
  --media-text-xs: var(--ref-font-13);
  --media-text-sm: var(--ref-font-14);
  --media-text-md: var(--ref-font-16);
  --media-text-lg: var(--ref-font-22);
  --media-text-xl: var(--ref-font-24);

  /* ---- semantic: space, radius, border, focus ---- */
  --space-0-5: var(--ref-size-2);
  --space-1: var(--ref-size-4);
  --space-1-5: var(--ref-size-6);
  --space-2: var(--ref-size-8);
  --space-2-5: var(--ref-size-10);
  --space-3: var(--ref-size-12);
  --space-3-5: var(--ref-size-14);
  --space-4: var(--ref-size-16);
  --space-5: var(--ref-size-20);
  --space-6: var(--ref-size-24);
  --space-7: var(--ref-size-32);
  --space-8: var(--ref-size-40);
  --space-9: var(--ref-size-56);
  --space-10: var(--ref-size-80);
  --radius-2xs: var(--ref-size-3);
  --radius-xs: var(--ref-size-6);
  --radius-sm: var(--ref-size-8);
  --radius-md: var(--ref-size-12);
  --radius-lg: var(--ref-size-16);
  --radius-xl: var(--ref-size-24);
  --radius-full: var(--ref-size-999);
  --border-width: var(--ref-size-1);
  --border-width-control: var(--ref-size-1-5);
  --border-width-strong: var(--ref-size-2);
  --border-width-accent: var(--ref-size-3);
  --focus-ring-width: var(--ref-size-2);
  --focus-ring-offset: var(--ref-size-2);

  /* ---- semantic: size (mark, icon, box, extent) ---- */
  --size-mark-01: var(--ref-size-3);
  --size-mark-02: var(--ref-size-4);
  --size-mark-03: var(--ref-size-5);
  --size-mark-04: var(--ref-size-6);
  --size-mark-05: var(--ref-size-8);
  --size-mark-06: var(--ref-size-10);
  --size-mark-07: var(--ref-size-12);
  --size-mark-08: var(--ref-size-14);
  --size-mark-09: var(--ref-size-16);
  --size-mark-10: var(--ref-size-20);
  --size-mark-11: var(--ref-size-22);
  --size-icon-xs: var(--ref-size-16);
  --size-icon-sm: var(--ref-size-18);
  --size-icon-md: var(--ref-size-24);
  --size-icon-lg: var(--ref-size-28);
  --size-box-01: var(--ref-size-24);
  --size-box-02: var(--ref-size-26);
  --size-box-03: var(--ref-size-28);
  --size-box-04: var(--ref-size-30);
  --size-box-05: var(--ref-size-32);
  --size-box-06: var(--ref-size-36);
  --size-box-07: var(--ref-size-40);
  --size-box-08: var(--ref-size-46);
  --size-box-09: var(--ref-size-48);
  --size-box-10: var(--ref-size-52);
  --size-box-11: var(--ref-size-56);
  --size-box-12: var(--ref-size-60);
  --size-box-13: var(--ref-size-64);
  --size-extent-01: var(--ref-size-76);
  --size-extent-02: var(--ref-size-100);
  --size-extent-03: var(--ref-size-112);
  --size-extent-04: var(--ref-size-128);
  --size-extent-05: var(--ref-size-150);
  --size-extent-06: var(--ref-size-200);
  --size-extent-07: var(--ref-size-336);
  --size-extent-08: var(--ref-size-600);
  --size-extent-09: var(--ref-size-760);

  /* ---- semantic: motion ---- */
  --motion-instant: var(--ref-duration-80);
  --motion-fast: var(--ref-duration-150);
  --motion-base: var(--ref-duration-240);
  --motion-slow: var(--ref-duration-360);
  --motion-ring: var(--ref-duration-700);
  --motion-moment: var(--ref-duration-1200);
  --motion-milestone: var(--ref-duration-3000);
  --motion-spinner: var(--ref-duration-900);
  --motion-shimmer: var(--ref-duration-1600);
  --motion-pulse: var(--ref-duration-1200);
  --ease-standard: var(--ref-ease-standard);
  --ease-enter: var(--ref-ease-enter);
  --ease-exit: var(--ref-ease-exit);

  /* ---- semantic: layout ---- */
  --page-pad: var(--ref-size-16);
  --content-max: var(--ref-size-1200);
  --reading-max: 65ch;
  --player-max: var(--ref-size-960);
  --chat-max: var(--ref-size-720);
  --chat-side: var(--ref-size-360);
  --side-panel: var(--ref-size-400);
  --rail-width: var(--ref-size-248);
  --bottom-nav-height: var(--ref-size-64);
  --topbar-height: var(--ref-size-56);
  --topbar-height-lg: var(--ref-size-64);
  --target-min: var(--ref-size-44);
  --dir: 1;

  /* ---- component ---- */
  --icon-xs: var(--size-icon-xs);
  --icon-sm: var(--size-icon-sm);
  --icon-md: var(--size-icon-md);
  --icon-lg: var(--size-icon-lg);
  --control-xs: var(--size-box-05);
  --control-sm: var(--size-box-06);
  --control-md: var(--target-min);
  --control-lg: var(--size-box-09);
  --chip-height: var(--size-box-04);
  --badge-height: var(--size-box-02);
  --menu-row: var(--size-box-07);
  --menu-min-width: var(--size-extent-06);
  --row-min: var(--size-box-13);
  --row-min-sm: var(--size-box-11);
  --option-min: var(--size-box-12);
  --option-key-size: var(--size-box-04);
  --textarea-min: var(--size-extent-02);
  --check-size: var(--size-mark-11);
  --radio-dot-inset: var(--size-mark-03);
  --switch-width: var(--size-box-08);
  --switch-height: var(--size-box-03);
  --switch-thumb: var(--size-mark-10);
  --avatar-md: var(--size-box-07);
  --avatar-sm: var(--size-box-05);
  --tile-size: var(--size-box-07);
  --brand-mark-size: var(--size-box-04);
  --role-glyph-size: var(--size-box-10);
  --role-glyph-art: var(--size-box-07);
  --nav-indicator-width: var(--size-box-11);
  --nav-indicator-height: var(--size-box-04);
  --dot-size: var(--size-mark-05);
  --bar-height: var(--size-mark-04);
  --bar-height-thin: var(--size-mark-02);
  --level-width: var(--size-mark-10);
  --level-height: var(--size-mark-05);
  --band-width: var(--size-mark-09);
  --band-height: var(--size-mark-04);
  --ring-size-default: var(--size-extent-04);
  --ring-track: var(--color-track);
  --ring-fill: var(--color-primary);
  --glyph-size: var(--size-mark-06);
  --swatch-size: var(--size-mark-06);
  --node-size: var(--size-box-07);
  --node-halo: var(--size-mark-03);
  --step-mark-size: var(--size-box-03);
  --chart-bar-height: var(--size-mark-07);
  --chart-bar-height-lg: var(--size-mark-08);
  --chart-gap: var(--space-0-5);
  --chart-swatch: var(--size-mark-07);
  --hatch-size: var(--size-mark-02);
  --series-earned: var(--color-reward);
  --series-ready: var(--color-primary);
  --series-close: var(--color-primary);
  --series-close-gap: var(--color-primary-soft);
  --series-progress: var(--color-primary-soft);
  --series-progress-edge: var(--color-primary);
  --series-done: var(--color-success);
  --series-warning: var(--color-warning);
  --series-warning-gap: var(--color-warning-soft);
  --series-review: var(--color-warning-soft);
  --series-review-edge: var(--color-warning);
  --series-stuck: var(--color-danger);
  --series-empty: var(--color-track);
  --series-empty-edge: var(--color-border-strong);
  --player-chrome-bg: var(--color-player-chrome);
  --caption-bg: var(--color-caption-plate);
  --pbtn-size: var(--target-min);
  --timeline-height: var(--size-box-01);
  --timeline-thumb: var(--size-mark-08);
  --timeline-tick-overhang: var(--size-mark-01);
  --big-play-min: var(--size-box-09);
  --big-play-max: var(--size-extent-01);
  --caption-size-min: var(--media-text-sm);
  --caption-size-max: var(--media-text-lg);
  --player-error-title-min: var(--media-text-md);
  --player-error-title-max: var(--media-text-xl);
  --player-error-text-min: var(--media-text-sm);
  --player-error-text-max: var(--media-text-md);
  --action-bar-clearance: var(--size-extent-03);
  --theatre-main-width: var(--size-extent-09);
  --theatre-side-width: var(--side-panel);
  --panel-max-height: var(--size-extent-08);
  --transcript-time-col: var(--size-box-10);
  --bubble-radius: var(--radius-lg);
  --send-size: var(--size-box-09);
  --allowance-dot: var(--size-mark-04);
  --typing-dot: var(--size-mark-05);
  --state-art-width: var(--size-extent-05);
  --state-art-height: var(--size-extent-02);
  --swatch-height: var(--size-box-11);
  --sk-line-height: var(--size-mark-07);
  --sk-title-height: var(--size-mark-11);
}

:lang(ar) {
  --font-sans: var(--font-arabic);
  --text-display: var(--ref-font-36); --lh-display: 1.3;
  --text-h1: var(--ref-font-28); --lh-h1: 1.35;
  --text-h2: var(--ref-font-22); --lh-h2: 1.4;
  --text-h3: var(--ref-font-18); --lh-h3: 1.5;
  --text-body-lg: var(--ref-font-18); --lh-body-lg: 1.9;
  --text-body: var(--ref-font-16); --lh-body: 1.7;
  --text-label: var(--ref-font-15); --lh-label: 1.5;
  --text-caption: var(--ref-font-14); --lh-caption: 1.6;
  --weight-regular: var(--ref-weight-400);
  --weight-medium: var(--ref-weight-500);
  --weight-semibold: var(--ref-weight-600);
  --weight-bold: var(--ref-weight-700);
}

[dir="rtl"] { --dir: -1; }
[dir="ltr"] { --dir: 1; }

@media (min-width: 600px) { :root { --page-pad: var(--ref-size-24); } }
@media (min-width: 1024px) { :root { --page-pad: var(--ref-size-32); } }
@media (max-width: 599.98px) { :lang(ar) { --text-display: var(--ref-font-28); --lh-display: 1.35; } }

[data-theme="dark"] {
  --color-bg: var(--ref-night-900);
  --color-surface: var(--ref-night-800);
  --color-surface-raised: var(--ref-night-700);
  --color-surface-sunken: var(--ref-night-950);
  --color-text: var(--ref-mist-50);
  --color-text-muted: var(--ref-mist-200);
  --color-border: var(--ref-night-500);
  --color-border-strong: var(--ref-night-400);
  --color-primary: var(--ref-teal-300);
  --color-primary-hover: var(--ref-teal-250);
  --color-on-primary: var(--ref-night-900);
  --color-primary-soft: var(--ref-teal-900-night);
  --color-on-primary-soft: var(--ref-teal-200);
  --color-hero: var(--ref-teal-950-night);
  --color-on-hero: var(--ref-mist-50);
  --color-on-hero-muted: var(--ref-hero-muted-night);
  --color-hero-action: var(--ref-mist-50);
  --color-on-hero-action: var(--ref-night-900);
  --color-reward: var(--ref-amber-400-night);
  --color-on-reward: var(--ref-night-900);
  --color-reward-text: var(--ref-amber-300-night);
  --color-reward-soft: var(--ref-amber-950-night);
  --color-success: var(--ref-green-300-night);
  --color-success-soft: var(--ref-green-950-night);
  --color-on-success-soft: var(--ref-green-200-night);
  --color-danger: var(--ref-red-300-night);
  --color-danger-soft: var(--ref-red-950-night);
  --color-on-danger-soft: var(--ref-red-200-night);
  --color-warning: var(--ref-yellow-400-night);
  --color-warning-soft: var(--ref-yellow-950-night);
  --color-on-warning-soft: var(--ref-yellow-300-night);
  --color-focus: var(--ref-teal-300);
  --color-track: var(--ref-night-600);
  --color-skeleton: var(--ref-night-700);
  --color-skeleton-highlight: var(--ref-night-600);
  --color-player: var(--ref-night-950);
  --color-on-player: var(--ref-white);
  --color-player-accent: var(--ref-teal-300);
  --color-hero-art: var(--ref-teal-300);
  --color-hero-accent: var(--ref-amber-400-night);
  --color-scrim: var(--ref-alpha-night-64);
  --color-player-chrome: var(--ref-alpha-player-72);
  --color-caption-plate: var(--ref-alpha-player-80);
  --color-player-scrim: var(--ref-alpha-player-86);
  --color-player-scrim-end: var(--ref-alpha-player-0);
  --color-player-track: var(--ref-alpha-white-28);
  --color-player-buffer: var(--ref-alpha-white-42);
  --color-player-hover: var(--ref-alpha-white-12);
  --color-on-player-muted: var(--ref-alpha-white-86);
  --elevation-0: none;
  --elevation-1: none;
  --elevation-2: 0 var(--ref-size-8) var(--ref-size-24) var(--ref-alpha-black-32);
  --elevation-3: 0 var(--ref-size-24) var(--ref-size-48) var(--ref-alpha-black-48);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  [data-theme="system"] {
    --color-bg: var(--ref-night-900);
    --color-surface: var(--ref-night-800);
    --color-surface-raised: var(--ref-night-700);
    --color-surface-sunken: var(--ref-night-950);
    --color-text: var(--ref-mist-50);
    --color-text-muted: var(--ref-mist-200);
    --color-border: var(--ref-night-500);
    --color-border-strong: var(--ref-night-400);
    --color-primary: var(--ref-teal-300);
    --color-primary-hover: var(--ref-teal-250);
    --color-on-primary: var(--ref-night-900);
    --color-primary-soft: var(--ref-teal-900-night);
    --color-on-primary-soft: var(--ref-teal-200);
    --color-hero: var(--ref-teal-950-night);
    --color-on-hero: var(--ref-mist-50);
    --color-on-hero-muted: var(--ref-hero-muted-night);
    --color-hero-action: var(--ref-mist-50);
    --color-on-hero-action: var(--ref-night-900);
    --color-reward: var(--ref-amber-400-night);
    --color-on-reward: var(--ref-night-900);
    --color-reward-text: var(--ref-amber-300-night);
    --color-reward-soft: var(--ref-amber-950-night);
    --color-success: var(--ref-green-300-night);
    --color-success-soft: var(--ref-green-950-night);
    --color-on-success-soft: var(--ref-green-200-night);
    --color-danger: var(--ref-red-300-night);
    --color-danger-soft: var(--ref-red-950-night);
    --color-on-danger-soft: var(--ref-red-200-night);
    --color-warning: var(--ref-yellow-400-night);
    --color-warning-soft: var(--ref-yellow-950-night);
    --color-on-warning-soft: var(--ref-yellow-300-night);
    --color-focus: var(--ref-teal-300);
    --color-track: var(--ref-night-600);
    --color-skeleton: var(--ref-night-700);
    --color-skeleton-highlight: var(--ref-night-600);
    --color-player: var(--ref-night-950);
    --color-on-player: var(--ref-white);
    --color-player-accent: var(--ref-teal-300);
    --color-hero-art: var(--ref-teal-300);
    --color-hero-accent: var(--ref-amber-400-night);
    --color-scrim: var(--ref-alpha-night-64);
    --color-player-chrome: var(--ref-alpha-player-72);
    --color-caption-plate: var(--ref-alpha-player-80);
    --color-player-scrim: var(--ref-alpha-player-86);
    --color-player-scrim-end: var(--ref-alpha-player-0);
    --color-player-track: var(--ref-alpha-white-28);
    --color-player-buffer: var(--ref-alpha-white-42);
    --color-player-hover: var(--ref-alpha-white-12);
    --color-on-player-muted: var(--ref-alpha-white-86);
    --elevation-0: none;
    --elevation-1: none;
    --elevation-2: 0 var(--ref-size-8) var(--ref-size-24) var(--ref-alpha-black-32);
    --elevation-3: 0 var(--ref-size-24) var(--ref-size-48) var(--ref-alpha-black-48);
    color-scheme: dark;
  }
}

/* Reduced motion: movement becomes instant; cross-fades keep a 100ms opacity change;
 * loops (spinner, shimmer, typing dots) stop. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-instant: var(--ref-duration-0);
    --motion-fast: var(--ref-duration-0);
    --motion-base: var(--ref-duration-100);
    --motion-slow: var(--ref-duration-100);
    --motion-ring: var(--ref-duration-0);
    --motion-moment: var(--ref-duration-0);
    --motion-milestone: var(--ref-duration-0);
    --motion-spinner: var(--ref-duration-0);
    --motion-shimmer: var(--ref-duration-0);
    --motion-pulse: var(--ref-duration-0);
  }
}
