/* Package cards retain complete labels, including at increased text sizes. */
#new-estimate-page .estimate-summary-panel .proposal-options > button {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:6px 16px;
  width:100%;
  height:auto;
  min-height:76px;
  padding:14px;
  box-sizing:border-box;
  text-align:left;
  border:1px solid var(--brand-line);
  border-radius:12px;
  background:var(--brand-surface);
  color:var(--brand-text);
  font:inherit;
}
#new-estimate-page .estimate-summary-panel .proposal-options > button > span {
  flex:0 0 auto;
  width:auto;
  min-width:max-content;
  max-width:none;
  white-space:nowrap;
  overflow-wrap:normal;
  word-break:normal;
  font-size:14px;
  font-weight:700;
  line-height:1.5;
}
#new-estimate-page .estimate-summary-panel .proposal-options > button > strong {
  flex:0 0 auto;
  width:auto;
  margin-left:auto;
  white-space:nowrap;
  font-size:16px;
  font-variant-numeric:tabular-nums;
  line-height:1.5;
}
#new-estimate-page .estimate-summary-panel .proposal-options > button > small {
  flex:0 0 100%;
  width:100%;
  min-width:0;
  color:var(--brand-muted);
  font-size:14px;
  line-height:1.5;
  white-space:normal;
}
#new-estimate-page .estimate-summary-panel .proposal-options > button:hover {
  background:var(--brand-gold-soft);
  border-color:var(--brand-gold);
}
#new-estimate-page .estimate-summary-panel .proposal-options > button:focus-visible {
  outline:3px solid var(--brand-gold);
  outline-offset:3px;
}
#new-estimate-page .proposal-options h3 {
  font-size:18px;
  line-height:1.45;
  word-break:normal;
  overflow-wrap:normal;
}
.dev71-price-preview{background:var(--brand-surface);border:1px solid var(--brand-line);border-radius:12px;padding:14px;margin:14px 0}.dev71-price-preview h4{margin:0 0 10px;font-size:15px}.dev71-price-preview p{font-size:14px;line-height:1.6;margin:8px 0;overflow-wrap:anywhere}
.ai-estimate-stages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;list-style:none;padding:0;margin:0 0 24px}.ai-estimate-stages li{padding:12px 8px;border-bottom:3px solid var(--brand-line);font-size:14px;color:var(--brand-muted)}.ai-estimate-stages li.current{border-color:var(--brand-gold);color:var(--brand-gold);font-weight:700}.ai-estimate-stages li.complete{border-color:var(--brand-success)}.ai-scope-questions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}.ai-scope-questions label,.ai-breakdown-line label{display:flex;flex-direction:column;gap:8px;font-weight:600;color:var(--brand-text);font-size:14px}.ai-scope-questions select,#aiPricingMode,#aiProjectZIP{width:100%;padding:12px;border:1px solid var(--brand-line);border-radius:10px;background:var(--brand-surface);color:var(--brand-text);font:inherit;box-sizing:border-box;min-height:44px}.ai-estimate-prompt small{display:block;color:var(--brand-muted);font-size:14px;font-weight:400;margin:8px 0 20px;line-height:1.5}.ai-breakdown-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,180px);gap:8px 18px;padding:18px 0;border-bottom:1px solid var(--brand-line)}.ai-breakdown-line>strong{grid-column:1}.ai-breakdown-line>span{grid-column:1;color:var(--brand-muted);font-size:14px}.ai-breakdown-line>label{grid-column:2;grid-row:1 / span 2}.ai-breakdown-line input{width:100%;min-width:0;box-sizing:border-box;padding:10px;border:1px solid var(--brand-line);border-radius:8px;font:inherit;min-height:44px}.ai-breakdown-line>small{grid-column:1 / -1;color:var(--brand-muted)}.estimate-pricing-status{padding:12px;background:var(--brand-gold-soft);border-radius:10px;color:var(--brand-text);font-size:14px;line-height:1.6}.estimate-pricing-status.needs-prices{background:var(--brand-warning-bg);color:var(--brand-warning)}.estimate-summary-lines strong{font-size:14px;text-align:right}#estimateAIPanel [hidden],#new-estimate-page .dev73-editable-section[hidden]{display:none!important}#aiQuestionsHeading{outline-offset:5px}#aiEstimateStages~div button{min-height:44px}.ai-estimate-actions{flex-wrap:wrap}
@media(max-width:760px){.ai-estimate-stages{grid-template-columns:repeat(2,minmax(0,1fr))}.ai-scope-questions{grid-template-columns:1fr}.ai-breakdown-line{grid-template-columns:1fr}.ai-breakdown-line>label{grid-column:1;grid-row:auto}}

/* Guided answer cards and generation progress. */
#estimateAIPanel .ai-scope-questions{display:flex;flex-direction:column;gap:20px}
.ai-question-card{min-width:0;margin:0;padding:20px;border:1px solid var(--brand-line);border-radius:14px;background:var(--brand-surface)}
.ai-question-card legend{padding:0 8px;font-weight:700;font-size:16px;color:var(--brand-text)}
#estimateAIPanel .ai-answer-choice{display:flex;flex-direction:row;align-items:center;gap:12px;padding:14px 16px;margin:10px 0 0;border:1px solid var(--brand-line);border-radius:10px;cursor:pointer;font-weight:400;line-height:1.5;background:var(--brand-surface);min-height:48px;box-sizing:border-box}
#estimateAIPanel .ai-answer-choice.selected{background:var(--brand-gold-soft);border-color:var(--brand-gold);color:var(--brand-gold);box-shadow:0 0 0 1px rgba(0, 0, 0, 1.000)}
#estimateAIPanel .ai-answer-choice:hover{background:var(--brand-gold-soft)}
#estimateAIPanel .ai-answer-choice:focus-within{outline:3px solid var(--brand-line);outline-offset:2px}
#estimateAIPanel .ai-answer-choice input{appearance:auto;accent-color:var(--brand-gold);width:20px;height:20px;min-height:0;margin:0;flex:0 0 20px}
.ai-question-card[aria-invalid=true]{border-color:var(--brand-error)}
.ai-answer-count{color:var(--brand-muted);font-size:14px}
.ai-generation-progress{text-align:center;background:var(--brand-surface);border:1px solid var(--brand-line);border-radius:16px;padding:40px 24px;margin:24px 0}
.ai-generation-progress>strong{display:block;font-size:56px;line-height:1.2;color:var(--brand-text);font-variant-numeric:tabular-nums}
.ai-generation-progress h3{font-size:18px;margin:16px 0}
.ai-generation-progress p{font-size:14px;color:var(--brand-muted);max-width:480px;margin:16px auto 0}
.ai-generation-progress progress{display:block;width:100%;max-width:440px;height:12px;margin:24px auto;accent-color:var(--brand-gold)}
.ai-progress-orbit{display:grid;place-items:center;width:56px;height:56px;background:var(--brand-gold-soft);color:var(--brand-gold);border-radius:50%;font-size:30px;margin:0 auto 20px;animation:ai-progress-pulse 2s ease-in-out infinite}
@keyframes ai-progress-pulse{50%{transform:scale(1.1);opacity:.55}}
@media(prefers-reduced-motion:reduce){.ai-progress-orbit{animation:none}}
@media(max-width:600px){.ai-question-card{padding:14px}.ai-question-card legend{font-size:15px}}

/* Focused job detail wizard. */
#aiScopeQuestions.ai-scope-questions{display:block}
#aiScopeQuestions .ai-question-card[hidden],#aiQuestionReview[hidden],#aiQuestionNext[hidden]{display:none!important}
.ai-question-progress{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:20px 0 8px;color:var(--brand-muted)}
#aiQuestionPosition{font-weight:700;color:var(--brand-text)}
#aiQuestionProgress{width:100%;height:6px;accent-color:var(--brand-gold);margin:0 0 24px}
.ai-question-navigation{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:24px}
#aiQuestionReviewList{display:grid;grid-template-columns:minmax(140px,1fr) 2fr;gap:12px 20px;background:var(--brand-surface);border:1px solid var(--brand-line);border-radius:14px;padding:20px}
#aiQuestionReviewList dt{font-weight:700;color:var(--brand-text)}
#aiQuestionReviewList dd{margin:0;color:var(--brand-muted)}
@media(max-width:600px){#aiQuestionReviewList{grid-template-columns:1fr;gap:6px}#aiQuestionReviewList dd{margin-bottom:12px}.ai-question-navigation button{flex:1}.ai-question-progress{align-items:flex-start}}

.ai-question-text,#estimateAIPanel .ai-question-detail{width:100%;box-sizing:border-box;min-height:48px;border:1px solid var(--brand-line);border-radius:10px;padding:12px 14px;font-size:16px;margin-top:12px}
.ai-question-hint{color:var(--brand-muted);font-size:14px;line-height:1.5}

/* Give labels and focus rings their own space in the description step. */
#estimateAIPanel #aiDescribeStep{display:flex;flex-direction:column;align-items:stretch;gap:22px}
#estimateAIPanel #aiDescribeStep[hidden]{display:none!important}
#estimateAIPanel #aiDescribeStep .ai-estimate-prompt{display:flex;flex-direction:column;gap:12px;margin:0;line-height:1.5;min-width:0}
#estimateAIPanel #aiDescribeStep input,#estimateAIPanel #aiDescribeStep textarea{display:block;width:100%;box-sizing:border-box;margin:0}
#estimateAIPanel #aiDescribeStep input:focus-visible,#estimateAIPanel #aiDescribeStep textarea:focus-visible{outline:2px solid var(--brand-gold);outline-offset:3px}
#estimateAIPanel #aiContinueDetails{align-self:flex-start;margin:0;max-width:100%;white-space:normal}
#estimateAIPanel #aiEstimateStatus{display:block;margin-top:20px;line-height:1.5}

/* Identify the saved card after the editor returns to Estimates. */
#estimates .estimate-just-saved{outline:2px solid var(--brand-gold);outline-offset:3px;scroll-margin-top:100px}
#estimates .estimate-saved-badge{display:inline-block;margin-left:12px;padding:3px 8px;border-radius:6px;background:var(--brand-gold);color:var(--brand-on-gold);font-size:12px;font-weight:700}
