.survey-page {
  --sheet-line: oklch(.88 .005 255);
  --sheet-wash: oklch(.965 .006 255);
  background: var(--sheet-wash);
}

.survey-page .survey-layout {
  display: block;
  max-width: 1080px;
  padding: 32px 24px 68px;
}

.survey-page .survey-heading {
  margin: 0 0 18px;
  padding: 0 0 15px;
  border-bottom: 1px solid var(--sheet-line);
}

.survey-page .survey-heading h1 {
  max-width: none;
  font-size: 25px;
  text-wrap: initial;
}

.survey-page .survey-heading p { margin-top: 5px; }

.survey-workspace {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.survey-page .section-nav { gap: 0; }
.survey-page .section-nav button {
  justify-content: space-between;
  padding-inline: 10px;
  border-bottom: 1px solid var(--sheet-line);
  border-radius: 0;
}

.survey-page .section-nav button.active {
  background: var(--bg);
  color: var(--ink);
}

.survey-page .sidebar-foot { margin-top: 10px; padding: 0 10px; border-top: 0; }
.survey-page .form-panel {
  padding: 0 22px;
  border-color: var(--sheet-line);
  border-radius: 4px;
}

.survey-page .section-heading { padding: 13px 0; }
.survey-page .section-heading h2 { font-size: 18px; }
.survey-page .question { padding: 16px 0; }
.survey-page .question-title { margin-bottom: 8px; }
.survey-page .question-title[aria-describedby] { scroll-margin-top: 16px; }
.survey-page .question.has-error .question-error {
  display: block;
  margin: 0 0 10px;
  padding: 7px 9px;
  border-radius: 4px;
  background: oklch(.965 .027 26);
  font-size: 14px;
}
.survey-page .question-hint { margin: 0 0 8px; }
.survey-page .optional { font-size: 13px; font-weight: 400; color: var(--muted); }
.survey-page .derived-answer { margin: 0; line-height: 1.9; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.survey-page .matrix-row.choice-field { grid-template-columns: minmax(0,1fr) auto; gap: 12px; border-bottom: 1px solid var(--sheet-line); }
.survey-page .choice-field:last-child { border-bottom: 0; }
.survey-page .choice-field > span { font-size: 15px; }
.survey-page .field-choices { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.survey-page .field-choices label { display: inline-flex; gap: 7px; align-items: center; min-height: 44px; padding: 0 3px; cursor: pointer; font-size: 15px; }
.survey-page .field-choices input { width: 17px; height: 17px; accent-color: var(--ink); }
@media (max-width: 480px) {
  .survey-page .matrix-row.choice-field { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
  .survey-page .field-choices { gap: 8px 24px; }
}
.survey-page .input,
.survey-page .input:hover,
.survey-page .input:focus { border-color: var(--sheet-line); border-radius: 4px; }
.survey-page .input:focus-visible {
  outline: 2px solid oklch(.45 0 0);
  outline-offset: 2px;
}

.survey-page .options { gap: 0; }
.survey-page .option,
.survey-page .option:hover,
.survey-page .option:has(input:checked) {
  min-height: 44px;
  padding: 8px 5px;
  border: 0;
  border-radius: 3px;
  background: transparent;
}

.survey-page .option:hover,
.survey-page .option:has(input:checked) { background: var(--sheet-wash); }
.survey-page .option-extra { padding-top: 2px; }
.survey-page .form-actions { padding: 14px 0; }
.survey-page .button { border-radius: 4px; }
.survey-page .success-page { border-radius: 4px; }
.survey-page .success-symbol { display: none; }

@media (max-width: 720px) {
  .survey-page .survey-layout { padding: 18px 12px 98px; }
  .survey-page .survey-heading { padding: 0 2px 12px; margin-bottom: 12px; }
  .survey-page .survey-heading h1 { font-size: 22px; line-height: 1.45; }
  .survey-workspace { display: block; }
  .survey-page .mobile-module { margin: 0 0 10px; }
  .survey-page .mobile-module .field-label { margin-bottom: 4px; }
  .survey-page .form-panel { padding: 0 14px; }
  .survey-page .form-actions { padding: 9px 14px max(9px, env(safe-area-inset-bottom)); }
  .survey-page .save-status { margin: 8px 2px 0; }
}
