:root {
  --bg: #f6f3ee;
  --card: #ffffff;
  --text: #2b2723;
  --muted: #6f665d;
  --line: #e2dbd1;
  --accent: #8a5a2b;
  --accent-soft: #f3e8dc;
  --error: #b3261e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1a18;
    --card: #26231f;
    --text: #efe9e1;
    --muted: #b3a99d;
    --line: #3a352f;
    --accent: #e0a96d;
    --accent-soft: #3a2f24;
    --error: #ff8a80;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 19px/1.6 -apple-system, "PingFang HK", "Noto Sans HK", "Microsoft JhengHei", sans-serif;
}
.wrap { max-width: 640px; margin: 0 auto; padding: 24px 16px 64px; }
.intro h1 { font-size: 1.5em; line-height: 1.3; margin: 4px 0 12px; }
.intro p { margin: 6px 0; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .9em; }
.privacy { color: var(--muted); font-size: .9em; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px;
  margin: 18px 0;
}
.card h2 { font-size: 1.15em; margin: 0 0 4px; }
.section-note { color: var(--muted); margin: 0 0 8px; font-size: .9em; }
.field { display: block; margin: 18px 0 0; }
.q-label { display: block; font-weight: 600; }
.q-num { color: var(--accent); margin-right: 4px; }
.optional { color: var(--muted); font-weight: 400; font-size: .85em; }
.hint { display: block; color: var(--muted); font-size: .88em; margin: 2px 0 6px; }
.opt {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; margin: 6px 0;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt input { width: 22px; height: 22px; margin: 3px 0 0; flex: none; accent-color: var(--accent); }
input[type=text], input:not([type]), textarea, input[type=number] {
  width: 100%; font: inherit; color: inherit; background: transparent;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
textarea { min-height: 96px; resize: vertical; }
.other-input { margin-top: 6px; }
.pct-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.pct-row span { flex: 1; font-size: .92em; }
.pct-row input { width: 88px; flex: none; text-align: right; }
.pct-total { font-size: .9em; color: var(--muted); }
.pct-total.off { color: var(--error); }
.top-pick { margin-top: 10px; padding-top: 6px; border-top: 1px dashed var(--line); }
.error { color: var(--error); font-weight: 600; }
button[type=submit] {
  width: 100%; font: inherit; font-weight: 700; color: #fff; background: var(--accent);
  border: 0; border-radius: 12px; padding: 14px; margin-top: 8px; cursor: pointer;
}
button[disabled] { opacity: .6; cursor: wait; }
.saved-note { color: var(--muted); font-size: .82em; text-align: center; }
.trap { position: absolute; left: -9999px; }
.done { text-align: center; }
.invalid { outline: 2px solid var(--error); outline-offset: 4px; border-radius: 10px; }
