.wizard-availability-note {
  padding: 12px 14px;
  border: 1px solid #bed2ff;
  border-radius: 9px;
  background: #eef4ff;
  color: #173b83;
  font-weight: 600;
}

.wizard-review {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--border, #dce2eb);
  border-radius: 12px;
  background: var(--surface-2, #f7f9fc);
}

.wizard-review h5 { margin: 0 0 6px; font-size: 19px; }
.wizard-review > p { margin: 0 0 14px; }
.wizard-review-list { display: grid; grid-template-columns: minmax(125px, 175px) minmax(0, 1fr); gap: 10px 18px; margin: 18px 0; }
.wizard-review-list dt { font-weight: 700; color: var(--text-soft, #475569); }
.wizard-review-list dd { margin: 0; overflow-wrap: anywhere; }
.wizard-review-note { color: var(--text-soft, #475569); font-size: 14px; }
.wizard-draft-status { min-height: 22px; font-weight: 600; color: var(--pos, #15803d); }
.wizard-draft-status.error { color: #b42318; }
.wizard-clear-draft { padding: 0; border: 0; background: none; color: var(--accent, #0f4deb); text-decoration: underline; cursor: pointer; }
.wizard-api-note { text-align: right; margin: 10px 0 0; color: var(--text-soft, #475569); font-size: 14px; }
/* Final step: keep destination, review, actions, and quote on one centered column. */
#step-12 .step-content > .wf-publish-choice {
  width: 100%;
  max-width: 750px;
  margin: 0 auto 22px !important;
}
#step-12 .step-content > .wizard-review {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
}
#step-12 .step-content > .wizard-nav-buttons {
  width: 100%;
  max-width: 750px;
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
#step-12 .wizard-nav-buttons .btn-wizard-prev { margin-right: auto; }
#step-12 .wizard-nav-buttons > p[role="status"] {
  flex: 0 0 100%;
  text-align: right;
  line-height: 1.5;
}
#wizard-save-draft { background: var(--surface, #fff); color: var(--text, #0a2540); border: 1px solid var(--border-strong, #d5dbe6); }
#wizard-save-draft:hover { background: var(--surface-3, #f6f8fb); }
#wizard-generate:disabled { opacity: .6; cursor: wait; }
.wizard-result { margin-top: 24px; padding: 22px; border: 1px solid var(--border, #dce2eb); border-radius: 12px; background: #fff; }
.wizard-result[hidden] { display: none; }
.wizard-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wizard-result-heading h5 { margin: 0; font-size: 19px; }
.wizard-result-heading [hidden] { display: none !important; }
.wizard-result-image { display: block; width: min(100%, 720px); height: auto; border-radius: 12px; margin: 14px 0; }
.wizard-result-image[hidden] { display: none !important; }
.wizard-result-infographic { margin: 16px 0; }
.wizard-result-infographic[hidden] { display: none !important; }
.wizard-result-infographic figcaption { font-weight: 700; margin-bottom: 8px; }
.wizard-result-infographic #wizard-infographic-sources p { margin: 6px 0; overflow-wrap: anywhere; }
.wizard-result-meta, .wizard-copy-status { margin: 8px 0; color: var(--text-soft, #475569); }
.wizard-result-text { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.65; margin: 16px 0 0; }
.wizard-step-error { margin: 12px 0; padding: 10px 12px; border: 1px solid #f5b4ae; border-radius: 8px; background: #fff2f0; color: #9f2117; font-weight: 600; }
.wizard-step .is-invalid { border-color: #b42318 !important; }
.option-card:focus-visible, .step-bullet:focus-visible, .wizard-clear-draft:focus-visible { outline: 3px solid var(--accent, #0f4deb); outline-offset: 3px; }

@media (max-width: 640px) {
  .wizard-review { padding: 16px; }
  .wizard-review-list { grid-template-columns: 1fr; gap: 3px; }
  .wizard-review-list dd { margin-bottom: 9px; }
  .wizard-api-note { text-align: left; }
  #step-12 .step-content > .wizard-nav-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #step-12 .wizard-nav-buttons .btn-wizard-prev {
    grid-column: 1 / -1;
    justify-self: start;
  }
  #step-12 .wizard-nav-buttons #wizard-save-draft,
  #step-12 .wizard-nav-buttons #wizard-generate { width: 100%; }
  #step-12 .wizard-nav-buttons > p[role="status"] {
    grid-column: 1 / -1;
    text-align: left;
  }
}
