:root {
  color-scheme: light;
  --bg: #f4f4f1; --surface: #fcfcfb; --border: #e4e3de; --field: #ffffff;
  --text: #0b0b0b; --text-2: #52514e; --muted: #8a8984;
  --accent: #0b0b0b; --accent-ink: #ffffff; --focus: #2a78d6; --good: #008300; --bad: #c62f2f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111110; --surface: #1a1a19; --border: #2c2c2a; --field: #141413;
    --text: #f0efec; --text-2: #c3c2b7; --muted: #8f8e88;
    --accent: #f0efec; --accent-ink: #111110; --focus: #3987e5; --good: #2fa52f; --bad: #e66767;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111110; --surface: #1a1a19; --border: #2c2c2a; --field: #141413;
  --text: #f0efec; --text-2: #c3c2b7; --muted: #8f8e88;
  --accent: #f0efec; --accent-ink: #111110; --focus: #3987e5; --good: #2fa52f; --bad: #e66767;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 640px; margin: 0 auto; padding: 28px 16px 64px; }
.brand { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 4px 0 6px; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.lede { color: var(--text-2); margin: 0 0 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-bottom: 12px; }
.card h2 { margin: 0 0 14px; font-size: 16px; font-weight: 600; }
.card h2 span { color: var(--muted); font-weight: 500; margin-right: 6px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row.three { grid-template-columns: 1fr 1fr 1fr; }
.field { margin-bottom: 14px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
label, .label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; margin-top: -2px; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--field);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; font-weight: 400; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--field); cursor: pointer; font-size: 14px; user-select: none; }
.chips input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chips input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--text-2); }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.btn { display: inline-block; width: 100%; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 12px; padding: 14px 18px; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; text-align: center; text-decoration: none; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.error { color: var(--bad); font-size: 14px; margin: 10px 0 0; min-height: 1em; }
.done { text-align: center; padding: 32px 20px; }
.done .tick { width: 48px; height: 48px; border-radius: 50%; background: var(--good); color: #fff; display: grid; place-items: center; margin: 0 auto 12px; font-size: 24px; }
.linkbox { display: flex; gap: 8px; margin: 16px 0; }
.linkbox input { flex: 1; font-size: 13px; }
.linkbox button { flex: none; width: auto; padding: 10px 14px; font-size: 14px; }
@media (max-width: 520px) { .row, .row.three { grid-template-columns: 1fr; } h1 { font-size: 24px; } }
