.layout48{padding:36px 0 70px}.intro48{padding:36px clamp(22px,5vw,58px);border-radius:22px;background:linear-gradient(120deg,#102b4c,#1e4e79);color:white}.intro48 h1,.layout48>header h1{font-size:clamp(30px,4vw,52px);margin:12px 0}.intro48 p{max-width:58ch;color:#dfedfa}.layout48 small{font-size:12px}.picker48,.head48,.standard48{display:flex;align-items:center;justify-content:space-between;gap:20px}.picker48{margin:32px 0 18px}.picker48 h2,.standard48 h2,.panel48 h2{font-size:23px;margin:6px 0}.picker48 p,.standard48 p,.canvas48 p{color:#49627b}.presets48{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}.presets48 button,.panel48,.canvas48,.standard48{background:white;border:1px solid #c9d9e9;border-radius:16px}.presets48 button{display:grid;padding:12px;gap:3px;color:#16395d;text-align:left}.presets48 button:hover,.chips48 button:hover{border-color:#216abb}.presets48 button b{font-size:21px}.presets48 .assembly-drawing{height:112px;background:#eef4fa;border-radius:9px}.standard48{padding:24px;margin-top:26px}.editor48{display:grid;grid-template-columns:minmax(270px,.85fr) minmax(320px,1.15fr);gap:24px;align-items:start;margin-top:18px}.left48{display:grid;gap:12px}.panel48,.canvas48{padding:22px}.panel48 label{display:grid;gap:4px}.panel48 label strong{padding:10px 0}.panel48 label small{font-size:11px;color:#415c77}.canvas48{position:sticky;top:92px;background:#f5f9fd}.assembly-drawing{width:100%;height:auto;max-height:360px;display:block}.assembly-drawing [role=button]{cursor:pointer}.assembly-drawing [role=button]:focus{outline:3px solid #1757a9}.chips48{display:flex;gap:8px;flex-wrap:wrap}.chips48 button:not(.btn){border:1px solid #bfcee1;background:white;color:#194168;border-radius:9px;padding:8px 12px}.chips48 button[aria-pressed=true]{background:#dceeff;color:#103453;border-color:#2972b8}.price48{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #c9d9e9;padding-top:12px}.price48 strong{font-size:23px}.canvas48 #v4-error{color:#88281e}.layout48 #code48{font-size:21px}.layout48 .v4-field select{max-width:100%}@media(max-width:800px){.editor48{display:flex;flex-direction:column}.canvas48{position:static;order:-1;width:100%}.left48{width:100%}.picker48,.standard48{align-items:flex-start;flex-direction:column}.canvas48 .assembly-drawing{max-height:230px}.presets48{grid-template-columns:repeat(2,minmax(0,1fr))}.layout48 .head48{align-items:flex-start}.layout48{padding-top:20px}}


.dual48{position:relative;padding-bottom:65px;border-radius:12px;background:linear-gradient(160deg,#e5eef7,#f7fafc);margin-top:14px}.dual48 #drawing48{overflow-x:auto}.dual48 #mini48{position:absolute;bottom:6px;right:8px;width:125px;background:white;border:1px solid #b7cde0;border-radius:9px;padding:3px;color:#16395d}.dual48 #mini48 svg{height:42px}.dual48 #mini48 span{font-size:11px;font-weight:700}.section-index48{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:5px;max-height:150px;overflow:auto;margin:10px 0}.section-index48 button{background:white;border:1px solid #cbddeb;border-radius:7px;text-align:left;padding:7px;color:#183858}.section-index48 button[aria-pressed=true]{border-color:#216abb;background:#e2efff}.section-index48 small{display:block;font-size:10px}.section-index48 b{font-size:12px}.canvas48{align-self:start}@media(max-width:800px){.canvas48{max-height:none;overflow:visible}}

.editor48 .canvas48,.dual48{min-width:0}.chips48 button:disabled{opacity:.55;cursor:not-allowed}

.structure-head48{display:flex;align-items:center;justify-content:space-between;gap:12px}
.structure48>p{margin:5px 0 15px;color:#425e76;font-size:14px}
.structure48 .templates48,.layout48 .return48{background:none;border:0;border-radius:5px;color:#15528c;padding:6px;font-weight:700;font-size:13px;white-space:nowrap}
.structure-map48{border:1px solid #c4d6e6;border-radius:12px;overflow:hidden}
.row-map48{display:grid;grid-template-columns:56px 1fr;align-items:center;gap:10px;padding:8px 10px;background:#f5f9fd}
.row-map48+.row-map48{border-top:1px solid #d9e5f0}
.row-map48>strong{font-size:13px;color:#304c67}
.cells48{display:flex;flex-wrap:wrap;align-items:center;gap:5px;min-width:0}
.cells48 button{flex:1 1 40px;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:40px;min-height:38px;border:1px solid #9bb8ce;border-radius:7px;background:white;color:#31526d}
.cells48 button b{font-size:15px}.cells48 button span{font-size:11px}
.cells48 button[aria-pressed="true"]{background:#174a78;border-color:#174a78;color:white}
.cells48 button.empty48{background:none;border-style:dashed;color:#165489;font-weight:700;font-size:13px;padding:5px 9px}

.context48{display:flex;flex-wrap:wrap;align-items:center;gap:7px 12px;padding-top:12px;border-top:1px solid #d9e5f0}
.context48>div{display:grid;margin-right:auto}.context48>div small{font-size:11px;color:#4b647c}
.context48>div strong{font-size:15px}.context48>p{margin:0;color:#425e76;font-size:13px}
.context48 button{border-radius:8px;font-weight:700;font-size:13px;min-height:38px}
.context48 .extend48{background:#184e80;color:white;border:1px solid #184e80;padding:6px 12px}
.context48 .remove48{border:none;background:none;color:#8e342f;padding:4px 2px}
.structure48 button:not(:disabled):hover{text-decoration:underline}
.structure48 button:focus-visible,.return48:focus-visible{outline:3px solid #3384ca;outline-offset:2px}
.presets48 button:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:800px){.editor48>.left48{display:contents}.editor48 .panel48{width:100%;order:2}.editor48 .structure48{order:0}.editor48 .canvas48{order:1}}
@media(max-width:420px){.structure48{padding:16px}.structure-head48{align-items:flex-start}.row-map48{grid-template-columns:49px 1fr;gap:5px}.cells48 button{min-height:40px}}

.layout48 .choices48{border:0;min-width:0;padding:0;margin:16px 0}
.choices48 legend{padding:0;font-size:14px;font-weight:750;color:#233f59}
.choices48>p,.finishes48 .selection-name48{font-size:13px;color:#50657a;margin:2px 0 5px}
.choice-list48{display:flex;flex-wrap:wrap;gap:7px;margin-top:6px}
.layout48 .choice48{position:relative;display:flex;flex:1 1 8rem;min-width:0;margin:0;padding:0}
.choice48 input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1}
.choice-face48{display:flex;align-items:center;gap:7px;width:100%;min-height:44px;padding:8px 10px;border:1px solid #c3cdd5;border-radius:9px;background:#f3f5f7;color:#536575}
.choice48 input:hover+.choice-face48{border-color:#7692a9;background:#eaf0f5}
.choice48 input:checked+.choice-face48{background:#e6f1fc;border-color:#235d96;color:#123e67;box-shadow:inset 0 0 0 1px #235d96}
.choice48 input:focus-visible+.choice-face48{outline:3px solid #2671b4;outline-offset:2px}
.choice-text48{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere;line-height:1.25}
.choice-text48 b{font-size:13px}.layout48 .choice48 small{font-size:11px;color:inherit}
.choice48 .swatch48{width:17px;height:17px;flex:none;border-radius:50%;border:1px solid #7990a3}
.choice48 .check48{margin-left:auto;visibility:hidden;font-size:14px;font-weight:800}
.choice48 input:checked+.choice-face48 .check48{visibility:visible}
.structure48 .type-limits48{padding:8px 10px;border-left:3px solid #b76c2d;background:#fff5e8;color:#754219}
.finishes48 .choices48+.choices48{padding-top:8px;border-top:1px solid #e3e9ef}
@media(forced-colors:active){.choice48 input:checked+.choice-face48{outline:2px solid Highlight;outline-offset:-2px}}

/* Expand the elevation to the browser height; the secondary view has its own row. */
.canvas48 #face48{font-size:clamp(1.35rem,2.1vw,1.95rem);font-weight:800;line-height:1.15;color:#123f69}
.layout48 .choice48:has(.swatch48) .choice-face48{padding:4px 6px 4px 4px;min-height:56px}
.layout48 .choice48 .swatch48{width:46px;height:46px;flex:none;border:1px solid #7a8c9e}
.layout48 .choice48:has(.swatch48){flex-basis:8.2rem}
.canvas48 .dual48{display:flex;flex-direction:column;padding:0;overflow:hidden}
.dual48 #drawing48{height:max(220px,calc(100vh - 250px));height:max(220px,calc(100dvh - 250px));width:100%;overflow-x:auto;overflow-y:hidden}
.dual48 #drawing48>svg{width:100%;height:100%;max-height:none}
.detail-bar481{display:flex;align-items:center;gap:12px;padding:6px 10px 8px;border-top:1px solid #ccdae7}
.detail-bar481 #mini48{position:static;margin-left:auto;flex:0 0 113px;width:auto;background:white}
#detail481{flex:1;min-width:0;display:grid;gap:2px;color:#23425f;font-size:14px;overflow-wrap:anywhere;line-height:1.3}
#detail481 small{color:#4c6981;font-size:11px}
@media(min-width:801px){.editor48 .canvas48{max-height:calc(100vh - 102px);max-height:calc(100dvh - 102px);overflow-y:auto;scrollbar-gutter:stable}}
@media(max-width:800px){.editor48 .canvas48{max-height:none}.dual48 #drawing48{height:max(210px,calc(100dvh - 210px))}.detail-bar481 #mini48{flex-basis:99px}}
@media(max-width:420px){.layout48 .choice48:has(.swatch48){flex-basis:7.2rem}.choice48:has(.swatch48) .choice-face48{gap:5px}}


/* The page is a two-pane workspace: only the configuration form scrolls. */
body:has(.fixed-studio481){overflow:hidden}
#app:has(>.fixed-studio481){display:flex;flex-direction:column;height:100vh;height:100dvh;min-height:0}
#app:has(>.fixed-studio481)>.v3-nav,#app:has(>.fixed-studio481)>.demo-bar{flex:none}
#app:has(>.fixed-studio481)>.v3-footer{display:none}
.fixed-studio481{flex:1 1 0;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);padding:8px 0;max-width:1750px;width:95%}
.fixed-studio481>header{min-width:0;gap:8px}
.fixed-studio481>header h1{font-size:clamp(19px,2.1vw,30px);margin:0;line-height:1.15}
.fixed-studio481>header>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px}
.fixed-studio481>header .cancel-item{min-height:30px;padding:4px 11px}
.fixed-studio481 .editor48{min-height:0;display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);grid-template-rows:minmax(0,1fr);gap:12px;align-items:stretch;margin-top:7px}
.fixed-studio481 .editor48>.left48{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 3px 8px 0}
.fixed-studio481 .left48>.panel48{flex:none;order:0}
.fixed-studio481 .editor48>.canvas48{position:static;align-self:stretch;display:flex;flex-direction:column;gap:5px;height:100%;min-height:0;min-width:0;max-height:none;overflow:visible;scrollbar-gutter:auto;padding:clamp(8px,1vw,16px);container-type:size;container-name:fixedpreview}
.fixed-studio481 .canvas48>.head48{flex:none;align-items:center;min-width:0;margin:0;gap:6px}
.fixed-studio481 #face48{font-size:clamp(18px,1.7vw,28px);flex-shrink:0}
.fixed-studio481 #code48{font-size:clamp(11px,1.3vw,18px);text-align:right;overflow-wrap:anywhere;line-height:1.05}
.fixed-studio481 .dual48{flex:1 1 0;min-height:0;width:100%;display:grid;grid-template-rows:minmax(0,1fr) auto;margin:0;overflow:visible}
.fixed-studio481 .dual48 #drawing48{min-height:0;min-width:0;height:100%;width:100%;overflow:visible}
.fixed-studio481 #drawing48 svg{width:100%;height:100%;min-width:0;max-height:none}
.fixed-studio481 .detail-bar481{min-width:0;align-items:center;gap:8px;padding:4px 7px}
.fixed-studio481 #mini48{display:flex;align-items:center;gap:3px;flex:0 1 auto;max-width:45%;min-width:0;padding:3px 5px}
.fixed-studio481 #mini48 svg{width:46px;height:30px;flex:none}
.fixed-studio481 #mini48 span{line-height:1.15;text-align:left}
.fixed-studio481 #detail481{font-size:12px;line-height:1.2}
.fixed-studio481 #detail481 b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fixed-studio481 .section-index48{flex:none;display:grid;grid-template-columns:repeat(var(--indexcols),minmax(0,1fr));gap:3px;min-height:0;max-height:none;overflow:visible;margin:0}
.fixed-studio481 .section-index48 button{display:grid;place-items:center;min-width:0;min-height:22px;padding:2px;line-height:1.1;text-align:center}
.fixed-studio481 .section-index48 small{font-size:10px;line-height:1.15}
.fixed-studio481 .section-index48 b{font-size:12px}
.fixed-studio481 .section-index48[data-many] small{display:none}
.fixed-studio481 .legend-fix481,.fixed-studio481 .engineer-note481{flex:none;font-size:12px;margin:0;line-height:1.2}
.fixed-studio481 .price48{padding-top:3px;gap:4px}.fixed-studio481 .price48 strong{font-size:20px}
.fixed-studio481 .canvas48 .summary481 .chips48{flex:none;gap:5px}
.fixed-studio481 .canvas48 .summary481 .chips48 button{min-height:29px;height:auto;margin:0;padding:3px 10px;font-size:13px;line-height:1.2}
.fixed-studio481 #v4-error:empty,.fixed-studio481 #available48:empty{display:none}
.fixed-studio481 #v4-error,.fixed-studio481 #available48{line-height:1.1;font-size:12px}
@container fixedpreview (max-height:485px){
    .fixed-studio481 .section-index48 small{display:none}
    .fixed-studio481 .canvas48 #code48{font-size:12px}
    .fixed-studio481 #mini48 svg{width:39px;height:23px}
    .fixed-studio481 .detail-bar481{padding:2px 4px}
    .fixed-studio481 .legend-fix481,.fixed-studio481 .engineer-note481{font-size:11px}
    .fixed-studio481 .price48 strong{font-size:17px}
}
@media(max-width:740px) and (min-height:490px),(max-width:560px){
    .fixed-studio481{width:97%;padding:4px 0}
    .fixed-studio481>header small{display:none}
    .fixed-studio481 .editor48{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(min(73%,305px),1.65fr) minmax(0,1fr);gap:5px;margin-top:4px}
    .fixed-studio481 .editor48>.canvas48{grid-row:1;order:0;gap:3px;padding:5px 7px}
    .fixed-studio481 .editor48>.left48{grid-row:2;order:0;padding:0 2px 6px}
    .fixed-studio481 .canvas48 .summary481 .chips48 button{font-size:12px;padding:3px 6px;min-height:25px}
}
@media(max-height:500px) and (min-width:561px){
    #app:has(>.fixed-studio481) .demo-bar{font-size:10px;padding:2px}
    .fixed-studio481{padding:2px 0}
    .fixed-studio481>header>div small{display:none}
    .fixed-studio481 .editor48{margin-top:2px;gap:5px}
    .fixed-studio481 .editor48>.canvas48{padding:3px 6px;gap:2px}
    .fixed-studio481 .canvas48 .summary481 .chips48 button{font-size:11px;min-height:20px;padding:2px 4px}
    .fixed-studio481 .section-index48 button{min-height:17px}
}

.fixed-studio481 .summary481{display:flex;align-items:center;justify-content:space-between;gap:6px;border-top:1px solid #c7d8e9;padding-top:4px}
.fixed-studio481 .summary481 .price48{flex:none;display:grid;gap:0;border:0;padding:0}
.fixed-studio481 .summary481 .chips48{justify-content:flex-end;gap:4px}
.fixed-studio481 .summary481 .price48 small{font-size:10px;line-height:1.1}
.fixed-studio481 .summary481 .price48 strong{line-height:1.15}
.fixed-studio481 .section-index48 button{font-size:12px;line-height:1}
.fixed-studio481 #detail481 small{line-height:1.1}
@container fixedpreview (max-height:390px){
    .fixed-studio481 .summary481 .price48 strong{font-size:15px}
    .fixed-studio481 .summary481 .price48 small{font-size:9px}
    .fixed-studio481 .section-index48 button{min-height:17px}
    .fixed-studio481 .summary481 .chips48 button{font-size:11px;padding:2px 5px;min-height:23px}
}
@media(max-height:680px){
    #app:has(>.fixed-studio481)>.v3-nav{height:46px;min-height:46px}
    #app:has(>.fixed-studio481)>.demo-bar{font-size:10px;line-height:1.2;padding:2px 6px}
}
@media(max-width:560px) and (max-height:680px){
    .fixed-studio481 .editor48{grid-template-rows:minmax(0,2.65fr) minmax(0,1fr)}
}

.fixed-studio481 .canvas48 .summary481 .chips48{flex:1 1 0;min-width:0;flex-wrap:wrap}
@container fixedpreview (max-width:420px){
 .fixed-studio481 .canvas48 .summary481 .chips48 button{font-size:11px;padding:2px 4px;min-height:22px}
}

/* v4.82: all editing remains in the scrollable options pane. */
.climate482{display:block;color:#b42318;font-weight:850;font-size:12px;line-height:1.35;margin-top:5px}
.glass-values482{display:block;font-size:12px;line-height:1.4;margin:3px 0;font-weight:650;color:#294e6b}
.choices48:has(.climate482) .choice48{flex-basis:100%}
.grille-counts482{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.grille-counter482{display:grid;gap:7px;font-size:13px;font-weight:750;min-width:0}
.grille-stepper482{display:flex;align-items:center;border:1px solid #bdcfe2;border-radius:10px;overflow:hidden;background:#f6f9ff}
.grille-stepper482 button{flex:0 0 36px;min-height:42px;border:0;background:#e7effb;color:#19487b;font-size:22px;cursor:pointer}
.grille-stepper482 button:disabled{opacity:.35;cursor:default}
.grille-stepper482 input{width:100%;min-width:0;text-align:center;border:0;border-radius:0;padding:7px 0;background:transparent;font-size:17px;font-weight:750;appearance:textfield;-moz-appearance:textfield}
.grille-stepper482 input::-webkit-inner-spin-button{appearance:none}
.grille-stepper482 :focus-visible{outline:2px solid #2679d6;outline-offset:-3px}
.grille-result482{border-left:3px solid #2b67ac;padding:10px 12px;background:#edf4ff;color:#153e70;font-size:14px;font-weight:800;line-height:1.4}
.grille-controls482>small,.grille-scope482,.grille-estimate482{font-size:12px;line-height:1.45;color:#4c657d}
.grille-all482{width:100%;white-space:normal;margin-top:6px}
.grilles482 h2{margin:0}.grilles482>.head48+p{font-size:13px;color:#516a82}
.v4-controls .choices48{border:0;padding:0}.v4-controls .choice48{position:relative;display:flex;flex:1;min-width:90px}
.v4-controls .choice48 .swatch48{width:36px;height:36px}
