:root {
  --nav-pill-height: 32px;
  --top-strip-height: 60px;
  --bg: #ffffff;
  --panel: rgba(255, 255, 255, 0.8);
  --text: #1d1d1f;
  --subtext: #6e6e73;
  --line: rgba(29, 29, 31, 0.1);
  --accent: #0071e3;
  --accent-press: #005fc1;
  --danger: #d70015;
  --nav-bg: rgba(255, 255, 255, 0.7);
  --surface: rgba(255, 255, 255, 0.95);
  --badge-bg: rgba(29, 29, 31, 0.08);
  --muted-box: rgba(255, 255, 255, 0.5);
  --value: #3a3a3c;
  --theme-surface: rgba(255, 255, 255, 0.94);
  --radius: 22px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1117;
  --panel: rgba(22, 23, 28, 0.82);
  --text: #f5f5f7;
  --subtext: #a1a1aa;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #0a84ff;
  --accent-press: #006edb;
  --danger: #ff453a;
  --nav-bg: rgba(28, 28, 30, 0.78);
  --surface: rgba(34, 34, 38, 0.94);
  --badge-bg: rgba(255, 255, 255, 0.08);
  --muted-box: rgba(255, 255, 255, 0.04);
  --value: #e6e6ea;
  --theme-surface: rgba(43, 43, 48, 0.96);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

html[data-theme="system"] {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    color-scheme: dark;
    --bg: #0d1117;
    --panel: rgba(22, 23, 28, 0.82);
    --text: #f5f5f7;
    --subtext: #a1a1aa;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #0a84ff;
    --accent-press: #006edb;
    --danger: #ff453a;
    --nav-bg: rgba(28, 28, 30, 0.78);
    --surface: rgba(34, 34, 38, 0.94);
    --badge-bg: rgba(255, 255, 255, 0.08);
    --muted-box: rgba(255, 255, 255, 0.04);
    --value: #e6e6ea;
    --theme-surface: rgba(43, 43, 48, 0.96);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "SF Pro Display", "SF Pro Text", "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}
