/* Quote workspace: explicit light task surfaces, dark preview/header/summary.
   Layout and behavioral visibility are retained in site.css. */
body.site-theme .home-redesign .wizard-shell .wizard-dialog { --home-ink: #20272d; --home-muted: #5e6973; --home-line: #ccd1d5; color: var(--text); background: #fff; font: 1rem/1.5 var(--font-sans); box-shadow: none; border-radius: 6px; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog :is(.wizard-sidebar,.wizard-main,.wizard-queue-panel,.wizard-preview-panel,.wizard-stage,.material-card,.material-summary,.part-settings-panel,.quote-lead-card,.modal-card,.tile) { color: var(--text); background: #f5f5f2; border-color: var(--line); box-shadow: none; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog :is(h2,h3,h4,strong,label,button,input,select,textarea) { font-family: var(--font-sans); }
body.site-theme .home-redesign .wizard-shell .wizard-dialog :is(.part-row strong,.quoted-part-head h3,.part-material-line strong,.part-settings-panel strong,.material-card strong,.material-card h3,.material-card h4,.quote-lead-card strong) { color: var(--text); }
body.site-theme .home-redesign .wizard-shell .wizard-dialog :is(.part-row small,.quoted-part-head small,.dimension-readout,.preview-status-row .dimension-readout,.part-inline-control-label,.material-help-strip span,.microcopy,.material-card p,.material-card span,.quote-lead-card p) { color: var(--muted); font-size: .85rem; line-height: 1.5; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog :is(.part-row strong,.quoted-part-head h3) { overflow: visible !important; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; font-size: .95rem; line-height: 1.4; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .part-row>div { overflow: visible; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .part-row { color: var(--text); background: #fff; border-color: var(--line); }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .part-row.selected { border-left: 3px solid var(--accent); }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .wizard-header { background: #171c22; border-color: #53606b; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .wizard-header :is(h2,strong,.workspace-status,.wizard-wordmark) { color: #fff; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .wizard-header .ghost-button { background: #29343e; color: #fff; border-color: #8c989f; min-height: 44px; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .wizard-preview-panel .stl-stage { background: #171c22; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .stl-preview-message { color: #fff; background: rgba(23,28,34,.9); }
body.site-theme .home-redesign .wizard-shell .wizard-dialog :is(.quoted-part-card,.quoted-part-card.selected.is-ready,.part-inline-material-controls>.material-help-strip,.quote-lead-card) { color: var(--text); background: #fff; border-color: var(--line); box-shadow: none; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog :is(.selected-part-recovery,.upload-recovery-help) { color: var(--text); background: #fff1f2; border-color: #d7888e; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog :is(.selected-part-recovery,.upload-recovery-help) :is(strong,p,span) { color: #8f1721; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog :is(.selected-part-recovery,.upload-recovery-help) .ghost-button { background: #fff; color: var(--text); border-color: #89959f; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog :is(.part-retry-button,.part-replace-button,.part-help-button,.part-remove-button,.part-settings-toggle) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 12px; color: var(--text); background: #fff; border: 1px solid #89959f; border-radius: 6px; font-size: .85rem; line-height: 1.4; text-decoration: none; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .part-remove-button { color: var(--danger); border-color: #d7888e; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .quoted-part-actions { flex-wrap: wrap; gap: 8px; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .quote-review-summary { background: #222c35; color: #fff; border-color: #53606b; box-shadow: none; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .quote-review-summary :is(strong,.label,.quote-summary-note,.quote-summary-production,.quote-summary-fact) { color: #e7ecef; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .quote-summary-note { font-size: .85rem; line-height: 1.5; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .quote-summary-savings { color: #b4dfc3; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .quote-summary-savings strong { color: #b4dfc3; white-space: nowrap; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .quote-summary-total strong { color: #fff; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog :is(.quote-account-save-state,.quote-account-save-state.saved) { color: #236b43; background: #edf7ef; border-color: #96c3a4; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .quote-account-save-state :is(strong,p,span,a) { color: #236b43; font-size: .875rem; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .quote-account-save-icon { color: #236b43; border-color: #96c3a4; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .part-inline-material-controls { grid-template-columns: minmax(0,1fr); gap: 12px; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .part-inline-color-row { flex-wrap: wrap; gap: 8px; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .part-color-chip { min-width: 76px; min-height: 44px; padding: 8px 10px; color: var(--text); background: #fff; border-color: #89959f; font-size: .85rem; white-space: nowrap; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .part-color-chip span { white-space: nowrap; overflow-wrap: normal; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .part-color-chip.selected { color: var(--accent-strong); background: #fff1f2; border-color: var(--accent); }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .part-inline-material select { min-height: 44px; font-size: .95rem; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .part-inline-control-label { font-size: .8rem; text-transform: none; letter-spacing: 0; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .part-price-break-row button { min-height: 48px; font-size: .85rem; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog :is(.price-break-chip,.part-price-chip) { min-height: 48px; color: var(--text); background: #fff; font-size: .85rem; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog :is(.price-break-chip,.part-price-chip) strong { color: var(--text); font-size: .9rem; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .material-help-strip :is(strong,a) { color: var(--text); font-size: .82rem; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .part-quote-selected :is(.label,strong) { color: var(--text); }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .quoted-part-head .eyebrow { color: var(--muted); font-size: .8rem; line-height: 1.4; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .quote-parts-head { font-size: .8rem; letter-spacing: .025em; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog :is(.quote-review-summary,.quote-account-save-state,.wizard-sidebar) a:focus-visible { outline-color: #246494; }
@media(min-width:1041px) {
 body.site-theme .home-redesign .wizard-shell .wizard-dialog .quoted-part-card { grid-template-columns: minmax(0,1fr) minmax(280px,1.4fr) 110px; grid-template-areas: "head head actions" "material breaks price" "settings settings settings" "error error error"; gap: 16px 24px; padding: 20px; }
 body.site-theme .home-redesign .wizard-shell .wizard-dialog .quoted-part-head { padding-right: 16px; }
 body.site-theme .home-redesign .wizard-shell .wizard-dialog .quoted-part-actions { justify-self: end; }
 body.site-theme .home-redesign .wizard-shell .wizard-dialog .quote-parts-head { display: none; }
}
@media(max-width:1040px) {
 body.site-theme.wizard-open { overflow: hidden; position: fixed; width: 100%; }
 body.site-theme .home-redesign .wizard-shell { overflow: hidden; }
 body.site-theme .home-redesign .wizard-shell .wizard-dialog { inset: 0; width: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; overflow: hidden; }
 body.site-theme .home-redesign .wizard-shell .wizard-dialog .wizard-layout { overflow: hidden; }
 body.site-theme .home-redesign .wizard-shell .wizard-dialog .wizard-main { overflow-y: auto; overscroll-behavior: contain; }
 body.site-theme .home-redesign .wizard-shell .wizard-dialog .quote-review-summary-main { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
 body.site-theme .home-redesign .wizard-shell .wizard-dialog .quote-review-summary-main>div { flex: 1 1 auto; min-width: 80px; padding: 0; border: 0 !important; }
 body.site-theme .home-redesign .wizard-shell .wizard-dialog .quote-review-summary-main .quote-summary-total { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; min-height: 0 !important; }
 body.site-theme .home-redesign .wizard-shell .wizard-dialog .quote-summary-savings { white-space: nowrap; }
 body.site-theme .home-redesign .wizard-shell .wizard-dialog .quote-summary-production :is(strong,span) { white-space: nowrap; overflow-wrap: normal; }
 body.site-theme .home-redesign .wizard-shell .wizard-dialog .quote-summary-production .label { font-size: .8rem; }
 body.site-theme .home-redesign .wizard-shell .wizard-dialog .quote-summary-note { font-size: .8rem; }
}
/* Quote results size to their content; no card is assigned a share of viewport height. */
body.site-theme .home-redesign .wizard-shell .wizard-dialog #quote-results:not(.hidden) { display: block; min-height: 0; height: auto; max-height: none; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog #quoted-parts:not(.hidden) { display: flex; flex-direction: column; align-items: stretch; gap: 16px; height: auto; min-height: 0; max-height: none; overflow: visible; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .quoted-part-card { flex: 0 0 auto; height: auto; min-height: 0; max-height: none; grid-template-rows: auto; grid-auto-rows: max-content; align-content: start; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .part-inline-material-controls { display: flex; flex-direction: column; align-items: stretch; height: auto; min-height: 0; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .part-inline-material-controls>.material-help-strip { grid-area: auto; height: auto; min-height: 0; }
body.site-theme .home-redesign .wizard-shell .wizard-dialog .quote-account-save-state { margin-top: 20px; }
@media(min-width:1041px) {
 body.site-theme .home-redesign .wizard-shell .wizard-dialog .quoted-part-card { grid-template-areas: "head actions actions" "material breaks price" "settings settings settings" "error error error"; }
 body.site-theme .home-redesign .wizard-shell .wizard-dialog .quoted-part-actions { flex-direction: row; width: auto; align-items: start; }
}
@media(max-width:1040px) {
 body.site-theme .home-redesign .wizard-shell .wizard-dialog { grid-template-rows: auto minmax(0,1fr); }
 body.site-theme .home-redesign .wizard-shell .wizard-dialog .wizard-header { display: grid; grid-template-columns: minmax(0,1fr) auto; min-height: 98px; align-items: start; gap: 8px 12px; padding: 14px 12px; }
 body.site-theme .home-redesign .wizard-shell .wizard-dialog .wizard-title-group { display: flex; flex-direction: column; align-items: start; gap: 8px; }
 body.site-theme .home-redesign .wizard-shell .wizard-dialog .wizard-title-group h2 { font-size: 1.1rem; line-height: 1.3; }
 body.site-theme .home-redesign .wizard-shell .wizard-dialog .workspace-status { position: static; left: auto; top: auto; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; font-size: .8rem; white-space: normal; }
 body.site-theme .home-redesign .wizard-shell .wizard-dialog .wizard-wordmark { display: none; }
 body.site-theme .home-redesign .wizard-shell .wizard-dialog .wizard-header-actions { align-items: start; gap: 8px; }
 body.site-theme .home-redesign .wizard-shell .wizard-dialog :is(.workspace-add-files,.workspace-close) { position: static; flex: 0 0 auto; width: auto !important; min-width: 44px !important; min-height: 44px; padding: 9px 10px !important; overflow: visible; color: #fff !important; background: #29343e; font-size: .85rem; white-space: nowrap; }
 body.site-theme .home-redesign .wizard-shell .wizard-dialog .workspace-add-files .workspace-upload-icon { display: none; }
 body.site-theme .home-redesign .wizard-shell .wizard-dialog .workspace-close::before,
 body.site-theme .home-redesign .wizard-shell .wizard-dialog .workspace-close::after { content: none; display: none; }
 body.site-theme .home-redesign .wizard-shell .wizard-dialog .wizard-main { padding-bottom: 150px; }
}
