.apollo-v3-page {
  --mono: "Cascadia Code", Consolas, monospace;
  --display: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --muted: #98a3af;
  --faint: #73808d;
  min-width: 0;
  display: grid;
  gap: 10px;
  padding-top: 32px;
}
.is-system-jugueton { --system-color: #f3f5f7; }
.is-system-bebe-mundo { --system-color: #ff655c; }
.is-system-areas-comunes { --system-color: #6aa8ff; }
.is-system-coffee-cup { --system-color: #45d483; }

.apollo-v3-stage {
  position: relative;
  min-width: 0;
  min-height: 660px;
  height: 660px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #283440;
  border-radius: 12px;
  color: #eef3f7;
  background: radial-gradient(circle at 68% 18%, rgba(96,128,156,.18), transparent 31%), linear-gradient(155deg, #0c151d, #04080c);
  box-shadow: 0 34px 76px -52px rgba(0,0,0,.95), inset 0 1px rgba(255,255,255,.025);
  animation: apollo-enter 620ms cubic-bezier(.16,1,.3,1) both;
}
.apollo-v3-stage::before { position: absolute; inset: 0; z-index: -1; content: ''; background-image: linear-gradient(rgba(255,255,255,.016) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.016) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 72%); }
@keyframes apollo-enter { from { opacity: 0; clip-path: inset(0 0 100%); transform: translateY(8px); } to { opacity: 1; clip-path: inset(0); transform: none; } }

.apollo-v3-canvas, .apollo-v3-overlay, .apollo-topology-canvas, .apollo-topology-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.apollo-v3-canvas { z-index: 1; cursor: grab; touch-action: none; }
.apollo-v3-canvas.is-pickable { cursor: pointer; }
.apollo-v3-stage.is-dragging .apollo-v3-canvas, .apollo-topology-canvas.is-orbiting { cursor: grabbing; }
.apollo-v3-overlay { z-index: 2; pointer-events: none; }
.apollo-topology-canvas, .apollo-topology-overlay { z-index: 3; opacity: 0; pointer-events: none; transition: opacity 180ms ease; }
.apollo-topology-overlay { z-index: 4; }
.apollo-topology-canvas { cursor: grab; touch-action: none; }

.apollo-unifilar { position: absolute; inset: 58px 0 66px; z-index: 3; overflow: hidden; background: linear-gradient(180deg, rgba(8,14,20,.08), rgba(4,8,12,.82)); opacity: 0; pointer-events: none; transition: opacity 180ms ease; }
.apollo-unifilar-scroll { width: 100%; height: 100%; overflow: auto hidden; cursor: grab; touch-action: pan-y; scrollbar-width: thin; scrollbar-color: #344353 #091018; }
.apollo-unifilar-scroll.is-panning { cursor: grabbing; user-select: none; }
.apollo-unifilar-scroll:focus-visible { outline: 2px solid #f2c14d; outline-offset: -4px; }
.apollo-unifilar svg { display: block; width: 100%; min-width: 1080px; height: 100%; min-height: 540px; }
.apollo-unifilar text { fill: #aab6c0; font: 700 9px/1 var(--mono); letter-spacing: .02em; }
.apollo-unifilar path, .apollo-unifilar rect, .apollo-unifilar circle { vector-effect: non-scaling-stroke; }
.apollo-unifilar rect, .apollo-unifilar circle { fill: #0d151d; stroke: #5b6975; stroke-width: 1; }
.apollo-uni-power { fill: none; stroke: #687cff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.apollo-uni-mv { fill: none; stroke: #45d483; stroke-width: 2; stroke-linecap: round; }
.apollo-uni-data { fill: none; stroke: #ff7326; stroke-width: 1.7; stroke-dasharray: 7 5; stroke-linecap: round; stroke-linejoin: round; }
.apollo-uni-boundary { fill: none; stroke: #56636e; stroke-width: 1; stroke-dasharray: 7 5; }
.apollo-uni-system-mark { fill: none; stroke: var(--branch-color); stroke-width: 2; }
.apollo-uni-flow-arrow { fill: #91a0ff; stroke: none; }
.apollo-uni-board-title { fill: #eff4f7 !important; font-size: 10px !important; }
.apollo-uni-existing, .apollo-uni-cable, .apollo-uni-zone, .apollo-uni-bus-label { fill: #65737f !important; font-size: 7px !important; }
.apollo-uni-breaker { fill: #16212b !important; stroke: #8794a0 !important; }
.apollo-uni-inverter rect, .apollo-uni-field rect { fill: #101922; stroke: var(--branch-color); }
.apollo-uni-inverter path { fill: none; stroke: #aebbc5; stroke-width: 1; }
.apollo-uni-module-grid rect { fill: color-mix(in srgb, var(--branch-color) 18%, #0d151c); stroke: color-mix(in srgb, var(--branch-color) 70%, #34404a); }
.apollo-uni-utility > rect { fill: #101a22; stroke: #45d483; }
.apollo-uni-data-core rect { fill: #17140f; stroke: #ff7326; }
.apollo-uni-data-core text { fill: #ffc18d; }
.apollo-uni-data-core .apollo-uni-port { fill: #ffb172; stroke: #ff7326; }
.apollo-unifilar-branch { transition: opacity 180ms ease; }
.apollo-unifilar:not([data-filter="all"]) .apollo-unifilar-branch { opacity: .12; }
.apollo-unifilar[data-filter="jugueton"] [data-system="jugueton"], .apollo-unifilar[data-filter="bebe-mundo"] [data-system="bebe-mundo"], .apollo-unifilar[data-filter="areas-comunes"] [data-system="areas-comunes"], .apollo-unifilar[data-filter="coffee-cup"] [data-system="coffee-cup"] { opacity: 1; }
.apollo-unifilar-mobile-hint { display: none; }

.apollo-v3-stage[data-projection="diagram"] .apollo-v3-canvas, .apollo-v3-stage[data-projection="diagram"] .apollo-v3-overlay, .apollo-v3-stage[data-projection="diagram3d"] .apollo-v3-canvas, .apollo-v3-stage[data-projection="diagram3d"] .apollo-v3-overlay { opacity: 0; pointer-events: none; }
.apollo-v3-stage[data-projection="diagram"] .apollo-unifilar { opacity: 1; pointer-events: auto; }
.apollo-v3-stage[data-projection="diagram3d"] .apollo-topology-canvas, .apollo-v3-stage[data-projection="diagram3d"] .apollo-topology-overlay { opacity: 1; }
.apollo-v3-stage[data-projection="diagram3d"] .apollo-topology-canvas { pointer-events: auto; }
.apollo-v3-stage[data-projection="diagram"] .apollo-v3-branch-wrap, .apollo-v3-stage[data-projection="diagram"] .apollo-v3-hint, .apollo-v3-stage[data-projection="diagram"] .apollo-v3-north, .apollo-v3-stage[data-projection="diagram"] .apollo-v3-inspector, .apollo-v3-stage[data-projection="diagram3d"] .apollo-v3-branch-wrap, .apollo-v3-stage[data-projection="diagram3d"] .apollo-v3-hint, .apollo-v3-stage[data-projection="diagram3d"] .apollo-v3-north, .apollo-v3-stage[data-projection="diagram3d"] .apollo-v3-inspector { display: none; }
.apollo-v3-stage[data-projection="diagram"] [data-apollo-reset] { display: none; }
.apollo-v3-stage[data-layer="plant"] .apollo-view-diagram, .apollo-v3-stage[data-layer="plant"] .apollo-view-diagram3d { display: none; }
.apollo-v3-stage.is-webgl-fallback [data-apollo-view="3d"], .apollo-v3-stage.is-webgl-fallback [data-apollo-view="plan"], .apollo-v3-stage.is-webgl-fallback [data-apollo-view="diagram3d"], .apollo-v3-stage.is-webgl-fallback [data-apollo-reset] { display: none; }
.apollo-v3-stage.is-webgl-fallback .apollo-view-diagram { display: grid; }
.apollo-v3-stage[data-flow="energy"] .apollo-uni-data, .apollo-v3-stage[data-flow="energy"] .apollo-uni-data-core, .apollo-v3-stage[data-flow="data"] .apollo-uni-power, .apollo-v3-stage[data-flow="data"] .apollo-uni-mv, .apollo-v3-stage[data-flow="data"] .apollo-uni-utility { opacity: .08; }

.apollo-v3-hud { position: absolute; inset: 10px 10px auto; z-index: 6; display: flex; min-height: 32px; align-items: start; justify-content: space-between; gap: 12px; pointer-events: none; }
.apollo-v3-layers, .apollo-v3-camera, .apollo-v3-flow { display: inline-flex; padding: 1px; border: 1px solid rgba(152,170,187,.25); border-radius: 7px; background: rgba(7,12,18,.88); box-shadow: 0 14px 34px -22px #000; pointer-events: auto; }
.apollo-v3-layers button, .apollo-v3-camera button, .apollo-v3-flow button { display: grid; min-height: 28px; place-items: center; padding: 0 8px; border: 0; border-radius: 5px; color: #aeb8c0; background: transparent; font: 700 8.5px/1 var(--mono); cursor: pointer; }
.apollo-v3-layers button:hover, .apollo-v3-camera button:hover, .apollo-v3-flow button:hover { color: #fff; background: rgba(255,255,255,.07); }
.apollo-v3-layers button:focus-visible, .apollo-v3-camera button:focus-visible, .apollo-v3-flow button:focus-visible, .apollo-v3-system:focus-visible { outline: 2px solid #f2c14d; outline-offset: -2px; }
.apollo-v3-layers button.is-active { color: #10151a; background: #f2c14d; }
.apollo-v3-camera button.is-active, .apollo-v3-flow button.is-active { color: #fff; background: #334250; }
.apollo-v3-camera button + button { border-left: 1px solid rgba(255,255,255,.06); }
.apollo-v3-camera svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.apollo-v3-summary { position: absolute; top: 0; left: 50%; display: grid; grid-template-columns: repeat(4, auto); margin: 0; border: 1px solid rgba(152,170,187,.16); border-radius: 8px; background: rgba(7,12,18,.76); transform: translateX(-50%); pointer-events: auto; }
.apollo-v3-summary > div { min-width: 72px; padding: 7px 10px 6px; border-left: 1px solid rgba(255,255,255,.07); }
.apollo-v3-summary > div:first-child { border-left: 0; }
.apollo-v3-summary dt { color: #8d9aa5; font: 700 8px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.apollo-v3-summary dd { margin: 4px 0 0; font: 700 14px/1 var(--display); font-variant-numeric: tabular-nums; }
.apollo-v3-summary dd small { color: #aab3bb; font: 700 9px/1 var(--mono); }
.apollo-v3-status { position: absolute; top: 70px; left: 18px; z-index: 5; display: flex; align-items: center; gap: 8px; color: #bdc6ce; font: 700 9px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.apollo-v3-status > i { width: 7px; height: 7px; border-radius: 50%; background: #f2c14d; box-shadow: 0 3px 12px rgba(242,193,77,.52); }
.apollo-v3-status > b { padding-left: 8px; border-left: 1px solid #43515d; color: #8996a1; }
.apollo-v3-flow { position: absolute; top: 96px; left: 14px; z-index: 6; opacity: 0; pointer-events: none; transform: translateY(-5px); transition: opacity 180ms ease, transform 180ms ease; }
.apollo-v3-stage[data-layer="network"] .apollo-v3-flow { opacity: 1; pointer-events: auto; transform: none; }
.apollo-v3-stage[data-layer="network"][data-projection="diagram"] .apollo-v3-flow, .apollo-v3-stage[data-layer="network"][data-projection="diagram3d"] .apollo-v3-flow { top: 14px; left: 174px; }
.apollo-v3-flow button { min-height: 30px; padding-inline: 10px; font-size: 8px; }
.apollo-v3-north { position: absolute; right: 20px; top: 86px; z-index: 5; display: grid; justify-items: center; gap: 5px; color: #aab4bd; font: 800 9px/1 var(--mono); pointer-events: none; }
.apollo-v3-north i { display: block; width: 1px; height: 35px; background: linear-gradient(#f2c14d, transparent); }
.apollo-v3-hint { position: absolute; right: 18px; bottom: 84px; z-index: 5; color: #8d99a3; font: 700 8px/1 var(--mono); pointer-events: none; }

.apollo-v3-systems { position: absolute; inset: auto 0 0; z-index: 7; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); min-height: 66px; border-top: 1px solid rgba(157,176,191,.18); background: rgba(6,11,16,.94); }
.apollo-v3-system { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 9px; padding: 10px 13px; border: 0; border-left: 1px solid rgba(255,255,255,.06); color: #a2aeb8; background: transparent; text-align: left; cursor: pointer; }
.apollo-v3-system:first-child { border-left: 0; }
.apollo-v3-system:hover { color: #fff; background: rgba(255,255,255,.05); }
.apollo-v3-system.is-active { color: #fff; background: rgba(255,255,255,.08); box-shadow: inset 0 2px var(--system-color, #f2c14d); }
.apollo-v3-system > i { width: 7px; height: 20px; border-radius: 4px; background: var(--system-color, #71808c); }
.apollo-v3-system > i.is-all { height: 9px; border: 2px solid #f2c14d; border-radius: 50%; background: transparent; }
.apollo-v3-system > span { display: grid; gap: 4px; min-width: 0; }
.apollo-v3-system strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.apollo-v3-system small { color: #8b98a3; font: 700 8px/1 var(--mono); }

.apollo-v3-branch-wrap { position: absolute; left: 14px; bottom: 80px; z-index: 7; width: min(730px, calc(100% - 310px)); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity 200ms ease, transform 200ms ease; }
.apollo-v3-stage[data-layer="network"] .apollo-v3-branch-wrap { opacity: 1; pointer-events: auto; transform: none; }
.apollo-v3-legend, .apollo-v3-branch { border: 1px solid rgba(155,174,190,.22); border-radius: 10px; background: rgba(7,12,18,.94); box-shadow: 0 20px 50px -28px #000; }
.apollo-v3-legend { display: inline-flex; align-items: center; gap: 18px; padding: 10px 12px; color: #b9c2ca; font: 700 8px/1 var(--mono); }
.apollo-v3-legend span { display: inline-flex; align-items: center; gap: 6px; }
.apollo-v3-legend i { width: 22px; height: 2px; }
.apollo-v3-legend i.is-energy { background: #6078ff; }
.apollo-v3-legend i.is-data { border-top: 2px dashed #ff6a22; }
.apollo-v3-legend small { color: #8e9aa4; }
.apollo-v3-branch { overflow: hidden; border-top: 2px solid var(--system-color); }
.apollo-v3-branch > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 13px; border-bottom: 1px solid rgba(255,255,255,.07); }
.apollo-v3-branch > header span { display: flex; align-items: center; gap: 8px; }
.apollo-v3-branch > header i { width: 7px; height: 7px; border-radius: 50%; background: var(--system-color); }
.apollo-v3-branch > header b { color: #9ba7b0; font: 700 8px/1 var(--mono); }
.apollo-v3-chain { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; padding: 10px 13px; }
.apollo-v3-chain span { display: grid; gap: 4px; }
.apollo-v3-chain small, .apollo-v3-branch dt { color: #909da7; font-size: 8px; }
.apollo-v3-chain strong, .apollo-v3-branch dd { font: 700 9px/1.25 var(--mono); }
.apollo-v3-chain > i { padding: 0 8px; color: #8291ff; font-style: normal; }
.apollo-v3-branch dl { display: grid; grid-template-columns: repeat(4,1fr); margin: 0; border-top: 1px solid rgba(255,255,255,.06); }
.apollo-v3-branch dl > div { display: grid; gap: 4px; padding: 8px 12px; border-left: 1px solid rgba(255,255,255,.06); }
.apollo-v3-branch dd { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.apollo-v3-inspector { position: absolute; top: 82px; right: 14px; z-index: 8; width: min(300px, calc(100% - 28px)); padding: 14px; border: 1px solid rgba(155,174,190,.25); border-radius: 10px; background: rgba(8,14,20,.96); box-shadow: 0 24px 58px -30px #000; opacity: 0; pointer-events: none; transform: translateX(12px); transition: opacity 180ms ease, transform 180ms ease; }
.apollo-v3-inspector.is-open { opacity: 1; pointer-events: auto; transform: none; }
.apollo-v3-inspector header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.apollo-v3-inspector header > span { display: grid; gap: 4px; }
.apollo-v3-inspector header small { color: #f2a14f; font: 700 8px/1 var(--mono); text-transform: uppercase; }
.apollo-v3-inspector header strong { font: 700 22px/1 var(--display); }
.apollo-v3-inspector header button { display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 1px solid #4c5964; border-radius: 50%; color: #fff; background: transparent; cursor: pointer; }
.apollo-v3-inspector header svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.apollo-v3-inspector dl { display: grid; margin: 13px 0 0; }
.apollo-v3-inspector dl > div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.07); }
.apollo-v3-inspector dt { color: #98a4ae; font-size: 9px; }
.apollo-v3-inspector dd { margin: 0; font: 700 9px/1.3 var(--mono); text-align: right; }
/* Owner-declared figures (transformer kVA) carry an explicit evidence chip:
   information blue, "reportado", never the approved green. */
.apollo-evidence { display: inline-block; margin-left: 5px; padding: 1px 5px; border: 1px solid #73b6ff; border-radius: 999px; color: #73b6ff; font: 700 7.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.apollo-v3-inspector dd.is-good { color: #45d483; }
.apollo-v3-inspector dd.is-warning { color: #f2c14d; }
.apollo-v3-inspector p { margin: 9px 0 0; color: #a3aeb7; font-size: 10px; line-height: 1.5; }
.apollo-v3-evidence { display: flex; align-items: start; justify-content: space-between; gap: 24px; padding: 4px 2px 7px; }
.apollo-v3-evidence p { max-width: 82ch; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.apollo-v3-evidence p strong { color: var(--text); }
.apollo-v3-evidence > span { flex: none; color: var(--faint); font: 700 8px/1.4 var(--mono); text-align: right; text-transform: uppercase; }
.apollo-v3-stage:fullscreen { width: 100vw; height: 100vh; max-height: none; border: 0; border-radius: 0; }

@media (max-width: 1180px) {
  .apollo-v3-summary > div:nth-child(3), .apollo-v3-summary > div:nth-child(4) { display: none; }
  .apollo-v3-summary { grid-template-columns: repeat(2,auto); }
  .apollo-v3-branch-wrap { width: calc(100% - 28px); }
}
@media (max-width: 820px) {
  .apollo-v3-page { padding-top: 0; }
  .apollo-v3-stage { min-height: 700px; height: calc(100svh - 104px); }
  .apollo-v3-summary { top: 48px; }
  .apollo-v3-status { top: 120px; }
  .apollo-v3-flow { top: 146px; }
  .apollo-v3-hint { display: none; }
  .apollo-v3-systems { display: flex; overflow-x: auto; }
  .apollo-v3-system { min-width: 145px; }
  .apollo-v3-chain { display: none; }
  .apollo-v3-branch dl { grid-template-columns: 1fr 1fr; }
  .apollo-v3-inspector { top: 184px; }
  .apollo-v3-stage[data-projection="diagram"] .apollo-unifilar { inset: 190px 0 66px; }
  .apollo-v3-stage[data-layer="network"][data-projection="diagram"] .apollo-v3-flow, .apollo-v3-stage[data-layer="network"][data-projection="diagram3d"] .apollo-v3-flow { top: 146px; left: 14px; }
  .apollo-unifilar svg { min-width: 1040px; min-height: 480px; }
  .apollo-unifilar-mobile-hint { position: absolute; right: 12px; bottom: 7px; display: block; color: #a0abb4; font: 700 8px/1 var(--mono); pointer-events: none; }
}
@media (max-width: 560px) {
  .apollo-v3-stage { min-height: 680px; border-radius: 10px; }
  .apollo-v3-hud { inset: 10px 10px auto; gap: 8px; }
  .apollo-v3-layers button, .apollo-v3-camera button { min-height: 32px; padding-inline: 8px; font-size: 8px; }
  .apollo-v3-camera button[data-apollo-view="plan"], .apollo-v3-camera button[data-apollo-reset] { display: none; }
  .apollo-v3-summary { top: 45px; }
  .apollo-v3-summary > div { min-width: 68px; padding-inline: 9px; }
  .apollo-v3-status { top: 122px; left: 12px; max-width: calc(100% - 24px); }
  .apollo-v3-status > b { display: none; }
  .apollo-v3-flow { top: 148px; left: 10px; }
  .apollo-v3-north { display: none; }
  .apollo-v3-branch-wrap { left: 10px; width: calc(100% - 20px); }
  .apollo-v3-branch > header b { display: none; }
  .apollo-v3-branch dl { grid-template-columns: 1fr; }
  .apollo-v3-branch dl > div { border-left: 0; border-top: 1px solid rgba(255,255,255,.05); }
  .apollo-v3-branch dl > div:nth-child(n+3) { display: none; }
  .apollo-v3-legend { display: grid; gap: 8px; }
  .apollo-v3-legend small { display: none; }
  .apollo-v3-inspector { top: 188px; right: 10px; width: calc(100% - 20px); }
  .apollo-v3-evidence { flex-direction: column; gap: 7px; }
  .apollo-v3-evidence > span { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .apollo-v3-stage { animation: none; }
  .apollo-v3-flow, .apollo-v3-branch-wrap, .apollo-v3-inspector, .apollo-topology-canvas, .apollo-topology-overlay { transition: none; }
}

/* Canonical Apolo finish: the same compact camera grammar and folded field
   controls used by Cangrejera, applied to Jugueton's own engineering model. */
.apollo-v3-stage::after {
  position: absolute;
  inset: 0;
  z-index: 5;
  content: "";
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.017) 0, rgba(255,255,255,.017) 1px, transparent 1px, transparent 4px);
  mix-blend-mode: screen;
  opacity: .34;
  pointer-events: none;
}
.apollo-v3-hud { z-index: 9; }
.apollo-v3-orbit-controls {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  max-width: calc(100% - 20px);
  pointer-events: auto;
}
.apollo-v3-cam-group {
  display: inline-grid;
  grid-auto-flow: column;
  overflow: hidden;
  border: 1px solid rgba(152,170,187,.25);
  border-radius: 8px;
  background: rgba(7,12,18,.9);
  box-shadow: 0 8px 22px -14px rgba(0,0,0,.8);
}
.apollo-v3-cam-group > button {
  display: grid;
  min-width: 30px;
  height: 28px;
  place-items: center;
  padding: 0 7px;
  border: 0;
  border-left: 1px solid rgba(152,170,187,.25);
  border-radius: 0;
  color: #aeb8c0;
  background: transparent;
  font: 800 8.5px/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color .12s ease, background .12s ease;
}
.apollo-v3-cam-group > button:first-child { border-left: 0; }
.apollo-v3-cam-group > button:hover { color: #f5f7f9; background: rgba(255,255,255,.06); }
.apollo-v3-cam-group > button:focus-visible { outline: 2px solid #f2c14d; outline-offset: -2px; }
.apollo-v3-cam-group > button:active { transform: translateY(.5px); }
.apollo-v3-cam-group > button.is-active { color: #0d1117; background: #f2c14d; }
.apollo-v3-cam-group > button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.apollo-v3-view-readout {
  position: absolute;
  left: 14px;
  bottom: 83px;
  z-index: 8;
  color: #73808d;
  font: 700 8px/1 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  pointer-events: none;
}
.apollo-v3-stage-controls {
  position: absolute;
  right: 12px;
  bottom: 76px;
  z-index: 10;
  display: flex;
  gap: 6px;
  align-items: flex-end;
}
.apollo-v3-control-pop { position: relative; }
.apollo-v3-control-pop > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(152,170,187,.25);
  border-radius: 8px;
  color: #eef3f7;
  background: rgba(7,12,18,.9);
  font: 800 8px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  box-shadow: 0 8px 22px -14px rgba(0,0,0,.8);
}
.apollo-v3-control-pop > summary::-webkit-details-marker { display: none; }
.apollo-v3-control-pop > summary i { color: #f2c14d; font-style: normal; }
.apollo-v3-control-pop[open] > summary { border-color: rgba(242,193,77,.55); }
.apollo-v3-control-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  display: grid;
  width: max-content;
  max-width: min(330px, calc(100vw - 40px));
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid rgba(152,170,187,.25);
  border-radius: 9px;
  color: #eef3f7;
  background: rgba(7,12,18,.97);
  box-shadow: 0 16px 34px -18px rgba(0,0,0,.9);
}
.apollo-v3-control-panel > small { color: #73808d; font: 800 6.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.apollo-v3-toggles { display: flex; flex-wrap: wrap; gap: 5px; }
.apollo-v3-toggles button {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(152,170,187,.25);
  border-radius: 6px;
  color: #aeb8c0;
  background: transparent;
  font: 800 8px/1 var(--mono);
  cursor: pointer;
}
.apollo-v3-toggles button:hover { color: #fff; border-color: #f2c14d; }
.apollo-v3-toggles button.is-active { color: #0d1117; border-color: #f2c14d; background: #f2c14d; }
.apollo-v3-legend-menu span { display: grid; grid-template-columns: 8px minmax(90px, 1fr) auto; align-items: center; gap: 7px; }
.apollo-v3-legend-menu span > i { width: 7px; height: 16px; border-radius: 3px; background: var(--system-color, #f2c14d); }
.apollo-v3-legend-menu span > b { font: 750 8.5px/1 var(--display); }
.apollo-v3-legend-menu span > small { color: #8996a1; font: 700 7.5px/1 var(--mono); }
.apollo-v3-legend-menu .is-evidence > i { height: 7px; border-radius: 50%; background: #f2c14d; }
.apollo-v3-audit-count { min-width: 14px; padding: 2px 5px; border-radius: 999px; color: #0d1117; background: #f2c14d; font: 800 8px/1 var(--mono); text-align: center; }
.apollo-v3-audit-count.is-zero { color: #aeb8c0; background: rgba(255,255,255,.12); }
.apollo-v3-audit .apollo-v3-control-panel { width: 280px; }
.apollo-v3-audit p { margin: 0; color: #aeb8c0; font: 650 8.5px/1.35 var(--mono); }
.apollo-v3-audit p strong { color: #eef3f7; }
.apollo-v3-audit .apollo-v3-control-panel > small { line-height: 1.45; letter-spacing: .04em; text-transform: none; }
.apollo-v3-hint { bottom: 115px; }

@media (max-width: 820px) {
  .apollo-v3-orbit-controls { max-width: calc(100% - 8px); }
  .apollo-v3-cam-group:nth-child(2) { display: none; }
  .apollo-v3-summary { top: 43px; }
  .apollo-v3-status { top: 112px; }
  .apollo-v3-stage-controls { right: 8px; bottom: 74px; }
  .apollo-v3-view-readout { left: 10px; bottom: 78px; }
}
@media (max-width: 560px) {
  .apollo-v3-cam-group > button { min-width: 32px; height: 32px; padding: 0 7px; }
  .apollo-v3-cam-group.is-views > button[data-apollo-view="plan"] { display: none; }
  .apollo-v3-summary { top: 48px; }
  .apollo-v3-status { top: 125px; }
  .apollo-v3-view-readout { display: none; }
  .apollo-v3-stage-controls { right: 7px; bottom: 73px; gap: 4px; }
  .apollo-v3-control-pop > summary { min-height: 26px; padding-inline: 7px; font-size: 7px; }
  .apollo-v3-control-pop:nth-child(2) { display: none; }
  .apollo-v3-audit .apollo-v3-control-panel { width: min(280px, calc(100vw - 26px)); }
}

/* Physical projection: a real site image is the stage, while the same
   evidence HUD keeps the operator in the twin rather than in a separate page. */
.apollo-photo-view {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0a1015;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.apollo-photo-view > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(.86) contrast(1.05) brightness(.76);
}
.apollo-photo-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,10,15,.82) 0%, rgba(4,10,15,.06) 26%, rgba(4,10,15,.08) 54%, rgba(4,10,15,.88) 100%), linear-gradient(90deg, rgba(4,10,15,.62), transparent 44%, rgba(4,10,15,.18));
}
.apollo-photo-head {
  position: absolute;
  top: 104px;
  left: 18px;
  width: min(390px, calc(100% - 36px));
  padding: 15px 17px 16px;
  border: 1px solid rgba(226,237,244,.26);
  border-radius: 12px;
  background: rgba(5,12,18,.76);
  box-shadow: 0 24px 54px -30px #000;
}
.apollo-photo-kicker {
  color: #f2c14d;
  font: 800 8px/1 var(--mono);
  letter-spacing: .15em;
}
.apollo-photo-head h2 { margin: 8px 0 5px; color: #f4f7f9; font: 700 22px/1.05 var(--display); letter-spacing: -.025em; }
.apollo-photo-head p { max-width: 42ch; margin: 0; color: #c0cbd3; font-size: 11px; line-height: 1.45; }
.apollo-photo-evidence {
  position: absolute;
  right: 18px;
  bottom: 122px;
  display: grid;
  width: min(238px, calc(100% - 36px));
  gap: 7px;
  padding: 13px 14px;
  border: 1px solid rgba(226,237,244,.23);
  border-radius: 11px;
  background: rgba(5,12,18,.82);
  box-shadow: 0 24px 54px -30px #000;
}
.apollo-photo-evidence span { display: flex; align-items: center; gap: 7px; color: #d4dde3; font: 800 8px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.apollo-photo-evidence span i { width: 7px; height: 7px; border-radius: 50%; background: #f2c14d; box-shadow: 0 0 0 4px rgba(242,193,77,.13); }
.apollo-photo-evidence strong { color: #f5f7f9; font: 700 16px/1.1 var(--display); }
.apollo-photo-evidence small, .apollo-photo-evidence em { color: #aebac3; font: 700 9px/1.35 var(--mono); }
.apollo-photo-evidence em { color: #f2c14d; font-style: normal; }
.apollo-photo-legend { position: absolute; left: 18px; bottom: 122px; display: flex; flex-wrap: wrap; gap: 10px 16px; color: #d6e0e6; font: 700 8px/1 var(--mono); }
.apollo-photo-legend span { display: inline-flex; align-items: center; gap: 6px; }
.apollo-photo-legend i { width: 18px; height: 2px; background: #4ea4ff; }
.apollo-photo-legend .is-ac i { background: #ff863f; }
.apollo-photo-legend .is-data i { border-top: 2px dashed #f2c14d; background: transparent; }
.apollo-v3-stage[data-projection="photo"] .apollo-photo-view { opacity: 1; pointer-events: auto; }
.apollo-v3-stage[data-projection="photo"] .apollo-v3-canvas,
.apollo-v3-stage[data-projection="photo"] .apollo-v3-overlay,
.apollo-v3-stage[data-projection="photo"] .apollo-topology-canvas,
.apollo-v3-stage[data-projection="photo"] .apollo-topology-overlay { opacity: 0; pointer-events: none; }
.apollo-v3-stage[data-projection="photo"] .apollo-v3-cam-group:not(.is-views),
.apollo-v3-stage[data-projection="photo"] [data-apollo-reset],
.apollo-v3-stage[data-projection="photo"] .apollo-v3-hint,
.apollo-v3-stage[data-projection="photo"] .apollo-v3-north,
.apollo-v3-stage[data-projection="photo"] .apollo-v3-view-readout,
.apollo-v3-stage[data-projection="photo"] .apollo-v3-branch-wrap,
.apollo-v3-stage[data-projection="photo"] .apollo-v3-inspector { display: none; }

@media (max-width: 820px) {
  .apollo-photo-head { top: 146px; }
  .apollo-photo-evidence { right: 12px; bottom: 110px; }
  .apollo-photo-legend { left: 12px; bottom: 110px; max-width: calc(100% - 270px); }
}
@media (max-width: 560px) {
  .apollo-v3-cam-group.is-views > button { padding-inline: 8px; }
  .apollo-photo-head { top: 162px; left: 10px; width: calc(100% - 20px); padding: 12px 13px; }
  .apollo-photo-head h2 { font-size: 18px; }
  .apollo-photo-head p { font-size: 10px; }
  .apollo-photo-evidence { right: 10px; bottom: 112px; width: calc(100% - 20px); }
  .apollo-photo-legend { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .apollo-photo-view { transition: none; }
}
