/* Guided estimation reuses the Paper & forest palette and the plan's rhythm. */
.estimate-flow {
  max-width: 1100px;
  margin: 24px auto;
  padding: clamp(18px, 3vw, 28px);
  border: 2px solid var(--gold, #806019);
  border-radius: 18px;
  scroll-margin-top: 90px;
}
.estimate-flow [hidden] { display: none !important; }
.estimate-progress { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; padding: 0; margin: 12px 0 24px; list-style: none; }
.estimate-progress li { padding: 12px; background: var(--paper-soft); border: 1px solid var(--paper-border); border-radius: 10px; color: var(--paper-muted); }
.estimate-progress li[aria-current="step"] { background: var(--paper-result); border-color: var(--paper-green); color: var(--paper-green); box-shadow: inset 0 -3px var(--paper-green); font-weight: 700; }
.estimate-flow h2 { text-transform: none; font-size: 1.4rem; }
.estimate-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 20px 0; }
.estimate-grid > *, .estimate-flow input, .estimate-flow select { min-width: 0; max-width: 100%; box-sizing: border-box; }
.estimate-flow label { display: block; margin-bottom: 6px; font-weight: 650; }
.estimate-flow label > :is(input,select) { display: block; margin-top: 8px; }
.estimate-upload, .estimate-choices, .estimate-followup { border: 1px solid var(--paper-border); border-radius: 14px; background: var(--paper-soft); padding: 18px; margin: 20px 0; }
.estimate-choices label { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; font-weight: 500; cursor: pointer; }
.estimate-choices input[type="radio"] { flex: 0 0 auto; width: 20px; height: 20px; min-height: 20px; margin: 2px 0 0; }
.estimate-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
#estimateFooter { border-top: 1px solid var(--paper-border); padding-top: 20px; }
#estimateError { color: #8d3026; font-weight: 600; }
.estimate-notice { background: #fff3d9; color: #714a0b !important; border-left: 3px solid #a17c28; padding: 14px; border-radius: 8px; }
.estimate-duration input { font: inherit; font-size: clamp(1.7rem,5vw,2.5rem); font-weight: 750; letter-spacing: .03em; max-width: 340px; }
#estimateModelDetails { border: 1px solid var(--paper-border); border-radius: 12px; padding: 16px; margin: 24px 0; }
#estimateModelDetails > summary { min-height: 32px; font-weight: 700; cursor: pointer; }
#estimateModelDetails .result-card { margin-top: 16px; }
.estimate-flow section { margin: 18px 0; padding: 16px; border-width: 1px; }
.estimate-flow #subscriptionWarning { background: var(--paper-soft) !important; }
.estimate-flow #subscriptionWarning p { color: var(--paper-ink) !important; }
.estimate-flow #estimatePassageChoices { margin-top: 18px; }
.estimate-flow #estimatePassageChoices > label { margin: 16px 0; }
@media(max-width:650px) {
  .estimate-progress { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; font-size: .85rem; }
  .estimate-grid { grid-template-columns: 1fr; }
  .estimate-actions > button { flex: 1 1 auto; }
  .estimate-flow section { padding: 12px; }
}

body.runner-paper main > section.estimate-flow { border-color: var(--gold) !important; }
#estimateReferenceLibrary > summary { cursor: pointer; padding: 14px 0; font-weight: 700; }
