:root {
  --bg: #f7f6f2; --surface: #fff; --text: #1d1d1b; --muted: #5f5e58;
  --line: #e4e2da; --accent: #2f6b4f; --error: #a3302a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151614; --surface: #1e201d; --text: #ecebe6; --muted: #a3a29b;
    --line: #2f312d; --accent: #7fc4a0; --error: #f08a80;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
main {
  max-width: 420px; margin: 10vh auto; padding: 32px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
h1 { font-size: 1.5rem; margin: 0 0 20px; }
h2 { font-size: 1rem; margin: 24px 0 8px; }
label { display: block; margin-bottom: 14px; font-size: 0.9rem; color: var(--muted); }
input {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px;
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button {
  width: 100%; padding: 11px; margin-top: 6px; font: inherit; font-weight: 600;
  color: #fff; background: var(--accent); border: 0; border-radius: 8px; cursor: pointer;
}
@media (prefers-color-scheme: dark) { button { color: #111; } }
button:disabled { opacity: 0.6; cursor: wait; }
.step { color: var(--muted); font-size: 0.85rem; margin: 0; }
#msg { color: var(--error); min-height: 1.5em; margin: 14px 0 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-bottom: 16px; }
th, td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; }
a { color: var(--accent); }
[hidden] { display: none !important; }
