/* AutoWorth design tokens — ported 1:1 from Engineered Inventory 0.32.0
   (assets/css/tokens.css + dashboard.css custom props). Per-workspace brand
   values are injected as an inline :root override; these are the fallbacks.
   Components consume tokens only — raw colors outside :root are a review failure. */

:root {
	/* Brand (workspace-overridable). System blue + near-square corners —
	   Selman's direction 2026-07-10: sharp, "system button" feel, not consumer-rounded. */
	--ea-primary: #0f62fe;
	--ea-primary-down: #0353e9;
	--ea-primary-active: #002d9c;
	--ea-ink: #161616;
	--ea-muted: #525252;
	--ea-line: #e0e0e0;
	--ea-bg: #f4f4f4;
	--ea-page: #f4f4f4;
	--ea-dark: #0c111d;
	--ea-dark2: #1d2939;
	--ea-ok: #24a148;
	--ea-warn: #d97706;
	--ea-danger: #da1e28;

	/* Shape — near-square. Controls 2px, surfaces 4px. */
	--ea-r-card: 4px;
	--ea-r-panel: 4px;
	--ea-r-btn: 2px;
	--ea-r-input: 2px;

	/* Elevation */
	--ea-shadow-panel: 0 1px 3px rgba(17, 24, 39, .05);
	--ea-shadow-card: 0 1px 3px rgba(17, 24, 39, .06), 0 20px 50px -18px rgba(17, 24, 39, .18);

	/* Type */
	--ea-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ea-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	/* Spacing scale */
	--ea-space-1: 0.25rem;
	--ea-space-2: 0.5rem;
	--ea-space-3: 0.75rem;
	--ea-space-4: 1rem;
	--ea-space-5: 1.5rem;
	--ea-space-6: 2rem;
	--ea-space-7: 3rem;

	/* Motion */
	--ea-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ea-dur-fast: 150ms;
	--ea-dur-med: 260ms;

	/* Focus ring — visible, brand-tinted, non-negotiable */
	--ea-focus-ring: 0 0 0 3px color-mix(in srgb, var(--ea-primary) 40%, transparent);
}

.ea-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

:focus-visible {
	outline: none;
	box-shadow: var(--ea-focus-ring);
	border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
