/**
 * Vendored from LhamacorpLabs/design-system (@lhamacorplabs/design-tokens),
 * src/css/tokens.css @ 2a785b92237ac755a8ca1acd43d9cbdb2c39d574.
 * Do not hand-edit — update by re-copying from that repo and bumping
 * this commit reference.
 *
 * COSMIC design tokens — light + dark theme, keyed off a `data-theme`
 * attribute on <html>. Extracted from LhamacorpLabs/chat-client.
 *
 * This file is CSS-only: colors, type, radii, shadows, spacing, and
 * motion. It intentionally ships no resets, no component classes, and
 * no backward-compat aliases — consuming apps build their own
 * components against these variables.
 *
 * Font: this file only sets the `--font-mono` variable. Load the
 * actual JetBrains Mono font yourself, e.g. via Google Fonts:
 *
 *   <link rel="preconnect" href="https://fonts.googleapis.com" />
 *   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
 *   <link
 *     href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap"
 *     rel="stylesheet"
 *   />
 */

:root {
	color-scheme: light;
	--font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;

	--bg-gradient: linear-gradient(135deg, #f7dce8 0%, #e7d8f1 30%, #d7dff5 65%, #cfe9ee 100%);
	--surface: #f5f6fb;
	--surface-hover: #eceef6;
	--surface-alt: #e2e5f0;
	--panel-bg: #eceef5;

	--text-primary: #262a3d;
	--text-secondary: #666b84;
	--text-muted: #9599ac;

	--accent: #2c2f45;
	--accent-hover: #3d4160;
	--accent-contrast: #f7f7fb;
	--accent-subtle: rgba(44, 47, 69, 0.08);
	--accent-shadow: rgba(44, 47, 69, 0.12);

	--border: #d9dce7;
	--border-hover: #c2c6d8;
	--border-focus: #3b6fed;
	--focus-ring: rgba(59, 111, 237, 0.2);
	--input-bg: #ffffff;

	--success-bg: rgba(43, 148, 105, 0.1);
	--success-text: #237a56;
	--success-border: rgba(43, 148, 105, 0.28);
	--error-bg: rgba(214, 79, 79, 0.1);
	--error-text: #b23b3b;
	--error-border: rgba(214, 79, 79, 0.28);
	--danger: #c94747;
	--danger-hover: #b23b3b;
	--warning-text: #9a6b1f;
	--warning-bg: rgba(184, 134, 44, 0.12);
	--warning-border: rgba(184, 134, 44, 0.3);

	--shadow-sm: 0 1px 2px rgba(35, 27, 58, 0.05);
	--shadow-md: 0 10px 28px rgba(35, 27, 58, 0.08);
	--shadow-lg: 0 20px 56px rgba(35, 27, 58, 0.16);

	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 18px;
	--radius-pill: 999px;
	--gap: 20px;

	/* Spacing scale (4px base unit) */
	--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;

	/* Font-size scale */
	--font-xs: 0.75rem;
	--font-sm: 0.8125rem;
	--font-base: 0.875rem;
	--font-md: 0.9375rem;
	--font-lg: 1rem;
	--font-xl: 1.125rem;
	--font-2xl: 1.25rem;
	--font-3xl: 1.5rem;
	--font-4xl: 1.75rem;

	/* Motion scale */
	--duration-fast: 0.1s;
	--duration-base: 0.15s;
	--duration-slow: 0.2s;
	--duration-slower: 0.3s;
	--ease-standard: ease;
	--ease-out: ease-out;
}

/* Dark theme */
:root[data-theme='dark'] {
	color-scheme: dark;

	--bg-gradient: linear-gradient(135deg, #1c1730 0%, #171b30 30%, #12162a 65%, #0f1a1e 100%);
	--surface: #1b1d2b;
	--surface-hover: #23263a;
	--surface-alt: #292c44;
	--panel-bg: #191b28;

	--text-primary: #e9eaf3;
	--text-secondary: #a3a7c0;
	--text-muted: #6c7091;

	--accent: #e9eaf3;
	--accent-hover: #ffffff;
	--accent-contrast: #171928;
	--accent-subtle: rgba(233, 234, 243, 0.08);
	--accent-shadow: rgba(233, 234, 243, 0.12);

	--border: #2e3149;
	--border-hover: #3d4160;
	--border-focus: #7c98ff;
	--focus-ring: rgba(124, 152, 255, 0.28);
	--input-bg: #14151f;

	--success-bg: rgba(52, 211, 153, 0.12);
	--success-text: #4ade80;
	--success-border: rgba(52, 211, 153, 0.28);
	--error-bg: rgba(248, 113, 113, 0.12);
	--error-text: #f87171;
	--error-border: rgba(248, 113, 113, 0.28);
	--danger: #f87171;
	--danger-hover: #fca5a5;
	--warning-text: #f0b429;
	--warning-bg: rgba(240, 180, 41, 0.14);
	--warning-border: rgba(240, 180, 41, 0.3);

	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
	--shadow-md: 0 10px 28px rgba(0, 0, 0, 0.35);
	--shadow-lg: 0 20px 56px rgba(0, 0, 0, 0.5);
}
