:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #ffffff;
  --border: #d4d7dd;
  --text: #1f2430;
  --text-muted: #6b7280;
  --accent: #7a2436;
  --accent-contrast: #ffffff;
  --header-bg: #7a2436;
  --header-text: #ffffff;
  --danger: #d64545;
  --warning: #b8860b;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  --bg: #12141a;
  --surface: #1a1d26;
  --border: #2c3040;
  --text: #e6e8ee;
  --text-muted: #9aa1b2;
  --accent: #d8768c;
  --accent-contrast: #2a0e15;
  --header-bg: #3a1420;
  --header-text: #f3d9df;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

.box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

button {
  font-family: inherit;
  cursor: pointer;
}

button.primary {
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1.25rem;
  font-weight: 600;
}

button.primary:hover { opacity: 0.9; }
button.primary:disabled { opacity: 0.5; cursor: not-allowed; }

button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 1rem;
}

input, select, textarea {
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

a { color: var(--accent); }
