:root {
  --ink: #1f1b16;
  --muted: #4a453e;
  --bg: #f4f1ea;
  --surface: #fffdf8;
  --line: #d4cdc0;
  --accent: #1d6b4f;
  --accent-ink: #fff;
  --danger: #8a2b2b;
  --ok: #1d6b4f;
  --focus: #c45c26;
  --tap: 3.5rem;
}
* { box-sizing: border-box; }
html { font-size: 18px; }
body {
  margin: 0;
  font-family: system-ui, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
a { color: var(--accent); }
.wrap { max-width: 40rem; margin: 0 auto; padding: 1.25rem; }
.wrap--wide { max-width: 52rem; }
.top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: .75rem 1.25rem; background: var(--surface); border-bottom: 1px solid var(--line);
}
.top__brand { font-weight: 700; color: var(--ink); text-decoration: none; }
.top__user, .top__nav { display: flex; gap: .75rem; flex-wrap: wrap; font-size: .95rem; }
h1 { font-size: 1.55rem; line-height: 1.3; margin: 0 0 .6rem; }
h2 { font-size: 1.2rem; }
.lead { color: var(--muted); font-size: 1.05rem; }
.eyebrow { font-weight: 700; color: var(--accent); margin: 0 0 .35rem; }
.help, .hint { color: var(--muted); }
.card, .q { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; }
label, legend { display: block; font-weight: 650; margin: 1rem 0 .4rem; }
input[type=text], input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%; min-height: var(--tap); font-size: 1.1rem; padding: .6rem .75rem;
  border: 2px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus, button:focus, a:focus {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: 0 1.1rem; margin-top: 1rem;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px;
  font-size: 1.1rem; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn--small { min-height: 2.75rem; font-size: 1rem; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.choices { display: flex; flex-direction: column; gap: .5rem; }
.choice, .check {
  display: flex; align-items: flex-start; gap: .6rem;
  min-height: var(--tap); padding: .65rem .75rem; border: 2px solid var(--line);
  border-radius: 8px; background: #fff; font-weight: 500;
}
.choice input, .check input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; flex: 0 0 auto; }
.choice:has(input:checked), .likert__opt:has(input:checked) {
  border-color: var(--accent); background: #e7f3ed;
}
.muted { opacity: .92; background: #f6f3ec; }
.likert { display: flex; flex-direction: column; gap: .5rem; }
.likert__opt {
  display: flex; align-items: center; gap: .75rem;
  min-height: var(--tap); padding: .5rem .75rem; border: 2px solid var(--line);
  border-radius: 8px; background: #fff;
}
.likert__n { font-size: 1.4rem; font-weight: 800; width: 2rem; text-align: center; }
.likert__l { color: var(--muted); }
.likert--row { flex-direction: row; flex-wrap: wrap; }
.bar { height: 10px; background: #e5dfd3; border-radius: 99px; overflow: hidden; margin-bottom: 1rem; }
.bar span { display: block; height: 100%; background: var(--accent); }
.hp { position: absolute; left: -9999px; }
.is-hidden { display: none; }
.ok { color: var(--ok); font-weight: 700; }
.err { color: var(--danger); font-weight: 700; }
.consent { white-space: pre-wrap; background: #fff; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; }
.table-wrap { overflow-x: auto; }
.plain { width: 100%; border-collapse: collapse; }
.plain th, .plain td { text-align: left; padding: .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.chips a { padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink); }
.chips a.is-on { background: var(--accent); color: #fff; border-color: var(--accent); }
.fast-q { margin: 1.25rem 0; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) {
  .likert { flex-direction: row; flex-wrap: wrap; }
  .likert__opt { flex: 1 1 5.5rem; flex-direction: column; text-align: center; }
}
@media print {
  .top, .btn, nav { display: none !important; }
  body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
