/* TV-first framing with a portable tablet, independent of the empty room holder. */
.scene-visit[data-zone=tv]:is([data-station=comparison],[data-station=showcase]) .scene-canvas{
  display:flow-root;container-type:inline-size;aspect-ratio:auto;
  width:min(100%,1320px,calc((100svh - 190px)*1.48));min-width:0;
  margin:0 auto;background:none;border:0;border-radius:8px;overflow:visible;
}
.scene-visit[data-zone=tv]:is([data-station=comparison],[data-station=showcase]) .scene-stage{
  bottom:auto;height:auto;aspect-ratio:1672/941;border-radius:8px;
}
.scene-visit[data-zone=tv]:is([data-station=comparison],[data-station=showcase]) :is(.scene-photo,.tv-comparison-output,.tv-showcase-output){
  transform:none;transform-origin:center;
}
.scene-visit[data-zone=tv] :is(.tvc-panel,.tv-showcase-touchscreen){
  position:relative;top:auto;right:auto;left:auto;
  width:clamp(410px,46%,580px);max-width:96%;margin:calc(100% * .405) auto 0;
  filter:drop-shadow(0 14px 16px #000a);
}
.scene-visit[data-zone=tv] :is(.tvc-panel,.tv-showcase-touchscreen):before{display:none}
.scene-visit[data-zone=tv] :is(.tvc-bezel,.tv-touch-bezel){
  padding:7px;background:#101313;border:2px solid #59645f;border-radius:18px;
  box-shadow:inset 0 0 0 3px #080c0b,0 4px 0 #050706;
}
.scene-visit[data-zone=tv] :is(.tvc-screen,.tv-touch-screen){aspect-ratio:16/9;border-radius:10px}
.tvc-screen{container-name:comparison-tablet}
.tv-touch-screen{container-name:showcase-tablet}
.tvc-wall-label text{font-size:18px}
/* Tablet UI responds to the tablet, not to the outer browser width. */
@container showcase-tablet (max-width:600px){
  .tv-touch-eyebrow{letter-spacing:.08em}
  .tv-touch-copy h3{font-size:max(18px,5.3cqw)}
  .tv-touch-gallery{padding:0 6px 6px}.tv-touch-header{margin-bottom:4px}
  .tv-touch-grid{gap:4px 5px}.tv-touch-card span{padding:3px 1px}
}
@media(max-width:900px){
  .scene-visit[data-zone=tv]:is([data-station=comparison],[data-station=showcase]) .scene-canvas{width:100%;margin-top:0}
  .scene-visit[data-zone=tv] :is(.tvc-panel,.tv-showcase-touchscreen){width:min(92%,580px);max-width:96%;margin-top:calc(100% * .47)}
  .scene-visit[data-zone=tv]:is([data-station=comparison],[data-station=showcase]) :is(.tvc-panel,.tv-showcase-touchscreen){margin-top:calc(100% * 941 / 1672 + 10px)}
  .scene-visit[data-zone=tv] :is(.tvc-bezel,.tv-touch-bezel){padding:5px;border-radius:14px}
  .scene-visit[data-zone=tv] :is(.tvc-screen,.tv-touch-screen){border-radius:7px}
}
@media(max-width:420px){
  .scene-visit[data-zone=tv] :is(.tvc-panel,.tv-showcase-touchscreen){width:100%;max-width:100%}
}
@media(min-width:901px){.scene-visit[data-zone=tv][data-station=showcase] .tv-showcase-touchscreen{margin-top:calc(100% * .435)}}



/* Responsive scene budget: reserve the tablet as well as the website header.
   Never scale the native touchscreen UI or crop the scene to fit a short window. */
@media(min-width:901px){
 .scene-visit[data-zone=tv]:is([data-station=comparison],[data-station=showcase]) .scene-canvas{
  margin-inline:auto;
  width:min(100%,1200px,max(600px,min(calc((100svh - 216px) / .71),calc((100svh - 470px) / .435))));
 }

}
