@font-face{font-family:Poppins;src:url('../assets/fonts/Poppins-Regular.ttf') format('truetype');font-weight:400;font-display:swap}@font-face{font-family:Poppins;src:url('../assets/fonts/Poppins-Medium.ttf') format('truetype');font-weight:500;font-display:swap}@font-face{font-family:Poppins;src:url('../assets/fonts/Poppins-SemiBold.ttf') format('truetype');font-weight:600;font-display:swap}
:root{font-family:Poppins,system-ui,sans-serif;color:#343e40;background:#efeee8;--ink:#343e40;--yellow:#ffcb01;--paper:#ffffffed}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input,select{font:inherit;color:inherit}button,select{cursor:pointer}button{border:0;background:none}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #5a7974;outline-offset:5px}button:disabled{cursor:default;opacity:.45}[hidden]{display:none!important}h1,h2,p{margin:0}button,a{-webkit-tap-highlight-color:transparent}.planner{width:100%;height:100dvh;position:relative;isolation:isolate;overflow:hidden}#scene{position:absolute;inset:0}canvas{display:block;width:100%;height:100%;touch-action:none}canvas:focus-visible{outline:2px solid #5a7974;outline-offset:-4px}.top-actions{position:absolute;right:30px;top:26px}.quiet{padding:11px 18px;border-radius:24px;font-size:12px;font-weight:500;background:#ffffffb8;backdrop-filter:blur(14px)}.quiet span{margin-left:16px}.steps{position:absolute;left:26px;top:50%;transform:translateY(-68%);display:grid;gap:12px}.step{display:flex;align-items:center;gap:12px;padding:10px 16px 10px 12px;border-radius:26px;font-size:12px;text-align:left;transition:background .18s}.step svg,.render-lab summary svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.25;stroke-linejoin:round;stroke-linecap:round}.step[aria-current]{background:#ffffffdc;box-shadow:0 3px 22px #333e4008;font-weight:500}.step:hover{background:#ffffffa6}.helper{position:absolute;left:28px;bottom:155px;width:294px;background:var(--paper);backdrop-filter:blur(18px);border-radius:22px;padding:20px 22px;box-shadow:0 10px 36px #293c390b;border:1px solid #fff9;z-index:3}.helper[data-side=right]{left:auto;right:28px;bottom:160px}.helper[data-side=top]{bottom:auto;top:95px;left:224px}.helper-heading{display:flex;align-items:center;gap:10px;font-size:10px;color:#6a7474;margin-bottom:12px}.helper-heading .icon-button{margin-left:auto}.icon-button{height:32px;min-width:32px;display:inline-grid;place-items:center;border-radius:50%;font:22px system-ui;flex-shrink:0}.icon-button:hover{background:#343e400a}.face{position:relative;display:inline-block;width:27px;height:27px;border-radius:50%;background:#ffda53;flex-shrink:0}.face:before,.face:after{content:'';position:absolute;top:10px;width:2px;height:3px;border-radius:2px;background:var(--ink)}.face:before{left:8px}.face:after{right:8px}.face i{position:absolute;width:8px;height:5px;bottom:7px;left:10px;border-bottom:1.5px solid var(--ink);border-radius:0 0 10px 10px}.helper h1{font-size:18px;letter-spacing:-.6px;font-weight:500;line-height:1.35;margin-bottom:8px}.helper p{font-size:12px;line-height:1.8;color:#647171}.text-action{font-size:12px;font-weight:500;padding:12px 0 0;display:flex;justify-content:space-between;width:100%}.text-action span{color:#82918d}.avatar-button{position:absolute;right:28px;bottom:172px;padding:10px;border-radius:50%;background:white;box-shadow:0 4px 24px #343e4010;z-index:3}.avatar-button .face{width:30px;height:30px;display:block}.avatar-button .face:before{left:9px}.avatar-button .face:after{right:9px}.avatar-button .face i{left:11px;bottom:8px}.choice-options{display:flex;gap:8px;align-items:center;justify-content:center}.segmented{padding:5px;background:#ffffffa8;border-radius:28px;backdrop-filter:blur(16px);gap:2px}.segmented button{padding:10px 20px;white-space:nowrap;font-size:12px;border-radius:22px}.segmented button[aria-pressed=true]{background:var(--ink);color:#fff}.choice-dimensions{display:flex;gap:8px;padding:10px 16px;background:var(--paper);border-radius:18px;box-shadow:0 3px 24px #343e4006}.dimension{display:grid;text-align:left;padding:0 12px;border-right:1px solid #e8eae7;gap:2px}.dimension:last-child{border:0}.dimension span{font-size:10px;color:#7b8583}.dimension input{border:0;background:transparent;width:90px;font-size:16px;font-weight:500;outline-offset:0;padding:2px 0}.dimension small{font-size:12px}.dimension.fixed strong{padding-top:5px;font-size:15px;font-weight:500}.thumb{display:grid;place-items:center;gap:5px;padding:10px 14px;border-radius:16px;background:#ffffffbd;min-width:84px;border:1px solid transparent}.thumb[aria-pressed=true]{border-color:#6f807c;background:#fff;box-shadow:0 0 0 2px #ffffffa0}.thumb svg{width:42px;height:29px;stroke:#778682;stroke-width:1.3;fill:#e9ede7}.thumb span{font-size:10px;white-space:nowrap}.swatches{padding:10px 16px;gap:15px;border-radius:32px;background:#ffffffba;backdrop-filter:blur(14px)}.swatch{height:29px;width:29px;background:var(--swatch);border-radius:50%;box-shadow:inset 0 0 0 1px #343e4015;position:relative}.swatch[aria-pressed=true]:after{content:'';position:absolute;inset:-5px;border:1.5px solid #4e6360;border-radius:50%}.subtabs{display:flex;justify-content:center;gap:20px;margin:10px 0 0}.subtabs button{position:relative;font-size:10px;color:#74817f;padding:5px 0;border:0;border-radius:0;box-shadow:none}.subtabs button[aria-pressed=true]{color:var(--ink)}
.subtabs button::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:currentColor;opacity:0}
.subtabs button[aria-pressed=true]::after{opacity:1}
.subtabs button:focus-visible{outline:none;color:var(--ink)}
.subtabs button:focus-visible::after{opacity:1;height:2px}#leader{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}#leader line{stroke:#71847c;stroke-width:1;opacity:.65}.render-lab{position:absolute;left:28px;bottom:28px;z-index:5}.render-lab summary{list-style:none;display:flex;align-items:center;gap:8px;cursor:pointer;color:#7b8783;font-size:10px;min-height:40px}.render-lab summary::-webkit-details-marker{display:none}.render-lab summary svg{width:19px;height:19px}.lab-content{position:absolute;bottom:50px;left:0;width:260px;background:#fffffff5;padding:22px;border-radius:20px;box-shadow:0 10px 50px #343e4012}.lab-content h2{font-size:18px;font-weight:500;margin:5px 0 16px}.lab-content label{display:grid;gap:5px;margin:12px 0;font-size:11px}.lab-content select{font-size:12px;padding:9px;background:#f4f5f1;border:0;border-radius:9px;width:100%}.lab-content .switch{display:flex;align-items:center;gap:8px}.lab-content input{accent-color:#677c70}.lab-content output{display:block;font:10px/1.8 ui-monospace,monospace;color:#7a8781;border-top:1px solid #e6eae3;padding-top:12px;margin-top:15px}.lab-note{font-size:10px;color:#87918a;line-height:1.7;margin-top:10px}.eyebrow{font-size:9px;letter-spacing:1.3px;text-transform:uppercase;color:#7d8983}.loading{position:absolute;inset:0;background:#efeee8;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;z-index:10}.loading strong{font-size:17px;font-weight:500}.loading>span:last-child{font-size:12px;color:#7f8983}.loader{width:34px;height:34px;border:2px solid #d7dcd4;border-top-color:#687e71;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:15px}@keyframes spin{to{transform:rotate(360deg)}}.error-copy{max-width:420px;text-align:center;font-size:13px;line-height:1.8;padding:24px}.error-copy button{background:white;border-radius:20px;padding:10px 20px;margin-top:16px}.toast{position:absolute;top:80px;left:50%;transform:translateX(-50%);background:#343e40;color:white;border-radius:14px;padding:12px 20px;font-size:12px;z-index:8;max-width:90vw;text-align:center}.unavailable{font-size:12px;line-height:1.7;color:#6e7b76;max-width:390px;padding:12px 22px;background:#ffffffd9;border-radius:18px}.unavailable strong{display:block;font-weight:500;color:var(--ink)}dialog{border:0;border-radius:24px;padding:36px;width:420px;max-width:calc(100vw - 32px);color:var(--ink);box-shadow:0 15px 100px #26373120}dialog::backdrop{background:#1b332438;backdrop-filter:blur(6px)}dialog h2{font-size:24px;font-weight:500;letter-spacing:-.7px;margin:10px 0}dialog p{font-size:12px;line-height:1.9;color:#77817c}.dialog-close{position:absolute;right:12px;top:12px}.dialog-actions{display:grid;gap:10px;margin:24px 0}.primary,.secondary{padding:13px;border-radius:12px;font-size:12px;font-weight:500;background:var(--yellow)}.secondary{background:#f0f2ec}.small{font-size:10px!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1100px) and (max-height:760px){.steps{top:38%}.helper{bottom:145px;width:270px;padding:16px 20px}.helper h1{font-size:16px}.helper-heading{margin-bottom:7px}.helper p{font-size:11px}.helper[data-side=right]{bottom:145px}}
@media(max-width:760px){.top-actions{top:max(16px,env(safe-area-inset-top));right:16px}.quiet{font-size:11px;padding:10px 14px}.quiet span{margin-left:8px}.choice-dimensions{padding:10px 7px}.dimension{padding:0 9px}.dimension input{width:75px;font-size:15px}.dimension.fixed strong{font-size:14px}.helper,.helper[data-side=right],.helper[data-side=top]{left:16px;right:16px;bottom:215px;top:auto;width:auto;max-width:345px;padding:16px 20px;border-radius:20px}.helper h1{font-size:17px}.helper p{font-size:11px}.helper-heading{margin-bottom:7px}.helper .text-action{padding-top:8px}.avatar-button{right:18px;bottom:205px}.render-lab{left:16px;bottom:180px}.render-lab summary span{display:none}.render-lab .lab-content{width:246px;bottom:45px}.thumb{min-width:73px;padding:9px 9px}.thumb span{font-size:9px}.choice-options{gap:6px}.swatches{gap:18px}.segmented button{padding:10px 13px;font-size:11px}.unavailable{max-width:330px;font-size:11px}.helper-heading .icon-button{height:30px}.toast{top:75px}}
@media(max-height:560px){.helper,.helper[data-side=right],.helper[data-side=top]{top:70px;bottom:auto;width:230px;left:auto;right:16px;padding:12px 16px}.helper h1{font-size:14px}.helper p{font-size:10px}.helper-heading{margin-bottom:4px}.steps{top:90px;transform:none;gap:4px}.step{padding:5px 10px}.render-lab{bottom:20px}.avatar-button{bottom:140px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Sun controls stay inside the development panel. */
.lab-content{max-height:calc(100dvh - 110px);overflow-y:auto}.lab-content label output{display:inline;padding:0;margin:0;border:0;font:10px Poppins,system-ui;color:#758078}.lab-content input[type=range]{width:100%;margin:5px 0;accent-color:#6d8174}.lab-content label:has(input[type=range]){gap:2px}.lab-content #render-stats{line-height:1.6}
@media(max-width:760px){.render-lab .lab-content{max-height:calc(100dvh - 270px)}}

/* Keep the experimental light controls usable in the embedded viewport. */
.lab-content{max-height:calc(100dvh - 130px);overflow-y:auto;overscroll-behavior:contain}
@media(max-width:760px){.render-lab .lab-content{max-height:calc(100dvh - 245px)}}

/* Optional grading panel; its controls are never part of the graded image. */
.render-lab .lab-content{width:310px;padding:22px;max-height:calc(100dvh - 115px)}
.lab-group{border:0;border-top:1px solid #e4e8e3;padding:12px 0 0;margin:20px 0 0;min-width:0}
.lab-group legend{font-size:11px;font-weight:600;padding:0 10px 0 0}
.grade-heading,.grade-ends{display:flex;justify-content:space-between;align-items:center;gap:12px}
.lab-content .grade-control{margin:16px 0}.grade-ends{font-size:9px;color:#87918a}
.grade-disabled{opacity:.5}
.lab-content input[type=range]{height:22px;cursor:ew-resize}
.lab-content .lab-extra>summary{font-size:11px;color:var(--ink);list-style:disclosure-closed;display:list-item;padding:10px 0;min-height:0}
.lab-extra[open]>summary{list-style:disclosure-open}
.lab-extra{border-top:1px solid #e4e8e3;margin-top:18px;padding-top:8px}
.lab-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:20px}
.lab-actions button{font-size:10px;padding:12px 8px}
@media(max-width:760px){.render-lab[open]{position:absolute;inset:0;pointer-events:none}.render-lab[open]>summary{position:absolute;left:16px;bottom:180px;pointer-events:auto}.render-lab[open]>.lab-content{position:absolute;left:12px;bottom:225px;width:min(310px,calc(100vw - 24px));max-height:calc(100dvh - 245px);pointer-events:auto}}
@media(max-width:760px) and (max-height:560px){.render-lab[open]>summary{bottom:12px}.render-lab[open]>.lab-content{bottom:60px;max-height:calc(100dvh - 80px)}}
/* Compact, icon-only mobile navigation. */
@media(max-width:760px){
.steps{gap:6px}
.step{padding:12px 10px;gap:12px;border-radius:0;font-size:11px;color:#65716e;background:none;box-shadow:none}
.step svg{width:20px;height:20px;flex-shrink:0}
.step:hover,.step[aria-current]{background:none;box-shadow:none;color:var(--ink)}
.step[aria-current]{font-weight:500}
.step[aria-current]>span{text-decoration:underline;text-underline-offset:7px;text-decoration-thickness:1px}
.quiet{background:none;backdrop-filter:none;border-radius:0;font-size:11px;padding:12px 0;color:#52615b}
.quiet:hover{color:var(--ink)}.quiet span{margin-left:8px}
.choice-dimensions{border-radius:10px;background:#ffffffc9;box-shadow:none;padding:12px 10px}
.dimension span{font-size:9px}.dimension input,.dimension.fixed strong{font-weight:400}
.thumb{background:none;border:0;border-radius:0;box-shadow:none;min-height:64px;gap:8px;color:#65716e}
.thumb[aria-pressed=true]{background:none;border:0;box-shadow:none;color:var(--ink)}
.thumb[aria-pressed=true]>span{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
.thumb:hover{color:var(--ink)}
.swatches{background:none;backdrop-filter:none;border-radius:0;gap:20px;padding:12px 16px}
.swatch{width:27px;height:27px}.swatch:before{content:'';position:absolute;inset:-9px;border-radius:50%}
.swatch[aria-pressed=true]:after{inset:-4px;border-width:1px}
.subtabs{margin-top:6px}.subtabs button{min-height:32px}
.unavailable{background:none;border-radius:0;padding:10px 0;font-size:11px}
.render-lab>summary>span{display:none}

 .steps{display:flex;justify-content:center;gap:clamp(4px,1.5vw,8px);width:max-content;max-width:calc(100% - 24px);left:50%;right:auto;top:calc(env(safe-area-inset-top) + 16px);transform:translateX(-50%);padding:0;background:none;backdrop-filter:none;border:0;border-radius:0;z-index:4}
 .step{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;gap:0;border-radius:50%;background:#ffffffb8;border:1px solid transparent;color:#64716c;backdrop-filter:blur(12px)}
 .step>span{display:none}.step:hover{background:#ffffffe8}.step[aria-current]{background:#fff;border-color:#6b7871;color:var(--ink);box-shadow:none}
 .step svg{width:21px;height:21px}.step>span{max-width:100%}
 .top-actions{top:calc(env(safe-area-inset-top) + 94px);right:max(22px,env(safe-area-inset-right))}
 .quiet{font-size:10px;padding:10px 0}
 .choice-dimensions{justify-content:center;gap:0;padding:12px 6px}.dimension{padding:0 9px;min-width:0}.dimension input{width:clamp(44px,15vw,70px)}
 .choice-options:not(.swatches){gap:5px}.thumb{flex:1;min-width:0;padding:9px 3px}.thumb span{font-size:9px}
 .unavailable{margin-inline:auto}
 .render-lab{bottom:calc(env(safe-area-inset-bottom) + 205px);left:22px}
 .render-lab[open]>summary{bottom:calc(env(safe-area-inset-bottom) + 205px)}
 .render-lab[open]>.lab-content{bottom:calc(env(safe-area-inset-bottom) + 250px);max-height:calc(100dvh - env(safe-area-inset-bottom) - 350px)}
 .helper,.helper[data-side=right],.helper[data-side=top]{bottom:245px}.avatar-button{bottom:235px}
 .toast{top:calc(env(safe-area-inset-top) + 142px)}
}
@media(max-width:760px) and (max-height:560px){
 .steps{top:calc(env(safe-area-inset-top) + 6px);max-width:500px;margin-inline:auto}.step{min-height:44px;padding:0;gap:0}.step svg{width:18px;height:18px}
 .top-actions{top:calc(env(safe-area-inset-top) + 74px)}
 .render-lab{bottom:12px}.render-lab[open]>summary{bottom:12px}.render-lab[open]>.lab-content{bottom:60px;max-height:calc(100dvh - 130px)}
}

/* Desktop choices sit side by side and size to their contents. */
@media(min-width:761px){
 .choice-dimensions{width:max-content;max-width:100%;justify-content:center;padding:10px 8px;gap:0}
 .dimension{min-width:0;padding:0 12px}
 .dimension input{width:64px}
 .choice-options{flex-wrap:wrap}
 .thumb{min-width:68px;padding:9px 10px}
 .swatches{width:max-content;max-width:100%;margin-inline:auto}
 .unavailable{max-width:360px;padding:10px 16px;font-size:11px}
}
@media(min-width:761px) and (max-width:960px){
 .dimension{padding:0 8px}
}

/* Development tool: a small independent corner control, never a layout column. */
#render-lab,#render-lab[open]{position:absolute;inset:auto;left:max(8px,env(safe-area-inset-left));bottom:max(8px,env(safe-area-inset-bottom));width:28px;height:28px;pointer-events:auto}
#render-lab>summary{position:static;display:grid;place-items:center;width:28px;height:28px;min-height:28px;padding:6px;gap:0;color:#7b8783}
#render-lab>summary:hover{color:var(--ink)}
#render-lab>summary>svg{width:14px;height:14px}
#render-lab>summary>span{display:none}
#render-lab>.lab-content{position:absolute;inset:auto;left:0;bottom:38px;width:min(310px,calc(100vw - 32px));max-height:calc(100dvh - 70px - env(safe-area-inset-bottom));pointer-events:auto}

/* Choices and navigation have independent anchors: changing content never moves the arrows. */
.choice-tray{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;width:max-content;max-width:calc(100% - 176px);max-height:calc(100dvh - 130px);padding:6px;z-index:2}
.choice-step-title{margin:0;font-size:11px;line-height:20px;font-weight:500;letter-spacing:.1px;text-align:center;color:#52615b;flex-shrink:0}
#choices{min-height:0;min-width:0;max-width:100%;max-height:100%;overflow-y:auto;overscroll-behavior:contain;padding:5px}
.step-navigation{position:absolute;left:24px;right:24px;bottom:24px;height:44px;pointer-events:none;z-index:3}
.flow-arrow{position:absolute;top:0;display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:50%;background:none;box-shadow:none;color:var(--ink);pointer-events:auto;transform:none}
#previous-step{left:0}#next-step{right:0}
.flow-arrow svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.flow-arrow:hover:not(:disabled){background:#ffffff80}
.flow-arrow:active:not(:disabled){background:#ffffffb8}
.flow-arrow:disabled{opacity:.2}
@media(max-width:760px){
 .choice-tray{bottom:max(8px,env(safe-area-inset-bottom));max-width:calc(100% - max(16px,env(safe-area-inset-left)) - max(16px,env(safe-area-inset-right)) - 104px);max-height:calc(100dvh - env(safe-area-inset-bottom) - 110px)}
 .step-navigation{left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom))}
 .choice-dimensions{width:max-content;max-width:100%}
}

/* Keep the toggle anchored while the other items slide out of view. */
.menu-toggle{position:absolute;top:26px;left:26px;z-index:4;display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;justify-self:start}
.menu-toggle svg{grid-area:1/1;transition:opacity .18s ease,transform .22s ease}
.menu-toggle .toggle-menu{opacity:0;transform:scale(.8)}
.menu-toggle[aria-expanded=false] .toggle-eye{opacity:0;transform:scale(.8)}
.menu-toggle[aria-expanded=false] .toggle-menu{opacity:1;transform:scale(1)}
.steps .step[data-step]{opacity:1;visibility:visible;transition:opacity .24s ease var(--open-delay,0ms),transform .28s cubic-bezier(.2,.7,.3,1) var(--open-delay,0ms),background .18s,visibility 0s}
.steps.is-collapsed{pointer-events:none}

.steps.is-collapsed .step[data-step]{opacity:0;transform:translateX(-16px);visibility:hidden;pointer-events:none;transition:opacity .18s ease var(--close-delay,0ms),transform .2s ease var(--close-delay,0ms),visibility 0s calc(var(--close-delay,0ms) + .2s)}
@media(max-width:760px){
 .steps.is-collapsed .step[data-step]{transform:translateY(-12px)}
}
@media(prefers-reduced-motion:reduce){
 .steps .step[data-step],.steps.is-collapsed .step[data-step],.menu-toggle svg{transition:none;transform:none}
}

/* Scale follows pointer distance in JS; translate remains reserved for menu hiding. */
@media(min-width:761px) and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 .steps .step{scale:var(--dock-scale,1);transform-origin:left center;will-change:scale}
}

/* The desktop parts are vertically centered; the toggle stays at the top. */
@media(min-width:761px){
 .steps{top:50%;left:26px;bottom:auto;transform:translateY(-50%)}
}
@media(max-width:760px){
 .steps{left:0;right:0;width:100%;max-width:none;margin:0;transform:none;gap:8px;height:44px;pointer-events:none}
 .steps .step{pointer-events:auto}
 .menu-toggle{left:max(12px,env(safe-area-inset-left));top:calc(env(safe-area-inset-top) + 16px)}
 .steps.is-collapsed .step[data-step]{pointer-events:none}
}
@media(max-width:360px){
 .steps{gap:4px;height:40px}
 .steps .step{flex-basis:40px;width:40px;height:40px;min-height:40px}
 .menu-toggle{left:max(8px,env(safe-area-inset-left));width:40px;height:40px;min-height:40px}
}

@media(max-width:760px) and (max-height:560px){.menu-toggle{top:calc(env(safe-area-inset-top) + 6px)}}

/* Individual glass buttons: their text determines the desktop width. */
.steps > .step[data-step],.menu-toggle,.flow-arrow,.scene-tool{
 border:1px solid rgba(255,255,255,.65);
 background:linear-gradient(145deg,rgba(255,255,255,.58),rgba(255,255,255,.24));
 -webkit-backdrop-filter:blur(16px) saturate(125%);
 backdrop-filter:blur(16px) saturate(125%);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 3px 12px rgba(40,55,52,.045);
 color:var(--ink);font-weight:500;
}
.steps > .step[data-step]:hover,.menu-toggle:hover,.flow-arrow:hover:not(:disabled),.scene-tool:hover:not(:disabled){
 background:linear-gradient(145deg,rgba(255,255,255,.72),rgba(255,255,255,.38));
}
.steps > .step[data-step][aria-current]{
 border-color:rgba(255,255,255,.65);
 background:linear-gradient(145deg,rgba(255,255,255,.82),rgba(255,255,255,.5));
 box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 3px 12px rgba(40,55,52,.06);
}
@media(min-width:761px){
 .steps{justify-items:start;gap:10px}
 .steps > .step[data-step]{display:flex;align-items:center;justify-content:flex-start;justify-self:start;width:max-content;min-width:0;min-height:44px;height:auto;padding:10px 14px;gap:10px;border-radius:24px;font-size:12px;line-height:22px;text-align:left}
 .steps > .step[data-step] svg{display:block;flex:0 0 20px;width:20px;height:20px}
 .steps > .step[data-step] > span{display:block;white-space:nowrap;text-decoration:none}
}

.menu-toggle:active,.flow-arrow:active:not(:disabled){background:linear-gradient(145deg,rgba(255,255,255,.82),rgba(255,255,255,.5))}

/* All option surfaces share one shape and material, on desktop and mobile. */
#choices{
 --option-radius:16px;
 --option-surface:linear-gradient(145deg,rgba(255,255,255,.58),rgba(255,255,255,.24));
 --option-edge:rgba(255,255,255,.65);
 --option-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 3px 12px rgba(40,55,52,.045);
}
#choices :is(.choice-dimensions,.swatches,.thumb,.segmented,.unavailable){
 border-radius:var(--option-radius);
 border:1px solid var(--option-edge);
 background:var(--option-surface);
 box-shadow:var(--option-shadow);
 -webkit-backdrop-filter:blur(16px) saturate(125%);
 backdrop-filter:blur(16px) saturate(125%);
}
#choices .segmented button{border-radius:var(--option-radius)}
#choices .swatches{padding:12px 14px;gap:16px}
#choices .unavailable{padding:10px 16px}
#choices .thumb:hover{background:linear-gradient(145deg,rgba(255,255,255,.72),rgba(255,255,255,.38))}
#choices .thumb[aria-pressed=true]{
 border-color:rgba(94,116,107,.45);
 background:linear-gradient(145deg,rgba(255,255,255,.82),rgba(255,255,255,.5));
 box-shadow:var(--option-shadow);
}
#choices .thumb[aria-pressed=true]>span{text-decoration:none}

/* Compact dimension steppers, with the same controls for all three dimensions. */
#choices .choice-dimensions{display:grid;grid-template-columns:repeat(2,auto);align-items:center;gap:0;padding:7px 8px}
#choices .dimension{display:flex;flex-direction:column;align-items:center;gap:0;padding:0 10px;min-width:0;text-align:center;border-right:1px solid rgba(94,116,107,.14)}
#choices .dimension:last-child{border-right:0}
#choices .dimension-label{font-size:10px;line-height:14px;font-weight:400;color:#6e7d77;cursor:text}
#choices .dimension-controls{display:grid;grid-template-columns:26px 58px 26px;gap:1px;align-items:center}
#choices .dimension-reading{display:flex;align-items:baseline;justify-content:center;gap:3px;border-bottom:1px solid transparent;transition:border-color .15s}
#choices .dimension-reading:focus-within{border-bottom-color:#6b8177}
#choices .dimension input{appearance:textfield;-moz-appearance:textfield;width:4.5ch;min-width:0;margin:0;padding:2px 0;border:0;border-radius:0;background:transparent;box-shadow:none;outline:none;text-align:center;font-size:16px;font-weight:500;line-height:24px;font-variant-numeric:tabular-nums}
#choices .dimension input::-webkit-inner-spin-button,#choices .dimension input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#choices .dimension small{font-size:11px;font-weight:400;color:#6e7d77}
#choices .dimension-adjust{display:grid;place-items:center;width:26px;height:30px;padding:0;border-radius:9px;color:#54665d}
#choices .dimension-adjust:hover:not(:disabled){background:rgba(255,255,255,.6)}
#choices .dimension-adjust:disabled{opacity:.24}
#choices .dimension-adjust svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round}
@media(max-width:760px){
 #choices .choice-dimensions{grid-template-columns:1fr 1fr;padding:7px 6px;row-gap:4px}
 #choices .dimension{padding:0 6px}
 #choices .dimension:nth-child(2){border-right:0}
 #choices .dimension input{width:4.25ch}
}

.steps .part-icon{fill:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}

/* Compact scene controls stay available independently of the parts menu. */
.scene-tools{position:absolute;top:30px;left:78px;display:flex;align-items:center;gap:8px;z-index:4}
.scene-tool{display:grid;place-items:center;width:36px;height:36px;padding:0;border-radius:50%}
.scene-tool svg{grid-area:1/1;display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}
#light-cycle svg{display:none}
#light-cycle[data-mode=summer] .light-day,#light-cycle[data-mode=twilight] .light-twilight,#light-cycle[data-mode=night] .light-night{display:block}
.scene-tool[aria-pressed=true]{border-color:rgba(94,116,107,.45);background:linear-gradient(145deg,rgba(255,255,255,.82),rgba(255,255,255,.5))}
@media(max-width:760px){
 .scene-tools{flex-direction:column;left:calc(max(12px,env(safe-area-inset-left)) + 4px);top:calc(env(safe-area-inset-top) + 68px)}
 .steps{top:calc(env(safe-area-inset-top) + 16px)}
 .top-actions{top:calc(env(safe-area-inset-top) + 16px);right:max(16px,env(safe-area-inset-right))}
}
@media(max-width:360px){
 .scene-tools{left:calc(max(8px,env(safe-area-inset-left)) + 2px);top:calc(env(safe-area-inset-top) + 64px)}
}
@media(max-width:760px) and (max-height:560px){
 .scene-tools{top:calc(env(safe-area-inset-top) + 58px)}
 .steps{top:calc(env(safe-area-inset-top) + 6px)}
 .top-actions{top:calc(env(safe-area-inset-top) + 6px)}
}

/* The icon owns its disc: both share one centre and stay inside the pill. */
.steps > .step[data-step] > .part-icon-disc{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:transparent}
.steps > .step[data-step][aria-current] > .part-icon-disc{background:#ffcb01}
.steps > .step[data-step] .part-icon{display:block;width:20px;height:20px;margin:0}
@media(min-width:761px){
 .steps > .step[data-step]{padding:6px 14px 6px 6px;gap:8px}
}
@media(max-width:760px){
 .steps > .step[data-step]{display:flex;align-items:center;justify-content:center}
 .steps > .step[data-step][aria-current]>span{text-decoration:none}
}

/* Keep the centred parts row clear on narrow phones. */
@media(max-width:540px){
 .top-actions{top:calc(env(safe-area-inset-top) + 68px)}
 #choices{overflow-x:auto}
 .choice-options{width:max-content;min-width:100%}
}
@media(max-width:540px) and (max-height:560px){
 .top-actions{top:calc(env(safe-area-inset-top) + 58px)}
}

/* Scrollable parts: fade only the edges that have more items beyond them. */
.steps{
 --fade-start:0px;--fade-end:0px;
 scrollbar-width:none;overscroll-behavior:contain;
 scroll-padding:28px;
 -webkit-mask-image:linear-gradient(to bottom,transparent,#000 var(--fade-start),#000 calc(100% - var(--fade-end)),transparent);
 mask-image:linear-gradient(to bottom,transparent,#000 var(--fade-start),#000 calc(100% - var(--fade-end)),transparent);
}
.steps::-webkit-scrollbar{display:none}
@media(min-width:761px){
 .steps{display:flex;flex-direction:column;align-items:flex-start;left:10px;width:max-content;max-height:min(62dvh,calc(100dvh - 200px));padding:20px 16px;overflow-y:auto;overflow-x:hidden;touch-action:pan-y}
 .steps > .step[data-step]{flex-shrink:0}
}
@media(max-width:760px){
 .steps{top:auto;bottom:max(8px,env(safe-area-inset-bottom));left:calc(max(16px,env(safe-area-inset-left)) + 52px);right:calc(max(16px,env(safe-area-inset-right)) + 52px);width:auto;max-width:none;height:68px;max-height:none;padding:12px;display:flex;flex-direction:row;justify-content:safe center;align-items:center;overflow-x:auto;overflow-y:hidden;pointer-events:auto;touch-action:pan-x;
  -webkit-mask-image:linear-gradient(to right,transparent,#000 var(--fade-start),#000 calc(100% - var(--fade-end)),transparent);
  mask-image:linear-gradient(to right,transparent,#000 var(--fade-start),#000 calc(100% - var(--fade-end)),transparent);
 }
 .steps.is-collapsed{pointer-events:none}
 .steps > .step[data-step]{flex-shrink:0}
 .steps.is-collapsed .step[data-step]{transform:translateY(12px)}
 .choice-tray{bottom:calc(max(8px,env(safe-area-inset-bottom)) + 72px);max-width:calc(100% - 24px);max-height:calc(100dvh - env(safe-area-inset-bottom) - 190px)}
 .top-actions{top:calc(env(safe-area-inset-top) + 16px)}
}
@media(max-width:760px) and (max-height:560px){
 .top-actions{top:calc(env(safe-area-inset-top) + 6px)}
}
@media(prefers-reduced-motion:reduce){
 .steps.is-collapsed .step[data-step]{transform:none}
}

/* Explicit scroll affordances sit outside the fading menu surface. */
.menu-scroll-hint{position:absolute;z-index:5;display:grid;place-items:center;width:32px;height:32px;padding:0;border-radius:50%;color:var(--ink);border:1px solid rgba(255,255,255,.8);background:rgba(255,255,255,.9);box-shadow:0 2px 10px rgba(40,55,52,.1);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);cursor:pointer}
.menu-scroll-hint:hover{background:#fff;box-shadow:0 3px 14px rgba(40,55,52,.17)}
.menu-scroll-hint svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:760px){
 .steps{padding-inline:12px;scroll-padding-inline:28px}
 .menu-scroll-hint{display:none}
}

/* Screen-size grips stay anchored to the four edge midpoints in the 3D scene. */
#scene{isolation:isolate}
.dimension-handles{position:absolute;inset:0;z-index:1;pointer-events:none}
.resize-handle{position:absolute;left:0;top:0;display:grid;place-items:center;width:44px;height:44px;padding:0;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;border-radius:50%;outline-offset:0}
.resize-handle-dot{display:grid;place-items:center;width:18px;height:18px;border:2px solid #fff;border-radius:50%;background:#fff;box-shadow:0 0 0 1px rgba(48,62,63,.35),0 2px 8px rgba(24,39,41,.24);transition:transform .15s,background .15s}
.resize-handle-dot:after{content:'';width:8px;height:8px;border-radius:50%;background:#ffcb01}
.resize-handle:hover .resize-handle-dot,.resize-handle:focus-visible .resize-handle-dot,.resize-handle.is-dragging .resize-handle-dot{transform:scale(1.18);background:#ffcb01}
.resize-handle.is-dragging{cursor:grabbing;z-index:2}
.resize-handle-value{position:absolute;bottom:44px;left:50%;transform:translateX(-50%);padding:5px 9px;border-radius:9px;background:rgba(255,255,255,.94);box-shadow:0 2px 10px rgba(24,39,41,.08);font-size:11px;white-space:nowrap;color:var(--ink);pointer-events:none;opacity:0;transition:opacity .12s}
.resize-handle:hover .resize-handle-value,.resize-handle:focus-visible .resize-handle-value,.resize-handle.is-dragging .resize-handle-value{opacity:1}
@media(prefers-reduced-motion:reduce){.resize-handle-dot,.resize-handle-value{transition:none}}

/* Glass grips share the material of the surrounding controls. */
.resize-handle-dot{width:22px;height:22px;border:1px solid rgba(255,255,255,.85);background:linear-gradient(140deg,rgba(255,255,255,.78),rgba(255,255,255,.18) 60%,rgba(255,255,255,.4));backdrop-filter:blur(10px) saturate(125%);-webkit-backdrop-filter:blur(10px) saturate(125%);box-shadow:inset 0 1px 2px rgba(255,255,255,.9),inset 0 -1px 2px rgba(59,78,79,.12),0 2px 9px rgba(24,39,41,.18)}
.resize-handle-dot:after{width:5px;height:5px;background:rgba(255,255,255,.85);box-shadow:0 0 3px rgba(48,65,65,.2)}
.resize-handle:hover .resize-handle-dot,.resize-handle:focus-visible .resize-handle-dot,.resize-handle.is-dragging .resize-handle-dot{background:linear-gradient(140deg,rgba(255,255,255,.9),rgba(255,255,255,.3));border-color:#fff}
.resize-handle.is-dragging .resize-handle-dot{box-shadow:0 0 0 2px rgba(255,203,1,.75),inset 0 1px 2px #fff,0 3px 12px rgba(24,39,41,.2)}
.stair-snap-targets{position:absolute;inset:0;pointer-events:none}
.stair-snap-target{position:absolute;left:0;top:0;width:14px;height:14px;border:1px solid rgba(255,255,255,.55);border-radius:50%;background:rgba(255,255,255,.08);box-shadow:0 0 0 1px rgba(48,65,65,.1);transition:border-color .18s,background .18s}
.stair-snap-target.is-current{border-color:rgba(255,203,1,.65);background:rgba(255,203,1,.06)}

/* Superscript shortcuts sit directly against the label, without extra pill padding. */
.steps > .step[data-step]{position:relative}
.step-shortcut{display:inline;position:relative;top:-.55em;margin-left:7px;vertical-align:baseline;font:500 9px/0 Poppins,system-ui,sans-serif;color:var(--ink);opacity:.72;pointer-events:none}
@media(max-width:760px){
 .steps > .step[data-step] > .step-label{display:contents}
 .step-label-text{display:none}
 .step-shortcut{position:absolute;right:4px;top:4px;margin:0;font-size:8px;line-height:1}
}

/* Parts use the icon disc for keyboard focus, without an outer focus ring. */
.steps > .step[data-step]:focus,
.steps > .step[data-step]:focus-visible{outline:none}
.steps > .step[data-step]:focus-visible:not([aria-current]) > .part-icon-disc{background:rgba(255,203,1,.22)}

/* Stable option hierarchy: heading, one controls row, optional submenu. */
#choice-submenu{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:6px;flex-shrink:0}
#choice-submenu button:disabled{opacity:.3;cursor:default}
/* The drawing tool is an editor; the planner keeps its three compact slots. */
.shape-editor{width:620px;max-height:calc(100dvh - 24px);padding:24px;overflow:auto;background:#f8faf9}.shape-editor h2{font-size:21px;margin:0 0 4px}.shape-editor p{font-size:11px}.shape-presets{display:flex;gap:6px;margin:16px 0;flex-wrap:wrap}.shape-presets button,.shape-undo{font-size:11px;padding:8px 12px;border-radius:12px;background:white}.shape-canvas{position:relative;width:100%;aspect-ratio:1.3;max-height:55dvh;border-radius:16px;background:#eef3f2;overflow:hidden}.shape-canvas svg{display:block;width:100%;height:100%;touch-action:none;user-select:none}.shape-zoom{position:absolute;right:10px;bottom:10px;display:flex;background:#ffffffd9;border-radius:22px;box-shadow:0 3px 12px #324c4812}.shape-zoom button{width:36px;height:36px}.shape-editor-status{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;font-size:11px}.shape-editor-status output{color:#526962}.shape-undo{flex-shrink:0}.shape-editor-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}.shape-editor-actions button{padding:11px 20px}.equipment-controls{display:flex;align-items:center;gap:12px}.equipment-controls .dimension-label{white-space:nowrap}.equipment-reading{font-size:16px;font-variant-numeric:tabular-nums;min-width:24px;text-align:center}.control-hint{font-size:10px;color:#71817c;text-align:center;padding:4px 8px;max-width:300px}.shape-options{display:flex;gap:8px}.shape-options .thumb{min-width:96px}#choices .equipment-controls{padding:8px 12px;border-radius:var(--option-radius,16px);background:linear-gradient(145deg,#ffffffb8,#ffffff66);border:1px solid #ffffffb8;backdrop-filter:blur(16px)}
@media(max-width:760px){.shape-editor{padding:20px;max-width:calc(100vw - 20px)}.shape-canvas{aspect-ratio:1;max-height:48dvh}.shape-presets{gap:4px}.shape-presets button{font-size:10px;padding:8px 9px}.cover-placement{max-width:calc(100vw - 24px);overflow-x:auto;justify-content:flex-start;padding:3px}.cover-placement .thumb{flex:0 0 auto;min-width:66px}.subtabs{max-width:calc(100vw - 24px);overflow-x:auto;white-space:nowrap}}
/* Shape editing: a visible centimetre grid with three concrete tools. */
.shape-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 12px}.shape-tools button{font-size:11px;padding:9px 12px;background:#fff;border:1px solid #d8e1df;border-radius:10px}.shape-tools button[aria-pressed=true]{background:#ffefad;border-color:#e3bf38}.shape-tools span{margin-left:auto;font-size:10px;color:#536963}.shape-presets{margin-bottom:10px}
.edge-grip{width:48px;height:44px;border-radius:50%}.edge-grip-bar,.equipment-grip-arrows{display:grid;place-items:center;width:36px;height:28px;border-radius:14px;border:1px solid #ffffffba;background:linear-gradient(140deg,#ffffffc7,#ffffff50);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:inset 0 1px 1px #fff9,0 2px 9px #18272924;color:#3d5552}.edge-grip-bar svg{width:24px;height:16px}.edge-grip:hover .edge-grip-bar,.equipment-arrow-grip:hover .equipment-grip-arrows{background:#ffffffcf}.edge-grip.is-dragging .edge-grip-bar,.equipment-arrow-grip.is-dragging .equipment-grip-arrows{box-shadow:0 0 0 1px #ffcb01,inset 0 1px 1px #fff9,0 2px 9px #18272924}.edge-grip .resize-handle-value,.equipment-arrow-grip .resize-handle-value{bottom:40px}.stair-detail-handles{z-index:4}.equipment-arrow-grip{width:52px}.equipment-grip-arrows{width:44px;height:28px}.equipment-grip-arrows svg{width:32px;height:16px}.finish-handle{cursor:pointer}.finish-handle .resize-handle-dot:after{width:7px;height:7px;background:var(--finish-color);border:1px solid #fff9}
.equipment-wall-choices,.tread-selector{display:flex;justify-content:center;gap:5px;flex-wrap:wrap;max-width:430px;margin:6px auto}.equipment-wall-choices button,.tread-selector button{padding:7px 10px;border-radius:10px;background:#ffffff9c;font-size:11px;border:1px solid transparent}.equipment-wall-choices button[aria-pressed=true],.tread-selector button[aria-pressed=true]{border-color:#d4ad24;background:#fff3bc}.equipment-wall-choices button:disabled{opacity:.35;cursor:not-allowed}#choices .equipment-controls{margin:5px auto;width:max-content}.shape-editor button:focus-visible,.equipment-wall-choices button:focus-visible{outline:2px solid #b78d00;outline-offset:2px}

#choices .circulation-controls{display:flex;align-items:center;gap:0;padding:7px 8px;border-radius:var(--option-radius,16px);background:linear-gradient(145deg,#ffffffb8,#ffffff66);border:1px solid #ffffffb8;backdrop-filter:blur(16px)}
#choices .circulation-controls .equipment-controls{display:grid;grid-template-columns:30px 28px 30px;gap:0;padding:0 10px;margin:0;width:auto;border:0;background:none;border-radius:0;backdrop-filter:none}
.circulation-controls .dimension-label{grid-column:1/-1;text-align:center;font-size:10px;margin-bottom:1px}.circulation-controls .equipment-reading{font-size:16px}.circulation-controls .dimension-adjust{width:30px;height:30px;min-width:0;min-height:0}
#choices .circulation-controls .equipment-controls+.equipment-controls{border-left:1px solid #61787120}.circulation-rotate{display:grid;place-items:center;width:36px;height:36px;margin:0 4px 0 6px;border-radius:50%}.circulation-rotate svg{width:20px;height:20px}.circulation-rotate:hover{background:#ffffff70}.circulation-rotate:disabled{opacity:.3}

/* Entry combinations share one scale and a scrollable, compact choice row. */
#choices .entry-options{width:max-content;min-width:0;max-width:min(920px,calc(100vw - 160px));flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;padding:3px 3px 7px;gap:7px;scrollbar-width:thin;scrollbar-color:#8a999544 transparent}
@media(max-width:760px){#choices .entry-options{max-width:calc(100vw - 32px)}}

/* Quiet automatic readout and one glass heat-pump switch. */
.skimmer-summary{display:grid;justify-items:center;gap:2px;padding:0 16px;border-right:1px solid #61787120}.skimmer-summary output{font-size:16px;font-variant-numeric:tabular-nums}.automatic-label{font-size:9px;color:#71817c}
.heat-pump-toggle{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--option-edge,#ffffffb8);border-radius:var(--option-radius,16px);background:var(--option-surface);backdrop-filter:blur(16px);box-shadow:0 4px 18px #26373106;font-size:13px;color:var(--ink)}.heat-pump-toggle>svg{width:24px;height:24px}.toggle-track{display:flex;align-items:center;width:36px;height:22px;padding:3px;box-sizing:border-box;border-radius:20px;background:#71817c30;margin-left:12px;transition:background .18s}.toggle-track>span{width:16px;height:16px;border-radius:50%;background:white;box-shadow:0 1px 3px #26373125;transition:transform .18s}.heat-pump-toggle[aria-checked=true] .toggle-track{background:#ffcb01}.heat-pump-toggle[aria-checked=true] .toggle-track>span{transform:translateX(14px)}

/* Inbouwdelen: centred wall groups, with options next to the selected grip. */
.equipment-icon-grip{width:44px;height:44px}
.equipment-icon-grip .resize-handle-dot{width:36px;height:36px;color:#395650}
.equipment-icon-grip .resize-handle-dot:after{display:none}
.equipment-icon-grip .resize-handle-dot svg{width:24px;height:24px}
.equipment-popup{position:absolute;left:50%;bottom:max(8px,env(safe-area-inset-bottom));transform:translateX(-50%);max-width:calc(100% - 24px);flex-wrap:wrap;justify-content:center;display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #ffffffcf;border-radius:16px;background:#f5faf2ed;box-shadow:0 4px 20px #18272924;backdrop-filter:blur(12px);pointer-events:auto;font-size:11px;white-space:nowrap;z-index:6}
.equipment-popup[hidden]{display:none}
.equipment-popup button{min-width:32px;min-height:32px;padding:6px;border-radius:10px;background:#ffffffb8}
.equipment-popup button:disabled{opacity:.35}
.equipment-popup button:focus-visible{outline:2px solid #b78d00}
.equipment-popup output{min-width:16px;text-align:center}

/* Circular screen controls retain equal dimensions, regardless of icon content. */
.equipment-icon-grip,.equipment-icon-grip .resize-handle-dot{aspect-ratio:1;flex-shrink:0;min-width:0;min-height:0;border-radius:50%}
.equipment-icon-grip .resize-handle-dot svg{aspect-ratio:1;flex-shrink:0;display:block}
@media(max-width:760px){.equipment-popup{bottom:calc(max(8px,env(safe-area-inset-bottom)) + 72px)}}
.edge-grip{width:44px;height:44px}
.edge-grip-bar{width:36px;height:36px;aspect-ratio:1;border-radius:50%}

/* Selected product choices: a consistent 2 px yellow frame without reflow. */
#choices .thumb{border-width:2px}
#choices .thumb[aria-pressed=true]{border:2px solid var(--yellow)}
#choices .swatch[aria-pressed=true]::after{border:2px solid var(--yellow)}
#choices .segmented button[aria-pressed=true],#choices .heat-pump-toggle[aria-checked=true]{box-shadow:inset 0 0 0 2px var(--yellow)}

@keyframes cover-toggle-hint{0%,100%{outline-color:transparent}35%,65%{outline-color:#ffd400}}
#cover-toggle.is-hinting{outline:2px solid transparent;outline-offset:3px;animation:cover-toggle-hint .8s ease-in-out 3}
@keyframes cover-toggle-static{from,to{outline-color:#ffd400}}
@media(prefers-reduced-motion:reduce){#cover-toggle.is-hinting{animation:cover-toggle-static 2.4s linear 1}}

/* Destinations remain distinct from the glass controls, and pulse only while dragging. */
.stair-snap-target{width:23px;height:23px;aspect-ratio:1;border:2px solid #ffcb01;background:#fffbe6dc;box-shadow:0 0 0 3px #364c4245,0 2px 10px #172b2940;z-index:2}
.stair-snap-target::after{content:'';position:absolute;inset:-6px;border:2px solid #ffcb01;border-radius:50%;opacity:0;pointer-events:none}
.stair-snap-targets.is-dragging .stair-snap-target:not(.is-current)::after{animation:destination-pulse 1.45s ease-out infinite}
.stair-snap-target.is-current{background:#ffcb01;border-color:white;box-shadow:0 0 0 3px #ffcb0180}
@keyframes destination-pulse{0%{opacity:.8;transform:scale(.72)}100%{opacity:0;transform:scale(1.5)}}
@media(prefers-reduced-motion:reduce){.stair-snap-targets.is-dragging .stair-snap-target:not(.is-current)::after{animation:none;opacity:.45}}

#choices .equipment-overview,#choices .tech-choices{width:max-content;min-width:0;max-width:calc(100vw - 160px);flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;gap:8px;padding:3px 3px 7px;scrollbar-width:thin}

.equipment-card-controls{display:flex;align-items:center;justify-content:center;gap:8px;height:30px;font-size:12px}
.equipment-card-controls button{min-width:28px;height:28px;border-radius:50%;background:#fff9;font-size:16px}
.equipment-card-controls button[role=switch]{min-width:54px;border-radius:16px;font-size:11px;border:1px solid #8a999544}
.equipment-card-controls button[aria-checked=true]{background:#ffcb01;color:#343e40;border-color:#ffcb01}
.equipment-card-controls output{min-width:16px;text-align:center}
.tech-choice-gap{flex:0 0 18px;width:18px}
.technology-description{font-size:10px;color:#647570;text-align:center;margin:2px 12px 0}
@media(max-width:760px){#choices .equipment-overview,#choices .tech-choices{max-width:calc(100vw - 32px)}.tech-choice-gap{flex-basis:10px}}


/* One night palette for every glass surface and scene control. */
:root[data-theme=night]{--ink:#f2f5fa;--paper:#172338ed;--glass-night:linear-gradient(145deg,#26374dd9,#142237b8);--glass-night-edge:#c7d9f142;--glass-night-shadow:inset 0 1px 0 #ffffff20,0 4px 18px #0004;color:var(--ink)}
:root[data-theme=night] :is(.steps>.step[data-step],.menu-toggle,.flow-arrow,.scene-tool,.quiet,.menu-scroll-hint,.resize-handle-dot,.edge-grip-bar,.equipment-grip-arrows,.equipment-popup,.helper,.shape-zoom){color:var(--ink);background:var(--glass-night);border-color:var(--glass-night-edge);box-shadow:var(--glass-night-shadow)}
:root[data-theme=night] #choices{--option-surface:var(--glass-night);--option-edge:var(--glass-night-edge);--option-shadow:var(--glass-night-shadow)}
:root[data-theme=night] #choices :is(.choice-dimensions,.swatches,.thumb,.segmented,.unavailable,.equipment-controls,.circulation-controls){color:var(--ink);background:var(--glass-night);box-shadow:var(--glass-night-shadow)}
:root[data-theme=night] #choices .thumb:is(:hover,[aria-pressed=true]){background:linear-gradient(145deg,#354961ed,#1b2e46df)}
:root[data-theme=night] :is(.step-label,.resize-handle-value,.dimension-label,.dimension small,.dimension-adjust,.technology-description,.control-hint,#choice-step-title,#choice-submenu button,.equipment-card-controls){color:#f2f5fa}
:root[data-theme=night] .step[aria-current] .part-icon-disc{color:#263732}
:root[data-theme=night] :is(.equipment-popup,.resize-handle-value,dialog,.render-lab[open]){color:var(--ink);background:#19283eeb}
:root[data-theme=night] :is(dialog button,.shape-tools button,.shape-presets button,.shape-undo,.shape-zoom button,select,select option){color:var(--ink);background:#293b53}
:root[data-theme=night] :is(.shape-tools button[aria-pressed=true],.primary){color:#263732;background:var(--yellow)}
:root[data-theme=night] .resize-handle-dot:after{background:#e9f1f5}
:root[data-theme=night] .choice-switch-state .choice-switch-track{background:#d5e4f13d}
:root[data-theme=night] .choice-switch-state[data-checked=true] .choice-switch-track{background:var(--yellow)}

/* Read-only technique dots use the same glass and hover text as other scene grips. */
.technical-label{width:30px;height:30px;cursor:help;touch-action:auto}
.technical-label .resize-handle-dot{width:18px;height:18px}
.technical-label .resize-handle-value{bottom:32px}
.technical-label:hover,.technical-label:focus-visible{z-index:2}
.technical-labels[hidden],.technical-label[hidden]{display:none}

/* Shape and size share one row; controls keep their width instead of shrinking. */
#choices .size-options{display:flex;align-items:stretch;gap:8px;width:max-content;max-width:none}
#choices .size-options .choice-dimensions{flex:none;max-width:none;width:auto}
#save{display:inline-flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap;min-height:40px;border-radius:24px;padding:10px 15px}
#save>span{margin:0;flex:none}
@media(max-width:760px){
 .step-shortcut{display:none}
 .top-actions{width:max-content;max-width:calc(100vw - 92px);z-index:4}
 #save{font-size:11px;line-height:1.2;background:#ffffffb8;backdrop-filter:blur(14px)}
 #choices:has(.size-options){width:max-content;max-width:100%;overflow-x:auto}
 #choices .size-options .choice-dimensions{grid-template-columns:1fr;gap:4px;padding:8px 10px;min-width:170px}
 #choices .size-options .dimension{flex-direction:row;justify-content:space-between;gap:8px;padding:0;border:0;grid-column:auto}
 #choices .size-options .dimension-label{min-width:39px;text-align:left}
 #choices .size-options .dimension-controls{grid-template-columns:28px 52px 28px;gap:0}
 #choices .size-options .dimension-adjust{width:28px;height:32px}
}

:root[data-theme=night] #save{background:var(--glass-night);color:var(--ink);border-color:var(--glass-night-edge)}

@media(min-width:761px){.step-navigation{display:none}}
#save>svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}

#save-dialog{max-height:calc(100dvh - 24px);overflow:auto}
.save-request-form{display:grid;gap:14px;margin-top:18px}
.save-request-form label{display:block;font-size:12px;font-weight:500}
.save-request-form input{display:block;width:100%;min-width:0;margin-top:5px;padding:11px 12px;border:1px solid #71817c55;border-radius:10px;background:#f5f7f4;color:var(--ink);font-size:16px}
.save-request-form .dialog-actions{margin:0}
.save-request-form .request-prototype{line-height:1.6}
:root[data-theme=night] .save-request-form input{background:#24334a;color:var(--ink)}
@media(max-width:760px){#save-dialog{padding:28px 22px}}

/* Saved-design preview uses the existing dialog and typography. */
#saved-design-preview a{font-size:12px;color:inherit;text-underline-offset:3px}
#save-dialog{max-height:calc(100svh - 32px);overflow-y:auto}

/* Confirmed requests keep contact data until the customer closes the receipt. */
.save-request-form.is-sent label,.save-request-form.is-sent .request-explanation,.save-request-form.is-sent #request-submit{display:none}
#request-response iframe{width:100%;min-height:280px;border:0;margin-top:16px;background:white}
#request-status{line-height:1.6}

/* Jotform initializes uploaders only in a laid-out frame. Keep the transport offscreen until a response needs attention. */
#request-response iframe.request-transport{position:absolute;left:-10000px;top:0;width:600px;height:600px;min-height:0;pointer-events:none}

/* Embed-sluitknop (alleen zichtbaar in de modal op toppy.nl): geel rondje met kruis naast Opslaan. */
.top-actions{display:flex;align-items:center;gap:10px}
#embed-close{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;padding:0;border-radius:50%;background:var(--yellow);color:var(--ink);box-shadow:0 3px 14px #343e4022;transition:transform .15s,background .15s}
#embed-close>svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#embed-close:hover{background:#ffd633;transform:scale(1.06)}
#embed-close:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
:root[data-theme=night] #embed-close{background:var(--yellow);color:#263732;box-shadow:none}
@media(max-width:760px){#embed-close{width:36px;height:36px}#embed-close>svg{width:16px;height:16px}}
