/* ───────────────────────────────────────────────────────────────────────────
   NormsAI onboarding — form styles
   Brand colour: change --accent (and the dark-mode --accent below).
   ─────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --accent: #4f46e5;
  --accent-ink: #ffffff;
  --bg: #fbfbfa;
  --surface: #ffffff;
  --text: #17171c;
  --muted: #5f5f6b;
  --faint: #8e8e99;
  --border: #e3e3e8;
  --danger: #d92d20;
  --danger-text: #b42318;
  --success: #067647;

  --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
  --accent-softer: color-mix(in srgb, var(--accent) 4%, var(--surface));
  --accent-line: color-mix(in srgb, var(--accent) 30%, transparent);
  --danger-soft: color-mix(in srgb, var(--danger) 9%, transparent);

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --topbar-h: 60px;
  --indent: 46px;
  --input-size: clamp(1.25rem, 1.12rem + 0.55vw, 1.5rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #8d89ff;
    --accent-ink: #0d0d12;
    --bg: #0d0d10;
    --surface: #16161b;
    --text: #f0f0f3;
    --muted: #a6a6b1;
    --faint: #73737e;
    --border: #2a2a33;
    --danger: #ff7b70;
    --danger-text: #ff8f86;
    --success: #47cd89;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); }
kbd { font-family: inherit; font-weight: 600; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1:focus, h1:focus-visible { outline: none; }

/* ─── progress + top bar ───────────────────────────────────────────────── */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 40;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.progress-fill {
  height: 100%; width: 0; background: var(--accent);
  border-radius: 0 3px 3px 0;
  transition: width .5s cubic-bezier(.2, .8, .2, 1);
}

.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 4px max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; letter-spacing: -0.01em; font-size: 1rem; }
.brand-dot {
  width: 11px; height: 11px; border-radius: 3.5px; background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.topbar-right { display: flex; align-items: center; gap: 14px; font-size: .8125rem; color: var(--muted); min-width: 0; }
.counter { font-variant-numeric: tabular-nums; font-weight: 550; color: var(--text); }
.save-status, .upload-status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.save-status[data-state="saved"] svg { color: var(--success); }
.save-status[data-state="offline"] { color: var(--danger); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.spin {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--accent-line); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-btn {
  background: none; border: 0; padding: 4px 2px; cursor: pointer;
  color: var(--accent); font-weight: 560; font-size: inherit;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: var(--accent-line);
}
.link-btn:hover { text-decoration-color: currentColor; }
.link-btn.danger { color: var(--danger); text-decoration-color: color-mix(in srgb, var(--danger) 40%, transparent); }

/* ─── stage & transitions ──────────────────────────────────────────────── */
.stage { min-height: calc(100vh - var(--topbar-h)); min-height: calc(100dvh - var(--topbar-h)); display: flex; }
.screen {
  width: 100%; max-width: 740px; margin: auto;
  padding: 28px 28px 72px;
  transition: opacity .3s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.screen.enter { opacity: 0; transform: translateY(28px); transition: none; }
.screen.enter.from-top { transform: translateY(-28px); }
.screen.leave { opacity: 0; transform: translateY(-20px); transition-duration: .15s, .15s; }
.screen.leave.to-bottom { transform: translateY(20px); }
.screen.loading { display: grid; place-items: center; min-height: 50vh; }
.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--accent-soft); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}

/* ─── question header ──────────────────────────────────────────────────── */
.q-head {
  display: grid;
  grid-template-columns: var(--indent) minmax(0, 1fr);
  margin-bottom: 28px;
}
.q-head > * { grid-column: 2; }
.q-num {
  grid-column: 1; grid-row: 1;
  display: inline-flex; align-items: center; gap: 3px; height: fit-content;
  margin-top: .5em;
  font-size: .9375rem; font-weight: 650; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.q-title {
  margin: 0;
  font-size: clamp(1.375rem, 1.06rem + 1.25vw, 1.9rem);
  line-height: 1.3; font-weight: 560; letter-spacing: -0.017em;
  text-wrap: balance;
}
.req { color: var(--accent); margin-left: 4px; font-weight: 500; }
.q-help { margin: 10px 0 0; color: var(--muted); font-size: 1.0625rem; line-height: 1.55; text-wrap: pretty; }
.q-example {
  margin: 12px 0 0; padding: 10px 14px;
  font-size: .9375rem; line-height: 1.5; color: var(--muted);
  background: var(--accent-softer);
  border-left: 3px solid var(--accent-line);
  border-radius: 0 10px 10px 0;
}

.steps {
  margin: 18px 0 0; padding: 16px 18px 18px;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px;
}
.steps-title { margin: 0 0 12px; font-weight: 620; font-size: .9375rem; }
.steps ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 11px;
  font-size: .9375rem; line-height: 1.5;
}
.steps li::before {
  content: counter(step);
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-size: .75rem; font-weight: 700;
}
.video-link {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 14px; padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 620; font-size: .9375rem; text-decoration: none;
  box-shadow: 0 6px 18px -8px var(--accent);
  transition: filter .15s, transform .1s;
}
.video-link:hover { filter: brightness(1.07); }
.video-link:active { transform: translateY(1px); }
.video-link .play {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent-ink) 20%, transparent);
}

/* ─── fields ───────────────────────────────────────────────────────────── */
.q-body, .actions-wrap { margin-left: var(--indent); }
.field + .field { margin-top: 26px; }
.field-label { display: block; margin-bottom: 8px; font-size: .9375rem; font-weight: 600; color: var(--text); }

.input-row {
  display: flex; align-items: baseline; gap: 2px;
  border-bottom: 2px solid var(--accent-line);
  transition: border-color .15s;
}
.input-row:focus-within { border-bottom-color: var(--accent); }
.invalid > .input-row, .reveal.invalid .input-row { border-bottom-color: var(--danger); }
.prefix { font-size: var(--input-size); color: var(--muted); padding: 8px 0 10px; }
.text-input {
  flex: 1; min-width: 0; width: 100%;
  border: 0; background: transparent; outline: none; border-radius: 0;
  padding: 8px 0 10px;
  font-size: var(--input-size); line-height: 1.35;
}
.text-input::placeholder { color: color-mix(in srgb, var(--accent) 42%, transparent); opacity: 1; }
@media (prefers-color-scheme: dark) { .text-input::placeholder { color: color-mix(in srgb, var(--accent) 52%, transparent); } }

.textarea {
  display: block; width: 100%; min-height: 136px; resize: none; overflow-y: hidden;
  padding: 14px 16px;
  font-size: 1.0625rem; line-height: 1.6;
  background: var(--surface);
  border: 1.5px solid var(--border); border-radius: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.textarea:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.textarea::placeholder { color: var(--faint); opacity: 1; }
.invalid > .textarea { border-color: var(--danger); }
.kbd-hint { margin-top: 8px; font-size: .78rem; color: var(--muted); }
@media (pointer: coarse) { .kbd-hint, .enter-hint { display: none; } }
.kbd-hint kbd, .enter-hint kbd {
  display: inline-block; padding: 0 5px; border-radius: 4px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: .72rem; line-height: 1.5; color: var(--muted);
}

/* options */
.options { display: grid; gap: 10px; max-width: 580px; }
.option {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 12px 14px;
  text-align: left; cursor: pointer; color: var(--text);
  background: var(--accent-softer);
  border: 1px solid var(--accent-line); border-radius: 10px;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .08s;
}
.option:hover { background: var(--accent-soft); }
.option:active { transform: scale(.996); }
.option[aria-checked="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.option .key {
  flex: none; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--surface); color: var(--accent);
  border: 1px solid var(--accent-line);
  font-size: .75rem; font-weight: 700;
  transition: background .15s, color .15s;
}
.option[aria-checked="true"] .key { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.option-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.option-label { font-size: 1.0625rem; font-weight: 560; line-height: 1.35; }
.option-desc { font-size: .9rem; line-height: 1.45; color: var(--muted); }
.option .check { flex: none; color: var(--accent); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s; }
.option[aria-checked="true"] .check { opacity: 1; transform: none; }
.option.blink { animation: blink .38s ease 1; }
@keyframes blink { 25%, 75% { background: var(--accent-softer); } 50% { background: var(--accent-soft); } }
.invalid .option { border-color: color-mix(in srgb, var(--danger) 45%, transparent); }

.reveal {
  margin: 8px 0 6px 38px; padding: 14px 16px 12px;
  background: var(--surface);
  border-left: 2px solid var(--accent); border-radius: 0 12px 12px 0;
  box-shadow: 0 1px 0 var(--border);
  animation: reveal-in .25s ease both;
}
.reveal .text-input { font-size: 1.125rem; padding: 6px 0 8px; }
.reveal .field-label { font-weight: 560; color: var(--muted); }
@keyframes reveal-in { from { opacity: 0; transform: translateY(-6px); } }

/* uploads */
.dropzone {
  width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 26px 20px;
  text-align: center; cursor: pointer; color: var(--text);
  background: var(--accent-softer);
  border: 1.5px dashed var(--accent-line); border-radius: 16px;
  transition: background .15s, border-color .15s;
}
.dropzone:hover, .dropzone.dragging { background: var(--accent-soft); border-color: var(--accent); }
.dropzone.dragging { border-style: solid; }
.dz-icon {
  width: 42px; height: 42px; margin-bottom: 8px;
  display: grid; place-items: center;
  border-radius: 12px; color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--accent-line), 0 2px 6px -2px rgba(20, 20, 40, .12);
}
.dz-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dz-title { font-weight: 600; }
.dz-title u { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.dz-sub { font-size: .8125rem; color: var(--muted); }
.dropzone.compact { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 14px; text-align: left; border-radius: 12px; }
.dropzone.compact .dz-icon { width: 36px; height: 36px; margin: 0; border-radius: 10px; flex: none; }
.dropzone.compact .dz-title { font-weight: 560; font-size: .9375rem; }

.file-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.file-list:empty, .upload-errors:empty { display: none; }
.file-row {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 9px 8px 9px 10px;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
  animation: reveal-in .2s ease both;
}
.file-thumb {
  width: 42px; height: 42px; border-radius: 9px; overflow: hidden;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-size: .66rem; font-weight: 750; letter-spacing: .03em; text-transform: uppercase;
}
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-main { display: flex; flex-direction: column; min-width: 0; }
.file-name { font-size: .9375rem; font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { display: flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.file-meta .ok { display: inline-flex; align-items: center; gap: 3px; color: var(--success); font-weight: 560; }
.file-bar { display: block; height: 4px; margin-top: 6px; border-radius: 2px; background: var(--border); overflow: hidden; }
.file-bar > span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 2px; transition: width .25s ease; }
.file-row.is-error { border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.file-row.is-error .file-meta { color: var(--danger); }
.file-actions { display: flex; gap: 2px; }
.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--accent-soft); color: var(--text); }
.upload-errors { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.upload-errors li { display: flex; gap: 7px; align-items: flex-start; font-size: .875rem; color: var(--danger-text); }
.upload-errors svg { flex: none; margin-top: 2px; }
.consent { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.consent svg { flex: none; margin-top: 2px; }

/* errors */
.q-error {
  display: none; align-items: flex-start; gap: 8px;
  width: fit-content; max-width: 100%;
  margin-top: 10px; padding: 7px 12px;
  border-radius: 8px;
  background: var(--danger-soft); color: var(--danger-text);
  font-size: .9375rem; font-weight: 520; line-height: 1.45;
}
.q-error.show { display: flex; }
.q-error svg { flex: none; margin-top: 2px; }
.shake { animation: shake .42s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

/* ─── buttons & actions ───────────────────────────────────────────────── */
.actions { display: flex; align-items: center; gap: 10px; margin-top: 34px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border: 0; border-radius: 10px; cursor: pointer;
  font-size: 1.0625rem; font-weight: 620; white-space: nowrap;
  transition: filter .15s, transform .08s, background .15s, opacity .15s, color .15s;
}
.btn:active:not([disabled]) { transform: translateY(1px); }
.btn:focus-visible { outline-offset: 3px; }
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 1px 2px rgba(16, 16, 32, .14), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.btn-primary:hover:not([disabled]) { filter: brightness(1.07); }
.btn-secondary { background: var(--accent-soft); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--muted); padding: 0 14px 0 10px; }
.btn-ghost:hover { background: var(--accent-soft); color: var(--text); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 1.125rem; border-radius: 12px; }
.btn[disabled] { cursor: progress; opacity: .85; }
.btn.is-busy svg { display: none; }
.btn.is-busy::after {
  content: ''; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent-ink) 35%, transparent); border-top-color: var(--accent-ink);
  animation: spin .8s linear infinite;
}
.enter-hint { font-size: .8125rem; color: var(--muted); margin-left: 4px; }
.actions-wrap .q-error { margin-top: 14px; }

/* ─── welcome & thanks ─────────────────────────────────────────────────── */
.welcome-icon {
  width: 58px; height: 58px; margin-bottom: 28px;
  display: grid; place-items: center;
  border-radius: 17px; color: var(--accent-ink);
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 80%, #fff) 0%, var(--accent) 55%);
  box-shadow: 0 14px 32px -12px var(--accent);
}
.welcome h1, .thanks h1 {
  margin: 0 0 18px;
  font-size: clamp(2.05rem, 1.35rem + 2.7vw, 3.15rem);
  line-height: 1.08; font-weight: 680; letter-spacing: -0.032em;
  text-wrap: balance;
}
.welcome-body p {
  margin: 0 0 12px; max-width: 33em;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55; color: var(--muted);
  text-wrap: pretty;
}
.welcome-body p:first-child { color: var(--text); }
.welcome .actions { margin-top: 32px; }
.welcome .q-error { margin-top: 14px; }
.welcome-small { margin: 22px 0 0; max-width: 42em; font-size: .875rem; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.welcome-meta {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 22px 0 0; padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: .8125rem; line-height: 1.5; color: var(--muted);
}
.welcome-meta svg { color: var(--success); flex: none; margin-top: 1px; }
.welcome-meta svg.warn { color: var(--danger); }
.welcome-meta .link-btn { padding: 0; }

.thanks { text-align: center; }
.thanks-check {
  width: 76px; height: 76px; margin: 0 auto 26px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 10px var(--accent-soft), 0 18px 40px -14px var(--accent);
  animation: pop .55s cubic-bezier(.2, 1.5, .4, 1) .1s both;
}
.thanks > p { max-width: 30em; margin: 0 auto; font-size: 1.125rem; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.thanks .thanks-again { margin-top: 24px; font-size: .9375rem; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* ─── dialog ───────────────────────────────────────────────────────────── */
.modal {
  width: min(520px, calc(100vw - 32px)); padding: 0;
  border: 0; border-radius: 18px;
  background: var(--surface); color: var(--text);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45);
}
.modal::backdrop { background: rgba(12, 12, 22, .5); }
.modal-inner { padding: 24px; }
.modal h2 { margin: 0 0 10px; font-size: 1.3rem; letter-spacing: -0.01em; }
.modal p { margin: 0 0 10px; font-size: .9375rem; line-height: 1.55; color: var(--muted); }
.copy-row { display: flex; gap: 8px; margin: 16px 0 10px; }
.copy-row input {
  flex: 1; min-width: 0; height: 44px; padding: 0 12px;
  font-size: .8125rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
}
.copy-row .btn { height: 44px; padding: 0 16px; font-size: .9375rem; }
.modal .modal-note { font-size: .8rem; color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.modal-actions .btn { height: 44px; font-size: 1rem; }

.noscript { padding: 40px 24px; text-align: center; }

/* ─── small screens ────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  :root { --topbar-h: 54px; --indent: 0px; }
  .screen { padding: 14px 20px 44px; }
  .q-screen { margin-top: 0; padding-top: 28px; } /* keep questions near the top, clear of the keyboard */
  .q-head { display: block; margin-bottom: 22px; }
  .q-num { display: flex; margin: 0 0 8px; font-size: .875rem; }
  .q-help { font-size: 1rem; }
  .topbar-right { gap: 12px; }
  .save-status .label, .upload-status .label { display: none; }
  .reveal { margin-left: 0; }
  .actions { gap: 8px; margin-top: 28px; flex-wrap: nowrap; }
  .actions .next-btn { flex: 1; }
  .actions .back-btn { padding: 0 12px 0 8px; }
  .welcome .actions .btn { flex: 1; }
  .welcome-icon { width: 50px; height: 50px; border-radius: 15px; margin-bottom: 22px; }
  .dropzone:not(.compact) { padding: 22px 16px; }
  .steps { padding: 14px 14px 16px; }
}
@media (max-width: 360px) {
  .topbar-right .counter { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
