/* Participant, landing and login pages: mobile first, one column, max 560px. */
:root {
  --ink: #1e2a3b;
  --muted: #4a5568;
  --accent: #3949c4;
  --accent-soft: #eef0fd;
  --line: #c9cede;
  --ok: #1d6b3a;
  --err: #a12a24;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.45;
}
* { box-sizing: border-box; }
body.participant { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.screen { width: 100%; max-width: 560px; margin: 0 auto; padding: 24px 20px 32px; flex: 1; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 8px 0 16px; }
h1:focus { outline: none; }
h2 { font-size: 1.15rem; margin: 24px 0 8px; }
.intro { font-size: 1.1rem; color: var(--muted); }

button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.primary, .secondary {
  min-height: 48px; padding: 10px 24px; border-radius: 10px; border: 2px solid var(--accent);
  font-weight: 600; cursor: pointer;
}
.primary { background: var(--accent); color: #fff; }
.secondary { background: #fff; color: var(--accent); }
.primary:disabled { background: #b8bdd9; border-color: #b8bdd9; color: #1e2a3b; cursor: not-allowed; }
.link { min-height: 44px; padding: 8px 12px; background: none; border: 0; color: var(--accent); text-decoration: underline; cursor: pointer; }

.stack { display: flex; flex-direction: column; gap: 12px; }
.stack label { font-weight: 600; }
input[type="text"], input[type="password"], input:not([type]), textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: #fff;
}
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible { border-color: var(--accent); }

/* question screen */
.step { margin: 0; font-weight: 600; color: var(--muted); }
progress { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 4px; background: var(--accent-soft); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--accent-soft); }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
.field { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.counter { font-size: 0.9rem; color: var(--muted); }
.hint { color: var(--muted); margin: -8px 0 12px; }
.hint:empty { display: none; }
.actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.actions[hidden] { display: none; }
.message { min-height: 1.5em; font-weight: 600; margin: 8px 0; }
.message.success { color: var(--ok); }
.message.info { color: var(--ink); }
.message.error, .error { color: var(--err); font-weight: 600; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 14px;
  border: 2px solid var(--line); border-radius: 12px; cursor: pointer;
}
.option input { width: 24px; height: 24px; flex: none; accent-color: var(--accent); margin: 0; }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option:has(input:disabled) { opacity: 0.6; cursor: not-allowed; }
.option:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.option input:focus-visible { outline: none; }

.scale-steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.scale-step { position: relative; }
.scale-step input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.scale-step span {
  display: flex; align-items: center; justify-content: center; min-height: 64px;
  border: 2px solid var(--line); border-radius: 12px; font-size: 1.5rem; font-weight: 700;
}
.scale-step input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.scale-step input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.scale-labels { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; color: var(--muted); }
.scale-labels span:last-child { text-align: right; }

.skipped ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.skipped li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }

.privacy { padding: 16px 20px; border-top: 1px solid var(--line); background: #f6f7fa; font-size: 0.9rem; color: var(--muted); }
.privacy p { max-width: 560px; margin: 0 auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
