/* Parser post-submit qualification flow built on Parser brand tokens (new.css). */
:root { color-scheme: dark; }
[hidden] { display: none !important; }

.hero.asking { justify-content: flex-start; padding-bottom: 24px; }
#headline[tabindex="-1"]:focus { outline: none; }
.hero .survey { margin-top: 0; }
.hero.asking .survey { display: flex; flex-direction: column; }
.survey .q { position: relative; flex: 1; display: flex; flex-direction: column; outline: none; }
.survey .acts { margin-top: auto; padding-top: 20px; }

body.on-list .joined { margin-bottom: -44px; }
.survey { position: relative; }

/* Razor-thin Parser Blue progress bar for completion momentum */
.survey .sv-prog { width: 100%; height: 2px; margin: 0 0 18px; border-radius: 2px; background: var(--line); overflow: hidden; }
.survey .sv-bar { width: 20%; height: 100%; background: var(--brand, #1E71C9); border-radius: 2px; transition: width .32s var(--ease, cubic-bezier(.2,.7,.2,1)); }

/* Close button sits cleanly beside the question heading at every viewport height */
.survey .quiet.close { position: absolute; top: 18px; right: -6px; width: 28px; height: 28px; padding: 0; justify-content: center; }
.survey .close svg { width: 14px; height: 14px; }
.survey .qbody h2 { padding-right: 30px; }
.survey .q.locked { pointer-events: none; }

.survey .ask { display: flex; flex-direction: column; gap: 6px; }
.survey .qbody { display: flex; flex-direction: column; gap: 18px; min-height: var(--q-min, 0px); }
.survey .opts { display: flex; flex-direction: column; gap: 6px; }
.survey .opt {
  position: relative; display: flex; align-items: center; width: 100%; min-height: 38px; margin: 0;
  padding: 9px 36px 9px 14px; border: 1px solid transparent; border-radius: 10px;
  background: var(--fill); color: var(--ink); font-family: inherit; font-size: var(--t14);
  font-weight: 430; line-height: var(--l20); letter-spacing: -.15px; text-align: left; cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) { .survey .opt:hover { background: var(--fill-2); border-color: var(--line); } }
.survey .opt:active {
  background: var(--brand-soft, #EBF2FB);
  border-color: color-mix(in srgb, var(--brand, #1E71C9) 55%, transparent);
  transform: scale(0.985);
}
.survey .opt.on {
  background: var(--brand-soft, #152537);
  border-color: color-mix(in srgb, var(--brand, #1E71C9) 55%, transparent);
}
.survey .opt:focus-visible, .survey .quiet:focus-visible { outline: 2px solid var(--button-ring); outline-offset: 2px; }
.survey .opt span { text-wrap: pretty; }
.survey .opt .tick {
  position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  color: var(--brand, #1E71C9); opacity: 0; transform: scale(.85);
  transition: opacity 150ms ease, transform 180ms var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}
.survey .opt.on .tick { opacity: 1; transform: none; }

/* Final fast-track step: 1-tap autofill cell input + concise optional note */
.survey .fast-track { display: flex; flex-direction: column; gap: 10px; }
.survey .answer-input, .survey .answer-text {
  box-sizing: border-box; display: block; width: 100%; margin: 0; border: 1px solid var(--line);
  border-radius: 10px; background: var(--fill); color: var(--ink); font: inherit;
  font-size: var(--t14); line-height: 1.5; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.survey .answer-input { height: 40px; padding: 0 12px; }
.survey .answer-text { min-height: 104px; padding: 11px 12px; resize: vertical; }
.survey .answer-input::placeholder, .survey .answer-text::placeholder { color: var(--faint); }
.survey .answer-input:focus-visible, .survey .answer-text:focus-visible {
  outline: none;
  background: color-mix(in srgb, var(--brand, #1E71C9) 6%, var(--fill-3));
  border-color: color-mix(in srgb, var(--brand, #1E71C9) 60%, transparent);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--brand, #1E71C9) 35%, transparent);
}

.survey .acts { display: flex; align-items: center; gap: 4px; }
.survey .acts .grow { flex: 1; }
.survey .count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.survey .quiet {
  position: relative; display: inline-flex; align-items: center; height: 32px; margin: 0; padding: 0 10px;
  border: 0; border-radius: 8px; background: none; color: var(--muted); font-family: inherit;
  font-size: var(--t14); font-weight: 470; line-height: var(--l20); cursor: pointer;
  transition: color .15s; -webkit-tap-highlight-color: transparent;
}
.survey .quiet::before { content: ""; position: absolute; inset: -6px 0; }
.survey .quiet:hover { color: var(--ink); }

@media (max-width: 559px), (max-width: 899px) and (min-height: 501px), (orientation: portrait) and (max-width: 1100px) {
  .survey .quiet.close { top: 18px; height: 32px; }
  body.on-list .joined { margin-bottom: -36px; }
  body.sv-tight .art-slot, body.sv-tight #site-foot { display: none; }
  .survey .opt { min-height: 44px; }
  .survey .answer-input, .survey .answer-text { font-size: 16px; }
  .survey .acts .button, .survey .acts .skip, .survey .acts .back-btn { height: 40px; }
  body.sv-moving .art-slot { transition: height .5s var(--ease), width .5s var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  .survey .opt { transition: background-color 150ms ease, border-color 150ms ease; }
  .survey .opt:active { transform: none; }
  .survey .opt .tick, .survey .quiet, .survey .sv-bar { transition: none; }
  body.sv-moving .art-slot { transition: none; }
}
