/* Guided download: one reserved footer action; all notes remain in flow.
   Presentation only. No preview SVG or production operation selectors. */
html[data-p209="v1"] .step-panel[data-step="5"] .p209-receipt {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

html[data-p209="v1"] .step-panel[data-step="5"] .p209-receipt-head {
  align-items: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
}

html[data-p209="v1"] .step-panel[data-step="5"] .p209-receipt-title {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
}

html[data-p209="v1"] .step-panel[data-step="5"] .p209-receipt-sub {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
}

html[data-p209="v1"] .step-panel[data-step="5"] .p209-receipt-validation {
  margin: 10px 0 0 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 400;
}

html[data-p209="v1"]:not(.p209-debug-on) .step-panel[data-step="5"] .export-actions,
html[data-p209="v1"].p209-debug-on .step-panel[data-step="5"] .export-actions {
  position: static;
  inset: auto;
  z-index: auto;
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

html[data-p209="v1"] .step-panel[data-step="5"] .guided-production-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #786137;
  border-radius: 6px;
  background: rgba(190, 147, 65, 0.09);
  color: #ead8ac;
  font-size: 13px;
  line-height: 1.5;
}

html[data-p209="v1"] .guided-download-result {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

html[data-p209="v1"] #p421dExportConfirm { color: #99d4b1; }
html[data-p209="v1"] #p520DownloadDetails { color: var(--text-primary, #ededed); }

html[data-p209="v1"] .guided-secondary-link {
  justify-self: start;
  min-height: 36px;
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: var(--text-secondary, #b8c2d0);
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

html[data-p209="v1"] #guidedMakeAnotherMap { margin-top: 16px; }

html[data-p209="v1"] .guided-export-details > summary:focus-visible,
html[data-p209="v1"] .guided-secondary-link:focus-visible {
  outline: 2px solid var(--accent-primary, #58a0e8);
  outline-offset: 4px;
}

html[data-p209="v1"] .step-panel[data-step="5"] .p209-receipt-body {
  margin-top: 16px;
  padding: 16px 0 0;
  border-top: 1px solid var(--border-color, #303030);
}

html[data-p209="v1"] .step-panel[data-step="5"] .p209-zip-include-grid,
html[data-p209="v1"] .step-panel[data-step="5"] .p209-piece-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

html[data-p209="v1"] .step-panel[data-step="5"] .p209-zip-include-card,
html[data-p209="v1"] .step-panel[data-step="5"] .p209-piece-card {
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-p209="v1"] .step-panel[data-step="5"] .p209-zi-title { font-size: 13px; }
html[data-p209="v1"] .step-panel[data-step="5"] .p209-zi-desc { font-size: 12px; line-height: 1.5; }
html[data-p209="v1"] .step-panel[data-step="5"] .p209-receipt-section-title {
  color: var(--text-primary, #ededed);
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}

html[data-p209="v1"] .step-panel[data-step="5"] .guided-export-details {
  border-top: 1px solid var(--border-color, #303030);
  margin: 12px 0 0;
  padding-top: 4px;
}

html[data-p209="v1"] .guided-export-details > summary {
  padding: 10px 0;
  color: var(--text-primary, #ededed);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

/* Only this real button moves; dynamic notes have permanent receipt anchors. */
.wizard-panel > .nav-buttons > #exportZipBtn {
  display: none;
  width: auto;
  flex: 1;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 14px;
}

html[data-guided-step="5"] .wizard-panel > .nav-buttons > #exportZipBtn,
html:not([data-guided-step]) .wizard-panel:has(.step-panel.active[data-step="5"]) > .nav-buttons > #exportZipBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

html[data-guided-step="5"] .wizard-panel > .nav-buttons > #btnNext,
html:not([data-guided-step]) .wizard-panel:has(.step-panel.active[data-step="5"]) > .nav-buttons > #btnNext {
  display: none !important;
}

html[data-p209="v1"]:not(.p209-debug-on) .step-panel[data-step="5"] {
  padding-bottom: 24px;
}

/* Credit totals stay compact; verbose server-authored rules are on demand. */
html[data-p209="v1"] #p409CreditQuoteCard {
  min-width: 0;
  margin: 4px 0 0;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--border-color, #303030);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html[data-p209="v1"] #p409CreditQuoteGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  line-height: 1.4;
}
html[data-p209="v1"] #p409CreditQuoteGrid .ec-val { font-size: 16px; }
html[data-p209="v1"] #p409CreditQuoteGrid .ec-est { display: none; }
html[data-p209="v1"] #p415dQuoteBreakdown {
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  font-size: 12px;
  line-height: 1.5;
}
html[data-p209="v1"] #p415dQuoteBreakdown .p415d-quote-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--border-color, #303030);
}
html[data-p209="v1"] #p415dQuoteBreakdown .p415d-quote-disclaimer {
  margin-top: 8px;
  line-height: 1.5;
}
html[data-p209="v1"] .guided-production-heading { font-weight: 600; margin-bottom: 6px; }
html[data-p209="v1"] .guided-production-item + .guided-production-item { margin-top: 8px; }
html[data-p209="v1"] #p453ProductionDetails {
  border-color: rgba(234, 216, 172, 0.25);
  font-size: 12px;
  line-height: 1.5;
}
html[data-p209="v1"] #p453ProductionDetails > summary { color: inherit; }
html[data-p209="v1"] .guided-production-diagnostic { overflow-wrap: anywhere; }

html[data-p209="v1"] .guided-credit-disclaimer {
  margin: 8px 0 0;
  color: var(--text-secondary, #b8c2d0);
  font-size: 12px;
  line-height: 1.5;
}
