:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #f0eee9;
  --text: #1d1c1a;
  --muted: #6b6862;
  --border: #e3e0d9;
  --accent: #2f5bd3;
  --accent-soft: #e6ecfb;
  --official: #0f7b6c;
  --official-soft: #e2f3f0;
  --danger: #c0392b;
  --high: #c2410c;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141412; --surface: #1d1d1a; --surface-2: #262622; --text: #ecebe7; --muted: #a09d96;
    --border: #33322d; --accent: #7d9cf0; --accent-soft: #232c45; --official: #4cc2ad;
    --official-soft: #1a3330; --danger: #ef7d6f; --high: #f59e66; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: var(--accent); }
button, input, textarea, select { font: inherit; color: inherit; }
button {
  border: 1px solid var(--border); background: var(--surface); padding: .45rem .9rem;
  border-radius: 8px; cursor: pointer;
}
button:hover { background: var(--surface-2); }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover { filter: brightness(1.08); }
button.ghost { border-color: transparent; background: transparent; }
button:disabled { opacity: .55; cursor: default; }
input, textarea, select {
  width: 100%; border: 1px solid var(--border); background: var(--surface); border-radius: 8px;
  padding: .5rem .65rem;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.pill { display: inline-block; font-size: .75rem; padding: .1rem .55rem; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
