/* Workspace layout: expandable preview, configurable and dockable panels, viewport-fitted desktop layout. */
/* The expanded preview reuses the exact same WebGL canvas and live graph output. */
.terrain-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 12px;
}
.terrain-heading h2 {
  padding: 12px 14px 0;
}
#terrain-expand {
  white-space: nowrap;
}
#terrain-view.terrain-expanded {
  position: fixed;
  inset: 12px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #111b25;
  border: 1px solid #6b879e;
  border-radius: 10px;
  box-shadow:
    0 0 0 100vmax rgba(0, 0, 0, 0.78),
    0 20px 60px #000;
  overflow: hidden;
}
#terrain-view.terrain-expanded #three {
  height: auto;
  flex: 1;
  min-height: 100px;
}
#terrain-view.terrain-expanded .terrain-controls {
  flex-shrink: 0;
}
#terrain-view.terrain-expanded .status {
  flex-shrink: 0;
}
body.terrain-modal-open {
  overflow: hidden;
}
@media (max-width: 600px) {
  #terrain-view.terrain-expanded {
    inset: 4px;
  }
  .terrain-controls {
    gap: 7px;
  }
}
