:root {
  --bg: #f6f7f9; --surface: #fff; --text: #1c2024; --muted: #60646c; --border: #d9dce1;
  --accent: #0b6e4f; --accent-text: #fff; --error: #b42318; --error-bg: #fdecea; --ok-bg: #e7f5ee;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111315; --surface: #1a1d20; --text: #eceef0; --muted: #a0a6ad; --border: #2e3338;
    --accent: #3fb68b; --accent-text: #0b1210; --error: #ff8a80; --error-bg: #3a1714; --ok-bg: #12291f; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.top { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.top nav { display: flex; gap: .75rem; }
.brand { font-weight: 700; letter-spacing: .02em; }
main { max-width: 40rem; margin: 0 auto; padding: 1.5rem 1rem 2rem; }
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.1rem; margin: 1rem 0; }
label { display: block; font-weight: 600; margin: .5rem 0 .25rem; }
label.choice { font-weight: 400; display: flex; gap: .5rem; align-items: center; margin: .3rem 0; }
label.small, .small { font-size: .85rem; color: var(--muted); font-weight: 400; }
input[type=email], textarea, input[type=file] { width: 100%; padding: .55rem .6rem; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; }
fieldset { border: 0; border-top: 1px solid var(--border); padding: .75rem 0 .5rem; margin: 0; }
fieldset:first-of-type { border-top: 0; }
legend { font-weight: 600; padding: 0; }
button, .button { display: inline-block; margin-top: .75rem; padding: .6rem 1rem; border: 0; border-radius: 6px; background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.button--quiet { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
button.link { background: none; color: var(--accent); padding: 0; margin: 0; font-weight: 500; }
form.inline { display: inline; margin: 0; }
.msg { padding: .7rem .9rem; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }
.msg--error { background: var(--error-bg); border-color: var(--error); color: var(--text); }
.msg--ok { background: var(--ok-bg); }
footer { max-width: 40rem; margin: 0 auto; padding: 0 1rem 2rem; font-size: .8rem; color: var(--muted); }
a { color: var(--accent); }
