:root,
:root[data-theme="light"],
body[data-theme="light"] {
  color-scheme: light;
  --color-bg: #eaedf3;
  --color-surface: #f8f9fb;
  --color-surface-alt: #e3e6ee;
  --color-border: rgba(37, 45, 62, 0.16);
  --color-text: #101420;
  --color-text-muted: #4f586c;
  --color-accent: #2f5bea;
  --color-accent-strong: #7fa4ff;
  --color-accent-soft: rgba(47, 91, 234, 0.12);
  --color-input-bg: rgba(47, 91, 234, 0.08);
  --color-input-bg-hover: rgba(47, 91, 234, 0.15);
  --color-input-placeholder: rgba(16, 20, 32, 0.56);
  --color-success: #2ea07a;
  --color-warning: #d48c35;
  --color-danger: #e2444c;
  --color-danger-soft: #e2444c;
  --color-weekend: #c7802c;
  --color-weekend-soft: rgba(199, 128, 44, 0.2);
  --chart-grid: rgba(16, 20, 32, 0.14);
  --filter-bg: var(--color-input-bg);
  --filter-bg-hover: var(--color-input-bg-hover);
  --filter-border: var(--color-border);
  --filter-focus-ring: 0 0 0 3px var(--color-accent-soft);
  --skeleton-surface: color-mix(in srgb, var(--color-surface) 88%, var(--color-surface-alt) 12%);
  --skeleton-border: color-mix(in srgb, var(--color-border) 88%, transparent);
  --skeleton-base: color-mix(in srgb, var(--color-text-muted) 16%, transparent);
  --skeleton-highlight: color-mix(in srgb, var(--color-text-muted) 28%, transparent);
  --nav-glass-bg: linear-gradient(145deg, rgba(248, 250, 255, 0.92), rgba(232, 238, 250, 0.84));
  --nav-glass-border: rgba(31, 48, 94, 0.16);
  --nav-chip-bg: rgba(255, 255, 255, 0.58);
  --nav-chip-hover: rgba(47, 91, 234, 0.14);
  --nav-chip-active: rgba(47, 91, 234, 0.2);
  --nav-focus-ring: rgba(47, 91, 234, 0.38);
  --nav-shadow: 0 20px 42px -30px rgba(18, 28, 52, 0.45);
  --hero-bg: linear-gradient(135deg, #eaf1ff 0%, #dce8ff 100%);
  --hero-text: #0f172a;
  --hero-text-muted: rgba(15, 23, 42, 0.72);
  --hero-top-accent: #3f6ef8;
  --hero-bottom-border: rgba(15, 23, 42, 0.12);
  --hero-chip-bg: rgba(255, 255, 255, 0.52);
  --hero-chip-border: rgba(37, 45, 62, 0.18);
  --hero-chip-hover-bg: rgba(47, 91, 234, 0.12);
  --hero-chip-active-bg: rgba(47, 91, 234, 0.18);
  --hero-chip-color: #21304d;
  --hero-chip-active-color: #12387f;
  --hero-action-bg: rgba(255, 255, 255, 0.72);
  --hero-action-border: rgba(47, 91, 234, 0.24);
  --hero-action-color: var(--color-accent);
  --state-accent-border-34: rgba(47, 91, 234, 0.34);
  --state-accent-border-35: rgba(37, 99, 235, 0.35);
  --state-accent-border-36: rgba(47, 91, 234, 0.36);
  --state-accent-border-38: rgba(47, 91, 234, 0.38);
  --state-accent-border-42: rgba(47, 91, 234, 0.42);
  --state-accent-border-44: rgba(47, 91, 234, 0.44);
  --state-accent-inset-16: inset 0 0 0 1px rgba(47, 91, 234, 0.16);
  --state-accent-inset-18: inset 0 0 0 1px rgba(47, 91, 234, 0.18);
  --state-accent-inset-20: inset 0 0 0 1px rgba(47, 91, 234, 0.2);
  --state-accent-bg-08: rgba(37, 99, 235, 0.08);
  --state-accent-bg-12: rgba(37, 99, 235, 0.12);
  --state-focus-outline: 3px solid var(--nav-focus-ring);
  --state-focus-offset: 2px;
  --state-focus-shadow-soft: 0 0 0 2px rgba(255, 255, 255, 0.25);
  --state-focus-shadow-hero: 0 0 0 3px rgba(144, 174, 255, 0.38);
}
:root[data-theme="dark"],
body[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #0a0d14;
  --color-surface: #141927;
  --color-surface-alt: #1b2130;
  --color-border: rgba(121, 147, 199, 0.2);
  --color-text: #e8ecf6;
  --color-text-muted: #9ca8c0;
  --color-accent: #6d8dff;
  --color-accent-strong: #a8c2ff;
  --color-accent-soft: rgba(109, 141, 255, 0.16);
  --color-input-bg: rgba(109, 141, 255, 0.14);
  --color-input-bg-hover: rgba(109, 141, 255, 0.24);
  --color-input-placeholder: rgba(232, 236, 246, 0.78);
  --color-success: #5ad29a;
  --color-warning: #efb24f;
  --color-danger: #ff4d5d;
  --color-danger-soft: #ff4d5d;
  --color-weekend: #f0a255;
  --color-weekend-soft: rgba(240, 162, 85, 0.24);
  --chart-grid: rgba(156, 168, 192, 0.26);
  --filter-bg: var(--color-input-bg);
  --filter-bg-hover: var(--color-input-bg-hover);
  --filter-border: var(--color-border);
  --filter-focus-ring: 0 0 0 3px var(--color-accent-soft);
  --skeleton-surface: color-mix(in srgb, var(--color-surface) 82%, var(--color-surface-alt) 18%);
  --skeleton-border: color-mix(in srgb, var(--color-border) 95%, transparent);
  --skeleton-base: color-mix(in srgb, var(--color-text-muted) 22%, transparent);
  --skeleton-highlight: color-mix(in srgb, var(--color-text-muted) 38%, transparent);
  --nav-glass-bg: linear-gradient(148deg, rgba(16, 24, 45, 0.88), rgba(12, 18, 34, 0.76));
  --nav-glass-border: rgba(123, 149, 207, 0.34);
  --nav-chip-bg: rgba(109, 141, 255, 0.12);
  --nav-chip-hover: rgba(109, 141, 255, 0.24);
  --nav-chip-active: rgba(109, 141, 255, 0.3);
  --nav-focus-ring: rgba(168, 194, 255, 0.46);
  --nav-shadow: 0 22px 44px -30px rgba(2, 6, 20, 0.8);
  --hero-bg: linear-gradient(135deg, #0f1d36 0%, #1a2948 100%);
  --hero-text: #e8ecf6;
  --hero-text-muted: rgba(232, 236, 246, 0.74);
  --hero-top-accent: #8aa7ff;
  --hero-bottom-border: rgba(167, 187, 236, 0.2);
  --hero-chip-bg: rgba(109, 141, 255, 0.12);
  --hero-chip-border: rgba(167, 187, 236, 0.24);
  --hero-chip-hover-bg: rgba(109, 141, 255, 0.22);
  --hero-chip-active-bg: rgba(109, 141, 255, 0.34);
  --hero-chip-color: rgba(232, 236, 246, 0.92);
  --hero-chip-active-color: #f4f8ff;
  --hero-action-bg: rgba(15, 23, 42, 0.7);
  --hero-action-border: rgba(148, 163, 184, 0.5);
  --hero-action-color: #e2e8f0;
  --state-focus-shadow-soft: 0 0 0 2px rgba(232, 236, 246, 0.28);
}
body {
  background: var(--color-bg);
  color: var(--color-text);
}
.app-splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  text-align: center;
  background: var(--color-bg);
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}
html[data-display-mode="standalone"] .app-splash {
  display: grid;
}
.app-splash[data-state="leaving"] {
  visibility: hidden;
  opacity: 0;
}
.app-splash__icon {
  width: 176px;
  height: 176px;
  margin-bottom: 28px;
}
.app-splash__title {
  margin: 0;
  font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem);
  font-weight: 800;
}
.app-splash__message {
  margin: 10px 0 24px;
  color: var(--color-text-muted);
  font-size: 1.08rem;
}
.app-splash__progress {
  width: min(100%, 360px);
  height: 5px;
  accent-color: var(--color-accent);
}
@media (prefers-reduced-motion: reduce) {
  .app-splash {
    transition: none;
  }
}
.theme-transition-block *,
.theme-transition-block *::before,
.theme-transition-block *::after {
  /* biome-ignore lint/complexity/noImportantStyles: temporary theme lock must override component transitions */
  transition: none !important;
}
