#reviewed-twin-stage[hidden], #reviewed-source-vr[hidden], #room-demo-directory[hidden]{display:none!important}
#reviewed-twin-stage{position:relative;z-index:2;width:100%;height:100%;min-width:0;color:#213647;background:#eff3f4;}
#overview-page .map-panel>#scene-container:has(#reviewed-twin-stage:not([hidden])){height:auto;min-height:0;}
#reviewed-twin-stage .lpv{margin:0;}
#reviewed-twin-stage .lpv-stage{height:clamp(340px,58vh,680px);}
.room-demo-directory{margin:0 14px 10px;border-top:1px solid var(--map-border);border-bottom:1px solid var(--map-border);color:var(--map-ink);}
.room-demo-directory summary{padding:12px 4px;font-size:14px;font-weight:600;cursor:pointer;}
.room-demo-rows{max-height:min(50vh,470px);overflow:auto;overscroll-behavior:contain;margin-bottom:8px}
.room-demo-rows a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 6px;color:inherit;text-decoration:none;border-top:1px solid var(--map-border);}
.room-demo-rows a:hover,.room-demo-rows a:focus-visible{background:var(--map-tint);}
.room-demo-rows strong,.room-demo-rows small{display:block;}
.room-demo-rows small{font-size:12px;color:var(--map-muted);margin-top:2px;}
#reviewed-source-vr{text-decoration:none}
@media(max-width:640px){#reviewed-twin-stage .lpv-stage{height:clamp(300px,46svh,430px);}}

.scene-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 5px 10px;
  border: 1px solid #466178;
  border-radius: 4px;
  background: #152b3e;
  color: #d4ebff;
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
}
.scene-shortcut:hover { background: #223d52; }
.scene-shortcut:active { background: #1a3348; }
.scene-shortcut[hidden],
#open-room-directory { display: none; }
#return-to-room-scene {
  margin-left: auto;
  border-color: #bacbd8;
  background: white;
  color: #21587e;
}
#return-to-room-scene:hover { background: #eef5fa; }
.twin-device-section .twin-section-heading { align-items: center; flex-wrap: wrap; }
.twin-device-section #twin-device-heading { margin: 0; }
#overview-page :is(.scene-shortcut, #scene-title, #twin-device-heading, #room-demo-directory summary):focus-visible {
  outline: 2px solid #278bd1;
  outline-offset: 2px;
}
#overview-page .map-panel:has(#reviewed-twin-stage:not([hidden]) .lpv[data-view-mode="room"])
  :is(#top-view-btn, #rotate-btn, #reset-camera, #cutaway-btn, .apartment-actions > span) { display: none; }

@media (max-width: 1100px) {
  body[data-scene="city"] .map-panel > .panel-heading { flex-wrap: wrap; }
  body[data-scene="city"] .scene-heading-copy {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    column-gap: 8px;
    width: 100%;
  }
  body[data-scene="city"] .scene-heading-copy > p { grid-column: 1; }
  body[data-scene="city"] #open-room-directory:not([hidden]) {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1 / 3;
  }
}
@media (max-width: 640px) {
  #overview-page .scene-shortcut,
  #overview-page .map-panel .scene-tools .icon-btn,
  #overview-page .map-panel .scene-tools .geo-terrain-button,
  #overview-page #scene-detail .close-scene-detail,
  #overview-page #apartment-actions .button,
  #overview-page #room-demo-directory summary {
    min-height: 44px;
    min-width: 44px;
  }
  body[data-scene="apartment"] #overview-page .map-heading-controls {
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  #overview-page .map-panel .scene-breadcrumb { min-width: 0; overflow-wrap: anywhere; }
  #overview-page .scene-toolbar { flex-wrap: wrap; }
  #overview-page .scene-tools { margin-left: auto; }
}

body[data-scene="city"] .scene-shortcut { color:var(--map-accent); border-color:var(--map-strong-border); background:var(--map-surface); }
body[data-scene="city"] .scene-shortcut:hover { background:var(--map-tint); }
