:root {
	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 16px;
	--radius-xl: 22px;

	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 24px;
	--space-6: 32px;
	--space-7: 48px;
	--space-8: 64px;

	--workspace-header-height: 4.25rem;
	--workspace-header-inline: var(--space-5);
	--object-title-size: 1.03125rem;
	--text-object-title-size: 0.89375rem;

	--shadow-sm: 0 1px 2px rgba(20, 22, 28, 0.06);
	--shadow-md: 0 4px 16px rgba(20, 22, 28, 0.08);
	--shadow-lg: 0 12px 40px rgba(20, 22, 28, 0.14);

	--duration-fast: 120ms;
	--duration-base: 200ms;
	--duration-slow: 360ms;
	--ease-standard: cubic-bezier(0.2, 0, 0, 1);
	--duration-hover-normal: 300ms;
	--duration-hover-compact: 200ms;
	--ease-hover: ease;

	--accent: #e8355f;
	--accent-strong: #c81c48;
	--accent-soft: #fce7ec;
	--accent-contrast: #ffffff;

	--color-bg: #f6f7fb;
	--color-surface: #ffffff;
	--color-surface-raised: #ffffff;
	--color-border: #e4e6ee;
	--color-border-strong: #cdd1e0;
	--color-text: #14161c;
	--color-text-muted: #5b6070;
	--color-text-faint: #8a8f9c;
	--color-danger: #d6455a;
	--color-danger-soft: #fdecef;
	--color-success: #1f9d6a;
	--color-warning: #b57610;

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--color-bg: #101217;
		--color-surface: #171a21;
		--color-surface-raised: #1d2129;
		--color-border: #262b35;
		--color-border-strong: #363c49;
		--color-text: #eceef3;
		--color-text-muted: #a7acbb;
		--color-text-faint: #767c8c;
		--accent: #ff5f85;
		--accent-strong: #ff85a3;
		--accent-soft: #3d1522;
		--accent-contrast: #10121a;
		--color-danger: #ff7a8a;
		--color-danger-soft: #3a1c22;
		--color-success: #4cd18a;
		--color-warning: #e0a743;
		--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
		--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
		--shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);

		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--color-bg: #101217;
	--color-surface: #171a21;
	--color-surface-raised: #1d2129;
	--color-border: #262b35;
	--color-border-strong: #363c49;
	--color-text: #eceef3;
	--color-text-muted: #a7acbb;
	--color-text-faint: #767c8c;
	--accent: #ff5f85;
	--accent-strong: #ff85a3;
	--accent-soft: #3d1522;
	--accent-contrast: #10121a;
	--color-danger: #ff7a8a;
	--color-danger-soft: #3a1c22;
	--color-success: #4cd18a;
	--color-warning: #e0a743;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
	--shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);

	color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--duration-fast: 0ms;
		--duration-base: 0ms;
		--duration-slow: 0ms;
		--duration-hover-normal: 0ms;
		--duration-hover-compact: 0ms;
	}
}
