:root {
  color-scheme: light;
  --font-sans: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sidebar-width: 248px;
  --background: #f5f5fa;
  --surface: #ffffff;
  --surface-muted: #f0f0f3;
  --text: #1c1d21;
  --text-muted: #8181a5;
  --border: #ececf2;
  --income: #17a96f;
  --expense: #e2555f;
  --danger: #e2555f;
  --warning: #f4be5e;
  --info: #9698d6;
  --success: #7ce7ac;
  --shadow: 0 1px 2px rgb(23 24 33 / 0.05), 0 8px 24px rgb(23 24 33 / 0.06);
  --shadow-card: 0 1px 2px rgb(23 24 33 / 0.04), 0 4px 12px rgb(23 24 33 / 0.04);
  --radius-card: 8px;
  --radius-lg: 10px;
  --radius-field: 8px;
  --radius-pill: 999px;
  --space-page: 24px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --background: #171a26;
  --surface: #1f2333;
  --surface-muted: #292e42;
  --text: #eef0fb;
  --text-muted: #9aa2b8;
  --border: #303650;
  --income: #50e3a5;
  --expense: #ff8b95;
  --danger: #ff8b95;
  --warning: #f6c86b;
  --info: #a5a9ee;
  --success: #7ce7ac;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 12px rgb(0 0 0 / 0.18);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    color-scheme: dark;
    --background: #171a26;
    --surface: #1f2333;
    --surface-muted: #292e42;
    --text: #eef0fb;
    --text-muted: #9aa2b8;
    --border: #303650;
    --income: #50e3a5;
    --expense: #ff8b95;
    --danger: #ff8b95;
    --warning: #f6c86b;
    --info: #a5a9ee;
    --success: #7ce7ac;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
    --shadow-card: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 12px rgb(0 0 0 / 0.18);
  }
}