:root {
  --dd-blue:     #2563D4;
  --dd-darkblue: #0E2A5E;
  --dd-sage:     #55734A;
  --dd-bg:       #FAFAF8;
  --dd-white:    #FFFFFF;
  --dd-text:     #1A1A1A;
  --dd-muted:    #666666;
  --dd-border:   #E0E0DC;
  --font-heading: 'DM Sans', Calibri, sans-serif;
  --font-body:    'DM Sans', Calibri, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--dd-bg);
  color: var(--dd-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
header {
  background: var(--dd-white);
  border-bottom: 1px solid var(--dd-border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
header img { height: 36px; width: auto; }
header .brand {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--dd-darkblue);
}
header .divider {
  width: 1px; height: 20px;
  background: var(--dd-border);
  margin: 0 0.5rem;
}
header .client-label {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.15;
}
header .survey-title {
  color: var(--dd-darkblue);
  font-size: 0.9rem;
  font-weight: 600;
}
header .survey-kind {
  color: var(--dd-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Progress bar ── */
.progress-bar-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--dd-border);
  border-radius: 999px;
  overflow: visible;
  height: 5px;
}
.progress-bar-fill {
  height: 100%;
  background: var(--dd-blue);
  border-radius: inherit;
  transition: width 0.35s ease;
}
.progress-bar-label {
  position: absolute;
  top: 9px;
  right: 1.25rem;
  font-size: 0.75rem;
  color: var(--dd-darkblue);
  display: block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.previous-answer {
  font-size: 0.85rem;
  color: var(--dd-darkblue);
  margin: 0.5rem 0 0.5rem 0;
  background: rgba(55,122,255,0.08);
  border-left: 3px solid var(--dd-blue);
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
}

/* ── Main question area ── */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.screen {
  display: none;
  width: 100%;
  max-width: 680px;
  animation: fadeIn 0.15s ease-out;
}
.screen.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Intro / Consent screen */
.intro-card {
  background: var(--dd-white);
  border: 1px solid var(--dd-border);
  border-radius: 14px;
  padding: 2.5rem;
  box-shadow: 0 2px 16px rgba(14,42,94,0.07);
}
.intro-card .tag {
  display: inline-block;
  background: rgba(141,171,127,0.18);
  color: var(--dd-sage);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.intro-card h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--dd-darkblue);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.intro-card p {
  font-size: 0.975rem;
  line-height: 1.7;
  color: var(--dd-text);
  margin-bottom: 1rem;
}
.intro-details {
  margin: 1.25rem 0;
  border-top: 1px solid var(--dd-border);
}
.intro-details details {
  border-bottom: 1px solid var(--dd-border);
  padding: 0.85rem 0;
}
.intro-details summary {
  cursor: pointer;
  color: var(--dd-darkblue);
  font-size: 0.92rem;
  font-weight: 600;
  margin-left: 1rem;
  padding-left: 0.25rem;
}
.intro-details details[open] summary { margin-bottom: 0.65rem; }
.intro-details p {
  color: var(--dd-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 0 1.25rem;
}
.intro-card .meta-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--dd-border);
  border-bottom: 1px solid var(--dd-border);
}
.intro-card .meta-item {
  font-size: 0.85rem;
  color: var(--dd-muted);
}
.intro-card .meta-item strong {
  display: block;
  color: var(--dd-darkblue);
  font-weight: 600;
}

/* Consent checkbox */
.consent-block {
  background: rgba(55,122,255,0.05);
  border: 1px solid rgba(55,122,255,0.2);
  border-radius: 10px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.draft-notice {
  display: none;
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(55,122,255,0.25);
  border-radius: 9px;
  background: rgba(55,122,255,0.06);
  color: var(--dd-darkblue);
  font-size: 0.87rem;
  line-height: 1.5;
}
.draft-notice button {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--dd-blue);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.consent-block label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--dd-text);
}
.consent-block input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--dd-blue);
  cursor: pointer;
}

/* ── Question card ── */
.q-card {
  background: var(--dd-white);
  border: 1px solid var(--dd-border);
  border-radius: 14px;
  padding: 2.5rem;
  box-shadow: 0 2px 16px rgba(14,42,94,0.07);
}
.q-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dd-blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.q-number {
  display: inline-block;
  background: var(--dd-blue);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  margin-right: 0.5rem;
}
.q-block-label {
  font-size: 0.75rem;
  color: var(--dd-sage);
  font-weight: 600;
}
.q-text {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--dd-darkblue);
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin: 0.75rem 0 0.5rem;
}
.q-hint {
  font-size: 0.85rem;
  color: var(--dd-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.section-break-card {
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  text-align: left;
  background: var(--dd-white);
}
.section-break-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--dd-blue);
}
.section-break-number {
  color: var(--dd-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(55, 122, 255, 0.08);
  margin-bottom: 1.25rem;
}
.section-break-copy { max-width: 570px; }
.section-break-card h2 {
  font-family: var(--font-heading);
  color: var(--dd-darkblue);
  font-size: clamp(1.8rem, 5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 0.85rem;
}
.section-break-card p {
  color: var(--dd-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 540px;
  margin: 0;
}
.section-break-nav {
  width: 100%;
  margin-top: 2.25rem;
}

/* Textarea */
textarea {
  width: 100%;
  min-height: 130px;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dd-text);
  border: 1.5px solid var(--dd-border);
  border-radius: 8px;
  background: var(--dd-bg);
  resize: vertical;
  transition: border-color 0.2s;
  line-height: 1.6;
}
textarea:focus {
  outline: none;
  border-color: var(--dd-blue);
  background: var(--dd-white);
}
textarea::placeholder { color: #aaa; }

.open-answer-wrap { margin-top: 1.15rem; }
.open-answer-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  color: var(--dd-darkblue);
  font-size: 0.9rem;
  font-weight: 600;
}
.optional-label {
  color: var(--dd-muted);
  font-size: 0.72rem;
  font-weight: 400;
}
.open-answer-wrap textarea { min-height: 145px; }

.adaptive-overall { margin-bottom: 1.5rem; }
.adaptive-items-title {
  display: block;
  color: var(--dd-darkblue);
  font-size: 0.9rem;
  font-weight: 600;
  padding-bottom: 0.75rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--dd-border);
}
.adaptive-items { margin-top: 0.25rem; }
.adaptive-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--dd-border);
}
.adaptive-item:last-child { border-bottom: 0; }
.adaptive-statement {
  color: var(--dd-text);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0.35rem;
}
.adaptive-answer {
  color: var(--dd-muted);
  font-size: 0.8rem;
  margin-bottom: 0.65rem;
}
.adaptive-answer strong {
  color: var(--dd-darkblue);
  font-weight: 600;
}
.adaptive-comment {
  min-height: 88px;
  background: var(--dd-white);
  font-size: 0.9rem;
}
.adaptive-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
}
.adaptive-comment-toggle {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(55, 122, 255, 0.3);
  border-radius: 8px;
  background: rgba(55, 122, 255, 0.07);
  color: var(--dd-blue);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}
.adaptive-comment-toggle:hover {
  border-color: var(--dd-blue);
  background: rgba(55, 122, 255, 0.11);
}
.adaptive-comment-toggle-icon {
  font-size: 1.1rem;
  line-height: 1;
}
.adaptive-comment-wrap { margin-top: 0.7rem; }
.adaptive-edit-answer {
  min-height: 40px;
  padding: 0.45rem 0.2rem;
  border: 0;
  background: transparent;
  color: var(--dd-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.adaptive-edit-answer:hover { color: var(--dd-darkblue); }
.edit-answer-context {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border-left: 3px solid var(--dd-blue);
  border-radius: 0 7px 7px 0;
  background: rgba(55, 122, 255, 0.06);
  color: var(--dd-darkblue);
  font-size: 0.84rem;
  line-height: 1.45;
}

/* Scale (Likert) */
.scale-wrap {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.scale-btn {
  flex: 1;
  min-width: 44px;
  padding: 0.75rem 0.5rem;
  border: 1.5px solid var(--dd-border);
  border-radius: 8px;
  background: var(--dd-bg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dd-muted);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.scale-btn:hover { border-color: var(--dd-blue); color: var(--dd-blue); }
.scale-btn.selected {
  background: var(--dd-blue);
  border-color: var(--dd-blue);
  color: white;
}
.scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--dd-muted);
  margin-top: 0.25rem;
}
.scale-labels span {
  max-width: 47%;
  line-height: 1.35;
}
.scale-labels span:last-child { text-align: right; }

.other-input-wrap {
  margin-top: 0.4rem;
  padding: 0.75rem 0 0.2rem;
}
.other-input-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--dd-darkblue);
  font-size: 0.84rem;
  font-weight: 600;
}

/* Multi-select checkboxes */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.option-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--dd-border);
  border-radius: 8px;
  background: var(--dd-bg);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dd-text);
  text-align: left;
  user-select: none;
}
.option-item:hover { border-color: var(--dd-blue); background: rgba(55,122,255,0.03); }
.option-item.selected {
  border-color: var(--dd-blue);
  background: rgba(55,122,255,0.07);
  color: var(--dd-darkblue);
  font-weight: 500;
}
.option-item input { display: none; }
.option-check {
  width: 18px; height: 18px;
  border: 2px solid var(--dd-border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.option-item.selected .option-check {
  background: var(--dd-blue);
  border-color: var(--dd-blue);
}
.option-item.selected .option-check::after {
  content: '✓';
  font-size: 11px;
  color: white;
  font-weight: 700;
}
.max-hint {
  font-size: 0.78rem;
  color: var(--dd-muted);
  margin-bottom: 0.75rem;
}

/* Single select (radio style) */
.radio-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.radio-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--dd-border);
  border-radius: 8px;
  background: var(--dd-bg);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dd-text);
  text-align: left;
  user-select: none;
}
.radio-item:hover { border-color: var(--dd-blue); }
.radio-item.selected {
  border-color: var(--dd-blue);
  background: rgba(55,122,255,0.07);
  color: var(--dd-darkblue);
  font-weight: 500;
}
.radio-dot {
  width: 18px; height: 18px;
  border: 2px solid var(--dd-border);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.15s;
}
.radio-item.selected .radio-dot {
  border-color: var(--dd-blue);
  background: var(--dd-blue);
  box-shadow: inset 0 0 0 3px white;
}
.radio-item.response-deemphasized {
  margin-top: 0.3rem;
}
.radio-item.response-deemphasized:not(.selected) {
  border-color: transparent;
  background: transparent;
  color: var(--dd-muted);
  font-size: 0.88rem;
  font-weight: 400;
}
.radio-item.response-deemphasized:not(.selected):hover {
  border-color: var(--dd-border);
  background: rgba(14, 42, 94, 0.025);
}
.compact-radio-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(44px, 1fr));
  gap: 0.5rem;
}
.compact-radio-grid .radio-item {
  min-height: 46px;
  justify-content: center;
  padding: 0.6rem 0.35rem;
  text-align: center;
}
.compact-radio-grid .radio-dot { display: none; }

/* Matrix */
.matrix {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.matrix-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(82px, 0.55fr));
  align-items: stretch;
  border: 1px solid var(--dd-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--dd-bg);
}
.matrix-statement {
  display: flex;
  align-items: center;
  padding: 0.9rem 1rem;
  color: var(--dd-text);
  font-size: 0.9rem;
  line-height: 1.45;
}
.matrix-options { display: contents; }
.matrix-option {
  border: 0;
  border-left: 1px solid var(--dd-border);
  padding: 0.75rem 0.45rem;
  background: var(--dd-white);
  color: var(--dd-muted);
  font-family: var(--font-body);
  font-size: 0.76rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.matrix-option:hover { background: rgba(55,122,255,0.05); color: var(--dd-darkblue); }
.matrix-option-emphasis {
  position: relative;
  z-index: 1;
  margin: 0.3rem;
  border: 1px solid rgba(55, 122, 255, 0.22);
  border-radius: 7px;
  color: var(--dd-darkblue);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(14, 42, 94, 0.08);
}
.matrix-option-private {
  color: var(--dd-muted);
  background: #fbfbfa;
}
.matrix-option-tertiary {
  color: #858585;
  background: transparent;
  font-size: 0.72rem;
}
.matrix-option.selected {
  background: var(--dd-blue);
  color: var(--dd-white);
  font-weight: 600;
}
.matrix-row.edit-target {
  outline: 2px solid rgba(55, 122, 255, 0.5);
  outline-offset: 3px;
}
.matrix-private-all {
  display: inline-flex;
  margin-top: 0.85rem;
  padding: 0.55rem 0;
  border: 0;
  background: transparent;
  color: var(--dd-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.matrix-private-all:hover { color: var(--dd-darkblue); }

/* ── Navigation buttons ── */
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
}
.btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--dd-blue);
  color: white;
}
.btn-primary:hover:not(:disabled) { background: var(--dd-darkblue); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  color: var(--dd-muted);
  border: 1.5px solid var(--dd-border);
}
.btn-ghost:hover { color: var(--dd-darkblue); border-color: var(--dd-darkblue); }

.skip-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.25rem;
  font-size: 0.82rem;
  color: var(--dd-muted);
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  font-family: var(--font-body);
}
.skip-link:hover { color: var(--dd-darkblue); }
.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

/* ── Rank ── */
.rank-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 520px) { .rank-columns { grid-template-columns: 1fr; } }
.rank-col-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dd-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.rank-pool { display: flex; flex-direction: column; gap: 0.4rem; }
.rank-pool-unranked { opacity: 0.85; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--dd-border);
  border-radius: 8px;
  background: var(--dd-bg);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.15s;
  user-select: none;
}
.rank-item:hover { border-color: var(--dd-blue); background: rgba(55,122,255,0.04); }
.rank-badge {
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--dd-border);
  color: var(--dd-muted);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rank-badge-active {
  background: var(--dd-blue);
  color: white;
}
.rank-empty {
  font-size: 0.82rem;
  color: var(--dd-muted);
  font-style: italic;
  padding: 0.5rem 0;
}

/* ── Thank you ── */
.thankyou-card {
  background: var(--dd-white);
  border: 1px solid var(--dd-border);
  border-radius: 14px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 2px 16px rgba(14,42,94,0.07);
}
.thankyou-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.thankyou-card h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--dd-darkblue);
  margin-bottom: 1rem;
}
.thankyou-card p {
  font-size: 0.975rem;
  color: var(--dd-muted);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 1.5rem;
}
.test-mode-notice {
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  background: rgba(55, 122, 255, 0.08);
  color: var(--dd-darkblue) !important;
  font-size: 0.85rem !important;
}

/* Error */
.error-msg {
  font-size: 0.82rem;
  color: #c0392b;
  margin-top: 0.5rem;
}
.question-error {
  display: none;
  margin-top: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  background: #fff5f4;
  color: #a93226;
  font-size: 0.85rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.78rem;
  color: var(--dd-muted);
  border-top: 1px solid var(--dd-border);
}
footer a { color: var(--dd-blue); text-decoration: none; }

:where(button, input, textarea, summary, a):focus-visible {
  outline: 3px solid var(--dd-darkblue);
  outline-offset: 3px;
}
[data-page-heading]:focus { outline: none; }

@media (max-width: 720px) {
  .matrix-row {
    display: block;
    padding: 0.9rem;
  }
  .matrix-statement { padding: 0 0 0.75rem; }
  .matrix-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }
  .matrix-option {
    min-height: 46px;
    border: 1px solid var(--dd-border);
    border-radius: 7px;
  }
}

@media (max-width: 520px) {
  .q-card, .intro-card, .thankyou-card { padding: 1.75rem 1.25rem; }
  .q-text { font-size: 1.25rem; }
  .scale-wrap {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.4rem;
  }
  .scale-btn {
    padding: 0.65rem 0.25rem;
    font-size: 0.9rem;
  }
  .compact-radio-grid { grid-template-columns: repeat(4, minmax(44px, 1fr)); }
  .section-break-card { min-height: 0; }
  .section-break-card h2 { font-size: 1.75rem; }
  .progress-bar-wrap { text-align: right; }
  .progress-bar-label {
    position: static;
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 380px) {
  main { padding-inline: 1rem; }
  .screen { min-width: 0; }
  .question-nav {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 0.65rem;
  }
  .question-nav > .btn-ghost { justify-self: start; }
  .nav-actions {
    width: 100%;
    gap: 0.65rem;
  }
  .question-nav .btn { padding-inline: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .screen { animation: none; }
  .btn,
  .scale-btn,
  .option-item,
  .radio-item,
  .matrix-option,
  .progress-bar-fill,
  .adaptive-comment-toggle {
    transition: none;
  }
}
