/* The work and its price stay visible; optional choices are an explicit second step. */
#new-estimate-page.estimate-quote-editor .estimate-builder-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px;align-items:start}
#new-estimate-page.estimate-quote-editor .estimate-builder-main{display:grid;gap:18px;min-width:0}
#new-estimate-page.estimate-quote-editor .estimate-summary-panel{position:sticky;top:88px;padding:22px;min-width:0}
#new-estimate-page.estimate-quote-editor .create-section-head .section-step{display:none}
#new-estimate-page.estimate-quote-editor .quote-editor-section .create-section-head{margin-bottom:12px}
#new-estimate-page.estimate-quote-editor .quote-editor-section .create-section-head h2{margin:0;font-size:21px}
#new-estimate-page.estimate-quote-editor .quote-editor-section .create-section-head p{margin:5px 0 0;font-size:14px}
#new-estimate-page.estimate-quote-editor .quote-summary-details>summary,#new-estimate-page.estimate-quote-editor .quote-methods>summary{cursor:pointer;color:var(--brand-muted);font-weight:600;padding:8px 0;min-height:44px;box-sizing:border-box}
#new-estimate-page.estimate-quote-editor .quote-methods[open] .estimate-method{margin:8px 0}
#new-estimate-page.estimate-simple-connected .ai-connection-status{display:none}
#new-estimate-page.estimate-quote-editor .quote-summary h2{margin:0 0 14px;font-size:22px}
#new-estimate-page.estimate-quote-editor .quote-summary-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:9px 0;color:var(--brand-muted)}
#new-estimate-page.estimate-quote-editor .quote-summary-row strong{color:var(--brand-text);text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#new-estimate-page.estimate-quote-editor .quote-grand{margin-top:7px;padding:15px 0;border-top:1px solid var(--brand-line);font-size:22px;font-weight:700;color:var(--brand-text)}
#new-estimate-page.estimate-quote-editor .quote-payment{font-size:14px}
#new-estimate-page.estimate-quote-editor #quotePreview{width:100%;min-height:44px;margin-top:14px}
#new-estimate-page.estimate-quote-editor #quoteEditorStatus{font-size:14px;line-height:1.4;color:var(--brand-muted);margin:12px 0 0}
#new-estimate-page.estimate-quote-editor .quote-option-actions{display:flex;flex-wrap:wrap;gap:10px}
#new-estimate-page.estimate-quote-editor .quote-option-actions button{min-height:44px}
#new-estimate-page.estimate-quote-editor .quote-line-details>summary,#new-estimate-page.estimate-quote-editor .quote-price-details>summary{cursor:pointer;font-size:14px;color:var(--brand-muted);padding:12px 0;min-height:44px;box-sizing:border-box}
#new-estimate-page.estimate-quote-editor .quote-line-details[open]>.estimate-line-field{margin-top:7px}
#new-estimate-page.estimate-quote-editor .quote-price-details{grid-column:1/-1;min-width:0}
#new-estimate-page.estimate-quote-editor .quote-price-details .dev58-pricing{margin-top:4px}
#new-estimate-page.estimate-quote-editor details>summary:focus-visible{outline:3px solid var(--brand-gold);outline-offset:3px;border-radius:6px}
#new-estimate-page.estimate-quote-editor [hidden]{display:none!important}
#new-estimate-page.estimate-with-options .proposal-options{margin-top:16px;border-top:1px solid var(--brand-line);padding-top:14px}
#new-estimate-page.estimate-with-options .proposal-options>button>small{display:none}
#new-estimate-page.estimate-quote-editor .estimate-bottom-actions{position:static;margin-top:20px;padding:16px 0;display:flex;justify-content:space-between;gap:12px}
@media(max-width:1100px){#new-estimate-page.estimate-quote-editor .estimate-builder-grid{grid-template-columns:minmax(0,1fr)}#new-estimate-page.estimate-quote-editor .estimate-summary-panel{position:static;top:auto}}
@media(max-width:650px){#new-estimate-page.estimate-quote-editor .estimate-summary-panel{padding:18px}#new-estimate-page.estimate-quote-editor .estimate-bottom-actions{flex-wrap:wrap}#new-estimate-page.estimate-quote-editor .estimate-bottom-actions>div{display:flex;flex-wrap:wrap;gap:10px}#new-estimate-page.estimate-quote-editor .quote-option-actions button{flex:1 1 160px}}

#new-estimate-page.estimate-quote-editor .quote-summary-details{margin-top:12px}
#new-estimate-page.estimate-quote-editor .quote-summary-details .estimate-pricing-status{margin:8px 0 0;font-size:13px}
#new-estimate-page.estimate-quote-editor .quote-line-details>summary{overflow-wrap:anywhere}

/* A readable workspace and a single active task, including on a large monitor. */
#new-estimate-page.estimate-quote-editor .estimate-builder-shell{max-width:1120px;box-sizing:border-box}
#new-estimate-page.estimate-quote-editor .estimate-top-actions,
#new-estimate-page.estimate-quote-editor .estimate-builder-head .eyebrow,
#new-estimate-page.estimate-quote-editor .estimate-builder-head h1+p{display:none}
#new-estimate-page.estimate-quote-editor .estimate-builder-head h1{font-size:30px;margin-top:22px}
#new-estimate-page.estimate-quote-editor input,
#new-estimate-page.estimate-quote-editor select,
#new-estimate-page.estimate-quote-editor textarea{font-size:16px;min-height:46px;box-sizing:border-box;max-width:100%}
#new-estimate-page.estimate-quote-editor button{min-height:44px}
#new-estimate-page.quote-guided-intake .estimate-builder-shell{max-width:860px}
#new-estimate-page.quote-guided-intake .estimate-builder-grid{grid-template-columns:minmax(0,1fr)}
#new-estimate-page.quote-guided-intake #estimateAIPanel{background:var(--brand-surface);padding:24px}
#new-estimate-page.quote-guided-intake #estimateAIPanel>.create-section-head{display:none}
#new-estimate-page.quote-guided-intake #aiGenerationProgress{padding:24px;min-height:0}
#new-estimate-page.quote-guided-intake #aiProgressPercent{display:block;font-size:24px}
#new-estimate-page.quote-guided-intake #aiProgressBar{display:block;width:min(100%,520px);height:10px;margin:24px auto;accent-color:#e9b84f}
@media(prefers-reduced-motion:reduce){.ai-progress-orbit{animation:none!important}}
#new-estimate-page.quote-guided-intake #aiProgressMessage{font-size:20px}
#new-estimate-page.quote-guided-intake #aiProgressHint{font-size:15px}
#new-estimate-page.estimate-quote-editor #dev58DraftPreview{min-width:0}
#new-estimate-page.estimate-quote-editor #dev58DraftPreview>button.primary{width:100%;margin-top:20px}
#new-estimate-page.estimate-quote-editor .ai-breakdown-line{overflow-wrap:anywhere}
@media(max-width:650px){#new-estimate-page.quote-guided-intake #estimateAIPanel{padding:16px}#new-estimate-page.estimate-quote-editor .estimate-builder-shell{padding:18px 12px 40px}}

.workspace-extra-tools{min-width:0}
.workspace-extra-tools>summary{cursor:pointer;padding:14px 12px;color:var(--brand-muted);font-weight:600;min-height:44px;box-sizing:border-box}
.workspace-extra-tools .nav{width:100%;margin-top:6px}
.workspace-extra-tools>summary:focus-visible{outline:3px solid var(--brand-gold);outline-offset:2px;border-radius:8px}

#new-estimate-page.estimate-quote-editor .quote-edit-details{border:1px solid var(--brand-line);border-radius:14px;background:var(--brand-surface);min-width:0}
#new-estimate-page.estimate-quote-editor .quote-edit-details>summary{cursor:pointer;padding:20px;font-size:17px;font-weight:650;min-height:58px;overflow-wrap:anywhere}
#new-estimate-page.estimate-quote-editor .quote-edit-details>.quote-editor-section{border:0;margin:0;border-radius:0 0 14px 14px}
#new-estimate-page.estimate-quote-editor input[type=checkbox],#new-estimate-page.estimate-quote-editor input[type=radio]{min-height:22px;min-width:22px;width:22px}

#new-estimate-page .quote-draft-total{font-size:24px;font-weight:750;padding:16px 0;border-bottom:1px solid var(--brand-line)}
#new-estimate-page #dev58DraftPreview>details>summary{cursor:pointer;padding:16px 0;font-weight:600;min-height:44px}

/* One quote uses the whole card; detailed editors belong to their work item. */
#estimates.active .dev2944-package-grid.quote-single-grid{grid-template-columns:minmax(0,1fr)!important}
#estimates.active .quote-single-grid>.dev2944-package-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:8px 24px;align-items:start;min-height:0!important}
#estimates.active .quote-single-grid .dev2944-package-top{grid-column:1}
#estimates.active .quote-single-grid .dev2944-package-price{grid-column:2;grid-row:1/3;margin:0!important;font-size:30px!important}
#estimates.active .quote-single-grid .dev2944-package-desc{grid-column:1;min-height:0!important;margin:0!important}
#estimates.active .quote-single-grid .dev2944-package-pdf{grid-column:1/-1;justify-self:start;width:auto!important;margin-top:10px}
.quote-saved-breakdown{grid-column:1/-1;border-top:1px solid var(--brand-line);padding-top:10px}
.quote-saved-breakdown>summary{cursor:pointer;padding:14px 0;font-weight:650;min-height:44px;box-sizing:border-box}
.quote-saved-line{display:flex;justify-content:space-between;gap:20px;padding:13px 0;border-bottom:1px solid var(--brand-line)}
.quote-saved-line>span{overflow-wrap:anywhere;min-width:0}.quote-saved-line>strong{white-space:nowrap}
.estimate-stats small{display:block;color:var(--brand-muted);font-size:12px;line-height:1.5;margin-top:6px}
#new-estimate-page .quote-edit-details .create-section-head h2,#new-estimate-page .quote-edit-details .create-section-head p{display:none}
#new-estimate-page .quote-compact-line{display:grid!important;grid-template-columns:minmax(0,1fr) auto 32px!important;gap:12px!important;align-items:center}
#new-estimate-page .quote-compact-line>.estimate-line-description{grid-column:1;min-width:0}
#new-estimate-page .quote-compact-line>.line-total{grid-column:2;font-size:19px;white-space:nowrap}
#new-estimate-page .quote-compact-line>.estimate-remove{grid-column:3}
#new-estimate-page .quote-compact-line>.quote-item-edit,#new-estimate-page .quote-compact-line>.quote-price-details{grid-column:1/-1}
#new-estimate-page .quote-item-edit>summary{cursor:pointer;min-height:44px;padding:12px 0;box-sizing:border-box;font-weight:600;color:var(--brand-muted)}
#new-estimate-page .quote-item-edit>.estimate-line-field{display:inline-flex;vertical-align:top;flex-direction:column;width:min(100%,180px);margin:8px 12px 8px 0;gap:7px}
#new-estimate-page .quote-item-edit>.quote-line-details{display:block}
#new-estimate-page .quote-compact-line .estimate-field-label{font-size:14px}
@media(max-width:650px){#estimates.active .quote-single-grid>.dev2944-package-card{grid-template-columns:minmax(0,1fr)}#estimates.active .quote-single-grid .dev2944-package-price{grid-column:1;grid-row:auto}#new-estimate-page .quote-compact-line{grid-template-columns:minmax(0,1fr) 32px!important}#new-estimate-page .quote-compact-line>.estimate-line-description{grid-column:1/-1}#new-estimate-page .quote-compact-line>.line-total{grid-column:1}#new-estimate-page .quote-compact-line>.estimate-remove{grid-column:2}#new-estimate-page .quote-item-edit>.estimate-line-field{width:100%;margin-right:0}}

#new-estimate-page .quote-location-details{grid-column:1/-1;border-top:1px solid var(--brand-line);padding-top:8px}
#new-estimate-page .quote-location-details>summary{cursor:pointer;min-height:44px;box-sizing:border-box;padding:12px 0;font-weight:600}
#new-estimate-page .quote-location-details>label{display:inline-flex;flex-direction:column;vertical-align:top;gap:8px;width:min(100%,260px);margin:12px 18px 0 0}
#new-estimate-page #aiScopeQuestions .ai-question-card{padding:18px 0;border:0;background:transparent}
#new-estimate-page #aiScopeQuestions legend{font-size:24px;line-height:1.35;font-weight:700;margin-bottom:18px}
#new-estimate-page #aiScopeQuestions .ai-answer-choice{min-height:64px;font-size:17px;border-radius:14px;padding:16px 18px;margin-top:12px}
#new-estimate-page .ai-estimate-actions>.primary,#new-estimate-page #aiContinueDetails{min-height:48px}

.quote-more-actions>summary{cursor:pointer;min-height:44px;padding:12px;box-sizing:border-box;color:var(--brand-muted)}
.quote-more-actions[open]{padding-bottom:8px}

/* Center the actual shell: the legacy active-view rule resets its margins. */
#new-estimate-page.active.estimate-quote-editor .estimate-builder-shell{width:100%;max-width:1440px;margin-inline:auto;padding:0;min-width:0}
#new-estimate-page.active.estimate-quote-editor.quote-guided-intake .estimate-builder-shell{max-width:1200px}
#new-estimate-page.active.quote-guided-intake .estimate-builder-head h1{font-size:clamp(28px,2.2vw,40px);line-height:1.2}
#new-estimate-page.active.quote-guided-intake #estimateAIPanel{padding:clamp(20px,2.5vw,40px)}
#new-estimate-page.active.quote-guided-intake #aiEstimatePrompt{min-height:180px;font-size:18px;line-height:1.6}
#new-estimate-page.active.quote-guided-intake .ai-estimate-prompt{font-size:17px;line-height:1.5}
#new-estimate-page.active.quote-guided-intake #aiContinueDetails{font-size:17px;padding:12px 24px}
@media(min-width:2200px){#new-estimate-page.active.estimate-quote-editor.quote-guided-intake .estimate-builder-shell{max-width:1440px}}
@media(max-width:650px){#new-estimate-page.active.quote-guided-intake #estimateAIPanel{padding:18px}#new-estimate-page.active.quote-guided-intake #aiEstimatePrompt{min-height:150px;font-size:16px}#new-estimate-page.active.quote-guided-intake #aiContinueDetails{width:100%}}

/* A quiet blueprint-to-quote animation; movement never represents fake completion. */
#new-estimate-page #aiGenerationProgress{position:relative;overflow:hidden;padding:32px 24px 36px;background:radial-gradient(ellipse at 50% 25%,#3b321f66,transparent 68%),#171a19;border:1px solid #c9a75a33;border-radius:20px;text-align:center}
.quote-build-scene{position:relative;width:min(320px,90%);height:180px;margin:0 auto 20px;color:#b79e6850}
.quote-build-scene svg{position:relative;width:100%;height:100%;overflow:visible}
.quote-build-glow{position:absolute;inset:20% 15%;background:#edbb4d22;filter:blur(36px);border-radius:50%;animation:quoteGlow 5s ease-in-out infinite}
.quote-build-grid{opacity:.45;stroke-width:.7}
.quote-build-house{stroke-dasharray:600;stroke-dashoffset:0;animation:quoteDraw 7s ease-in-out infinite}
.quote-build-paper{transform-origin:237px 120px;animation:quoteFloat 4s ease-in-out infinite}
.quote-build-check{stroke-dasharray:40;animation:quoteCheck 7s ease-in-out infinite}
.quote-build-spark{animation:quoteGlow 3s ease-in-out infinite}
#new-estimate-page.quote-guided-intake #aiProgressPercent{font-size:clamp(22px,2vw,28px);line-height:1.25;color:#f4eee1}
#new-estimate-page.quote-guided-intake #aiProgressMessage{font-size:16px;font-weight:400;color:#c9c4b8;margin:12px 0}
#new-estimate-page.quote-guided-intake #aiProgressBar{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:-1px}
#new-estimate-page.quote-guided-intake #aiProgressHint{font-size:14px;color:#ddbd78;min-height:42px;max-width:420px;margin:24px auto 0;line-height:1.5}
@keyframes quoteDraw{0%,100%{stroke-dashoffset:600;opacity:.35}35%,85%{stroke-dashoffset:0;opacity:1}}
@keyframes quoteCheck{0%,45%,100%{stroke-dashoffset:40;opacity:.3}65%,90%{stroke-dashoffset:0;opacity:1}}
@keyframes quoteFloat{50%{transform:translateY(-6px) rotate(2deg)}}
@keyframes quoteGlow{50%{opacity:.45;transform:scale(.94)}}
@media(prefers-reduced-motion:reduce){.quote-build-scene *{animation:none!important}.quote-build-house,.quote-build-check{stroke-dashoffset:0}}

/* One obvious next action after the last question, including failed generation. */
#new-estimate-page .ai-ready-to-build #aiQuestionsHeading,#new-estimate-page .ai-ready-to-build #aiQuestionsHeading+p,#new-estimate-page .ai-ready-to-build .ai-question-progress,#new-estimate-page .ai-ready-to-build #aiQuestionProgress{display:none}
#new-estimate-page .ai-ready-to-build #aiQuoteNextHeading{font-size:28px;line-height:1.25;margin:12px 0}
#new-estimate-page .ai-ready-to-build #aiQuoteNextHelp{font-size:17px;line-height:1.5;margin-bottom:24px}
#new-estimate-page .ai-review-answers,#new-estimate-page .ai-review-extra{border:1px solid #d3b77733;border-radius:12px;padding:14px 16px;margin:12px 0}
#new-estimate-page .ai-review-answers summary,#new-estimate-page .ai-review-extra summary{cursor:pointer;min-height:28px}
#new-estimate-page .ai-ready-to-build .ai-estimate-actions{position:sticky;bottom:12px;z-index:5;display:flex;flex-direction:column;align-items:stretch;gap:12px;background:#20221f;border:1px solid #d5b15b55;border-radius:14px;padding:18px;margin-top:20px;box-shadow:0 8px 28px #0005}
#new-estimate-page .ai-ready-to-build #generateAiEstimate{width:100%;min-height:54px;font-size:19px}
#new-estimate-page .ai-ready-to-build #aiEstimateStatus:empty{display:none}
#new-estimate-page #aiManualFallback{display:block;margin:14px auto 0;max-width:100%;min-height:46px}
#new-estimate-page #aiManualFallback[hidden]{display:none}

/* Private quote cost review: visible pricing controls, optional detailed costs. */
