/* Step sections (Step 1 / Step 2 / Step 3). */
.step {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--shell-line);
}
.step:last-of-type { border-bottom: none; padding-bottom: 0; }
.step > h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--shell-ink);
  font-weight: 600;
}
.step-help {
  margin: 0 0 16px;
  color: var(--shell-muted);
  font-size: 14px;
  line-height: 1.55;
}
.step-help p { margin: 0 0 8px; }
.step-help p:last-child { margin-bottom: 0; }
.step-help ol, .step-help ul {
  margin: 6px 0 0;
  padding-left: 22px;
}
.step-help li { margin: 2px 0; }
.step-help strong { color: var(--shell-ink); }

.browse-row { margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.browse-file-control { position: relative; display: inline-flex; align-items: center; }
.browse-file-control input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.merge-config-status {
  margin: 12px 0;
  color: var(--shell-muted);
  font-size: 14px;
}
.merge-config-status[data-state="error"] { color: var(--shell-status-error-ink, #b00); }

/* Checklist + radio group fieldsets. */
fieldset.checklist,
fieldset.radio-group {
  border: 1px solid var(--shell-line);
  border-radius: 10px;
  padding: 12px 18px;
  margin: 0;
  background: var(--shell-surface);
}
fieldset.checklist legend.sr-only,
fieldset.radio-group legend.sr-only {
  /* fully hidden but still a legend for AT */
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.checklist-item,
.radio-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
}
.checklist-item input[type="checkbox"],
.radio-item input[type="radio"] {
  margin: 4px 0 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--shell-accent);
  flex-shrink: 0;
}
.checklist-item label,
.radio-item label {
  cursor: pointer;
  font-size: 15px;
  color: var(--shell-ink);
  line-height: 1.45;
  flex: 1;
  user-select: none;
}
.checklist-item input:focus-visible,
.radio-item input:focus-visible {
  outline: 3px solid var(--shell-accent);
  outline-offset: 3px;
  border-radius: 3px;
}
.other-input-row {
  margin: 4px 0 6px;
  padding-left: 28px;
}
.other-input-row input,
.youtube-row input {
  width: 100%;
  padding: 8px 12px;
  background: var(--shell-input-bg);
  color: var(--shell-ink);
  border: 1px solid var(--shell-line);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
}
.other-input-row input:focus-visible,
.youtube-row input:focus-visible {
  outline: 2px solid var(--shell-accent);
  outline-offset: 1px;
}
.other-input-row input:disabled { opacity: .45; cursor: not-allowed; }

.youtube-row { margin-top: 6px; }
.youtube-row label { display: block; margin-bottom: 6px; color: var(--shell-ink); font-size: 14px; }
.youtube-simulation-player { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.youtube-simulation iframe { width: 100%; height: 100%; border: 0; }

.start-row { margin-top: 18px; }

/* Consolidated error region used by Start-button validation. */
.form-error {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--shell-status-error-bg);
  border: 1px solid var(--shell-status-error-border);
  color: var(--shell-status-error-ink);
  font-size: 14px;
  line-height: 1.55;
}
.form-error:empty { display: none; }
.form-error p { margin: 0 0 6px; font-weight: 600; }
.form-error ul { margin: 0; padding-left: 22px; }
.form-error li { margin: 2px 0; }
.form-error:focus-visible {
  outline: 3px solid var(--shell-accent-warn);
  outline-offset: 2px;
}

/* Step 3 focus checklist — each label carries a plain-language meaning. */
.focus-meaning {
  display: block;
  font-size: 13px;
  color: var(--shell-muted);
  font-weight: 400;
  margin-top: 2px;
}
#focusChecklist { margin-top: 16px; }
.merge-option-block { margin-top: 16px; }
.merge-option-block h4 {
  margin: 0 0 6px;
  color: var(--shell-ink);
  font-size: 15px;
  font-weight: 600;
}

/* Screen-level navigation actions (Describe another / Start over). */
.nav-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.screen-lede { margin: 0 0 24px; color: var(--shell-muted); font-size: 15px; }

/* Step 1 mode chooser. */
.mode-intro { margin: 0 0 10px; color: var(--shell-muted); font-size: 14px; line-height: 1.55; }
.mode-intro:first-of-type { margin-top: 4px; }
.mode-intro strong { color: var(--shell-ink); }
.mode-intro-list { margin: 0 0 16px; padding-left: 22px; color: var(--shell-muted); font-size: 14px; line-height: 1.55; }
.mode-intro-list li { margin: 2px 0; }
.mode-intro-last { margin-bottom: 0; }
.mode-group { margin-top: 0; }
.mode-choice + .mode-choice {
  border-top: 1px solid var(--shell-line);
  margin-top: 12px;
  padding-top: 12px;
}
.mode-copy { flex: 1; }
.mode-copy label { display: block; font-weight: 600; }
.mode-copy .mode-intro { margin: 4px 0 8px; }
.mode-copy .mode-intro-list { margin-bottom: 0; }
/* Credit is a spend decision, so it sits immediately beside the submit action. */
.credit-panel {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--shell-line);
  border-radius: var(--shell-radius);
  background: var(--shell-advisory-bg);
}
.credit-panel-warning { border-color: var(--shell-accent-warn); }
.credit-preview-banner { color: var(--shell-accent-warn); }
