:root{--blue:#0856f7;--deep:#172840}body{background:#fff9f1;color:#172840}header{background:#fff9f1}.category-grid{grid-template-columns:repeat(2,1fr)}.category-grid button{border-color:#172840;color:#172840;background:#fff}.logo img,#home img{width:180px;height:auto;object-fit:contain}#ar-overlay #ar-open{background:#0856f7!important}#ar-overlay #ar-open[aria-pressed=true]{background:#172840!important}@media(orientation:portrait){.category-grid{grid-template-columns:1fr;grid-template-rows:repeat(2,1fr)}.logo img,#home img{width:145px}}.category-grid{background:#fff9f1;gap:28px}.category-grid button{background:#172840;color:#fff;border:0;border-radius:24px;box-shadow:0 8px 32px #17284012}.category-icon{filter:none}.category-grid button:nth-child(2){background:#0856f7}.product-list{background:#fff9f1}.product-card{border-color:#dce3ec}.product-name,.color-options{background:#0856f7}.detail-tools{background:#fff9f1}

#ar-scan-target{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:10px;pointer-events:none;z-index:3;color:#fff;font:600 13px Arial,sans-serif;text-align:center}#ar-scan-target[hidden]{display:none!important}#ar-scan-target svg{width:64px;height:64px;fill:none;stroke:#e4ebf1;stroke-width:2.5;stroke-linecap:round;filter:drop-shadow(0 1px 3px #172840)}#ar-scan-target span{background:#172840c9;padding:7px 12px;border-radius:16px;white-space:nowrap}

/* Scale stays with the other tools, with a distinct vertical measuring icon. */
#ar-overlay #ar-scale-toggle{position:relative;width:var(--circle);height:var(--circle);padding:9px!important;flex:none;background:#0856f7!important;color:#fff!important}
#ar-scale-toggle svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#ar-scale-toggle span{position:absolute;top:calc(100% + 3px);left:50%;transform:translateX(-50%);font:600 10px Arial;color:white;text-shadow:0 1px 4px #172840;white-space:nowrap}
#ar-scale-toggle[aria-expanded=true]{outline:2px solid white;outline-offset:2px}
#ar-overlay[data-calibration=ceiling] #ar-scale-panel{max-height:32vh;padding:12px}
#ar-overlay[data-calibration=ceiling] #ar-scale-panel>:is(.ar-panel-heading,#ar-scale-status,#ar-reference-toggle,#ar-scale-reset,#ar-scale-intro,#ar-scale-steps,small){display:none}
#ar-scale-steps{padding-left:22px;margin:0;font-size:14px;line-height:1.5}#ar-scale-steps li+li{margin-top:8px}#ar-known-length{font-size:22px!important}
#ar-calibrate-start,#ar-calibration-point,#ar-calibration-apply{background:#0856f7!important;color:white!important;border-radius:9px!important;font-weight:600}
.ar-first-guide{margin:16px 0;max-width:480px;padding:12px 16px;border:1px solid #dbe3ec;border-radius:14px;background:#fff;color:#172840;font-size:14px;line-height:1.5;text-align:left}
.ar-first-guide summary{cursor:pointer;font-weight:700}.ar-first-guide ol{padding-left:22px}.ar-first-guide li{margin:10px 0}.ar-first-guide strong{display:block}.ar-first-guide p{font-size:12px;margin-bottom:0}
#ar-onboarding{position:fixed;top:calc(92px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:min(390px,calc(100vw - 32px));padding:12px 16px;border-radius:14px;background:#fff9f1f5;color:#172840;z-index:3;box-shadow:0 3px 18px #0002;font:14px/1.4 Arial;pointer-events:none}
#ar-onboarding strong{display:block;color:#0856f7;font-size:15px}#ar-onboarding p{margin:5px 0 0}#ar-onboarding button{pointer-events:auto;display:block;margin-top:8px;padding:8px 12px!important;min-height:36px!important;background:#0856f7!important;color:white!important;border-radius:8px}
@media(max-height:500px){#ar-onboarding{top:12px;max-width:350px;padding:9px 12px;font-size:12px}#ar-onboarding strong{font-size:13px}#ar-scale-panel{max-height:65vh}#ar-overlay[data-calibration=ceiling] #ar-scale-panel{max-height:42vh;width:min(360px,45vw);font-size:12px}}
@media(orientation:portrait) and (max-width:360px){#ar-overlay{--ar-gap:5px}.ar-native-toolbar{gap:5px}}

#ar-overlay #ar-message{position:fixed;left:50%;right:auto;bottom:calc(140px + env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px);box-sizing:border-box;padding:10px 14px;border-radius:12px;background:#172840e8;color:white;z-index:8;font-size:14px;text-align:center;margin:0}

#ar-setup .corner-preview{height:72px;width:130px;margin:12px auto}#ar-setup:has(.ar-first-guide[open]) #placement-instructions,#ar-setup:has(.ar-first-guide[open]) #surface-help{display:none}#ar-setup>.section-title{background:#0856f7;padding:10px 16px;line-height:1.3}#ar-setup h1{color:#172840}

/* Keep the rel=ar image child required by Safari, with a readable touch target. */
#apple-launch{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:14px 18px;text-decoration:none;font-weight:700;font-size:16px;background:#0856f7;color:#fff;border-radius:12px;text-align:center}#apple-launch[hidden]{display:none!important}#apple-launch img{width:26px;height:26px;object-fit:contain}#apple-launch span{line-height:1.3}.corner-preview[hidden]{display:none!important}
#apple-launch:after{content:none}#apple-launch img{margin:0}

/* Keep overlay controls inside the visible area, including notches and landscape. */
#ar-overlay{box-sizing:border-box;-webkit-text-size-adjust:100%;text-size-adjust:100%}
#ar-overlay *,#ar-overlay *:before,#ar-overlay *:after{box-sizing:border-box}
#ar-overlay .ar-bottom{bottom:calc(30px + env(safe-area-inset-bottom));left:calc(12px + env(safe-area-inset-left));right:calc(12px + env(safe-area-inset-right))}
#ar-overlay #ar-rescan{bottom:calc(30px + env(safe-area-inset-bottom));right:calc(12px + env(safe-area-inset-right))}
#ar-overlay .ar-native-toolbar{gap:clamp(5px,2vw,12px)}
#ar-overlay #ar-scale-toggle span{font-size:10px!important;line-height:14px;top:calc(100% + 3px)}
#ar-overlay #ar-onboarding{top:calc(96px + env(safe-area-inset-top));max-height:calc(100dvh - 280px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto;pointer-events:auto}
#ar-overlay:has(.ar-drawer:not([hidden])) #ar-onboarding,#ar-overlay:has(#ar-adjustments.is-open) #ar-onboarding{display:none}
@media(max-height:500px) and (orientation:landscape){
 #ar-overlay{--circle:40px}
 #ar-overlay #ar-onboarding{top:calc(78px + env(safe-area-inset-top));left:calc(12px + env(safe-area-inset-left));transform:none;width:min(320px,43vw);max-height:calc(100dvh - 170px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:9px 12px;font-size:12px}
 #ar-overlay .ar-top>div{max-width:calc(100vw - 140px)}
 #ar-overlay #ar-open{height:40px;min-width:160px;font-size:14px!important;bottom:calc(var(--circle) + 12px)}
}
#ar-overlay{--circle:44px}
#ar-overlay .ar-top{padding-top:calc(16px + env(safe-area-inset-top))}
#ar-overlay .ar-top>div{height:36px;min-width:0;max-width:calc(100% - 144px);padding:0 10px;font-size:16px}
#ar-overlay .ar-top strong{max-width:100%;overflow:hidden;text-overflow:ellipsis}
#ar-overlay .ar-top small{top:calc(56px + env(safe-area-inset-top));font-size:10px;padding:6px 14px}
#ar-overlay #ar-close,#ar-overlay #ar-shutter{top:calc(12px + env(safe-area-inset-top));padding:11px!important}
#ar-overlay #ar-model-title[data-size]:not([data-size=""]):after{width:24px;height:24px;font-size:13px;margin-left:6px}
@media(max-width:360px),(max-height:500px){#ar-overlay{--circle:40px}}
/* Drawers occupy their own scrollable area above the persistent tool row. */
#ar-overlay .ar-drawer,#ar-overlay #ar-adjustments{position:fixed;left:calc(12px + env(safe-area-inset-left));right:auto;bottom:calc(30px + env(safe-area-inset-bottom) + var(--circle) + 24px);width:min(390px,calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)));max-width:none;max-height:calc(100dvh - 190px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto;margin:0;z-index:6;overscroll-behavior:contain}
#ar-overlay .ar-panel-heading{position:sticky;top:0;background:#fff;z-index:1;flex-shrink:0}
#ar-overlay .ar-drawer select{max-width:100%;min-width:0}
#ar-overlay .ar-drawer button{flex-shrink:0}

/* Short, in-camera guidance; only two actions in the scale menu. */
#ar-setup .ar-first-guide,#ar-setup .corner-preview,#ar-setup #surface-help,#ar-setup #placement-instructions{display:none!important}
#ar-overlay #ar-scale-panel{padding:14px;gap:10px}
#ar-overlay #ar-scale-panel>button{width:100%;min-height:46px;margin:0}
#ar-overlay #ar-scale-rescan{background:#eef3fa!important;color:#172840!important}
#ar-overlay #ar-calibration-help{font-size:15px;line-height:1.35;margin:0 0 10px}
#ar-overlay #ar-calibration-fields{display:grid;gap:10px}
#ar-overlay #ar-calibration-fields[hidden]{display:none!important}
#ar-overlay #ar-calibration-error:empty{display:none}
#ar-overlay[data-calibration=floor] #ar-scale-panel,#ar-overlay[data-calibration=ceiling] #ar-scale-panel{max-height:35dvh}
#ar-overlay #ar-depth-controls{display:grid;gap:8px;padding:10px 0;border-top:1px solid #dbe3ec}
#ar-overlay #ar-depth-controls>span{display:flex;justify-content:space-between}
#ar-overlay #ar-depth-controls button{flex:1;min-height:44px;font-size:14px}
@media(max-height:500px){#ar-overlay[data-calibration=floor] #ar-scale-panel,#ar-overlay[data-calibration=ceiling] #ar-scale-panel{max-height:48dvh;width:min(360px,48vw)}}

/* Vent surface choices stay inside the existing scrollable drawer. */
.vent-mounts{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.vent-mounts[hidden]{display:none}.vent-mounts button{flex:1;min-height:44px;border:1px solid #cfdae6;border-radius:12px;background:white;color:#182c45;padding:10px}.vent-mounts button[aria-pressed="true"]{background:#1455fa;color:white}.vent-mounts small{flex-basis:100%;font-size:12px;line-height:1.4;color:#52677f}

#model-area.vent-preview{background:#fff9f1!important}#model-area.vent-preview model-viewer{background:transparent!important}

#model-area.vent-preview .size-button,#ar-overlay[data-vent="true"] #ar-size-buttons button{width:auto;min-width:74px;padding:6px 10px;white-space:nowrap;font-size:16px}

/* 2026-11-02: shared showroom and in-camera controls. */
:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--ink:#172840}
#app header{background:#fff;border-bottom:1px solid #e4eaf1}.section-title{background:#fff;color:#172840;font-weight:650;min-height:54px;border-bottom:1px solid #e4eaf1}
.product-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;padding:24px;background:#f3f5f8;align-content:start;scroll-snap-type:none}
.product-card{min-width:0;height:260px;padding:12px;border:1px solid #e0e6ee;border-radius:22px;background:#e9edf1;gap:10px;color:#172840;font-size:16px;font-weight:650;box-shadow:0 5px 16px #17284008;transition:transform .15s,box-shadow .15s}
.product-card:hover{background:#e5ebf2;box-shadow:0 8px 24px #17284015;transform:translateY(-2px)}.product-card:after{display:none}.product-card model-viewer{display:block;width:100%;height:185px;flex:none;pointer-events:none;background:transparent;--poster-color:transparent}.product-card span{min-height:40px;max-width:100%;line-height:1.3}
.catalogue-footer{background:#fff;color:#62738a}.catalogue-footer button{display:none}#search{background:#f0f4fa;color:#172840;border-radius:10px;min-height:36px}
#detail{background:#edf0f3}.product-name{background:#fff;color:#172840;border-radius:16px;top:16px;left:16px;padding:12px 18px;box-shadow:0 4px 18px #1728400d}.product-name small{color:#64758b;letter-spacing:.9px}.color-options{background:#ffffffeb;border-radius:30px;left:16px;top:94px;gap:12px;padding:10px}.color-options button{width:28px;height:28px;border-radius:50%;box-shadow:0 0 0 1px #b7c3d1}.color-options button[aria-pressed=true]{outline:2px solid #0856f7;outline-offset:3px;border:2px solid #fff}
.size-options{background:#ffffffeb;border-radius:16px;padding:10px 12px;max-width:90%;width:max-content;box-shadow:0 4px 18px #1728400b}.size-options>span{color:#52647b;font-size:12px}#sizes{gap:6px;margin-top:8px}.size-button{border:1px solid #d4deea;border-radius:10px;color:#172840;min-height:38px}.size-button[aria-pressed=true]{background:#0856f7;border-color:#0856f7}.detail-tools{background:#fff}.detail-tools button{color:#172840;font-weight:600}.detail-tools #choose-unit{color:#0856f7;background:#eef4ff}
.setup-grid{background:#f3f5f8}.setup-steps{gap:8px}.setup-steps h1{font-weight:700}.primary{background:#0856f7;border-radius:14px;min-height:52px;font-weight:650;font-size:16px}.setup-model{gap:10px}#setup-3d{display:block;width:min(100%,420px);height:220px;background:#e8edf1;border-radius:22px}.vent-mounts{width:100%;max-width:460px;align-self:center;gap:10px}.vent-mounts label{flex:1 1 100%;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;text-align:left}.vent-mounts input,.vent-mounts select{width:100px;min-height:44px;border:1px solid #cdd8e5;background:#fff;border-radius:10px;padding:8px;color:#172840;font:inherit;flex-shrink:0}
#ar-overlay .ar-drawer,#ar-overlay #ar-adjustments{border:1px solid #ffffffcc;border-radius:22px;background:#f8fafff5;backdrop-filter:blur(16px);box-shadow:0 12px 40px #10223830;padding:18px;color:#172840;font:14px/1.4 system-ui,sans-serif}
#ar-overlay .ar-drawer select,#ar-overlay .ar-drawer input,#ar-overlay #ar-adjustments input[type=number]{border:1px solid #d0dbe8;border-radius:12px;background:#fff;color:#172840;padding:10px;min-height:44px;font:inherit}#ar-overlay .ar-drawer button,#ar-overlay #ar-adjustments button{border-radius:12px;min-height:44px;font:600 14px/1.3 system-ui,sans-serif}#ar-overlay #ar-size-buttons{gap:8px;flex-wrap:wrap}#ar-overlay #ar-size-buttons button{background:#fff;border:1px solid #d1deec;color:#172840;padding:10px}#ar-overlay #ar-size-buttons button[aria-pressed=true]{background:#0856f7;color:white;border-color:#0856f7}
#ar-overlay #ar-onboarding{background:#172840f0;color:#fff;border:1px solid #ffffff38;border-left:4px solid #67baff;border-radius:18px;padding:16px 18px;box-shadow:0 8px 32px #0003;backdrop-filter:blur(12px);font:14px/1.45 system-ui,sans-serif}#ar-overlay #ar-onboarding strong{color:#fff;font-size:17px}#ar-overlay #ar-onboarding p{color:#e2edf9;margin-top:6px}#ar-overlay #ar-onboarding button{border-radius:10px;background:#fff!important;color:#0856f7!important;font-weight:650;min-height:40px!important}
.vent-copies{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid #d5deea}.vent-copies strong,.vent-copies label,.vent-copies small{grid-column:1/-1}.vent-copies>span{grid-column:1/-1;color:#52647b}.vent-copies label{display:flex;align-items:center;justify-content:space-between;gap:8px}.vent-copies input{width:80px}.vent-copies small{color:#52647b;line-height:1.4}
@media(max-width:700px){.product-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px}.product-card{height:205px;padding:8px;font-size:13px;border-radius:18px}.product-card model-viewer{height:138px}.product-card span{min-height:36px}.product-name{top:12px;left:12px;font-size:15px;max-width:80%}.color-options{top:88px;left:12px}.size-options{bottom:14px;padding:8px}#model-area.vent-preview .size-button{font-size:12px;padding:6px;min-width:0}#setup-3d{height:160px}.setup-model{padding:16px 24px}.setup-steps{padding:22px 24px}.section-title{font-size:14px}}
@media(max-height:500px) and (orientation:landscape){.product-list{grid-template-columns:repeat(4,minmax(170px,1fr));padding:12px}.product-card{height:200px}.product-card model-viewer{height:135px}.product-name{top:8px;padding:8px 12px}.color-options{top:76px}.size-options{bottom:10px}#ar-overlay #ar-onboarding{padding:10px 14px;font-size:12px}#ar-overlay #ar-onboarding strong{font-size:14px}}
#model-area .more-tools{top:150px;bottom:auto;left:16px;background:#fff;color:#172840;width:40px;height:40px;padding:4px;letter-spacing:1px}#model-area .reset{top:150px;bottom:auto;right:16px;left:auto;background:#fff;color:#172840;opacity:1;width:40px;height:40px;border-radius:50%;font-size:24px}#model-area .model-overlay-tools{top:200px;bottom:auto;left:16px}#model-area #dimension-note{bottom:170px}
@media(max-height:500px) and (orientation:landscape){#model-area .more-tools,#model-area .reset{top:120px}#model-area .model-overlay-tools{top:165px}}
.product-card span:after{display:none}
#ar-overlay #ar-adjustments button{background:#eaf0f9!important;color:#172840!important}#ar-overlay #ar-adjust-done{background:#0856f7!important;color:white!important;padding:8px 12px}#ar-overlay .ar-panel-heading{background:transparent;padding:0 0 12px;border-bottom:1px solid #dce4ee;margin-bottom:12px}#ar-overlay .ar-top>div{background:#172840d9;border-radius:12px;color:white;backdrop-filter:blur(10px)}#ar-overlay .ar-top small{background:#172840d9;color:#fff;border-radius:0 0 10px 10px}
.direct-entry #ar-setup .setup-grid{align-content:center}.direct-entry #ar-setup #photo-destination{display:none}.direct-entry #ar-setup .setup-steps{order:2}.direct-entry #ar-setup .setup-model{order:1}.direct-entry #ar-setup h1{font-size:21px;line-height:1.3}.direct-entry #ar-setup #launch-ar{font-size:18px;min-height:58px}
@media(max-width:700px) and (orientation:portrait){.direct-entry #ar-setup .setup-model{padding:12px 24px 0}.direct-entry #ar-setup #setup-3d{height:155px}.direct-entry #ar-setup .setup-steps{padding-top:16px}}
#ar-setup>.section-title{color:#fff}.direct-entry #ar-setup .setup-model{display:flex!important;flex:none}.direct-entry #ar-setup .setup-grid{justify-content:center}.direct-entry #ar-setup .setup-steps{flex:none}.direct-entry #ar-setup #setup-3d{background:transparent}.direct-entry #ar-setup .setup-model span{margin:0;font-size:12px;color:#64758b}
@media(max-height:600px){.direct-entry #ar-setup .setup-grid{justify-content:flex-start}.direct-entry #ar-setup .setup-model{display:none!important}}

/* 2026-11-02 — scrollable catalogue and Solufroid welcome. */
#products{overflow:hidden;min-height:0}#product-list{overflow-y:auto!important;overflow-x:hidden!important;touch-action:pan-y;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#b8c7dc transparent;grid-auto-rows:max-content;align-content:start;min-height:0;padding-bottom:calc(24px + env(safe-area-inset-bottom));scroll-snap-type:none!important}
#product-list::-webkit-scrollbar{display:block;width:5px}#product-list::-webkit-scrollbar-thumb{background:#b8c7dc;border-radius:10px}.product-card{touch-action:pan-y;flex:none;min-height:0}.product-card model-viewer{pointer-events:none!important;touch-action:pan-y!important;user-select:none}.product-caption{font-size:11px;font-weight:500;color:#697c91;line-height:1.3}.product-card span{min-height:0!important}.product-card{justify-content:flex-start;gap:7px}
#app header{height:70px;min-height:70px;background:#fff!important;padding:0 24px}.logo img,#home img{width:165px;max-width:48vw}.about{font-size:11px;border:1px solid #d7e0ec;height:34px;padding:0 12px;right:20px;color:#465a73}.about>span{font-size:14px}.back{left:20px;width:32px;height:32px}.back:after{background:#0856f7}#language-badge{display:none!important}
#categories.home-screen{display:block;overflow-y:auto;overflow-x:hidden;min-height:0;background:radial-gradient(ellipse at 80% 0%,#dae7ff80,transparent 60%),#f5f7fb;padding:48px max(24px,calc((100vw - 1120px)/2)) 24px;touch-action:pan-y}
.home-intro{max-width:640px;margin-bottom:32px}.home-eyebrow{font-size:11px;font-weight:750;letter-spacing:1.8px;color:#60748e}.home-intro h1{font-size:clamp(32px,4.8vw,62px);line-height:1.07;letter-spacing:-2px;margin:18px 0;color:#172840;font-weight:750}.home-intro h1 em{font-style:normal;color:#0856f7}.home-intro p{font-size:17px;color:#62738a;max-width:390px;line-height:1.5;margin:0}
#categories .home-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:none;gap:16px;padding:0;background:transparent;min-height:0}
#categories .home-choices button{position:relative;display:flex;align-items:flex-start;justify-content:flex-start;flex-direction:column;text-align:left;gap:14px;min-height:245px;padding:26px;border:1px solid #dce5f1;border-radius:24px;background:#fff;color:#172840;box-shadow:0 8px 30px #17284006;line-height:1.25;font-size:20px;transition:border-color .18s,transform .18s}
#categories .home-choices button:hover{border-color:#0856f7;filter:none;transform:translateY(-2px)}#categories .home-choices button:nth-child(2){background:#172840;color:#fff;border-color:#172840}#categories .home-choices button>span{position:static;font:700 20px/1.25 system-ui;max-width:100%;padding:0;background:none}#categories .home-choices small{font:14px/1.45 system-ui;color:#64768f;max-width:230px}#categories .home-choices button:nth-child(2) small{color:#c6d5ea}#categories .home-choices b{position:absolute;top:24px;right:24px;font-size:24px;font-weight:400;color:#0856f7}#categories .home-choices button:nth-child(2) b{color:#a8cdff}.home-icon{width:64px;height:54px;fill:none;stroke:#0856f7;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;margin-bottom:8px}#categories .home-choices button:nth-child(2) .home-icon{stroke:#a8cdff}.home-footnote{font-size:12px;letter-spacing:1px;text-align:center;color:#71829a;margin:28px 0 0}
#units.vent-placement .unit-grid{background:#f3f6fb;gap:16px;padding:24px}#units.vent-placement .unit-grid button{background:#fff!important;color:#172840;border:1px solid #dce5f1;border-radius:24px;font-size:24px}#units.vent-placement .unit-grid img{background:#0856f7;border-radius:18px;padding:16px;width:78px;height:78px}
#ar-overlay #ar-onboarding{top:calc(110px + env(safe-area-inset-top));padding:18px 18px 18px 62px;background:#fffffff2;color:#172840;border:1px solid #fff;border-left:0;border-radius:22px;box-shadow:0 10px 40px #061c3440;backdrop-filter:blur(18px);width:min(390px,calc(100vw - 32px));max-height:calc(100dvh - 300px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}#ar-overlay #ar-onboarding:before{content:attr(data-step);position:absolute;left:16px;top:18px;width:32px;height:32px;border-radius:11px;display:grid;place-items:center;background:#0856f7;color:#fff;font-size:16px;font-weight:750}#ar-overlay #ar-onboarding strong{font:700 17px/1.25 system-ui;color:#172840}#ar-overlay #ar-onboarding p{font:14px/1.5 system-ui;color:#53677f;margin:8px 0 0}#ar-overlay #ar-onboarding button{background:#edf3ff!important;color:#0856f7!important;border-radius:11px;padding:8px 12px!important;margin-top:14px}
#ar-overlay #ar-scale-panel{padding:22px;border-radius:24px}#ar-overlay #ar-calibration-help{font:750 21px/1.2 system-ui;color:#172840;margin:0 0 16px}#ar-overlay #ar-known-length-wrap{font:13px/1.4 system-ui;color:#64768e}#ar-overlay #ar-known-length{display:block;width:100%;height:58px;margin-top:8px;font-size:24px;background:#fff;border:1px solid #c9d9ed;border-radius:14px;padding:12px 16px;color:#172840}#ar-overlay #ar-calibration-apply{background:#0856f7!important;color:#fff!important;font-size:16px;font-weight:650;margin-top:10px;width:100%;min-height:48px}#ar-overlay #ar-calibration-cancel{background:transparent!important;color:#64768e!important;min-height:40px}#ar-overlay[data-stage=height] #ar-guidance{display:none}
@media(max-width:700px){#app header{height:64px;min-height:64px}.about{right:16px}.logo img,#home img{width:145px}.back{left:16px;width:28px;height:28px}#categories.home-screen{padding:30px 20px 24px}.home-intro{margin-bottom:24px}.home-intro h1{font-size:39px;letter-spacing:-1.6px;margin:14px 0}.home-intro p{font-size:15px;max-width:300px}#categories .home-choices{grid-template-columns:1fr;gap:12px}#categories .home-choices button{padding:20px 48px 20px 88px;min-height:126px;gap:6px;border-radius:21px}#categories .home-choices .home-icon{position:absolute;left:18px;top:25px;width:52px;height:48px;margin:0}#categories .home-choices button>span{font-size:18px}#categories .home-choices small{font-size:13px}#categories .home-choices b{right:18px;top:22px;font-size:22px}.home-footnote{margin:20px 0 0}#product-list .product-card{height:215px}.product-caption{font-size:10px}.product-list .product-card model-viewer{height:140px}}
@media(max-height:500px) and (orientation:landscape){#app header{height:48px;min-height:48px}#categories.home-screen{padding:24px}.home-intro h1{font-size:32px}.home-intro p{font-size:14px}.home-intro{margin-bottom:22px}#categories .home-choices{grid-template-columns:repeat(3,minmax(0,1fr))}#categories .home-choices button{padding:18px;min-height:200px;font-size:16px}#ar-overlay #ar-onboarding{top:86px;width:min(360px,44vw);padding:12px 14px 12px 54px;max-height:calc(100dvh - 190px)}#ar-overlay #ar-onboarding:before{left:12px;top:12px;width:28px;height:28px}#ar-overlay #ar-onboarding strong{font-size:14px}#ar-overlay #ar-onboarding p{font-size:12px}#ar-overlay #ar-scale-panel{width:min(400px,55vw);max-height:calc(100dvh - 125px);bottom:calc(16px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){#categories .home-choices button{transition:none}}
#ar-overlay[data-calibration=height] #ar-scale-panel{bottom:calc(20px + env(safe-area-inset-bottom));max-height:calc(100dvh - 115px - env(safe-area-inset-top) - env(safe-area-inset-bottom));z-index:12}#ar-overlay[data-calibration=height] .ar-native-toolbar,#ar-overlay[data-calibration=height] #ar-rescan,#ar-overlay[data-calibration=height] #ar-shutter{visibility:hidden}#ar-overlay #ar-look-up{background:#172840ed;border:1px solid #ffffff30;border-radius:24px;box-shadow:0 12px 40px #061c3430;backdrop-filter:blur(14px);font:650 22px/1.25 system-ui;padding:22px 26px;text-shadow:none}#ar-overlay #ar-look-up span{color:#a8cdff;font:400 48px/1 system-ui;margin-top:12px}
#ar-overlay{--confirm-size:56px;--confirm-bottom:calc(24px + env(safe-area-inset-bottom))}#ar-overlay #ar-confirm{width:min(250px,calc(100vw - 132px));height:56px;border-radius:18px;padding:10px 16px!important;font:650 15px/1.25 system-ui!important;background:#0856f7!important;color:#fff!important;box-shadow:0 6px 24px #0856f735}#ar-overlay[data-stage=scanning] #ar-guidance{bottom:calc(90px + env(safe-area-inset-bottom));font-size:13px;line-height:1.4}
#ar-overlay[data-calibration=height] #ar-look-up,#ar-overlay[data-calibration=height] #ar-message{visibility:hidden}
/* 2026-11-02 — unified catalogue, one guide, round placement control. */
#categories.home-screen{background:#fff9f1}
#categories .home-choices{grid-template-columns:2fr 1fr}
#categories .home-choices button{min-height:310px;overflow:hidden;justify-content:flex-end}
#categories .home-choices .home-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;max-width:none;max-height:none;opacity:1}
#categories .home-choices button:first-child:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 35%,#142437b8)}
#categories .home-choices button:first-child>span,#categories .home-choices button:first-child>b{z-index:1;color:#fff}
.product-caption{font-size:12px;line-height:1.45;max-width:270px;margin:0 auto 6px}
#ar-overlay{--confirm-size:94px}
#ar-overlay #ar-confirm{width:94px;height:94px;min-width:94px;border-radius:50%;padding:15px!important;font:700 14px/1.25 system-ui!important;box-shadow:0 0 0 5px #ffffff60,0 8px 28px #17284040}
#ar-overlay #ar-onboarding{background:#15283dec;color:white;border:1px solid #ffffff30;border-radius:18px;box-shadow:0 8px 28px #0002}
#ar-overlay #ar-onboarding strong{color:#fff}#ar-overlay #ar-onboarding p{color:#d8e7f7}
#ar-overlay #ar-onboarding:before{border-radius:50%;background:#fff;color:#0856f7}
#ar-overlay #ar-guidance[hidden],#ar-overlay #ar-scan-target[hidden]{display:none!important}
#ar-overlay #ar-duplicate svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#ar-overlay #ar-duplicate span{position:absolute;top:calc(100% + 5px);left:50%;transform:translateX(-50%);font:600 10px/1 system-ui;color:#fff;text-shadow:0 1px 4px #000}
.vent-mounts button{display:flex;align-items:center;justify-content:center;gap:8px}.vent-mounts svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.5}.vent-mounts .mount-face{fill:currentColor}
#units.vent-placement .unit-grid button{overflow:hidden;isolation:isolate;background:#edf3f6!important}
#units.vent-placement .unit-grid button:before{content:'';position:absolute;inset:0;z-index:-1;background-image:var(--mount-scene);background-size:cover;background-position:center;opacity:1}
#units.vent-placement .unit-grid button:after{display:none}
#units.vent-placement .mount-symbol{position:absolute;left:20px;top:20px;width:54px;height:54px;border-radius:16px;background:#fff;box-shadow:0 4px 12px #17284015;display:grid;place-items:center}
.mount-symbol svg{width:38px;height:38px;fill:none;stroke:#527088;stroke-width:1.5}.mount-symbol .mount-face{fill:#0856f7;stroke:#0856f7}
#units.vent-placement .unit-grid button>span{position:absolute;bottom:20px;left:20px;right:20px;background:#fffef9ed;color:#172840;border-radius:14px;padding:16px;font:700 22px/1.2 system-ui}
@media(max-width:700px){#categories .home-choices{grid-template-columns:1fr}#categories .home-choices button{min-height:240px}#categories .home-choices button:nth-child(2){min-height:130px;flex-direction:row;align-items:center;justify-content:flex-start}.home-intro{margin-bottom:24px}.home-intro h1{font-size:39px}#categories.home-screen{padding-top:24px}.product-caption{font-size:11px}}
@media(max-height:500px) and (orientation:landscape){#categories .home-choices{grid-template-columns:2fr 1fr}#categories .home-choices button{min-height:190px}.home-intro h1{font-size:30px}.home-intro{margin-bottom:16px}}
#units.vent-placement #internal{--mount-scene:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20500%20500%22%3E%3Crect%20width%3D%22500%22%20height%3D%22500%22%20fill%3D%22%23eceae5%22/%3E%3Cpath%20d%3D%22M0%200h500v90L310%20145%200%2090Z%22%20fill%3D%22%23fffdf7%22/%3E%3Cpath%20d%3D%22M310%20145%20500%2090v410H310Z%22%20fill%3D%22%23dddcd7%22/%3E%3Cpath%20d%3D%22M0%20390l310%2025%20190-50v135H0Z%22%20fill%3D%22%23c2aa8e%22/%3E%3Cpath%20d%3D%22M25%20205h150v160H25Z%22%20fill%3D%22%23f8f9f6%22/%3E%3Cpath%20d%3D%22M32%20213h136v140H32Z%22%20fill%3D%22%23bdced1%22/%3E%3Cpath%20d%3D%22M100%20213v140M32%20283h136%22%20stroke%3D%22white%22%20stroke-width%3D%227%22/%3E%3Cpath%20d%3D%22M240%20355h200v75H240Z%22%20fill%3D%22%239daaa0%22/%3E%3Cpath%20d%3D%22M250%20345h78v55h-78Zm85%200h94v55h-94Z%22%20fill%3D%22%23b4bfb3%22/%3E%3Crect%20x%3D%2266%22%20y%3D%22139%22%20width%3D%22170%22%20height%3D%2228%22%20rx%3D%223%22%20fill%3D%22%23777%22%20opacity%3D%22.15%22/%3E%3Crect%20x%3D%2265%22%20y%3D%22135%22%20width%3D%22170%22%20height%3D%2228%22%20rx%3D%223%22%20fill%3D%22white%22/%3E%3Cpath%20d%3D%22M73%20144h154M73%20154h154%22%20stroke%3D%22%23303638%22%20stroke-width%3D%223%22/%3E%3C/svg%3E")}
#units.vent-placement #external{--mount-scene:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20500%20500%22%3E%3Crect%20width%3D%22500%22%20height%3D%22500%22%20fill%3D%22%23eceae5%22/%3E%3Cpath%20d%3D%22M0%200h500v90L310%20145%200%2090Z%22%20fill%3D%22%23fffdf7%22/%3E%3Cpath%20d%3D%22M310%20145%20500%2090v410H310Z%22%20fill%3D%22%23dddcd7%22/%3E%3Cpath%20d%3D%22M0%20390l310%2025%20190-50v135H0Z%22%20fill%3D%22%23c2aa8e%22/%3E%3Cpath%20d%3D%22M25%20205h150v160H25Z%22%20fill%3D%22%23f8f9f6%22/%3E%3Cpath%20d%3D%22M32%20213h136v140H32Z%22%20fill%3D%22%23bdced1%22/%3E%3Cpath%20d%3D%22M100%20213v140M32%20283h136%22%20stroke%3D%22white%22%20stroke-width%3D%227%22/%3E%3Cpath%20d%3D%22M240%20355h200v75H240Z%22%20fill%3D%22%239daaa0%22/%3E%3Cpath%20d%3D%22M250%20345h78v55h-78Zm85%200h94v55h-94Z%22%20fill%3D%22%23b4bfb3%22/%3E%3Cpath%20d%3D%22m142%2065%20155%2015-46%2023-155-16Z%22%20fill%3D%22%2396978e%22%20opacity%3D%22.2%22/%3E%3Cpath%20d%3D%22m142%2061%20155%2015-46%2023-155-16Z%22%20fill%3D%22white%22/%3E%3Cpath%20d%3D%22m144%2070%20132%2013m-146-7%20133%2013%22%20stroke%3D%22%23303638%22%20stroke-width%3D%223%22/%3E%3C/svg%3E")}
#units.vent-placement .unit-grid button{position:relative;min-height:220px}#units.vent-placement .unit-grid{overflow:auto;min-height:0}
#ar-overlay #ar-duplicate{position:relative}
/* Simulator visual language and a single, bounded title area. */
#app,#products,#detail,#units,#ar-setup{background:#fff9f1}#app header{background:#fff9f1!important;border-bottom:1px solid #e7eaf0}
#product-list{grid-auto-rows:auto}.product-card{height:auto!important;min-height:245px;padding:14px!important;background:white;border:1px solid #dce4ef;border-radius:22px;box-shadow:0 5px 22px #17284006}.product-card model-viewer{height:150px!important;flex:0 0 150px}.product-card>span{font:700 16px/1.3 system-ui!important;white-space:normal!important;overflow-wrap:anywhere}.product-card small{display:block;font:400 12px/1.5 system-ui;max-width:100%}
#model-area .product-name{position:absolute;top:12px;left:12px;right:12px;width:auto;max-width:none;min-width:0;padding:12px 16px;font:700 20px/1.3 system-ui;border-radius:18px;background:white;display:block;overflow-wrap:anywhere;z-index:3}#model-area .product-name small{display:block;position:static;font:400 12px/1.4 system-ui;letter-spacing:0;margin-top:5px}#model-area .color-options{top:auto!important;bottom:20px!important;left:16px!important;max-width:calc(100% - 32px)}#model-area .size-options{top:110px;right:12px;max-width:calc(100% - 24px)}
#ar-overlay .ar-top>div{position:absolute!important;top:calc(12px + env(safe-area-inset-top));left:72px;right:72px;width:auto!important;max-width:none!important;height:auto!important;min-height:0;padding:10px 12px!important;border-radius:16px!important;background:#172840e8!important;display:block!important;text-align:center}
#ar-overlay .ar-top strong{display:block!important;white-space:normal!important;font:650 15px/1.3 system-ui!important;max-height:59px;overflow:hidden;overflow-wrap:anywhere}#ar-overlay .ar-top small{display:none!important}#ar-overlay #ar-model-title:after{display:none!important}
#ar-overlay #ar-onboarding{top:calc(110px + env(safe-area-inset-top));background:#fff9f1f5;color:#172840;border:1px solid #e0e5ee;box-shadow:0 8px 25px #17284018}#ar-overlay #ar-onboarding strong{color:#172840}#ar-overlay #ar-onboarding p{color:#62738a}
#ar-overlay #ar-undo-copy{position:relative}#ar-overlay #ar-undo-copy svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#ar-overlay[data-vent=true] .ar-native-toolbar{gap:7px;padding-right:68px;justify-content:flex-start}#ar-overlay[data-vent=true] .ar-native-toolbar>button{flex:0 0 40px;width:40px;height:40px}#ar-overlay[data-vent=true] #ar-scale-toggle span{display:none}
@media(max-width:700px){.product-card{min-height:240px}.product-card>span{font-size:14px!important}#model-area .product-name{font-size:18px}#ar-overlay .ar-top>div{left:66px;right:66px}}
@media(max-width:360px){#ar-overlay[data-vent=true] .ar-native-toolbar{gap:4px}#ar-overlay[data-vent=true] .ar-native-toolbar>button{width:34px;height:34px;flex-basis:34px}}
#model-area .size-options{position:absolute!important;top:auto!important;bottom:18px!important;left:auto!important;right:16px!important;width:auto!important;height:auto!important;min-height:0!important;max-height:110px;transform:none!important;display:block;padding:10px 12px;overflow:auto;border-radius:16px;background:#ffffffed}#model-area .size-options>span{font-size:10px}#model-area #sizes{display:flex;flex-wrap:wrap;gap:6px;max-width:230px}.size-button{font-size:14px!important;min-width:34px;min-height:34px}
#vent-mount-setup{display:none!important}#ar-placement-aim{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:22px;height:22px;border:1.5px solid #fff;border-radius:50%;background:#17284025;box-shadow:0 0 0 1px #17284060;pointer-events:none;z-index:3}#ar-placement-aim:after{content:'';position:absolute;width:4px;height:4px;border-radius:50%;background:white;left:7.5px;top:7.5px}#ar-placement-aim[hidden]{display:none}
/* Mobile layout: intrinsic text rows, no shrinking titles or intersecting controls. */
#product-list{background:#fff9f1;grid-auto-rows:max-content!important;align-items:start!important;gap:12px}
#product-list .product-card{display:grid!important;grid-template-rows:112px max-content max-content;align-content:start!important;align-items:start!important;justify-items:center;gap:7px!important;height:auto!important;min-height:0!important;max-height:none!important;padding:12px!important;min-width:0!important}
#product-list .product-card model-viewer{width:100%!important;height:112px!important;min-height:0!important;max-height:112px;display:block}
#product-list .product-card>span{display:block!important;position:static!important;height:auto!important;min-height:0!important;max-height:none!important;font:700 14px/1.25 system-ui!important;margin:0!important;padding:0!important;overflow-wrap:anywhere}
#product-list .product-card>small{display:block!important;height:auto!important;font:400 11px/1.3 system-ui!important;margin:0!important;padding:0!important;letter-spacing:0;overflow-wrap:anywhere}
#categories .home-choices button{min-height:230px!important;justify-content:flex-end!important;align-items:flex-start!important;padding:22px!important;flex-direction:column!important}
#categories .home-choices button:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 35%,#142437bc);pointer-events:none}
#categories .home-choices button>span{position:relative!important;z-index:1;color:white!important;font:650 20px/1.25 system-ui!important;text-align:left;max-width:100%}
#categories .home-choices b{display:none!important}.home-intro h1{letter-spacing:-1px;line-height:1.12}
#detail #model-area{display:grid;grid-template-rows:auto minmax(120px,1fr) auto;min-height:0;overflow:hidden;padding:12px;gap:8px}
#detail #model-area .product-name{position:static!important;grid-row:1;grid-column:1;transform:none!important;width:100%!important;margin:0!important;padding:12px 14px!important;font:700 18px/1.25 system-ui!important}
#detail #viewer{position:relative!important;grid-row:2;grid-column:1;top:auto!important;left:auto!important;width:100%!important;height:100%!important;min-height:120px;max-height:100%}
#detail .preview-options{grid-row:3;grid-column:1;display:flex;flex-direction:column;gap:8px;min-height:0;max-height:180px;overflow:auto}
#detail #model-area .color-options,#detail #model-area .size-options{position:static!important;transform:none!important;top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;max-height:none!important;padding:10px 12px!important;border-radius:14px;background:#fff;margin:0!important;flex-shrink:0}
#detail #model-area .color-options{display:flex;align-items:center;justify-content:flex-start;gap:14px}#detail #model-area .color-options[hidden],#detail #model-area .size-options[hidden]{display:none!important}
#detail #model-area #sizes{display:flex;gap:6px;max-width:none;flex-wrap:nowrap!important;overflow-x:auto;margin:5px 0 0}#detail .size-button{flex:0 0 34px;height:34px!important;min-height:34px!important;width:34px!important;padding:0!important;font-size:14px!important;border-radius:10px!important;border-width:1px!important}#detail #sizes select{max-width:100%;font-size:14px}
#detail .detail-tools{height:66px!important;min-height:66px;flex-shrink:0}#detail .detail-tools button{font-size:10px!important;line-height:1.2;padding:7px!important}#detail .detail-tools .tool-symbol{height:25px!important;width:25px!important;margin-bottom:4px!important}
#ar-setup>.section-title,#ar-setup .setup-model,#ar-setup #setup-name,#ar-setup #setup-dimensions,#ar-setup #photo-destination{display:none!important}
#ar-setup .setup-grid{display:flex!important;align-items:center!important;justify-content:center!important;padding:24px!important;background:#fff9f1;min-height:0}
#ar-setup .setup-steps{width:min(420px,100%);padding:0!important;text-align:center}#ar-setup #launch-ar,#ar-setup #apple-launch{min-height:64px;border-radius:20px;font:650 18px/1.25 system-ui;padding:18px;margin:0}#ar-setup #ar-status{font:400 14px/1.4 system-ui;color:#62738a;margin:14px 0}#ar-setup #show-3d{font-size:14px}
@media(max-height:500px) and (orientation:landscape){#detail #model-area{grid-template-columns:minmax(0,1fr) 220px;grid-template-rows:auto minmax(100px,1fr)}#detail #model-area .product-name{grid-column:1/3}#detail #viewer{grid-column:1;grid-row:2}#detail .preview-options{grid-column:2;grid-row:2;max-height:100%}}
body.direct-entry #ar-setup .setup-model{display:none!important}html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* Diffusers use facade dimensions, not the compact numeric power buttons. */
#detail #model-area.vent-preview #sizes{flex-wrap:wrap!important;overflow:visible;gap:8px}
#detail #model-area.vent-preview .size-button{flex:0 1 auto;width:auto!important;min-width:0;height:auto!important;min-height:42px!important;max-width:100%;padding:10px 12px!important;white-space:nowrap;font:600 13px/1.3 system-ui!important}
#ar-overlay[data-vent="true"] #ar-size-buttons{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
#ar-overlay[data-vent="true"] #ar-size-buttons button{flex:0 1 auto;width:auto!important;min-width:0;max-width:100%;min-height:44px;height:auto;padding:10px 12px;white-space:nowrap;font:600 14px/1.3 system-ui}

@media(max-width:360px){#app header #about{width:32px;height:32px;min-width:32px;right:14px;padding:0;font-size:0;display:flex;align-items:center;justify-content:center}#app header #about span{font-size:17px;margin:0}}
/* Shared optical grid for all viewer/AR action icons. */
.ui-icon{display:block;width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
#detail #model-area .product-name{pointer-events:auto}
#unit-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin:0 0 12px;background:#eef2f8;border-radius:12px}
#unit-tabs[hidden]{display:none!important}#unit-tabs button{min-width:0;min-height:40px;padding:8px 5px;border-radius:9px;font:600 12px/1.25 system-ui;color:#65758b}
#unit-tabs button[aria-selected=true]{background:#fff;color:#0856f7;box-shadow:0 2px 6px #1728400c}
#detail .preview-options{max-height:min(240px,45dvh)}
#detail #model-tools{position:static!important;inset:auto!important;transform:none!important;display:flex!important;flex-wrap:nowrap;align-items:stretch;justify-content:space-around;gap:6px;width:100%;padding:0;background:transparent;box-shadow:none;border-radius:0;flex-shrink:0}
#detail #model-tools>button{position:static!important;inset:auto!important;transform:none!important;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:auto!important;min-width:0;height:56px!important;padding:7px 2px!important;margin:0;opacity:1;border-radius:12px!important;background:#fff;color:#172840;font:500 10px/1.15 system-ui;letter-spacing:0}
#detail #model-tools>button[hidden]{display:none!important}#detail #model-tools>button:disabled{opacity:.35}#detail #model-tools>button[aria-pressed=true]{color:#0856f7;background:#eaf0ff}
#detail #model-tools>button>span{display:block!important;position:static!important;transform:none!important;font:500 10px/1.15 system-ui;color:inherit}
#detail #model-tools .ui-icon{width:22px!important;height:22px!important;margin:0!important}
#ar-overlay .ar-native-toolbar,#ar-overlay[data-vent=true] .ar-native-toolbar{display:grid!important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px!important;width:calc(100% - 56px);max-width:360px;height:44px;align-items:center;justify-content:initial;padding:0!important}
#ar-overlay .ar-native-toolbar>button:not(#ar-open),#ar-overlay[data-vent=true] .ar-native-toolbar>button:not(#ar-open){display:flex;align-items:center;justify-content:center;width:100%;max-width:44px;height:auto;aspect-ratio:1;min-width:0;min-height:0;flex:auto;margin:0;padding:0!important;justify-self:center;line-height:1}
#ar-overlay .ar-native-toolbar>button[hidden]{display:none!important}
#ar-overlay .ar-native-toolbar .ui-icon,#ar-overlay #ar-close .ui-icon,#ar-overlay #ar-shutter .ui-icon,#ar-overlay #ar-rescan .ui-icon{width:24px!important;height:24px!important;padding:0!important;margin:0!important;position:static!important;transform:none!important;stroke-width:1.8}
#ar-overlay #ar-close,#ar-overlay #ar-shutter,#ar-overlay #ar-rescan{display:flex;align-items:center;justify-content:center;padding:0!important;line-height:1;color:white}
#ar-overlay #ar-close:after{display:none!important}
#ar-overlay #ar-open{display:flex;align-items:center;justify-content:center;gap:9px;padding:0 16px!important;line-height:1.2}
#ar-overlay #ar-open[hidden]{display:none!important}#ar-overlay #ar-open .ui-icon{width:23px!important;height:23px!important}
#ar-overlay #ar-open-label{position:static!important;margin:0!important;transform:none!important}
@media(max-height:500px) and (orientation:landscape){#detail .preview-options{max-height:100%}#detail #model-area .product-name{padding:8px 12px!important;display:flex!important;gap:12px;align-items:center;flex-wrap:wrap}#unit-tabs{order:2;margin:0;min-width:270px;margin-left:auto}#detail #model-area .product-name small{display:none!important}}

#unit-tabs.duct-tabs{grid-template-columns:.7fr 1fr 1fr}#unit-tabs.duct-tabs button{font-size:11px}#duct-family{width:100%;min-height:40px;border:1px solid #dce3ec;border-radius:12px;background:#fff;color:#172840;padding:8px 12px;font:600 13px/1.3 system-ui;flex-shrink:0}#duct-family[hidden]{display:none!important}

/* Center the unit selector consistently, including compact landscape layouts. */
#detail #unit-tabs{width:100%;max-width:560px;margin:0 auto 12px;justify-self:center;align-self:center;grid-template-columns:repeat(2,minmax(0,1fr))}
#detail #unit-tabs.duct-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
#detail #unit-tabs button{display:flex;align-items:center;justify-content:center;text-align:center;white-space:normal}
@media(max-height:500px) and (orientation:landscape){#detail #unit-tabs{order:-1;flex:0 0 100%;min-width:0;margin:0 auto 8px}}

/* Keep AR header below phone status indicators, even when WebXR reports zero inset. */
#ar-overlay{--ar-header-top:calc(12px + max(32px, env(safe-area-inset-top, 0px)))}
#ar-overlay .ar-top>div,#ar-overlay #ar-close,#ar-overlay #ar-shutter{top:var(--ar-header-top)!important}

#detail .finish-row{display:flex;align-items:center;gap:6px;min-width:0;background:white;border-radius:14px}
#detail #model-area .finish-row .color-options{width:auto!important;gap:8px;padding:10px!important}
#detail #model-area .finish-row .size-options{flex:1 1 0;width:auto!important;padding:6px!important}
#detail #model-area .finish-row #sizes{justify-content:safe center}

.product-list .product-card>img{width:100%;height:112px;max-width:100%;object-fit:contain;pointer-events:none}

#ar-unit-tabs{pointer-events:auto;display:flex;justify-content:center;gap:3px;margin-top:5px}
#ar-unit-tabs[hidden]{display:none}
#ar-overlay #ar-unit-tabs button{flex:1;min-width:0;width:auto;height:auto;min-height:32px;padding:3px!important;border-radius:7px;color:white;background:#ffffff20;font:600 11px/1.15 system-ui}
#ar-overlay #ar-unit-tabs button[aria-pressed=true]{background:white;color:#174193}
#ar-overlay:has(#ar-unit-tabs:not([hidden])) #ar-guidance{top:calc(var(--ar-header-top) + 90px)}

/* Direct placement: one guide, one confirmation, clear aiming point. */
#ar-overlay[data-placement=direct] #ar-placement-aim{width:18px;height:18px;border:2px solid white;background:transparent;box-shadow:0 0 0 1px #172840aa}
#ar-overlay[data-placement=direct] #ar-placement-aim:after{width:2px;height:2px;left:6px;top:6px}
#ar-overlay[data-placement=direct] #ar-onboarding{top:calc(105px + max(24px,env(safe-area-inset-top)));max-height:calc(50dvh - 155px);padding:14px 16px 14px 58px}
#ar-overlay[data-placement=direct] #ar-onboarding p{font-size:14px;line-height:1.4}
#ar-overlay[data-placement=direct] #ar-onboarding button{margin-top:8px;padding:6px 10px!important;min-height:32px!important;font-size:12px}
@media(orientation:landscape) and (max-height:600px){#ar-overlay[data-placement=direct] #ar-onboarding{top:calc(104px + env(safe-area-inset-top));left:12px;transform:none;width:calc(50vw - 40px);max-height:calc(100dvh - 100px)}#ar-overlay[data-placement=direct] #ar-confirm{left:50%;right:auto;transform:translateX(-50%);bottom:24px}}
