/* One clear estimate, with an aligned receipt and a separate action footer.
   Shared by manual entry and worksheet review on every credit-help surface. */
.modern-page .credit-help-modal .credit-help-estimate-summary {
  --estimate-fill:#f0f6ff;
  --estimate-line:#b7cfee;
  --estimate-rule:#cbdcf2;
  --estimate-ink:#1c3c63;
  --estimate-muted:#5c7493;
  --estimate-total:#225ca6;
  display:grid;
  grid-template-columns:minmax(130px,.85fr) minmax(0,1.15fr);
  align-items:center;
  gap:14px 24px;
  margin:0;
  padding:18px;
  border:1px solid var(--estimate-line);
  border-radius:13px;
  background:var(--estimate-fill);
  box-shadow:inset 0 1px 0 #ffffff66,0 6px 14px -12px #224f893d;
  color:var(--estimate-ink);
  text-align:left;
  font-variant-numeric:tabular-nums;
}
.modern-page .credit-help-estimate-summary .credit-help-result-main {align-self:center;gap:9px;min-width:0;}
.modern-page .credit-help-estimate-summary .credit-help-result-main > span {font-size:12px;font-weight:550;letter-spacing:0;color:var(--estimate-muted);}
.modern-page .credit-help-estimate-summary .credit-help-result-main > strong {display:flex;flex-wrap:wrap;align-items:baseline;gap:7px;font-size:46px;line-height:1.1;font-weight:650;letter-spacing:-1.6px;color:var(--estimate-total);overflow-wrap:anywhere;}
.modern-page .credit-help-estimate-summary [data-credit-help-total-unit] {font-size:13px;font-weight:500;letter-spacing:0;color:var(--estimate-muted);}
.modern-page .credit-estimate-breakdown {min-width:0;padding-left:23px;border-left:1px solid var(--estimate-rule);}
.modern-page .credit-estimate-breakdown-title {display:block;margin-bottom:10px;font-size:11px;line-height:1.45;font-weight:650;color:var(--estimate-ink);}
.modern-page .credit-estimate-breakdown dl {display:grid;gap:6px;margin:0;}
.modern-page .credit-estimate-breakdown dl > div {display:flex;justify-content:space-between;align-items:baseline;gap:14px;font-size:11px;line-height:1.5;}
.modern-page .credit-estimate-breakdown dt {color:var(--estimate-muted);}
.modern-page .credit-estimate-breakdown dt::first-letter {text-transform:uppercase;}
.modern-page .credit-estimate-breakdown dd {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin:0;font-size:12px;font-weight:550;color:var(--estimate-ink);}
.modern-page .credit-estimate-breakdown dd strong {font-size:12px;font-weight:650;color:var(--estimate-total);}
.modern-page .credit-estimate-actions {grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:15px;border-top:1px solid var(--estimate-rule);}
.modern-page .credit-estimate-actions p {margin:0;color:var(--estimate-muted);font-size:10.5px;line-height:1.5;}
.modern-page .credit-help-estimate-summary .credit-help-apply-button {grid-column:auto;display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;width:auto;min-width:150px;min-height:42px;margin:0;padding:10px 15px;border-radius:8px;font-size:12px;}
.modern-page .credit-estimate-arrow {margin-left:9px;font-size:17px;line-height:1;}
.modern-page.theme-dark .credit-help-modal .credit-help-estimate-summary {--estimate-fill:#172e49;--estimate-line:#4c7099;--estimate-rule:#365676;--estimate-ink:#e1edff;--estimate-muted:#a8bed9;--estimate-total:#badbff;box-shadow:inset 0 1px 0 #cce4ff12,0 6px 14px -12px #0009;}
/* Make room for the same complete summary on the worksheet review screen. */
.modern-page .credit-help-modal.is-worksheet-review .credit-help-method {margin-bottom:18px;}
.modern-page .credit-help-modal.is-worksheet-review .credit-help-progress {margin-bottom:14px;}
.modern-page .credit-help-modal.is-worksheet-review .credit-help-review-model-picker {margin:12px 0;}
.modern-page .credit-help-modal.is-worksheet-review .credit-help-review-note {margin-top:6px;}
@media (max-width:700px) {
  .modern-page .credit-help-modal .credit-help-estimate-summary {grid-template-columns:1fr;gap:18px;padding:18px;}
  .modern-page .credit-estimate-breakdown {padding:15px 0 0;border-left:0;border-top:1px solid var(--estimate-rule);}
  .modern-page .credit-estimate-actions {align-items:stretch;flex-direction:column;gap:12px;}
  .modern-page .credit-help-estimate-summary .credit-help-apply-button {width:100%;}
}
