:root {
  --bg: #f4f1ea; --surface: #fff; --ink: #1d1f23; --muted: #6b6f76; --line: #ddd8cc;
  --accent: #2f5d50; --on-accent: #fff; --error: #b3261e;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #16181c; --surface: #202328; --ink: #eceae4; --muted: #9aa0a8; --line: #2e3238; --accent: #7fc0a8; --on-accent: #10201b; --error: #f2b8b5; --shadow: 0 1px 2px rgba(0,0,0,.4); }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; }
[hidden] { display: none !important; }
.card { width: min(440px, 100%); background: var(--surface); border-radius: 16px; padding: 28px 24px; box-shadow: var(--shadow); }
h1 { margin: 0 0 6px; font-size: 24px; text-align: center; }
h2 { margin: 22px 0 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); font-size: 13px; text-align: center; }
.ok { margin: 8px 0 0; text-align: center; }
.error { color: var(--error); min-height: 1.2em; font-size: 13px; margin: 8px 0 0; }
code { font-size: 12px; word-break: break-all; }
section#login { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
form { display: flex; flex-direction: column; gap: 10px; }
label { font-size: 13px; color: var(--muted); }
input { font: inherit; color: inherit; width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
button { font: inherit; color: inherit; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
button.primary, form button { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; padding: 12px; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.list .meta { display: block; font-size: 12px; color: var(--muted); }
.list button { padding: 6px 10px; font-size: 13px; }
.actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 10px; }
