/* ABOODVIDEO canonical dark-only design tokens. */
:root {
  color-scheme: dark;
  --bg-base: #070b14;
  --bg-surface: #0d1422;
  --bg-elevated: #121b2d;
  --bg-hover: #17233a;
  --text-primary: #f3f7ff;
  --text-secondary: #a9b5c9;
  --text-muted: #697991;
  --border-subtle: #202d42;
  --border-strong: #34445c;
  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --accent-soft: #103532;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #67e8f9;
  --focus-ring: #5eead4;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Arabic", "Tajawal", "Cairo", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Cascadia Mono", monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 42px rgba(0, 0, 0, 0.7);
  --glass-bg: rgba(13, 20, 34, 0.75);
  --glass-bg-elevated: rgba(18, 27, 45, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(45, 212, 191, 0.35);
  --glass-blur: blur(14px);
  --glow-accent: 0 0 24px rgba(45, 212, 191, 0.22);
  --glow-success: 0 0 20px rgba(34, 197, 94, 0.28);
  --glow-danger: 0 0 20px rgba(239, 68, 68, 0.28);
  --gradient-brand: linear-gradient(135deg, #0f766e 0%, #14b8a6 55%, #5eead4 100%);
  --gradient-card: linear-gradient(180deg, rgba(18, 27, 45, 0.85) 0%, rgba(13, 20, 34, 0.95) 100%);
  --gradient-accent: linear-gradient(135deg, #14b8a6 0%, #67e8f9 100%);
  --gradient-quality-4k: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --gradient-quality-hd: linear-gradient(135deg, #0f766e 0%, #06b6d4 100%);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-2.5: 10px;
  --space-3.5: 14px;
  --transition-fast: 120ms ease;
  --transition-base: 160ms ease;
  --transition-smooth: 180ms cubic-bezier(.2,.7,.2,1);
  --overlay: #02060cbf;
  --viewer-header-height: 60px;
  --input-h-md: 40px;
  --progress: 0%;

  /* Compatibility aliases for page CSS during the staged migration. */
  --bg: var(--bg-base);
  --sidebar-bg: var(--bg-surface);
  --surface-1: var(--bg-surface);
  --surface-2: var(--bg-elevated);
  --surface-3: var(--bg-hover);
  --surface-hover: var(--bg-hover);
  --border: var(--border-subtle);
  --border-focus: var(--focus-ring);
  --text: var(--text-primary);
  --text-main: var(--text-primary);
  --text-inverse: var(--bg-base);
  --text-label: var(--text-secondary);
  --primary: var(--accent);
  --primary-hover: var(--accent-hover);
  --primary-active: #0f766e;
  --primary-light: var(--accent-soft);
  --primary-border: #2dd4bf66;
  --accent-light: var(--accent-soft);
  --accent-border: #67e8f955;
  --accent-blue: var(--accent);
  --accent-cyan: #22d3ee;
  --accent-green: var(--success);
  --success-bg: #14532d66;
  --success-border: #22c55e66;
  --warning-bg: #78350f66;
  --warning-border: #f59e0b66;
  --danger-hover: #dc2626;
  --danger-bg: #7f1d1d66;
  --danger-border: #ef444466;
  --info-bg: #164e6366;
  --info-border: #67e8f966;
  --bg-base-legacy: var(--bg-base);
  --bg-surface-alt: var(--bg-elevated);
  --bg-faint: var(--bg-hover);
  --text-faint: var(--text-muted);
  --text-dim: var(--text-secondary);
  --primary-soft: var(--primary-light);
  --success-soft: var(--success-bg);
  --warning-soft: var(--warning-bg);
  --danger-soft: var(--danger-bg);
  --info-soft: var(--info-bg);
  --accent-muted: var(--text-muted);
  --border-color: var(--border-subtle);
  --color-accent: var(--accent);
  --color-border: var(--border-subtle);
  --color-primary: var(--accent);
  --color-surface-0: var(--bg-base);
  --color-surface-1: var(--bg-surface);
  --color-surface-2: var(--bg-elevated);
  --color-text: var(--text-primary);
  --color-text-muted: var(--text-muted);
  --panel-bg: var(--bg-surface);
  --radius-pill: var(--radius-full);
  --shadow-1: var(--shadow-sm);
  --shadow-2: var(--shadow-md);
  --shadow-3: var(--shadow-lg);
  --shadow-4: 0 20px 60px #000b;
  --sidebar-width: 232px;
  --sidebar-collapsed: 72px;
  --topbar-height: 56px;
  --btn-h-sm: 32px;
  --btn-h-md: 38px;
  --btn-h-lg: 44px;
  --input-h: 40px;
  --row-h: 42px;
  --font-family: var(--font-sans);
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 14px;
  --text-lg: 16px;
  --text-xl: 20px;
  --text-2xl: 24px;
}
