.building-plan-3d-preview {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.building-plan-3d-preview:focus { outline: none; }
.building-plan-3d-body { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--hr-model-bar); }
.building-plan-3d-filters { flex: 0 0 auto; min-width: 0; overflow-x: hidden; scrollbar-width: thin; }
.building-plan-3d-floor { gap: 6px; }
.building-plan-3d-elevation { font-size: 11px; font-weight: 400; opacity: .75; }
.building-plan-3d-height-hint { margin: 8px 0; color: #facc15; font-size: 12px; line-height: 1.5; }
.building-plan-3d-stage { position: relative; display: grid; flex: 1; min-width: 0; min-height: 0; overflow: hidden; }
.building-plan-3d-stage > .room-model-viewer { min-width: 0; height: 100%; }
.building-plan-3d-wall-legend { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; gap: 5px 14px; padding: 7px 16px; border-bottom: 1px solid var(--hr-model-divider); background: var(--hr-model-bar); color: rgba(255,255,255,.8); font-size: 11px; line-height: 1.5; }
.building-plan-3d-wall-legend > strong { font-weight: 600; }
.building-plan-3d-wall-legend ul { display: flex; flex-wrap: wrap; gap: 5px 14px; margin: 0; padding: 0; list-style: none; }
.building-plan-3d-wall-legend li { display: flex; align-items: center; gap: 6px; }
.building-plan-3d-wall-legend li > span { display: inline-block; flex: 0 0 10px; width: 10px; height: 10px; border: 1px solid rgba(255,255,255,.45); border-radius: 2px; }
.building-plan-3d-roof-problem-key { color: #facc15; }
.building-plan-3d-stage .room-model-selection > div { min-width: 0; overflow-wrap: anywhere; }
.building-plan-3d-warnings { margin-top: 8px; color: #facc15; font-size: 12px; line-height: 1.5; }
.building-plan-3d-warnings summary { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.building-plan-3d-warnings ul { margin: 8px 0 0; padding-left: 20px; }
.building-plan-3d-filter-empty { position: absolute; left: 50%; top: 45%; transform: translate(-50%,-50%); max-width: calc(100% - 32px); margin: 0; padding: 12px 16px; border-radius: 6px; background: rgba(8,13,20,.9); color: #fff; font-size: 13px; text-align: center; pointer-events: none; }
.building-plan-3d-footnote { flex: 0 0 auto; padding: 9px 18px; border-top: 1px solid var(--hr-model-divider); background: var(--hr-model-bar); color: rgba(255,255,255,.68); font-size: 11px; line-height: 1.5; }
@media (max-width: 720px) {
  .building-plan-3d-footnote { padding: 7px 12px; }
}
