/* Smart Quote layout adapter. Values inherited from frozen Care approved + final corrective CSS. */
:root{--navy:var(--brand);font-family:var(--font);color:var(--ink);background:var(--bg);line-height:1.65}
body{font-family:var(--font);font-size:15px;color:var(--ink);background:var(--bg)}
.top{height:84px;padding:0 max(28px,calc((100vw - 1136px)/2));background:var(--surface);border-bottom:1px solid var(--line)}
.top .brand{color:var(--brand);font-size:20px;font-weight:700;gap:12px}.top .brand-symbol{display:flex;align-items:center;height:40px}.top .brand img{height:40px;width:auto;background:transparent;padding:0;border-radius:0}
.top .brand>span:last-child{font-size:20px;font-weight:700;line-height:1.2;letter-spacing:-.025em;color:var(--brand)}
main{max-width:1192px;padding:40px 28px 60px}.intro{padding:14px 0 24px}.intro h1{font-size:46px;font-weight:800;line-height:1.2;letter-spacing:-.045em;margin:16px 0 20px}.intro p{line-height:1.75}
.panel,.product-guide,.product-card,.pitch-cards article,.spacing-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 26px rgba(13,24,68,.045);padding:24px}.panel+.panel{margin-top:20px}
button,.button{border:1px solid var(--line);background:white;color:var(--ink);min-height:46px;padding:10px 18px;border-radius:10px;font-weight:600;letter-spacing:-.015em;line-height:1.45}
button.primary,.button.primary{background:var(--brand);border-color:var(--brand);color:white}button.primary:hover,.button.primary:hover{background:#1D2D60}
input:not([type=radio]):not([type=checkbox]):not([type=range]),select,textarea{border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink);min-height:48px;padding:0 14px}textarea{padding:15px}
.choice{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:18px}.choice:has(input:checked){background:var(--blue-soft);border-color:var(--blue)}
.help,.meta{color:var(--muted)}.step.active{color:var(--brand);border-color:var(--blue)}.private-tag,.tag{color:var(--blue);background:var(--blue-soft);border-radius:7px}.warning{background:var(--amber-soft);color:var(--amber);border-color:var(--amber)}.error{background:var(--red-soft);color:var(--red)}
.studio-badge,.spacing-selection{color:var(--teal);background:var(--teal-soft)}.spacing-card.selected{border-color:var(--teal);background:var(--teal-soft)}
.reference-seven figcaption{line-height:1.65;overflow-wrap:anywhere}.reference-seven{gap:16px}.stepper button{padding:4px;background:var(--soft);color:var(--brand)}
/* Light recommendation surface uses Care ink semantics, overriding the old dark-card text. */
.panel.recommendation{color:var(--ink)}
.panel.recommendation p,.panel.recommendation .config{color:var(--ink)}
.panel.recommendation .help,.panel.recommendation .meta{color:var(--muted)}
.reference-toolbar>label{min-width:0}
.reference-toolbar input[type=range]{width:100%;min-width:0;max-width:100%;padding:0}
/* Completed-screen context and its auxiliary grid controls use a light Care surface. */
.module-stage{background:var(--surface);border:1px solid var(--line)}
.module-stage>p{color:var(--muted);padding:8px 12px;margin:0}
.module-stage>label{display:flex;align-items:center;gap:8px;padding:10px 14px;color:var(--muted);margin:0}
#rdb-discount-phone{display:block;width:100%;margin:16px 0;white-space:normal;word-break:keep-all;overflow-wrap:anywhere;text-align:center;font-size:14px;line-height:1.65}
@media(max-width:1100px){.intro h1{font-size:40px}}
@media(max-width:800px){.top{height:72px}main{padding-top:32px}.intro h1{font-size:35px}.panel{padding:22px}}
@media(max-width:600px){.top{height:68px;padding:0 18px}.top .brand{font-size:18px;gap:10px}.top .brand img{height:32px}main{padding:24px 18px 40px}.intro{padding:4px 0 24px}.intro h1{font-size:34px;line-height:1.24;margin:12px 0 16px}.panel,.product-guide,.product-card,.spacing-card,.pitch-cards article{padding:20px}.panel+.panel{margin-top:16px}.reference-seven{gap:12px}button,.button{min-height:44px}}

/* RDB rough quote: supply is primary; VAT and inclusive total remain visible. */
#module-price .vat-card{background:#f1f5fb;color:#163862;border:1px solid #d4deec;border-radius:12px;padding:18px;margin:16px 0;overflow-wrap:anywhere}
#module-price .vat-card p{margin:0 0 12px}
#module-price .vat-supply{font-size:18px;line-height:1.4}
#module-price .vat-supply strong{display:block;font-size:clamp(28px,5vw,36px);font-weight:750;line-height:1.3}
#module-price .vat-tax{font-size:16px;line-height:1.5}
#module-price .vat-total{font-size:20px;font-weight:650;line-height:1.5;border-top:1px solid #c6d3e5;padding-top:12px}
#module-price .vat-note{font-size:14px;line-height:1.6;margin-bottom:0}

.installation-forms details{margin:12px 0}.installation-reference-figure{margin:16px 0}.installation-reference-figure img{display:block;max-width:100%;width:auto;max-height:600px;margin:0 auto;object-fit:contain;border-radius:12px}.installation-reference-figure figcaption{font-size:14px;line-height:1.6;margin-top:10px}.installation-forms summary{font-weight:650;cursor:pointer}.installation-forms select{max-width:100%}

/* Keep native comparison image chooser within narrow mobile panels. */
#compare-content{width:100%;min-width:0;max-width:100%;box-sizing:border-box}

#sales-model-dimensions{display:block;width:100%;height:auto}#sales-model-evidence .module-facts dd{overflow-wrap:anywhere}#sales-model-evidence figure{margin:16px 0}

#sales-model-evidence .sales-detail-artwork{display:block;width:100%;max-width:820px;height:auto;margin:0 auto}

/* Customer-led product entry and concise sales handoff. */
.family-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.family-option{display:flex;flex-direction:column;gap:8px;text-align:left;border:1px solid #d9e2e8;border-radius:16px;padding:20px;background:#fff;color:#152947;min-width:0}.family-option.selected{border-color:#1d5775;background:#f1f8f8}.family-option>span:not(.family-visual){font-size:14px;color:#526479}.family-option .family-action{color:#174d68;font-weight:700}.family-visual{height:90px;display:grid;place-items:center;background:#f3f6fa;border-radius:10px}.family-visual>span{display:block;width:100px;height:60px;border:5px solid #273442;background:linear-gradient(90deg,#244b3b 36%,#f5eddf 36%);box-shadow:6px 7px 10px #14202b28}.family-rdb>span{width:140px;height:56px;border-width:4px}.family-rhs{background:linear-gradient(115deg,#fff8d7,#e8f6fa)}.family-auto>span{border:0;background:none;box-shadow:none;width:auto;height:auto}.family-auto>span:after{content:'?';font-size:50px;font-weight:700;color:#286570}.family-b2b{margin-top:20px}.family-selection-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#edf5f6;border-radius:10px;padding:10px 12px;margin-bottom:20px;font-size:14px}.quote-specification{background:#f5f8fa;border:1px solid #dae3e9;border-radius:14px;padding:18px;margin:14px 0}.quote-specification dl{margin:0}.quote-specification dl>div{display:grid;grid-template-columns:120px minmax(0,1fr);gap:10px;padding:9px 0;border-bottom:1px solid #e0e7ed}.quote-specification dt{color:#526479;font-size:13px}.quote-specification dd{margin:0;font-size:14px;overflow-wrap:anywhere}.product-reference-card{display:flex;gap:18px;align-items:center;margin:18px 0;border-radius:14px;background:#f5f7fa;padding:16px}.product-reference-card img{width:38%;max-height:220px;object-fit:contain}.product-reference-card h3{margin-bottom:6px}.product-reference-card p{font-size:14px}.context-handoff{background:#eaf4f2;border-radius:14px;padding:18px;margin:14px 0}.context-handoff button,.context-handoff a{margin:6px 8px 6px 0}.installation-checks{margin-bottom:16px}.installation-checks summary{cursor:pointer;font-weight:700}#module-price .vat-supply strong{font-size:30px;line-height:1.3}#module-price .vat-tax{font-size:14px}#module-price .vat-total{font-size:18px}#module-price .vat-note{font-size:12px}
@media(max-width:600px){.family-options{grid-template-columns:1fr}.family-option{display:grid;grid-template-columns:80px minmax(0,1fr);padding:16px;gap:6px 14px}.family-visual{grid-row:1/4;height:80px}.family-visual>span{width:58px;height:40px;border-width:3px}.family-rdb>span{width:68px;height:34px}.family-option>span:not(.family-visual){grid-column:2}.product-reference-card{display:block}.product-reference-card img{display:block;width:100%;max-height:180px;margin:0 auto 12px}.quote-specification{padding:12px}.quote-specification dl>div{grid-template-columns:92px minmax(0,1fr)}.family-selection-strip{align-items:flex-start}.context-handoff button,.context-handoff a{display:block;width:100%;text-align:center}}

#steps[hidden]{display:none}.context-handoff .primary{font-size:15px}.product-reference-card .product-purchase-link{white-space:normal}.inset summary{font-weight:700;cursor:pointer}

/* Scoped product-entry and always-available consultation UI. */
.family-option{overflow:hidden}.family-visual:not(.family-auto){height:210px;position:relative;overflow:hidden;width:100%;display:flex;align-items:center;justify-content:center}.family-visual>img{width:100%;height:100%;object-fit:cover;display:block}.family-visual>.family-context{position:absolute;left:10px;bottom:10px;display:block;width:auto;height:auto;border:0;background:#142c43e8;color:white;padding:7px 10px;border-radius:7px;box-shadow:none;font-size:12px}.family-rhs{border:8px solid #d8e6ee;background:linear-gradient(120deg,#fff5cb,#dfedf6)}.family-rhs>img{width:120%;max-width:none;object-fit:cover}.family-rdb>img{object-fit:contain}.consultation-bar{position:sticky;bottom:0;z-index:30;display:flex;align-items:center;justify-content:center;gap:12px;padding:10px 16px;background:#fffef8f5;border-top:1px solid #d3dee6;box-shadow:0 -3px 12px #14202b15}.consultation-bar button,.consultation-bar a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:10px;white-space:nowrap}.consultation-bar p{font-size:12px;margin:0}.consultation-bar a{background:#fee500;color:#191919;font-weight:700;text-decoration:none}.consultation-dialog{width:min(620px,calc(100vw - 32px));max-height:85dvh;overflow:auto;border:1px solid #cdd8e4;border-radius:16px;padding:22px;color:#142c43}.consultation-dialog::backdrop{background:#14202b88}.consultation-dialog textarea{width:100%;height:250px;font-size:14px}.consultation-dialog .button-row{flex-wrap:wrap}.consultation-dialog button,.consultation-dialog a{min-height:44px}.consultation-url{overflow-wrap:anywhere}.consultation-dialog [role=status]{min-height:2em;font-size:14px}html{scroll-padding-bottom:100px}main{padding-bottom:100px!important}@media(max-width:600px){.family-option{display:flex;padding:16px;gap:8px}.family-visual:not(.family-auto){height:200px}.family-auto{width:100%;height:60px}.consultation-bar{gap:8px;padding:8px}.consultation-bar p{display:none}.consultation-bar button,.consultation-bar a{flex:1;font-size:14px}.consultation-dialog{padding:16px}.consultation-dialog textarea{height:210px}}

.consultation-bar{position:fixed;left:0;right:0;bottom:0;padding-bottom:max(8px,env(safe-area-inset-bottom));}body{padding-bottom:82px}dialog{scroll-padding-bottom:24px}

#reference-price .vat-supply strong{display:block;font-size:30px;line-height:1.3}#reference-price .vat-tax{font-size:14px}#reference-price .vat-total{font-size:18px}

/* Final owner corrections: contained product images and stable interaction geometry. */
.family-visual:not(.family-auto){height:168px;padding:24px 38px;background:#f3f6fa;border:0}
.family-visual>img,.family-rhs>img{width:100%;height:100%;max-width:100%;object-fit:contain}
.family-visual>.family-context{left:8px;bottom:6px;padding:4px 8px;font-size:12px}
.family-rdb>img{max-width:170px}.family-rhs{background:#f3f6fa}
.family-option:hover{border-color:#8ba5b8;background:#f4f8fa}.family-option.selected:hover{background:#edf6f5}
.family-option,.product-reference-card,button,.button,canvas,.module-stage{transform:none;filter:none}
.family-option:hover,.family-option:focus-visible,.product-reference-card:hover,canvas:hover,.module-stage:hover{transform:none;filter:none}
.reference-toolbar label{display:flex;flex-direction:column;gap:6px;min-width:0;line-height:1.5}.reference-toolbar select{display:block;width:100%;min-width:0;height:48px;line-height:normal;padding:8px 10px}
.reference-toolbar input[type=range]{width:100%;margin:0;height:48px;display:block}
.quote-notices{border:1px solid #cbd9e3;border-radius:10px;padding:14px;margin:18px 0;color:#233d54;background:#f7fafc;font-size:14px}.quote-notice-summary{margin:0;line-height:1.65}.quote-notices summary{min-height:44px;display:flex;align-items:center;font-size:14px;color:#174d68}.quote-notices ol{padding-left:22px}.quote-notices li{margin:10px 0;line-height:1.7}
.product-photo-pending{flex:0 0 38%;padding:24px 10px;text-align:center;border:1px dashed #9bacb8;border-radius:8px;color:#405971;font-size:14px}
.module-stage>label{display:block;padding:10px 16px;color:#dce7ef}.module-stage>label select{margin-top:6px}.module-stage>p{font-size:14px;padding:0 12px}.module-sidebar .limit-help{font-size:14px;color:#405971}
@media(max-width:600px){.family-visual:not(.family-auto){height:140px;padding:20px 36px}.family-rdb>img{max-width:150px}.product-photo-pending{margin-bottom:12px}.quote-notices{padding:12px}.reference-toolbar{gap:14px}}

.module-stage>label{color:#405971;background:#f7fafc}.module-stage>label .meta{color:#52677e}.module-stage>label.checkbox-label{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.6}.module-stage>label input[type=checkbox]{flex-shrink:0}

/* Keep the result action readable at narrow widths. */
.result-head>.button-row{flex-shrink:0}.result-head .contact-link{white-space:nowrap;word-break:keep-all;overflow-wrap:normal}
@media(max-width:600px){.result-head{flex-direction:column;align-items:stretch}.result-head>.button-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.result-head>.button-row>a,.result-head>.button-row>button{display:flex;align-items:center;justify-content:center;font-size:14px;padding:10px 12px;min-width:0}.consultation-bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.consultation-bar>button,.consultation-bar>a{min-width:0;padding:8px 3px;font-size:12px;white-space:normal;word-break:keep-all;line-height:1.35}}
.error-report-dialog{width:min(650px,calc(100vw - 32px));max-height:85dvh;overflow:auto;border:1px solid #cdd8e4;border-radius:16px;padding:22px;color:#142c43}.error-report-dialog::backdrop{background:#14202b88}.error-report-dialog textarea{min-height:120px}.error-report-dialog .button-row{display:flex;flex-wrap:wrap;gap:8px}.error-report-dialog .button-row>*{min-height:44px;word-break:keep-all;max-width:100%}.error-report-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.error-report-dialog input[type=file]{width:100%;min-width:0;font-size:13px}.error-report-dialog [role=status]{min-height:2em}.error-report-dialog ul{padding-left:20px;overflow-wrap:anywhere}.error-report-dialog label{word-break:keep-all}.error-report-dialog .error-report-state{font-size:13px;color:#735016;background:#fff7e5;padding:10px;border-radius:8px}@media(max-width:600px){.error-report-dialog{padding:16px}.error-report-dialog h2{font-size:21px}}

/* RDS3050U reference links stay whole; each mobile link has its own touch row. */
.rds50-reference-card>div{min-width:0;flex:1}
.rds50-reference-card .product-reference-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.rds50-reference-card .product-reference-actions>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;margin:0;white-space:nowrap;word-break:keep-all;overflow-wrap:normal;box-sizing:border-box}
.rds50-reference-card .rds50-spec-link{padding:10px 14px;text-underline-offset:3px}
@media(max-width:600px){.rds50-reference-card .product-reference-actions{flex-direction:column;align-items:stretch}.rds50-reference-card .product-reference-actions>a{width:100%}}

/* Shared compositor upload/selection rows: whole words and accessible native controls. */
#editor-root label{word-break:keep-all;overflow-wrap:normal}
#editor-root .file-field{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;width:100%;min-width:0;line-height:1.6}
#editor-root .file-field input[type=file]{display:block;width:100%;min-width:0;max-width:100%;min-height:44px;margin:0;padding:0;border:0;background:transparent}
#editor-root .file-field input[type=file]::file-selector-button{box-sizing:border-box;min-width:88px;min-height:44px;margin:0 8px 0 0;padding:8px 8px;font:inherit;line-height:1.4;white-space:nowrap;word-break:keep-all;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff);color:var(--ink,#132c49);cursor:pointer}
#editor-root .studio-toolbar,#editor-root .grid2,#editor-root .field{min-width:0}
#editor-root select{min-width:0;max-width:100%}
@media(max-width:600px){#editor-root .file-field{padding:12px}#editor-root .studio-toolbar label{min-width:0;flex-basis:100%}#editor-root .grid2{row-gap:12px}}

/* Mixed purchase basket and measured-wall comparison. */
.content-fit-row>.field{margin:0}
#basket-root{margin:20px 0}.basket-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.basket-heading h2{font-size:24px;margin:4px 0}.basket-heading h2 span{font-size:15px;font-weight:500}.basket-list{list-style:none;padding:0;margin:20px 0;display:grid;gap:16px}.basket-row{border:1px solid var(--line);border-radius:12px;padding:18px;min-width:0;background:#f7fafc}.basket-row h3{margin:0 0 8px}.basket-row p{word-break:keep-all;overflow-wrap:anywhere}.basket-row-actions{display:flex;align-items:end;flex-wrap:wrap;gap:8px}.basket-row-actions label{display:grid;gap:4px;width:90px}.basket-row-actions input{max-width:100%;min-width:0}.basket-total{border-top:1px solid var(--line);padding-top:18px}.basket-total button{margin:4px 6px 4px 0}.size-comparison{padding:18px;background:#f0f6fa;border:1px solid var(--line);border-radius:12px;margin:18px 0}.size-comparison svg{display:block;width:100%;max-height:380px;min-height:150px;object-fit:contain}.size-comparison input{min-width:0}.content-fit-row{align-items:end}.content-fit-row>.field:last-child{display:flex;align-items:end;margin:0}.content-fit-row #remove-content{width:100%;min-height:48px;margin:0}#result-bracket{width:100%;max-width:100%}#basket-root *,#size-diagram{min-width:0}#basket-root h3,#basket-root button,.size-comparison p{word-break:keep-all;overflow-wrap:anywhere}@media(max-width:600px){.basket-row{padding:12px}.basket-row-actions{display:grid;grid-template-columns:1fr 1fr}.basket-row-actions label{width:100%}.basket-row-actions button{min-height:48px}.basket-heading>*{width:100%}.basket-total button{width:100%;margin:4px 0}.size-comparison{padding:12px}.size-comparison svg{min-height:110px}.content-fit-row{row-gap:10px}}

/* P2-01: match the owner's supply/VAT hierarchy in the mixed subtotal. */
.basket-total .vat-supply{font-size:18px;line-height:1.5;margin:16px 0 8px}
.basket-total .vat-supply strong{display:block;font-size:30px;font-weight:750;line-height:1.3}
.basket-total .vat-tax{font-size:14px;line-height:1.5;margin:0 0 16px;color:#526479}
.basket-total .vat-tax strong{font-weight:600}
.basket-total #basket-known-total{display:block;font-size:22px;font-weight:700;line-height:1.4}

.intake-submission{margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:12px;background:#f4f8fb}.intake-submission h4{margin:0 0 12px}.intake-scope,.purchase-availability{font-size:14px;line-height:1.6;color:#526479;word-break:keep-all;overflow-wrap:anywhere}.intake-receipt{word-break:keep-all;overflow-wrap:anywhere}.intake-submission button{max-width:100%;white-space:normal}.admin-list{display:grid;gap:12px;list-style:none;padding:0}.admin-list button{width:100%;text-align:left;white-space:normal}.admin-detail{white-space:pre-wrap;overflow-wrap:anywhere}.admin-actions{display:flex;flex-wrap:wrap;gap:12px}@media(max-width:600px){.intake-submission{padding:12px}.intake-submission button{width:100%}}
