/*
 * GENERATED from tokens.json by gen.ts: do not edit by hand (pnpm --filter @meryxon/tokens gen).
 * meryxon design tokens v4 (Liquid Glass v2, docs/product/28-liquid-glass-v2.md, on doc 27).
 * Themes: Glass Dark by default and for [data-theme="dark"]; Glass Light for [data-theme="light"].
 * "System" is resolved by the app (ThemeProvider) from prefers-color-scheme into one of the two.
 * Accent: ember by default; [data-accent="azure|violet|jade|rose"] on the root picks another.
 * Density: comfortable by default; compact via [data-density="compact"].
 * Text size: [data-text-size="sm|md|lg|xl"] scales the root font size (UI setting).
 * Motion: [data-motion="reduced"] or prefers-reduced-motion turn every duration to 0.
 * Breakpoints (tokens.json breakpoints) cannot be CSS variables in media queries: Tailwind's
 * @theme in packages/web-ui carries them, checked against tokens.json by a test.
 */

:root {
  --color-bg: #f4f6fb;
  --color-surface: #ffffff;
  --color-surface-2: #eef2f8;
  --color-surface-inverse: #0f172a;
  --color-on-surface-inverse: #e2e8f0;
  --color-border: #dde3ee;
  --color-border-strong: #b6c0d1;
  --color-border-control: #7c8799;
  --color-text: #0f172a;
  --color-text-muted: #526077;
  --color-text-inverse: #ffffff;
  --color-focus: var(--accent-focus);
  --color-primary: var(--accent);
  --color-primary-hover: var(--accent-hover);
  --color-primary-soft: var(--accent-soft);
  --color-on-primary: var(--on-accent);
  --color-nav-bg: #0f172a;
  --color-nav-text: #cbd5e1;
  --color-nav-text-muted: #94a3b8;
  --color-nav-active-bg: #1e293b;
  --color-success: #17723a;
  --color-success-soft: #e3f4e8;
  --color-warning: #875b00;
  --color-warning-soft: #fff4d6;
  --color-error: #c42b1c;
  --color-error-soft: #fde8e6;
  --color-info: #1f5fbf;
  --color-info-soft: #e5eefb;
  --color-pending: #6e40c9;
  --color-pending-soft: #efe9fb;
  --color-neutral: #526077;
  --color-neutral-soft: #eceff5;
  --color-context: #1c2b3a;
  --color-on-context: #ffffff;
  --color-support-banner: #3d1f5c;
  --color-on-support-banner: #ffffff;
  --color-brand-signal: #12b5cb;
  --color-brand-night: #0b1a2a;
  --gradient-brand: linear-gradient(135deg, #12b5cb 0%, #0a7c8c 100%);
  --viz-1: #0072b2;
  --viz-2: #d55e00;
  --viz-3: #2f8fc4;
  --viz-4: #4f5866;
  --viz-5: #a3790a;
  --viz-6: #c7367a;
  --viz-7: #6a3fd0;
  --viz-8: #00805c;
  --viz-seq-1: #dbe8f6;
  --viz-seq-2: #9cc3e8;
  --viz-seq-3: #4f8fcf;
  --viz-seq-4: #1f5f9f;
  --viz-seq-5: #0d3466;
  --viz-div-1: #1d4ed8;
  --viz-div-2: #60a5fa;
  --viz-div-3: #bfdbfe;
  --viz-div-4: #e5e7eb;
  --viz-div-5: #fed7aa;
  --viz-div-6: #fb923c;
  --viz-div-7: #c2410c;
  --viz-band-ok: rgba(23, 114, 58, 0.08);
  --viz-band-warning: rgba(135, 91, 0, 0.10);
  --viz-band-critical: rgba(196, 43, 28, 0.10);
  --viz-band-neutral: rgba(15, 23, 42, 0.05);
  --font-sans: "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --text-display: 700 2.25rem/2.75rem var(--font-sans);
  --text-h1: 650 1.625rem/2.125rem var(--font-sans);
  --text-h2: 600 1.25rem/1.75rem var(--font-sans);
  --text-h3: 600 1rem/1.5rem var(--font-sans);
  --text-body: 400 0.875rem/1.375rem var(--font-sans);
  --text-body-lg: 400 1rem/1.5rem var(--font-sans);
  --text-small: 400 0.8125rem/1.125rem var(--font-sans);
  --text-caption: 400 0.75rem/1rem var(--font-sans);
  --text-label: 500 0.75rem/1rem var(--font-sans);
  --text-kpi: 700 2rem/2.5rem var(--font-sans);
  --text-data: 500 0.8125rem/1.125rem var(--font-mono);
  --text-card-title: 600 0.9375rem/1.25rem var(--font-sans);
  --text-card-subtitle: 400 0.75rem/1rem var(--font-sans);
  --text-tile-label: 500 0.6875rem/0.875rem var(--font-sans);
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --radius-badge: 10px;
  --radius-tile: 16px;
  --radius-card: 26px;
  --border-width: 1px;
  --shadow-1: 0 1px 2px rgb(15 23 42 / 0.05), 0 1px 3px rgb(15 23 42 / 0.04);
  --shadow-2: 0 6px 16px rgb(15 23 42 / 0.08);
  --shadow-3: 0 16px 40px rgb(15 23 42 / 0.16);
  --z-base: 0;
  --z-raised: 10;
  --z-sticky: 20;
  --z-dock: 30;
  --z-dropdown: 40;
  --z-overlay: 50;
  --z-modal: 60;
  --z-toast: 70;
  --z-tooltip: 80;
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;
  --duration-glass: 200ms;
  --duration-instant: 0ms;
  --duration-theme: 300ms;
  --duration-fast-exit: 80ms;
  --duration-base-exit: 130ms;
  --duration-slow-exit: 210ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-emphasized: cubic-bezier(0.3, 0, 0, 1);
  --ease-glass: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --control-height: 2.5rem;
  --control-sm: 2rem;
  --control-md: 2.5rem;
  --control-lg: 3rem;
  --control-hit-min: 24px;
  --row-height: 3rem;
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 24px;
  --touch-target: 44px;
  --glass-canvas: #08131f;
  --glass-ambient-1: rgba(18, 181, 203, 0.14);
  --glass-ambient-2: rgba(10, 124, 140, 0.12);
  --glass-card-fill: linear-gradient(145deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 100%);
  --glass-card-fallback: rgba(20, 38, 56, 0.96);
  --glass-card-border: rgba(255, 255, 255, 0.16);
  --glass-card-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.25), 0 20px 40px -15px rgba(0, 0, 0, 0.55);
  --glass-card-blur: blur(var(--blur-lg)) saturate(150%);
  --glass-tile-fill: rgba(255, 255, 255, 0.06);
  --glass-tile-fill-quiet: rgba(255, 255, 255, 0.05);
  --glass-tile-border: rgba(255, 255, 255, 0.08);
  --glass-capsule-fill: rgba(11, 26, 42, 0.60);
  --glass-capsule-fallback: rgba(11, 26, 42, 0.94);
  --glass-capsule-border: rgba(255, 255, 255, 0.18);
  --glass-capsule-blur: blur(var(--blur-xl));
  --glass-control-fill: rgba(255, 255, 255, 0.08);
  --glass-toggle-track: rgba(255, 255, 255, 0.10);
  --glass-accent: var(--accent);
  --glass-on-accent: var(--on-accent);
  --glass-accent-gradient: linear-gradient(90deg, var(--accent-hover) 0%, var(--accent) 100%);
  --glass-accent-glow: var(--accent-glow);
  --glass-online: #22c55e;
  --glass-online-glow: 0 0 16px rgba(34, 197, 94, 0.45);
  --glass-live-dot: #ef4444;
  --glass-live-text: #f87171;
  --glass-climate-gradient: linear-gradient(90deg, #a855f7 0%, #6366f1 100%);
  --glass-climate-from: #a855f7;
  --glass-climate-to: #6366f1;
  --glass-selected-fill: var(--accent);
  --glass-on-selected: var(--on-accent);
  --size-card-padding: 18px;
  --size-icon-badge: 36px;
  --size-card-action: 32px;
  --size-toggle-width: 68px;
  --size-toggle-height: 32px;
  --size-mobile-header-button: 40px;
  --size-dock-margin: 16px;
  --size-bento-gap: 20px;
  --size-card-title: 15px;
  --size-card-subtitle: 12px;
  --size-tile-label: 11px;
  --surface-solid: #ffffff;
  --surface-raised: #ffffff;
  --surface-sunken: #f3f5f8;
  --blur-sm: 12px;
  --blur-md: 20px;
  --blur-lg: 28px;
  --blur-xl: 36px;
  --motion-spring-stiffness: 400;
  --motion-spring-damping: 32;
  --motion-stagger: 30ms;
  --motion-stagger-max: 8;
  --motion-press-scale: 0.97;
  --motion-rise: 8px;
  --motion-menu-offset: 4px;
  --spectrum-1: #ec4899;
  --spectrum-2: #f59e0b;
  --spectrum-3: #22c55e;
  --spectrum-4: #06b6d4;
  --spectrum-5: #3b82f6;
  --spectrum-6: #8b5cf6;

  color-scheme: light;
}

[data-density="compact"] {
  --control-height: 2rem;
  --row-height: 2.25rem;
}

[data-text-size="sm"] { font-size: 87.5%; }
[data-text-size="lg"] { font-size: 112.5%; }
[data-text-size="xl"] { font-size: 125%; }

/* Glass Dark: the default theme, also what "dark" resolves to. themes.glass and the default accent. */
:root:not([data-theme="light"]) {
  --color-bg: #08131f;
  --color-surface: #142638;
  --color-surface-2: #1c3247;
  --color-surface-inverse: #ffffff;
  --color-on-surface-inverse: #0b1a2a;
  --color-border: rgba(255, 255, 255, 0.16);
  --color-border-strong: rgba(255, 255, 255, 0.28);
  --color-border-control: rgba(255, 255, 255, 0.40);
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.58);
  --color-text-inverse: #0b1a2a;
  --color-nav-bg: rgba(11, 26, 42, 0.60);
  --color-nav-text: #ffffff;
  --color-nav-text-muted: rgba(255, 255, 255, 0.58);
  --color-nav-active-bg: var(--accent-soft);
  --color-success: #22c55e;
  --color-success-soft: rgba(34, 197, 94, 0.16);
  --color-warning: #fbbf24;
  --color-warning-soft: rgba(251, 191, 36, 0.16);
  --color-error: #f87171;
  --color-error-soft: rgba(239, 68, 68, 0.18);
  --color-info: #93c5fd;
  --color-info-soft: rgba(147, 197, 253, 0.14);
  --color-pending: #c4b5fd;
  --color-pending-soft: rgba(196, 181, 253, 0.14);
  --color-neutral: rgba(255, 255, 255, 0.58);
  --color-neutral-soft: rgba(255, 255, 255, 0.06);
  --color-context: rgba(255, 255, 255, 0.10);
  --color-on-context: #ffffff;
  --color-support-banner: #4a2670;
  --color-on-support-banner: #ffffff;
  --surface-solid: #0f1f30;
  --surface-raised: #172b3f;
  --surface-sunken: #050d16;
  --viz-1: #56b4e9;
  --viz-2: #e69f00;
  --viz-3: #7f8cff;
  --viz-4: #c9ced6;
  --viz-5: #ff6b4a;
  --viz-6: #e48ad0;
  --viz-7: #f0e442;
  --viz-8: #2fc9a0;
  --viz-seq-1: #16324f;
  --viz-seq-2: #1f5f99;
  --viz-seq-3: #3b8fd9;
  --viz-seq-4: #7fbcf2;
  --viz-seq-5: #cfe6fb;
  --viz-div-1: #7fb2ff;
  --viz-div-2: #4a86e8;
  --viz-div-3: #2a4a75;
  --viz-div-4: #3a3d42;
  --viz-div-5: #7a4a22;
  --viz-div-6: #e08a3c;
  --viz-div-7: #ffb27f;
  --viz-band-ok: rgba(34, 197, 94, 0.10);
  --viz-band-warning: rgba(251, 191, 36, 0.12);
  --viz-band-critical: rgba(248, 113, 113, 0.14);
  --viz-band-neutral: rgba(255, 255, 255, 0.04);
  --accent: #12b5cb;
  --accent-hover: #3fc9db;
  --on-accent: #0b1a2a;
  --accent-soft: rgba(18, 181, 203, 0.16);
  --accent-glow: 0 0 20px rgba(18, 181, 203, 0.38);
  --accent-focus: #5ed3e3;
  --swatch-signal: #12b5cb;
  --swatch-ember: #ff7a2f;
  --swatch-azure: #4da3ff;
  --swatch-violet: #a78bfa;
  --swatch-jade: #2dd4a4;
  --swatch-rose: #fb7185;
  color-scheme: dark;
}

/* Glass Light: themes.glassLight and the default accent. */
:root[data-theme="light"] {
  --color-bg: #eef1f5;
  --color-surface: #fafbfc;
  --color-surface-2: #e9edf2;
  --color-border: #d3d9e3;
  --color-border-strong: #a9b3c2;
  --color-border-control: #7c8799;
  --color-text: #0f172a;
  --color-text-muted: #526077;
  --color-nav-bg: rgba(255, 255, 255, 0.70);
  --color-nav-text: #0f172a;
  --color-nav-text-muted: #526077;
  --color-nav-active-bg: rgba(15, 23, 42, 0.08);
  --color-context: rgba(15, 23, 42, 0.06);
  --color-on-context: #0f172a;
  --glass-canvas: #eef1f5;
  --glass-ambient-1: rgba(120, 160, 196, 0.28);
  --glass-ambient-2: rgba(232, 176, 136, 0.24);
  --glass-card-fill: linear-gradient(145deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.60) 100%);
  --glass-card-fallback: rgba(250, 251, 252, 0.97);
  --glass-card-border: rgba(15, 23, 42, 0.12);
  --glass-card-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.90), 0 20px 40px -18px rgba(15, 23, 42, 0.20);
  --glass-card-blur: blur(var(--blur-lg)) saturate(160%);
  --glass-tile-fill: rgba(15, 23, 42, 0.04);
  --glass-tile-fill-quiet: rgba(15, 23, 42, 0.03);
  --glass-tile-border: rgba(15, 23, 42, 0.09);
  --glass-capsule-fill: rgba(255, 255, 255, 0.70);
  --glass-capsule-fallback: rgba(250, 251, 252, 0.97);
  --glass-capsule-border: rgba(15, 23, 42, 0.12);
  --glass-capsule-blur: blur(var(--blur-xl)) saturate(160%);
  --glass-control-fill: rgba(15, 23, 42, 0.05);
  --glass-toggle-track: rgba(15, 23, 42, 0.10);
  --glass-online: #17723a;
  --glass-online-glow: 0 0 12px rgba(23, 114, 58, 0.30);
  --glass-live-dot: #dc2626;
  --glass-live-text: #b91c1c;
  --glass-selected-fill: var(--accent);
  --glass-on-selected: var(--on-accent);
  --accent: #0a7c8c;
  --accent-hover: #08636f;
  --on-accent: #ffffff;
  --accent-soft: rgba(10, 124, 140, 0.10);
  --accent-glow: 0 0 16px rgba(10, 124, 140, 0.22);
  --accent-focus: #0a7c8c;
  --swatch-signal: #0a7c8c;
  --swatch-ember: #c2410c;
  --swatch-azure: #1d5fd0;
  --swatch-violet: #6d3fd6;
  --swatch-jade: #0b7a5b;
  --swatch-rose: #c81e5a;
  color-scheme: light;
}

/* Accents (doc 28 §2.2), per theme. */
:root:not([data-theme="light"])[data-accent="ember"] {
  --accent: #ff7a2f;
  --accent-hover: #ff9a5a;
  --on-accent: #111214;
  --accent-soft: rgba(255, 122, 47, 0.16);
  --accent-glow: 0 0 20px rgba(255, 122, 47, 0.38);
  --accent-focus: #ffb27f;
}
:root[data-theme="light"][data-accent="ember"] {
  --accent: #c2410c;
  --accent-hover: #a3360a;
  --on-accent: #ffffff;
  --accent-soft: rgba(194, 65, 12, 0.10);
  --accent-glow: 0 0 16px rgba(194, 65, 12, 0.22);
  --accent-focus: #c2410c;
}
:root:not([data-theme="light"])[data-accent="azure"] {
  --accent: #4da3ff;
  --accent-hover: #7ab9ff;
  --on-accent: #111214;
  --accent-soft: rgba(77, 163, 255, 0.16);
  --accent-glow: 0 0 20px rgba(77, 163, 255, 0.38);
  --accent-focus: #9ccaff;
}
:root[data-theme="light"][data-accent="azure"] {
  --accent: #1d5fd0;
  --accent-hover: #174fae;
  --on-accent: #ffffff;
  --accent-soft: rgba(29, 95, 208, 0.10);
  --accent-glow: 0 0 16px rgba(29, 95, 208, 0.22);
  --accent-focus: #1d5fd0;
}
:root:not([data-theme="light"])[data-accent="violet"] {
  --accent: #a78bfa;
  --accent-hover: #c0acfc;
  --on-accent: #111214;
  --accent-soft: rgba(167, 139, 250, 0.16);
  --accent-glow: 0 0 20px rgba(167, 139, 250, 0.38);
  --accent-focus: #cbbcfd;
}
:root[data-theme="light"][data-accent="violet"] {
  --accent: #6d3fd6;
  --accent-hover: #5a31b5;
  --on-accent: #ffffff;
  --accent-soft: rgba(109, 63, 214, 0.10);
  --accent-glow: 0 0 16px rgba(109, 63, 214, 0.22);
  --accent-focus: #6d3fd6;
}
:root:not([data-theme="light"])[data-accent="jade"] {
  --accent: #2dd4a4;
  --accent-hover: #5ee0ba;
  --on-accent: #111214;
  --accent-soft: rgba(45, 212, 164, 0.16);
  --accent-glow: 0 0 20px rgba(45, 212, 164, 0.38);
  --accent-focus: #86e8cb;
}
:root[data-theme="light"][data-accent="jade"] {
  --accent: #0b7a5b;
  --accent-hover: #09654b;
  --on-accent: #ffffff;
  --accent-soft: rgba(11, 122, 91, 0.10);
  --accent-glow: 0 0 16px rgba(11, 122, 91, 0.22);
  --accent-focus: #0b7a5b;
}
:root:not([data-theme="light"])[data-accent="rose"] {
  --accent: #fb7185;
  --accent-hover: #fc95a4;
  --on-accent: #111214;
  --accent-soft: rgba(251, 113, 133, 0.16);
  --accent-glow: 0 0 20px rgba(251, 113, 133, 0.38);
  --accent-focus: #fdb0bb;
}
:root[data-theme="light"][data-accent="rose"] {
  --accent: #c81e5a;
  --accent-hover: #a8184b;
  --on-accent: #ffffff;
  --accent-soft: rgba(200, 30, 90, 0.10);
  --accent-glow: 0 0 16px rgba(200, 30, 90, 0.22);
  --accent-focus: #c81e5a;
}

@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
    --duration-glass: 0ms;
    --duration-theme: 0ms;
    --duration-fast-exit: 0ms;
    --duration-base-exit: 0ms;
    --duration-slow-exit: 0ms;
  }
}
[data-motion="reduced"] {
  --duration-fast: 0ms;
  --duration-base: 0ms;
  --duration-slow: 0ms;
  --duration-glass: 0ms;
  --duration-theme: 0ms;
  --duration-fast-exit: 0ms;
  --duration-base-exit: 0ms;
  --duration-slow-exit: 0ms;
}

/* Hidden scrollbars on touch surfaces; scrolling still works and shows platform indicators while scrolling */
[data-scrollbars="overlay"] { scrollbar-width: none; }
[data-scrollbars="overlay"]::-webkit-scrollbar { display: none; }

/* Arabic: never letter-space */
:lang(ar) { letter-spacing: 0; }
