:root {
  --bg: #f4f1ea; --card: #fffdf8; --ink: #1d2a24; --muted: #5b6a62;
  --line: #d9d3c5; --accent: #1f5f4a; --accent-ink: #fff; --bad: #b3261e; --gold: #f2c230;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.top {
  background: var(--accent); color: #fff; padding: 28px 20px;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  border-bottom: 5px solid var(--gold);
}
.target { width: 64px; height: 64px; flex: none; }
.top h1 { margin: 0; font-size: 1.6rem; line-height: 1.2; }
.top p { margin: 2px 0 0; opacity: .85; }
main { max-width: 680px; margin: 0 auto; padding: 22px 16px 60px; }
.intro, .note { color: var(--muted); }
.thanks {
  background: #e3f1e9; border: 1px solid #b6d8c5; border-radius: 10px;
  padding: 12px 16px; font-weight: 600; margin: 0 0 14px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px; margin: 0 0 16px; min-width: 0;
}
.card h2, legend { font-size: 1.08rem; font-weight: 650; margin: 0 0 12px; padding: 0; line-height: 1.35; }
fieldset.q legend { float: left; width: 100%; }
fieldset.q legend + * { clear: both; }
.num {
  display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; margin-right: .55em;
  border-radius: 50%; background: var(--accent); color: #fff; font-size: .82em;
}
.q.missing { border-color: var(--bad); box-shadow: 0 0 0 2px rgba(179, 38, 30, .15); }
.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { flex: 1 1 120px; position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: block; text-align: center; padding: 12px 10px; border: 2px solid var(--line);
  border-radius: 10px; background: #fff; font-weight: 600;
}
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
textarea {
  width: 100%; font: inherit; color: inherit; padding: 10px 12px; border: 2px solid var(--line);
  border-radius: 10px; background: #fff; resize: vertical;
}
textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--accent); }
button {
  width: 100%; font: inherit; font-weight: 700; padding: 15px; border: 0; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); cursor: pointer;
}
button:disabled { opacity: .6; cursor: default; }
button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.error { color: var(--bad); font-weight: 600; min-height: 1.5em; margin: 4px 0 10px; }

.bar { margin: 0 0 12px; }
.bar:last-child { margin-bottom: 0; }
.bar-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; margin-bottom: 4px; }
.val { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.track { height: 14px; background: #e9e4d8; border-radius: 7px; overflow: hidden; }
.fill { height: 100%; background: var(--accent); border-radius: 7px; min-width: 0; }
.quotes { list-style: none; margin: 0; padding: 0; }
.quotes li {
  border-left: 4px solid var(--gold); padding: 6px 0 6px 12px; margin: 0 0 10px;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.quotes li:last-child { margin-bottom: 0; }
.people { list-style: none; margin: 0; padding: 0; }
.people li {
  display: flex; justify-content: space-between; gap: 12px; padding: 7px 0;
  border-bottom: 1px solid var(--line); overflow-wrap: anywhere;
}
.people li:last-child { border-bottom: 0; }
.people .status { color: var(--muted); white-space: nowrap; }
.people .done .status { color: var(--accent); font-weight: 700; }
