body.lab {
  overflow: hidden;
}

.lab .hud-top {
  pointer-events: auto;
}

.lab .hud-bottom.lab-bottom {
  left: 16px;
  right: 16px;
}

.stage {
  position: fixed;
  z-index: 2;
  top: 118px;
  left: 16px;
  right: 16px;
  bottom: 84px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pane {
  position: relative;
  min-height: 0;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(18px) saturate(1.2);
}

.pane h2 {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pane-lead {
  position: absolute;
  z-index: 3;
  top: 36px;
  left: 16px;
  right: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  max-width: 36em;
  pointer-events: none;
}

#brain,
#fly3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#brain {
  cursor: grab;
  touch-action: none;
}
#brain:active { cursor: grabbing; }

#fly3d {
  cursor: grab;
  touch-action: none;
}
#fly3d:active { cursor: grabbing; }
#fly3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.pane .mood {
  position: absolute;
  z-index: 3;
  left: 16px;
  bottom: 14px;
  margin: 0;
}

@media (max-width: 860px) {
  .stage {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .pane-lead { display: none; }
}
