:root {
  --bg: #f4f4f6; --card: #fff; --text: #1a1d21; --muted: #626872; --line: #e1e3e8;
  --primary: #1c8a74; --primary-text: #fff; --danger: #c0392b;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d1013; --card: #171b20; --text: #eceef1; --muted: #98a0aa; --line: #262c33; --primary: #3fb89f; --primary-text: #0d1013; --danger: #ef7b6e; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", sans-serif; }
header, main, footer { max-width: 720px; margin: 0 auto; padding: 0 20px; }
header { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 8px; }
.brand { font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-size: 14px; }
nav a:hover { color: var(--text); }
main { padding-top: 16px; padding-bottom: 48px; }
h1 { font-size: 28px; line-height: 1.2; margin: 16px 0 4px; }
h2 { font-size: 19px; margin: 32px 0 6px; }
p, li { color: var(--text); }
.muted { color: var(--muted); font-size: 14px; }
ul { padding-left: 20px; }
a { color: var(--primary); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 20px 0; }
label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
input { width: 100%; font: inherit; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
button, .btn { display: inline-block; width: 100%; margin-top: 18px; padding: 13px; border: 0; border-radius: 10px; background: var(--primary); color: var(--primary-text); font: inherit; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; }
button:disabled { opacity: .6; cursor: default; }
.msg { margin-top: 14px; font-size: 14px; }
.msg.error { color: var(--danger); }
.hidden { display: none; }
footer { padding-top: 16px; padding-bottom: 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
footer a { color: var(--muted); margin-right: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
td, th { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
