/* The tablet is one stable frame; only its content scrolls. */
.showroom-system{height:calc(100svh - var(--site-header-height,72px) - 108px);min-height:0}
.showroom-system .device,.showroom-system[data-mode=industry] .device{height:100%;min-height:0;display:grid;grid-template-rows:13px minmax(0,1fr) 14px}
.showroom-system[data-mode=industry] .device{grid-template-rows:15px minmax(0,1fr) 50px}
.showroom-system .screen{height:100%;min-height:0;overflow:hidden}
.showroom-system .screen-content{height:100%;min-height:0;max-height:100%;overflow:auto;overscroll-behavior-y:auto;padding:0}
.showroom-system .tablet-sidebar{height:100%;min-height:0;overflow:hidden}
.showroom-system .screen-nav{min-height:0;overflow-y:auto;overscroll-behavior-y:auto}
#panel-overview{height:100%;min-height:0;overflow:hidden}
.visual-stage,.scene-view,.scenario-dock{touch-action:pan-y pinch-zoom}
.scene-view{background:var(--scene-bg)}
.scene-view>svg{mask-image:linear-gradient(to right,transparent,#000 2%,#000 98%,transparent),linear-gradient(to bottom,transparent,#000 2%,#000 98%,transparent);mask-composite:intersect}
.interior-exposure,.garden-exposure,.utility-exposure,.factory-exposure{transition:opacity .65s ease}
.quick-controls,.quick-controls[data-control]{width:244px;max-width:calc(100% - 16px);padding:6px 10px 8px;max-height:calc(100% - 16px);overflow:auto}
.quick-controls[data-control=water]{width:220px}
.quick-controls[data-control=gate]{width:286px;padding-right:54px}
.quick-close,.close-control{position:absolute;width:44px;height:44px;min-height:44px;min-width:44px;top:4px;right:4px;z-index:4;display:grid;place-items:center;padding:0}
.quick-line{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px;align-items:center}
.quick-range{grid-template-columns:minmax(0,1fr);gap:0}
.quick-toggle{min-height:44px;justify-content:flex-start}
.quick-range .quick-toggle,.metric-line .quick-toggle,.quick-controls[data-control=water] .quick-toggle{width:auto;grid-column:1/-1;margin-right:44px}
.water-reading:not(:empty){grid-column:1/-1}
.quick-slider{width:100%;min-width:0;min-height:44px;display:flex;gap:8px}
.quick-slider input{width:100%;min-width:0;height:44px;touch-action:pan-y}
.quick-slider output{flex:none}
.access-line{grid-template-columns:repeat(auto-fit,minmax(76px,1fr));gap:6px}
.access-toggle{min-height:44px;padding:3px 7px;gap:2px}
.control-popover:not(.is-camera){width:304px;max-width:calc(100% - 16px);padding:6px 12px 10px;max-height:calc(100% - 16px);overflow-y:auto}
.control-popover .telemetry{grid-template-columns:minmax(0,1fr);gap:10px}
.telemetry>div,.telemetry .metric-strip>div{min-width:0}
.telemetry .eyebrow{display:flex;align-items:center;min-height:44px;margin:0 44px 2px 0}
.telemetry .metric-strip{gap:10px}
.telemetry .metric-strip strong{font-size:20px}
.telemetry .metric-strip span{font-size:9px}
.telemetry .mini-chart{height:36px;margin-top:6px}
.telemetry .dispatch-table td{padding:5px 0}
.telemetry .dispatch-table caption{font-size:11px;margin-bottom:5px}
@media(max-width:360px){
 .telemetry .metric-strip>div{white-space:normal}
 .telemetry .metric-strip strong{font-size:18px}
 .telemetry .metric-strip small{display:block;margin:2px 0 0}
 .telemetry .dispatch-table{table-layout:fixed}
 .telemetry .dispatch-table td:first-child{width:57%}
}
.portfolio-stage{height:clamp(200px,40svh,460px)}
#panel-works.portfolio-page{min-height:100%;height:auto}
@media(max-width:760px){
 .service-offer{display:none}
 .showroom-system{height:calc(100svh - 96px - env(safe-area-inset-top));min-height:0;grid-template-rows:48px minmax(0,1fr);padding-bottom:6px}
 .mode-bar{padding:0 3px 4px}.mode-tabs>button{min-height:44px}
 .showroom-system .device{grid-template-rows:10px minmax(0,1fr) 12px}
 .showroom-system[data-mode=industry] .device{grid-template-rows:12px minmax(0,1fr) 50px}
 .showroom-system .screen-nav{height:100%;justify-content:space-between;padding:5px 3px;gap:3px}
 .showroom-system .screen-nav a{flex:none;min-height:44px;height:clamp(44px,8svh,60px);padding:4px 1px;gap:3px}
 .screen-nav a>span{font-size:19px}
 .quick-controls,.quick-controls[data-control]{width:244px}
 .quick-controls[data-control=water]{width:220px}
 .quick-controls[data-control=gate]{width:268px}
 .quick-toggle>small{display:block}.quick-toggle{font-size:12px}
 .quick-reading,.quick-reading small{font-size:10px}.quick-reading strong{font-size:12px}
 .quick-close,.close-control{width:44px;height:44px;font-size:24px}
 .quick-slider output{font-size:12px;width:34px}
 .portfolio-stage{height:auto;aspect-ratio:3/2}
 .scenario-buttons,.showroom-system[data-mode=industry] .scenario-buttons{display:flex;flex-wrap:wrap;overflow:visible;gap:4px}
 .scenario-buttons button{flex:1 0 calc(33.333% - 4px);min-height:44px}
 .scenario-buttons button:last-child:nth-child(odd){flex-grow:0}
}
@media(max-width:760px) and (orientation:portrait){
 .showroom-system{--scene-bg:#1d3039}.showroom-system[data-mode=industry]{--scene-bg:#182b35}
}
@media(max-height:620px){
 .showroom-system{min-height:0}
 .sidebar-heading{display:none}.showroom-system .screen-nav{height:100%;justify-content:flex-start;gap:3px;padding:4px}
 .showroom-system .screen-nav a{min-height:44px;height:44px;flex:none}
 .scenario-buttons,.showroom-system[data-mode=industry] .scenario-buttons{display:flex;flex-wrap:nowrap;overflow-x:auto}
 .scenario-buttons button{flex:none;min-height:44px;padding:5px 7px}
 .portfolio-stage{height:240px;aspect-ratio:auto}
}

@media(max-width:760px){
 .compact-header{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:44px 44px;gap:0;width:calc(100% - 16px)}
 .compact-header .header-contact{display:flex;grid-row:2;grid-column:1/-1;min-width:0}
 .compact-header .brand{min-width:0;gap:6px}.compact-header .brand-name{font-size:23px}
 .compact-header .header-activities{font-size:7px;max-width:125px;overflow-wrap:normal}
 .compact-header .site-phone{font-size:15px;white-space:nowrap}
 .compact-header .header-inquiry{padding-left:10px;min-width:0}.compact-header .inquiry-word{font-size:15px}
 .showroom-system .scenario-dock{min-width:0;overflow:hidden}
 .scenario-buttons,.showroom-system[data-mode=industry] .scenario-buttons{min-width:0;max-width:100%;touch-action:pan-x pan-y}
}

@media(min-width:761px) and (max-height:620px){
 .service-offer{display:none}
 .showroom-system{height:calc(100svh - var(--site-header-height,72px) - 6px);grid-template-rows:48px minmax(0,1fr)}
}
.showroom-system .screen-content{overflow-x:hidden}

/* Give the models more room without stretching or cropping their geometry. */
@media(min-width:761px){.wrap{max-width:1600px;width:calc(100% - 32px)}}
@media(min-width:761px) and (min-height:621px){
 :root{--site-header-height:60px}
 .compact-header{height:60px;min-height:60px}
 .service-offer{min-height:40px;max-width:none;padding:0}
 .showroom-system{height:calc(100svh - 140px);grid-template-rows:48px minmax(0,1fr)}
 .mode-bar{padding:0 3px 4px}.mode-tabs>button{min-height:44px}
 .compact-footer{min-height:40px;padding-top:0;padding-bottom:0}
 .compact-footer>a{min-height:40px}
}

@media(min-width:761px){
 #home-view .desktop-object,#industry-view .desktop-object{transform-origin:50% 50%;transform-box:border-box}
}
