/* ==========================================================================
   留创园 · 园区全景数字展示中心 · 高阶科技美学与 3D 空间 HUD 视觉体系
   ========================================================================== */

:root {
  --bg: #030813;
  --panel-bg: linear-gradient(155deg, rgba(10, 26, 44, 0.85) 0%, rgba(4, 14, 26, 0.94) 100%);
  --white: #edf5fc;
  --cyan: #00f0ff;
  --cyan-dim: #00f0ff3d;
  --cyan-bright: #68f6ff;
  --blue-tech: #0088ff;
  --gold-tech: #ffd666;
  --green-tech: #00ffaa;
  --muted: #8faec5;
  --line: rgba(0, 240, 255, 0.16);
  --line-strong: rgba(0, 240, 255, 0.35);
  --hud-glow: 0 0 16px rgba(0, 240, 255, 0.18);
  --hud-glow-active: 0 0 24px rgba(0, 240, 255, 0.38);
  --control: #0e2439;
  --radius: 6px;
  --stage-scale: 1;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", monospace, sans-serif;
}

body {
  background: #02050b;
  font-family: var(--font-family);
  overflow: hidden;
}

.stage {
  background: radial-gradient(circle at 50% 45%, #071526 0%, #030813 70%, #010408 100%);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.85);
  perspective: 1200px;
}

.stage::before {
  background-image: url(../assets/premium-environment.webp);
  opacity: 0.22;
  filter: contrast(1.15) saturate(1.2);
}

/* 科技暗网格微投影衬底 */
.stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(0, 240, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.45;
  z-index: 0;
}

button, select {
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

button:focus-visible, select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  box-shadow: var(--hud-glow);
}

button:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   顶部全息态势视窗 (Header)
   -------------------------------------------------------------------------- */
.screen-header {
  left: 36px;
  right: 36px;
  top: 20px;
  height: 68px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  z-index: 5;
}

.screen-header::before {
  content: '';
  position: absolute;
  inset: -20px -36px -12px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(3, 8, 19, 0.96) 0%, rgba(3, 8, 19, 0.75) 75%, transparent 100%);
  pointer-events: none;
  backdrop-filter: blur(12px);
}

/* 顶部中间科技装饰线 */
.screen-header::after {
  content: '';
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 50%, transparent 100%);
  box-shadow: 0 0 10px var(--cyan);
}

.brand-home {
  padding: 0;
  gap: 12px;
  text-align: left;
}

.brand-home > .icon {
  width: 32px;
  height: 32px;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-copy strong {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.brand-copy small {
  font: 9px/1 monospace;
  letter-spacing: 2px;
  color: #6d96b0;
}

.title-block {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  text-align: center;
}

.title-block p {
  margin: 0 0 6px;
  font: 10px/1 monospace;
  letter-spacing: 5px;
  color: var(--cyan);
  opacity: 0.85;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.screen-header h1 {
  position: static;
  transform: none;
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: 4px;
  font-weight: 600;
  background: linear-gradient(180deg, #ffffff 30%, #a4e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.3));
}

.header-actions {
  gap: 10px;
  padding: 0;
  font-size: 13px;
  color: #9cbacf;
}

.header-actions time {
  margin-right: 14px;
  font-family: monospace;
  letter-spacing: 1px;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.header-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 96px;
  padding: 0 16px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 34, 54, 0.7);
  backdrop-filter: blur(8px);
  font-size: 14px;
  color: #d1e8f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-actions .icon {
  width: 17px;
  height: 17px;
  color: var(--cyan);
}

.header-actions button:hover, #fullscreen-toggle[aria-pressed='true'] {
  background: rgba(0, 240, 255, 0.16);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: var(--hud-glow);
}

.scene-caption {
  display: none !important;
}

/* --------------------------------------------------------------------------
   左右主数据面板 (HUD Hologram Rails)
   -------------------------------------------------------------------------- */
.data-rail, .right-panel {
  position: absolute;
  top: 176px;
  width: 272px;
  height: 654px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 3;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-bg);
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 0 24px rgba(0, 240, 255, 0.04);
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.data-rail {
  left: 36px;
  border-left: 2px solid var(--cyan);
  transform: perspective(1000px) rotateY(1.8deg);
}

.right-panel {
  right: 36px;
  border-right: 2px solid var(--cyan);
  transform: perspective(1000px) rotateY(-1.8deg);
}

.data-rail.is-collapsed {
  transform: translateX(-308px) !important;
}

.right-panel.is-collapsed {
  transform: translateX(308px) !important;
}

/* --------------------------------------------------------------------------
   左右独立侧翼折叠手柄 (Hologram Dock Handles)
   -------------------------------------------------------------------------- */
.dock-handle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 2px;
  background: rgba(7, 24, 38, 0.94);
  border: 1px solid rgba(0, 240, 255, 0.4);
  backdrop-filter: blur(16px);
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  color: #a8d5e5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.dock-handle:hover {
  background: rgba(10, 38, 60, 0.98);
  border-color: #00f0ff;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.45);
}

.dock-handle-arrow {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dock-handle-text {
  writing-mode: vertical-lr;
  font-size: 11px;
  letter-spacing: 2px;
  color: #7caab9;
  font-weight: 500;
  text-shadow: 0 0 4px rgba(0, 240, 255, 0.3);
  user-select: none;
}

.dock-handle:hover .dock-handle-text {
  color: #00f0ff;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

/* 左侧把手挂在右外沿 */
.dock-handle-left {
  right: -25px;
  border-left: none;
  border-radius: 0 8px 8px 0;
}

.dock-handle-left .dock-handle-arrow {
  transform: rotate(180deg);
}

.data-rail.is-collapsed .dock-handle-left .dock-handle-arrow {
  transform: rotate(0deg);
}

/* 右侧把手挂在左外沿 */
.dock-handle-right {
  left: -25px;
  border-right: none;
  border-radius: 8px 0 0 8px;
}

.dock-handle-right .dock-handle-arrow {
  transform: rotate(0deg);
}

.right-panel.is-collapsed .dock-handle-right .dock-handle-arrow {
  transform: rotate(180deg);
}

/* 标题栏右上角快捷收纳按钮 */
.dock-mini-btn {
  margin-left: auto;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 4px;
  color: #7caab9;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.dock-mini-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: #00f0ff;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.dock-mini-btn span {
  width: 12px;
  height: 12px;
}

/* 强制重置内部子模块为流式排列，消除旧 styles.css 绝对定位重叠 */
#metrics, .metrics,
#left-panel, .left-panel,
.overview-panel,
.weather-panel,
.cameras-panel {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  height: auto !important;
  outline: 0 !important;
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 经典科幻 HUD 4 角定位标 */
.data-rail::before, .right-panel::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
  pointer-events: none;
}

.data-rail::after, .right-panel::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-bottom: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
  pointer-events: none;
}

/* 模块标题与标识 */
.module-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  min-height: 38px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.module-heading::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.module-heading h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #fff;
  margin: 0;
  padding: 0;
  border: 0 !important;
  filter: none !important;
}

.module-heading small {
  display: block;
  font: 9px/1 monospace;
  letter-spacing: 1.5px;
  color: #648ba6;
  margin-top: 3px;
}

.module-number {
  font: 11px/1 monospace;
  font-weight: 700;
  color: var(--cyan);
  border: 1px solid var(--line);
  padding: 2px 4px;
  border-radius: 2px;
  background: rgba(0, 240, 255, 0.08);
}

.sample-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  padding: 2px 7px;
  background: rgba(0, 240, 255, 0.08);
  border-radius: 3px;
  color: var(--cyan);
  font-size: 11px;
  font-family: monospace;
  white-space: nowrap;
}

.module-heading > .sample-tag {
  margin-left: auto;
}

/* --------------------------------------------------------------------------
   园区经济指标 (Metrics)
   -------------------------------------------------------------------------- */
.metrics {
  position: static;
  inset: auto;
  width: auto;
  height: auto;
  display: block;
  padding: 0;
  background: none;
  outline: 0;
  box-shadow: none;
}

.metric {
  justify-content: flex-start;
  padding: 0;
  border: 0;
}

.metric-hero {
  height: 104px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-label, .metric-staff .metric-label {
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #8faec5;
}

.metric p {
  margin: 6px 0 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.metric strong {
  font-family: monospace;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.5px;
}

.metric-hero strong {
  font-size: 50px;
  background: linear-gradient(180deg, #fff3cf 0%, #ffd666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(255, 214, 102, 0.45));
}

.metric p > span {
  font-size: 13px;
  color: var(--cyan);
  font-family: var(--font-family);
}

.metric-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 88px;
  border-bottom: 1px solid var(--line);
}

.metric-pair > .metric + .metric {
  margin: 14px 0;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.metric-staff {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.metric-staff > .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.metric-staff strong {
  font-size: 28px;
  color: var(--cyan-bright);
}

/* --------------------------------------------------------------------------
   空间概览 (Spatial Profile)
   -------------------------------------------------------------------------- */
.left-panel {
  position: static;
  width: auto;
  height: auto;
  display: block;
  background: none;
}

.overview-list {
  margin-top: 10px;
}

.overview-list > div {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.overview-list > div:last-child {
  border-bottom: 0;
}

.overview-list dt {
  font-size: 13px;
  color: #9ab9cf;
  display: flex;
  align-items: center;
  gap: 8px;
}

.overview-list dt .icon {
  width: 17px;
  height: 17px;
  color: var(--cyan);
}

.overview-list dd {
  margin: 0;
  font-size: 12px;
  color: #9cb5c5;
}

.overview-list strong {
  font-family: monospace;
  font-size: 23px;
  font-weight: 700;
  color: #fff;
  margin-right: 4px;
}

/* 科技能量条式入驻率指示器 */
.occupancy-meter {
  display: block;
  appearance: none;
  width: 100%;
  height: 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  margin-top: 14px;
  background: rgba(0, 240, 255, 0.08);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.6);
}

.occupancy-meter::-webkit-meter-bar {
  background: rgba(0, 240, 255, 0.08);
  border: 0;
  border-radius: 3px;
}

.occupancy-meter::-webkit-meter-optimum-value {
  background: linear-gradient(90deg, #0088ff 0%, var(--cyan) 100%);
  border-radius: 3px;
  box-shadow: 0 0 8px var(--cyan);
}

/* --------------------------------------------------------------------------
   环境感知 (Environment Panel)
   -------------------------------------------------------------------------- */
.weather-main {
  height: 140px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 4px;
}

.weather-main > .icon {
  width: 44px;
  height: 44px;
  color: var(--gold-tech);
  filter: drop-shadow(0 0 10px rgba(255, 214, 102, 0.5));
}

.weather-main > span:not(.icon) {
  font-size: 16px;
  font-weight: 500;
  color: #e1eff8;
}

.weather-main strong {
  margin-left: auto;
  font-family: monospace;
  font-size: 46px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
}

.weather-main small {
  font-size: 18px;
  color: var(--cyan);
}

.environment-values {
  padding-top: 20px;
  gap: 12px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.environment-values > div {
  display: flex;
  align-items: center;
}

.environment-values > div + div {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.environment-values > div > div > span {
  font-size: 12px;
  color: #8faec5;
}

.environment-values strong {
  display: block;
  font-family: monospace;
  font-size: 26px;
  font-weight: 700;
  color: var(--cyan-bright);
  margin-top: 4px;
}

.environment-values small {
  font-size: 11px;
  color: #8faec5;
}

/* --------------------------------------------------------------------------
   视频巡检 (Video Surveillance Preview)
   -------------------------------------------------------------------------- */
.cameras-panel {
  margin-top: 0;
  position: relative;
}

.camera-preview {
  margin-top: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  padding: 0;
  background: #040c16;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.camera-preview img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.9);
  display: block;
  transition: transform 0.3s ease;
}

.camera-preview:hover img {
  transform: scale(1.03);
}

/* 视频扫描线与 HUD 录制标 */
.camera-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.45) 50%),
              linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 4px, 6px 100%;
  z-index: 2;
  opacity: 0.7;
}

.camera-preview::after {
  content: '● REC · CAM 01';
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 6px;
  font: 10px/1 monospace;
  color: #ff4d4f;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 77, 79, 0.4);
  border-radius: 2px;
  z-index: 3;
  animation: hud-blink 1.8s infinite ease-in-out;
}

@keyframes hud-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.cameras-panel > .text-link {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  height: 34px;
  padding: 0 4px;
  color: var(--cyan);
  font-size: 13px;
}

.text-link .icon {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   纯净楼栋全息标注 (Pure Building Hologram Markers - No Companies)
   -------------------------------------------------------------------------- */
.stage .map-marker {
  position: absolute !important;
  transform: translate(-50%, -100%) translateY(-14px) !important;
  height: 28px !important;
  padding: 2px 10px 2px 4px !important;
  gap: 7px !important;
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid rgba(0, 240, 255, 0.45) !important;
  border-radius: 14px !important;
  background: rgba(4, 18, 32, 0.9) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: #fff !important;
  font-family: inherit !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(0, 240, 255, 0.12) !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 4 !important;
  white-space: nowrap !important;
  pointer-events: auto !important;
}

.stage .map-marker .marker-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 10px !important;
  background: rgba(0, 240, 255, 0.18) !important;
  border: 1px solid rgba(0, 240, 255, 0.4) !important;
  color: #00f0ff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  font-family: monospace !important;
  flex: none !important;
}

.stage .map-marker .marker-title {
  display: inline-block !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #d8f1fc !important;
  letter-spacing: 0.3px !important;
  white-space: nowrap !important;
}

/* 垂直全息引线与底端针脚 */
.stage .map-marker::after {
  content: '' !important;
  position: absolute !important;
  left: 50% !important;
  bottom: -14px !important;
  transform: translateX(-50%) !important;
  width: 1px !important;
  height: 14px !important;
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.9) 0%, rgba(0, 240, 255, 0.2) 100%) !important;
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.8) !important;
}

.stage .map-marker:hover {
  border-color: #00f0ff !important;
  background: rgba(6, 28, 50, 0.96) !important;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.6), inset 0 0 12px rgba(0, 240, 255, 0.25) !important;
  transform: translate(-50%, -100%) translateY(-17px) scale(1.06) !important;
  z-index: 6 !important;
}

.stage .map-marker:hover .marker-title {
  color: #ffffff !important;
}

.stage .map-marker.selected {
  border-color: #00f0ff !important;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.35) 0%, rgba(4, 22, 38, 0.95) 100%) !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.7), inset 0 0 14px rgba(0, 240, 255, 0.3) !important;
  transform: translate(-50%, -100%) translateY(-17px) scale(1.06) !important;
  z-index: 7 !important;
}

.stage .map-marker.selected .marker-badge {
  background: #00f0ff !important;
  border-color: #ffffff !important;
  color: #031424 !important;
}

.stage .map-marker.selected .marker-title {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.stage .map-marker.primary {
  border-color: rgba(255, 120, 140, 0.65) !important;
}

.stage .map-marker.primary .marker-badge {
  background: rgba(255, 80, 100, 0.25) !important;
  border-color: rgba(255, 80, 100, 0.6) !important;
  color: #ff6b85 !important;
}

.stage .map-marker.primary.selected {
  border-color: #ff6b85 !important;
  background: linear-gradient(135deg, rgba(255, 80, 100, 0.38) 0%, rgba(20, 12, 28, 0.95) 100%) !important;
  box-shadow: 0 0 20px rgba(255, 80, 100, 0.65), inset 0 0 14px rgba(255, 80, 100, 0.25) !important;
}

.stage .map-marker.primary.selected .marker-badge {
  background: #ff5272 !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}

/* 楼栋空间内重点企业标签 (Enterprise Chips in Portal) */
.building-enterprises {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.enterprise-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.enterprise-chip:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.4);
}

.enterprise-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 6px #00f0ff;
  flex: none;
}

.enterprise-text {
  font-size: 12px;
  color: #c9e4f2;
  line-height: 1.3;
}

.compass {
  right: 40px;
  bottom: 120px;
  color: var(--cyan);
  font: 12px monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.85;
}

.compass .icon {
  width: 28px;
  height: 28px;
  color: var(--cyan);
  filter: drop-shadow(0 0 6px var(--cyan));
}

/* --------------------------------------------------------------------------
   底部交互控制台 (Spatial Command Dock)
   -------------------------------------------------------------------------- */
.interaction-dock {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 1500px;
  height: 64px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  background: rgba(6, 18, 32, 0.88);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 240, 255, 0.12);
}

/* 底部激光投影氛围光条 */
.interaction-dock::after {
  content: '';
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 50%, transparent 100%);
  box-shadow: 0 0 12px var(--cyan);
  border-radius: 1px;
}

.bottom-nav {
  position: static !important;
  width: auto !important;
  height: 48px !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: none !important;
}

.bottom-nav > button {
  flex: none;
  width: 122px;
  height: 46px;
  padding: 0 14px;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 23px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #9cbacf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav .icon {
  width: 19px;
  height: 19px;
  color: inherit;
}

.bottom-nav > button:hover {
  color: #fff;
  background: rgba(0, 240, 255, 0.08);
}

.bottom-nav > button.active {
  color: #fff;
  background: rgba(0, 240, 255, 0.18);
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: var(--hud-glow);
}

.bottom-nav > button.active::after {
  display: none !important;
}

.interaction-dock [hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   常驻极简全息导览胶囊 (Minimal Hologram Tour Capsule)
   -------------------------------------------------------------------------- */
.tour-capsule {
  display: flex !important;
  align-items: center;
  height: 42px;
  margin-left: 14px;
  padding: 3px 8px 3px 5px;
  gap: 8px;
  background: rgba(4, 18, 30, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 21px;
  box-shadow: inset 0 0 14px rgba(0, 240, 255, 0.08);
  transition: all 0.3s ease;
}

.tour-capsule:hover {
  border-color: rgba(0, 240, 255, 0.65);
  box-shadow: inset 0 0 18px rgba(0, 240, 255, 0.15), 0 0 16px rgba(0, 240, 255, 0.25);
}

.tour-play-btn {
  width: 32px;
  height: 32px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.12);
  color: #00f0ff;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tour-play-btn:hover {
  background: rgba(0, 240, 255, 0.3);
  border-color: #00f0ff;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.6);
  transform: scale(1.06);
}

.tour-play-btn[aria-pressed="true"],
.tour-play-btn.active {
  background: linear-gradient(135deg, #00f0ff 0%, #0088ff 100%);
  border-color: #ffffff;
  color: #030e1a;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.7);
}

.tour-play-btn .icon {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   全息视点弹出选择器 (Hologram Viewpoint Dropdown)
   -------------------------------------------------------------------------- */
.tour-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tour-trigger-btn {
  height: 32px;
  min-width: 168px;
  padding: 0 8px 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #8bd2ec;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tour-trigger-btn:hover,
.tour-dropdown.open .tour-trigger-btn {
  color: #00f0ff;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.tour-chevron {
  width: 12px;
  height: 12px;
  color: #00f0ff;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tour-dropdown.open .tour-chevron {
  transform: rotate(180deg);
}

/* 向上展开的全息悬浮面板 */
.stage .tour-menu-panel {
  position: absolute !important;
  bottom: calc(100% + 14px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 240px !important;
  padding: 8px !important;
  background: rgba(4, 18, 32, 0.95) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border: 1px solid rgba(0, 240, 255, 0.45) !important;
  border-radius: 10px !important;
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.8), inset 0 0 16px rgba(0, 240, 255, 0.12), 0 0 2px rgba(0, 240, 255, 0.6) !important;
  z-index: 99 !important;
  display: flex !important;
  flex-direction: column !important;
  white-space: normal !important;
  pointer-events: auto !important;
  animation: tourMenuPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.stage .tour-menu-panel[hidden] {
  display: none !important;
}

@keyframes tourMenuPop {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.stage .tour-menu-header {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 4px 6px 8px 6px !important;
  border-bottom: 1px solid rgba(0, 240, 255, 0.18) !important;
  margin-bottom: 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.stage .tour-menu-title {
  font-size: 11px !important;
  color: #7eb7cb !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
}

.stage .tour-menu-count {
  font-size: 10px !important;
  color: #00f0ff !important;
  background: rgba(0, 240, 255, 0.12) !important;
  border: 1px solid rgba(0, 240, 255, 0.25) !important;
  padding: 1px 6px !important;
  border-radius: 3px !important;
  font-family: monospace !important;
}

.stage .tour-menu-items {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.stage .tour-menu-item {
  width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 7px 10px !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #b0d8e8 !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-align: left !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.tour-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tour-item-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 20px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: #00f0ff;
  font-size: 11px;
  font-weight: 700;
  font-family: monospace;
  transition: all 0.2s ease;
}

.tour-item-name {
  color: inherit;
  letter-spacing: 0.2px;
}

.tour-item-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.2s ease;
  flex: none;
}

.tour-menu-item:hover {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.16) 0%, rgba(0, 240, 255, 0.05) 100%);
  border-color: rgba(0, 240, 255, 0.35);
  color: #ffffff;
  transform: translateX(2px);
}

.tour-menu-item:hover .tour-item-badge {
  background: rgba(0, 240, 255, 0.25);
  border-color: #00f0ff;
  color: #ffffff;
}

.tour-menu-item.active {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.28) 0%, rgba(0, 240, 255, 0.1) 100%);
  border-color: #00f0ff;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.tour-menu-item.active .tour-item-badge {
  background: #00f0ff;
  border-color: #ffffff;
  color: #031424;
}

.tour-menu-item.active .tour-item-dot {
  background: #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
}

/* 漫游悬浮提示与操作面板 (HUD Mini Controller) */
.interaction-dock [hidden],
.walk-controls[hidden] {
  display: none !important;
}

.walk-controls:not([hidden]) {
  position: absolute !important;
  left: 50% !important;
  bottom: 80px !important;
  transform: translateX(-50%) !important;
  width: max-content !important;
  max-width: 600px !important;
  height: 48px !important;
  padding: 6px 18px !important;
  background: rgba(6, 18, 32, 0.94) !important;
  border: 1px solid rgba(0, 240, 255, 0.45) !important;
  border-radius: 24px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(0, 240, 255, 0.25) !important;
  z-index: 10 !important;
}

.walk-controls:not([hidden]) p {
  margin: 0 !important;
  font-size: 13px !important;
  color: #7caab9 !important;
  white-space: nowrap !important;
}

.walk-controls:not([hidden]) .walk-pad {
  display: flex !important;
  gap: 4px !important;
}

.walk-controls:not([hidden]) .walk-pad button {
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  font-size: 14px !important;
  border-radius: 6px !important;
  background: rgba(10, 36, 56, 0.8) !important;
  border: 1px solid rgba(0, 240, 255, 0.3) !important;
  color: #00f0ff !important;
}

.walk-controls:not([hidden]) #walk-reset {
  height: 32px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  border-radius: 16px !important;
  background: rgba(0, 240, 255, 0.12) !important;
  border: 1px solid rgba(0, 240, 255, 0.35) !important;
  color: #d8eaf5 !important;
  white-space: nowrap !important;
}

.walk-controls:not([hidden]) #walk-exit {
  height: 32px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  border-radius: 16px !important;
  background: rgba(255, 75, 75, 0.16) !important;
  border: 1px solid rgba(255, 75, 75, 0.45) !important;
  color: #ff9898 !important;
  white-space: nowrap !important;
}

.walk-controls:not([hidden]) #walk-exit:hover {
  background: rgba(255, 75, 75, 0.3) !important;
  border-color: #ff4b4b !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(255, 75, 75, 0.4) !important;
}

.tour-actions button, .walk-pad button, #walk-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0a1b2c;
  color: #d8eaf5;
  font-size: 14px;
}

.tour-actions button:hover, .walk-pad button:hover, #walk-reset:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--cyan);
  color: #fff;
}

.walk-controls p {
  margin: 0;
  font-size: 13px;
  color: #9cbacf;
  font-family: monospace;
}

.walk-pad button {
  width: 40px;
  font-size: 18px;
}

/* --------------------------------------------------------------------------
   楼栋空间透析仓 (Building Spatial Matrix Panel)
   -------------------------------------------------------------------------- */
#space-portal, .space-portal {
  position: absolute !important;
  left: auto !important;
  right: 36px !important;
  top: 176px !important;
  bottom: auto !important;
  width: 280px !important;
  height: 654px !important;
  padding: 22px 18px !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 14px !important;
  box-sizing: border-box !important;
  border: 1px solid var(--line) !important;
  border-right: 2px solid var(--cyan) !important;
  border-radius: 4px !important;
  background: var(--panel-bg) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), inset 0 0 24px rgba(0, 240, 255, 0.04) !important;
  z-index: 10 !important;
  transform: perspective(1000px) rotateY(-1.8deg) !important;
  transform-style: preserve-3d !important;
}

#space-portal[hidden], .space-portal[hidden] {
  display: none !important;
}

/* 4 角科幻定位角标 */
#space-portal::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
  pointer-events: none;
}

#space-portal::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-bottom: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
  pointer-events: none;
}

.portal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.portal-title-block h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #fff;
  margin: 0;
}

.portal-badge {
  display: block;
  font: 9px/1 monospace;
  color: var(--cyan);
  letter-spacing: 2px;
  margin-bottom: 4px;
}

#space-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.06);
  color: #c1dced;
  cursor: pointer;
}

#space-close:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--cyan);
  color: #fff;
}

#space-close .icon {
  width: 16px;
  height: 16px;
}

/* 核心内容区域 */
.portal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.portal-body::-webkit-scrollbar {
  width: 3px;
}

.portal-body::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 2px;
}

.portal-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-subheading {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #8faec5;
}

.sub-dot {
  width: 5px;
  height: 5px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--cyan);
}

.portal-subheading small {
  margin-left: auto;
  font-family: monospace;
  color: var(--cyan);
  font-size: 11px;
}

/* 1. 楼栋选择矩阵 */
.building-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.building-chip {
  height: 34px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(8, 24, 42, 0.6);
  color: #a4c2d7;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
}

.building-chip:hover {
  border-color: var(--cyan-bright);
  color: #fff;
  background: rgba(0, 240, 255, 0.1);
}

.building-chip.active {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.22);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--hud-glow);
}

.chip-code {
  font-family: monospace;
  font-weight: 700;
  color: var(--cyan);
  font-size: 11px;
}

/* 2. 3D 楼层立体剖面层叠条 */
.floor-stacks {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 195px;
  overflow-y: auto;
}

.floor-stack-btn {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: 3px;
  background: rgba(6, 18, 32, 0.7);
  color: #b5cde0;
  font-size: 12px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.floor-badge {
  font-family: monospace;
  font-weight: 700;
  color: #fff;
  font-size: 13px;
  width: 34px;
}

.floor-desc {
  font-size: 11px;
  color: #799ab3;
  margin-left: 6px;
}

.floor-status-dot {
  margin-left: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.3);
}

.floor-stack-btn:hover {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
  color: #fff;
}

.floor-stack-btn.active {
  border-color: var(--cyan);
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.25) 0%, rgba(0, 136, 255, 0.15) 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.2);
}

.floor-stack-btn.active .floor-badge {
  color: var(--cyan-bright);
}

.floor-stack-btn.active .floor-desc {
  color: #c9e4f5;
}

.floor-stack-btn.active .floor-status-dot {
  background: var(--green-tech);
  box-shadow: 0 0 6px var(--green-tech);
}

/* 3. 空间类型 */
.space-types {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

.space-type-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(8, 22, 38, 0.5);
  color: #9cb5c7;
  font-size: 12px;
  cursor: pointer;
}

.space-type-btn .icon {
  width: 15px;
  height: 15px;
  color: var(--cyan);
}

.space-type-btn:hover {
  background: rgba(0, 240, 255, 0.08);
  color: #fff;
}

.space-type-btn.active {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.16);
  color: #fff;
  font-weight: 500;
}

/* 底部操作区 */
.portal-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.portal-action-sec, .portal-action-pri {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.portal-action-sec {
  border: 1px solid var(--line);
  background: rgba(14, 34, 54, 0.6);
  color: #d1e8f5;
}

.portal-action-sec:hover {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.12);
  color: #fff;
}

.portal-action-sec .icon {
  width: 16px;
  height: 16px;
  color: var(--cyan);
}

.portal-action-pri {
  border: 1px solid var(--cyan);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.3) 0%, rgba(0, 136, 255, 0.4) 100%);
  color: #fff;
  box-shadow: var(--hud-glow);
}

.portal-action-pri:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.45) 0%, rgba(0, 136, 255, 0.55) 100%);
  box-shadow: var(--hud-glow-active);
}

.portal-action-pri .icon {
  width: 16px;
  height: 16px;
}

/* 打开空间时隐藏右侧环境面板 */
.space-open #right-panel, .space-open .right-panel {
  display: none !important;
}

/* 全息弹窗 (Screen Dialog) */
.screen-dialog {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%) scale(var(--stage-scale));
  transform-origin: center;
  width: 1360px;
  height: 760px;
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(5, 14, 25, 0.94);
  backdrop-filter: blur(24px);
  box-shadow: 0 24px 100px rgba(0, 0, 0, 0.8), 0 0 32px rgba(0, 240, 255, 0.15);
  color: var(--white);
}

.screen-dialog::backdrop {
  background: rgba(2, 6, 12, 0.85);
  backdrop-filter: blur(8px);
}

.screen-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.screen-dialog h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
}

.screen-dialog .viewer-return {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(14, 34, 54, 0.6);
  color: #d8eaf5;
  font-size: 14px;
}

.screen-dialog .viewer-return:hover {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.14);
  color: #fff;
}

.camera-dialog {
  height: 660px;
}

.camera-wall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.camera-wall figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #06111e;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  position: relative;
}

.camera-wall figure.selected {
  border-color: var(--cyan);
  box-shadow: var(--hud-glow);
}

.camera-wall figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 18px;
  background: rgba(7, 18, 30, 0.95);
  border-top: 1px solid var(--line);
}

.camera-wall figcaption small {
  display: block;
  font: 11px monospace;
  color: var(--cyan);
  letter-spacing: 2px;
  margin-top: 4px;
}

.data-note {
  bottom: 24px;
  right: 36px;
  font-family: monospace;
  font-size: 11px;
  color: #6d8ea5;
}

.experience-layout .data-rail {
  display: none;
}

/* Keep the renderer in the same logical coordinates as camera framing and pins. */
.scene-region, .immersive .scene-region, .experience-layout .scene-region {
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  border: 0;
  z-index: 1;
  transition: none;
}
.scene-caption { display: none; }
.space-open .right-panel { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  button, select, .data-rail, .right-panel {
    transition: none;
    transform: none !important;
  }
}
