:root {
  --bg: #f7f6f2; --surface: #ffffff; --text: #1d1d1b; --muted: #5f5e58;
  --border: #dedbd2; --accent: #2f6f4f; --accent-text: #ffffff; --error: #a3261a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161714; --surface: #1f201d; --text: #ecebe6; --muted: #a4a39c;
    --border: #383934; --accent: #6fc196; --accent-text: #10241a; --error: #f08a7e;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface);
}
.brand { font-weight: 700; color: var(--text); text-decoration: none; }
nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav a, button.link {
  color: var(--accent); text-decoration: none; padding: 10px 8px; min-height: 44px;
  display: inline-flex; align-items: center; font: inherit;
}
button.link { background: none; border: 0; cursor: pointer; }
form.inline { display: inline; margin: 0; }
main { max-width: 960px; margin: 0 auto; padding: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px; margin-bottom: 16px;
}
.narrow { max-width: 420px; margin: 32px auto; }
h1 { font-size: 1.4rem; margin: 0 0 12px; }
h2 { font-size: 1.1rem; margin: 20px 0 8px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="password"] {
  width: 100%; min-height: 44px; padding: 8px 10px; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px;
}
button[type="submit"]:not(.link) {
  min-height: 44px; padding: 0 18px; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--accent); color: var(--accent-text); border: 0; border-radius: 8px;
}
.error { color: var(--error); font-weight: 600; }
.muted { color: var(--muted); }
pre { white-space: pre-wrap; word-break: break-all; background: var(--bg); padding: 10px; border-radius: 8px; font-size: 0.85rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--border); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
