:root {
  color-scheme: light dark;
  --bg: #f7f7f5;
  --fg: #1f1f1f;
  --border: #d8d8d4;
  --accent: #2563eb;
  --danger: #b91c1c;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #17181a; --fg: #e8e8e6; --border: #3a3b3d; }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; text-decoration: none; color: var(--fg); }
nav a { color: var(--fg); text-decoration: none; margin-left: 1rem; }
.container { max-width: 800px; margin: 0 auto; padding: 1.5rem; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
h1 { margin-top: 0; }
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
}
.button.danger { background: var(--danger); }
.table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.table th, .table td { text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--border); }
.empty, .hint { color: #6b7280; }
.error { color: var(--danger); font-weight: 600; }
form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 480px; margin: 1rem 0; }
label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 600; }
input, textarea { font: inherit; padding: 0.5rem; border: 1px solid var(--border); border-radius: 4px; background: transparent; color: inherit; }
.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-list li { background: rgba(37, 99, 235, 0.1); padding: 0.15rem 0.5rem; border-radius: 4px; }
code { font-family: ui-monospace, monospace; }
