/* ============================================================
   Snapshots Navicomputer v56 — Cockpit (v53-style home, hi-fi gallery)
   ============================================================ */
:root {
  --sw-orange:      #FF8A00;
  --sw-orange-dim:  #CC4400;
  --sw-cyan:        #00e5ff;
  --sw-cyan-glow:   rgba(0, 229, 255, 0.6);
  --sw-yellow:      #FFC700;
  --sw-red:         #FF3030;
  --sw-bg:          #0D0D0D;
  --sw-panel-bg:    #080808;

  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
  --font-stencil: 'Audiowide', 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-mono);
  background: #050505;
  color: var(--sw-orange);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }

/* ============================================================
   TOP DECK
   ============================================================ */
#deck {
  display: none; /* DEV ONLY */
}
.deck-l { display: flex; align-items: center; gap: 16px; min-width: 0; }
.deck-r { display: flex; gap: 14px; align-items: center; }
.deck-build { color: #555; letter-spacing: 0.12em; font-size: 10px; }
.deck-status {
  color: var(--sw-cyan); font-size: 10px; letter-spacing: 0.12em;
  display: flex; align-items: center; gap: 8px;
}
.deck-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sw-cyan); box-shadow: 0 0 6px var(--sw-cyan); }
.deck-back-btn {
  background: transparent; border: 1px solid var(--sw-cyan); color: var(--sw-cyan);
  padding: 4px 10px; font-size: 10px; letter-spacing: 0.14em;
  border-radius: 3px; font-family: inherit; transition: 0.18s;
}
.deck-back-btn:hover { background: var(--sw-cyan); color: #000; box-shadow: 0 0 8px var(--sw-cyan-glow); }

.seg-btn {
  background: transparent; color: #777; border: 1px solid #2a2a2a;
  padding: 5px 11px; font-size: 10px; letter-spacing: 0.1em; border-radius: 3px;
  transition: 0.18s; text-transform: uppercase;
}
.seg-btn:hover { color: var(--sw-cyan); border-color: var(--sw-cyan); }
.seg-btn.active { background: var(--sw-cyan); color: #000; border-color: var(--sw-cyan); font-weight: 700; }
.seg-group { display: flex; gap: 0; }
.seg-group .seg-btn { border-radius: 0; }
.seg-group .seg-btn:first-child { border-radius: 3px 0 0 3px; }
.seg-group .seg-btn:last-child  { border-radius: 0 3px 3px 0; }
.seg-group .seg-btn + .seg-btn  { border-left: none; }

.dev-preview-label {
  color: rgba(255,138,0,0.55); font-size: 8px; letter-spacing: 0.22em;
  padding: 2px 6px; border: 1px dashed rgba(255,138,0,0.4); border-radius: 2px;
}

/* ============================================================
   STAGE + SHELL
   ============================================================ */
#stage {
  position: fixed; inset: 0 0 0 0;
  display: flex; align-items: center; justify-content: center;
  background: #050505;
  padding: 18px;
  overflow: hidden;
}
#stage.theme-light {
  background: #ffffff;
}
.shell-scaler {
  transform: scale(var(--scale, 1));
  transform-origin: center center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cockpit-shell {
  background: var(--sw-bg);
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #1a1a1a;
}
.cockpit-shell[data-theme="light"] {
  border-color: #d0d4d8;
}

/* ---- GALLERY (mode-gallery) layouts ---- */
.cockpit-shell.dev-desktop.mode-gallery {
  width: 100%; height: 100%;
  grid-template-columns: 1fr;
  grid-template-rows: 130px 1fr 150px;
}
.cockpit-shell.dev-laptop.mode-gallery {
  width: 100%; height: 100%;
  grid-template-columns: 1fr;
  grid-template-rows: 90px 1fr 100px;
}
.cockpit-shell.dev-tablet.mode-gallery {
  width: 820px; height: 1040px;
  grid-template-columns: 220px 1fr;
  grid-template-rows: auto 1fr 200px 130px;
}
.cockpit-shell.dev-mobile.mode-gallery {
  width: 390px; height: 820px;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto auto;
  padding: 0; gap: 0;
  border-radius: 28px; overflow: hidden;
  border: 8px solid #161616; background: #000;
}

/* ---- HOME (mode-home) layouts — 3-row: top bar / main / bottom bar ---- */
.cockpit-shell.dev-desktop.mode-home {
  width: 100%; height: 100%;
  grid-template-columns: 180px 1fr 180px;
  grid-template-rows: 130px 1fr 150px;
}
.cockpit-shell.dev-laptop.mode-home {
  width: 100%; height: 100%;
  grid-template-columns: 160px 1fr 160px;
  grid-template-rows: 90px 1fr 100px;
}
.cockpit-shell.dev-tablet.mode-home {
  width: 820px; height: 1040px;
  grid-template-columns: 180px 1fr 180px;
  grid-template-rows: 64px 1fr 110px;
}
.cockpit-shell.dev-mobile.mode-home {
  width: 390px; height: 820px;
  grid-template-columns: 1fr;
  grid-template-rows: 50px 1fr auto 50px;
  padding: 0; gap: 0;
  border-radius: 28px; overflow: hidden;
  border: 8px solid #161616; background: #000;
}

/* ============================================================
   PANELS — base
   ============================================================ */
.panel {
  border: 2px solid var(--sw-orange);
  border-radius: 10px;
  background: var(--sw-panel-bg);
  position: relative;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.panel.cy { border-color: var(--sw-cyan); }

.label {
  color: var(--sw-orange);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  border-bottom: 1px solid rgba(255,138,0,0.25);
  padding-bottom: 5px;
  margin-bottom: 9px;
  text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
}
.label .meta { color: rgba(255,138,0,0.55); font-size: 8px; letter-spacing: 0.12em; }
.label.cy { color: var(--sw-cyan); border-bottom-color: rgba(0,229,255,0.3); }
.label.cy .meta { color: rgba(0,229,255,0.55); }

/* shared little space button */
.space-btn {
  background: transparent; border: 1px solid var(--sw-cyan); color: var(--sw-cyan);
  padding: 6px 10px; font-family: inherit; font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 3px; transition: 0.18s; width: 100%;
}
.space-btn:hover { background: var(--sw-cyan); color: #000; box-shadow: 0 0 8px var(--sw-cyan-glow); }

/* ============================================================
   HOME — grid placements (v53-style)
   ============================================================ */
.mode-home .panel-logo       { grid-column: 1 / -1; grid-row: 1; }
.mode-home .panel-dest-left  { grid-column: 1; grid-row: 2; }
.mode-home .panel-globe      { grid-column: 2; grid-row: 2; }
.mode-home .panel-dest-right { grid-column: 3; grid-row: 2; }
.mode-home .panel-infoband   { grid-column: 1 / -1; grid-row: 3; border-color: var(--sw-orange); }

/* TABLET home (180 / 1fr / 180 ; 64 / 1fr / 110) */
.dev-tablet.mode-home .panel-logo      { grid-column: 1; grid-row: 1; }
.dev-tablet.mode-home .panel-navstatus { grid-column: 3; grid-row: 1; }
.dev-tablet.mode-home .panel-dest      { grid-column: 1; grid-row: 2; }
.dev-tablet.mode-home .panel-globe     { grid-column: 2; grid-row: 1 / span 2; }
.dev-tablet.mode-home .panel-navfix    { grid-column: 3; grid-row: 2; }
.dev-tablet.mode-home .panel-compass   { grid-column: 1; grid-row: 3; }
.dev-tablet.mode-home .panel-infoband  { grid-column: 2; grid-row: 3; }
.dev-tablet.mode-home .panel-ammo      { grid-column: 3; grid-row: 3; }

/* MOBILE home — globe-first */
.dev-mobile.mode-home .panel-logo,
.dev-mobile.mode-home .panel-dest,
.dev-mobile.mode-home .panel-compass,
.dev-mobile.mode-home .panel-navstatus,
.dev-mobile.mode-home .panel-navfix,
.dev-mobile.mode-home .panel-ammo { display: none; }
.dev-mobile.mode-home .panel-globe    { grid-column: 1; grid-row: 2; border: 0; border-radius: 0; }
.dev-mobile.mode-home .panel-infoband { grid-column: 1; grid-row: 3; border: 0; border-radius: 0; border-top: 1px solid #1a1a1a; }
.dev-mobile.mode-home .mobile-home-header {
  grid-column: 1; grid-row: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 8px; background: #000;
}
.dev-mobile.mode-home .mobile-home-tabbar {
  grid-column: 1; grid-row: 4;
  display: flex; background: #000;
  border-top: 1px solid #222;
  padding: 8px 0;
}
.dev-mobile.mode-home .tab {
  flex: 1; text-align: center; color: #555;
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 0; background: transparent; border: none; font-family: inherit;
}
.dev-mobile.mode-home .tab .tab-glyph { display: block; font-size: 16px; margin-bottom: 2px; }
.dev-mobile.mode-home .tab.active { color: var(--sw-cyan); }

/* ============================================================
   LOGO
   ============================================================ */
.panel-logo {
  border-color: transparent !important;
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.logo-home-btn {
  width: 100%; height: 100%;
  background: transparent; border: none; padding: 0 20px;
  display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; transition: 0.2s; border-radius: 9px;
}
.logo-btn-left {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: transparent; border: none; cursor: pointer; padding: 0;
}
.logo-btn-right {
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 20px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em;
  color: rgba(0,229,255,0.45);
  grid-column: 3; /* explicit — prevents drift when nav-sel is position:absolute */
}
.uplink-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--sw-cyan); box-shadow: 0 0 6px var(--sw-cyan);
  margin-right: 5px;
}
.logo-home-btn:hover { background: rgba(0, 229, 255, 0.08); }
.logo-svg {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  transition: filter 0.25s;
}
button:hover .logo-svg {
  filter: drop-shadow(0 0 6px rgba(0,229,255,0.7)) drop-shadow(0 0 18px rgba(0,229,255,0.4)) drop-shadow(0 0 36px rgba(0,229,255,0.18));
}
.lh-cancel {
  background: transparent; border: 1px solid rgba(0,229,255,0.4);
  color: var(--sw-cyan); font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.14em; padding: 3px 8px; border-radius: 2px;
  cursor: pointer; margin-left: 12px; opacity: 0.8;
  transition: opacity 0.15s;
}
.lh-cancel:hover { opacity: 1; background: rgba(0,229,255,0.1); }
.logo-home-btn .logo-wordmark {
  font-family: var(--font-stencil);
  color: var(--sw-cyan);
  font-size: 20px;
  letter-spacing: 0.14em;
  text-shadow: 0 0 12px var(--sw-cyan-glow);
  line-height: 1;
}
.logo-camera-icon {
  color: var(--sw-cyan);
  filter: drop-shadow(0 0 5px var(--sw-cyan-glow));
  width: 36px; height: 28px;
  flex-shrink: 0;
}
.logo-name {
  font-family: var(--font-stencil);
  font-size: 17px;
  letter-spacing: 0.12em;
  color: transparent;
  -webkit-text-stroke: 1px var(--sw-cyan);
  text-shadow: 0 0 10px rgba(0,229,255,0.45);
  line-height: 1;
}
.logo-cc {
  font-size: 12px;
  opacity: 0.75;
}
.logo-home-btn .logo-tag,
button .logo-tag {
  font-family: var(--font-mono);
  color: rgba(0, 229, 255, 0.65);
  font-size: 9px; letter-spacing: 0.28em;
  display: block; text-align: center; width: 100%;
}
.logo-home-btn .logo-tag::before,
.logo-home-btn .logo-tag::after {
  content: none;
}

/* ============================================================
   DESTINATION PANEL
   ============================================================ */
.panel-dest { /* fills its grid cell */ }
.dest-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,138,0,0.06);
  border: 1px solid rgba(255,138,0,0.25);
  border-radius: 3px;
  padding: 6px 9px;
  margin-bottom: 9px;
  flex-shrink: 0;
}
.dest-col-stack {
  flex: 1; display: flex; flex-direction: column;
  justify-content: space-between; overflow: hidden;
  padding: 4px 0;
}
.dest-pill-empty {
  padding: 7px 8px;
  border-radius: 8px; margin: 2px 8px;
  border: 2px solid var(--pill-color, rgba(255,138,0,0.4));
  opacity: 0.35; flex-shrink: 0;
  box-sizing: border-box;
}
.dest-search input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--sw-orange); font-family: inherit; font-size: 11px;
}
.dest-search input::placeholder { color: rgba(255,138,0,0.35); }
.dest-search .lens { color: var(--sw-yellow); font-size: 11px; }

.dest-stack {
  display: flex; flex-direction: column; gap: 3px;
  overflow-y: auto; padding-right: 4px;
  flex: 1; min-height: 0;
}
.dest-stack::-webkit-scrollbar { width: 4px; }
.dest-stack::-webkit-scrollbar-track { background: rgba(255,138,0,0.05); }
.dest-stack::-webkit-scrollbar-thumb { background: var(--sw-yellow); border-radius: 2px; }

.dest-pill {
  background-color: var(--pill-color, var(--sw-yellow));
  border: 1px solid var(--pill-color, var(--sw-yellow));
  color: #000;
  font-size: 12px;
  padding: 7px 8px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: flex; justify-content: space-between; align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
  white-space: nowrap;
}
.dest-pill > span:first-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dest-pill .py { flex-shrink: 0; opacity: 0.65; font-weight: 500; font-size: 9px; }
.dest-pill:hover {
  background-color: transparent !important;
  color: var(--pill-color, var(--sw-yellow));
  box-shadow: inset 0 0 6px var(--pill-color, var(--sw-yellow));
}
.dest-pill.active {
  background-color: transparent !important;
  color: var(--pill-color, var(--sw-yellow));
  box-shadow: inset 0 0 10px var(--pill-color, var(--sw-yellow)), 0 0 8px var(--pill-color, var(--sw-yellow));
  outline: 1px solid var(--pill-color, var(--sw-yellow));
}

/* ============================================================
   COMPASS PANEL
   ============================================================ */
.panel-compass { padding: 8px 10px; }
.panel-compass .label { margin-bottom: 6px; }
.compass-ring {
  width: 56px; height: 56px;
  border: 2px dashed rgba(0, 229, 255, 0.4);
  border-radius: 50%;
  margin: 4px auto 4px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 15px rgba(0, 229, 255, 0.12);
  position: relative;
}
.compass-ring::after {
  content: ''; position: absolute; inset: -5px;
  border: 1px solid rgba(0, 229, 255, 0.2); border-radius: 50%;
}
.compass-arrow {
  color: var(--sw-cyan); font-size: 22px;
  filter: drop-shadow(0 0 5px var(--sw-cyan));
  transition: transform 0.1s ease-out;
  line-height: 1;
}
.compass-readout {
  text-align: center; color: var(--sw-cyan);
  font-family: var(--font-stencil);
  font-size: 13px; letter-spacing: 0.1em;
}

/* ============================================================
   NAV STATUS (top-right)
   ============================================================ */
.panel-navstatus .navstatus-row {
  display: flex; flex-direction: column; gap: 6px;
}
.panel-navstatus .space-btn { font-size: 9px; padding: 5px 8px; }

/* ============================================================
   NAV FIX (radar)
   ============================================================ */
.panel-navfix {
  border-color: var(--sw-cyan);
  align-items: center;
  justify-content: flex-start;
}
.nav-radar {
  width: 90px; height: 90px; max-width: 100%;
  border: 2px solid var(--sw-cyan);
  border-radius: 50%;
  margin: 6px auto 0;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle, rgba(0,229,255,0.08), transparent 70%);
  box-shadow: 0 0 10px rgba(0,229,255,0.15), inset 0 0 16px rgba(0,229,255,0.1);
}
.nav-radar-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.15) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: center center;
  mask: radial-gradient(circle, #000 60%, transparent 100%);
  -webkit-mask: radial-gradient(circle, #000 60%, transparent 100%);
}
.nav-radar::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 2px; height: 2px;
  background: var(--sw-cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--sw-cyan);
  transform: translate(-50%, -50%);
}
.nav-radar-sweep {
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg,
    rgba(0,229,255,0) 0deg,
    rgba(0,229,255,0) 270deg,
    rgba(0,229,255,0.5) 358deg,
    rgba(0,229,255,0.85) 360deg);
  border-radius: 50%;
  animation: radar-sweep 4s linear infinite;
  transform-origin: center;
  mask: radial-gradient(circle, transparent 4%, #000 60%, transparent 100%);
  -webkit-mask: radial-gradient(circle, transparent 4%, #000 60%, transparent 100%);
}
@keyframes radar-sweep { to { transform: rotate(360deg); } }
.nav-radar-blip {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--sw-yellow);
  border-radius: 50%;
  box-shadow: 0 0 4px var(--sw-yellow);
  opacity: 0.85;
}
.nav-radar-blip.a { top: 24%; left: 60%; }
.nav-radar-blip.b { top: 64%; left: 28%; }
.nav-radar-blip.c { top: 44%; left: 78%; }

/* ============================================================
   AMMO BARS
   ============================================================ */
.panel-ammo .ammo-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  margin-top: 4px;
}
.panel-ammo .ammo-bar {
  height: 14px;
  background: var(--sw-yellow);
  opacity: 0.5;
  border-radius: 2px;
}
.tx-log {
  display: flex; flex-direction: column; gap: 6px;
  overflow: hidden; padding: 4px 0;
  flex: 1;
}
.tx-entry {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 9px; letter-spacing: 0.1em;
  color: rgba(0,229,255,0.7);
  animation: txFadeIn 0.4s ease;
}
.tx-blip {
  color: var(--sw-cyan); opacity: 0.6; flex-shrink: 0;
}
@keyframes txFadeIn { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }
.archive-stats {
  display: flex; flex-direction: column; gap: 8px;
  padding: 4px 0;
}
.stat-row {
  display: flex; justify-content: space-between; align-items: center;
}
.stat-label {
  font-size: 9px; letter-spacing: 0.14em; color: rgba(0,229,255,0.55);
}
.stat-value {
  font-family: var(--font-stencil); font-size: 13px;
  color: var(--sw-cyan);
  text-shadow: 0 0 8px var(--sw-cyan-glow);
}
  box-shadow: 0 0 4px rgba(255,199,0,0.4);
}

/* ============================================================
   GLOBE PANEL — the centerpiece
   ============================================================ */
.panel-globe {
  border-color: var(--sw-cyan);
  background: radial-gradient(ellipse at center, #001218 0%, #000408 60%, #000 100%);
  padding: 0;
  overflow: hidden;
  position: relative;
}
.globe-wrap { position: absolute; inset: 0; overflow: hidden; }

.space-backdrop {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}
.space-stars circle { /* twinkle handled by static randomized fills */ }

.globe-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  cursor: grab;
  z-index: 2;
}
.globe-svg:active { cursor: grabbing; }

/* d3 layer styles */
.globe-sphere { fill: rgba(0, 14, 22, 0.85); stroke: var(--sw-cyan); stroke-width: 1.4; }
.graticule { fill: none; stroke: rgba(0, 229, 255, 0.28); stroke-width: 0.7; }
.light-beam {
  stroke: var(--sw-yellow); stroke-width: 1.5; opacity: 0.9; stroke-linecap: round;
  filter: drop-shadow(0 0 3px var(--sw-yellow)) drop-shadow(0 0 10px var(--sw-yellow)) drop-shadow(0 0 22px rgba(255,199,0,0.7));
}
.globe-node-core { transition: r 0.2s, fill 0.2s; }
.globe-node-pulse { animation: globe-pulse 2.4s ease-out infinite; transform-origin: center; }
@keyframes globe-pulse {
  0%   { r: 4; opacity: 0.7; }
  100% { r: 18; opacity: 0; }
}
.globe-node:hover .globe-node-core { r: 6; fill: #fff; }

/* Overlay */
.globe-overlay {
  position: absolute; inset: 0;
  z-index: 5;
  pointer-events: none;
}
.globe-overlay > * { pointer-events: auto; }

.globe-corner {
  position: absolute; width: 24px; height: 24px;
  border: 2px solid var(--sw-cyan);
  filter: drop-shadow(0 0 4px rgba(0,229,255,0.5));
  pointer-events: none;
}
.globe-corner.tl { top: 10px; left: 10px;  border-right: none; border-bottom: none; }
.globe-corner.tr { top: 10px; right: 10px; border-left: none;  border-bottom: none; }
.globe-corner.bl { bottom: 10px; left: 10px;  border-right: none; border-top: none; }
.globe-corner.br { bottom: 10px; right: 10px; border-left: none;  border-top: none; }

.globe-readout-top {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  background: rgba(0, 14, 22, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 3px;
  padding: 5px 12px;
  backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 10px;
  font-size: 9px; letter-spacing: 0.14em;
  z-index: 6;
}
.globe-readout-top .globe-label { color: rgba(0,229,255,0.6); }
.globe-readout-top .globe-value { color: var(--sw-cyan); font-weight: 700; }
.globe-mode-toggle {
  background: transparent; border: 1px solid rgba(0,229,255,0.5);
  color: var(--sw-cyan); padding: 2px 8px; font-size: 9px;
  letter-spacing: 0.1em; font-family: inherit; border-radius: 2px;
  cursor: pointer; transition: 0.15s;
}
.globe-mode-toggle:hover { background: var(--sw-cyan); color: #000; }

.globe-zoom {
  position: absolute; bottom: 16px; right: 16px;
  display: flex; flex-direction: column; gap: 4px;
  z-index: 6;
}
.globe-zoom button {
  width: 30px; height: 30px;
  background: rgba(0, 14, 22, 0.7);
  border: 1px solid var(--sw-cyan);
  color: var(--sw-cyan);
  font-size: 17px; font-weight: 700;
  border-radius: 3px;
  backdrop-filter: blur(6px);
  cursor: pointer; transition: 0.15s;
}
.globe-zoom button:hover { background: var(--sw-cyan); color: #000; box-shadow: 0 0 10px var(--sw-cyan-glow); }

.globe-hover-card {
  position: absolute; top: 60px; right: 16px;
  min-width: 220px; max-width: 260px;
  background: rgba(0, 14, 22, 0.92);
  border: 1px solid var(--sw-yellow);
  border-radius: 4px;
  padding: 12px 14px;
  backdrop-filter: blur(8px);
  animation: globe-hover-in 0.25s ease;
  pointer-events: none;
  z-index: 6;
}
@keyframes globe-hover-in {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Featured sequence card — bottom-center, shown while holding at each gallery ── */
.globe-seq-card {
  position: absolute;
  bottom: 48px;
  left: 50%; transform: translateX(-50%);
  text-align: center;
  background: rgba(0, 10, 20, 0.80);
  border: 1px solid rgba(0, 229, 255, 0.45);
  border-radius: 3px;
  padding: 10px 24px 12px;
  backdrop-filter: blur(10px);
  pointer-events: none;
  white-space: nowrap;
  z-index: 6;
  animation: globe-seq-in 0.4s ease forwards;
}
@keyframes globe-seq-in {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.globe-seq-eyebrow {
  font-size: 9px; letter-spacing: 0.22em;
  color: var(--sw-cyan);
  margin-bottom: 5px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.globe-seq-title {
  font-family: var(--font-stencil);
  font-size: 15px; letter-spacing: 0.14em;
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.28);
  margin-bottom: 4px;
}
.globe-seq-meta {
  font-size: 9px; letter-spacing: 0.12em;
  color: rgba(0, 229, 255, 0.7);
}
.globe-hover-eyebrow {
  font-size: 9px; letter-spacing: 0.2em;
  color: var(--sw-yellow);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.globe-hover-blip {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sw-yellow);
  box-shadow: 0 0 6px var(--sw-yellow);
  animation: pulse-dot 1.2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.85); } }
.globe-hover-title {
  font-family: var(--font-stencil);
  color: #fff; font-size: 16px;
  letter-spacing: 0.04em; margin-bottom: 4px;
}
.globe-hover-meta {
  font-size: 9px; letter-spacing: 0.14em;
  color: rgba(0,229,255,0.7);
}

/* ============================================================
   LOCKING / ENGAGE
   ============================================================ */
.globe-locking-hint {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: rgba(0,14,22,0.85);
  border: 1px solid var(--sw-yellow);
  color: var(--sw-yellow);
  padding: 8px 16px;
  font-size: 10px; letter-spacing: 0.22em;
  border-radius: 3px;
  display: flex; align-items: center; gap: 10px;
  backdrop-filter: blur(8px);
  animation: hint-in 0.3s ease;
}
.globe-locking-hint .lh-blip {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sw-yellow);
  box-shadow: 0 0 8px var(--sw-yellow);
  animation: pulse-dot 0.8s ease-in-out infinite;
}
@keyframes hint-in {
  from { opacity: 0; transform: translate(-50%, -45%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* ── Split layout: full-height left card + right coord-lock ── */
.engage-target {
  position: absolute; inset: 0;
  z-index: 20;
  display: flex;
  pointer-events: none;
}
.engage-target > * { pointer-events: auto; }

/* Left 50% — full-height HUD gallery card */
.engage-left {
  flex: 0 0 56%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 4px 10px 28px;
  animation: panel-left-in 0.45s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes panel-left-in {
  from { opacity: 0; transform: translateX(-22px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Right 50% — coord-lock, vertically centered */
.engage-right {
  flex: 0 0 44%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG diagonal dashed lines */
.engage-lines {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 25;
  overflow: visible;
  animation: panel-left-in 0.45s cubic-bezier(0.16,1,0.3,1) both;
}

/* Full-height cover — fills engage-left entirely */
.engage-cover-wrap {
  width: calc(100% - 24px);
  margin-left: 24px;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,229,255,0.55);
  border-radius: 3px;
  cursor: pointer;
  box-shadow:
    0 0 18px rgba(0,229,255,0.30),
    0 0 42px rgba(0,229,255,0.12),
    0 0 80px rgba(0,229,255,0.05);
}
.engage-cover-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.94) brightness(0.96);
}
.engage-cover-interlace {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 3px,
    rgba(0,0,0,0.09) 3px, rgba(0,0,0,0.09) 4px
  );
}
.engage-cover-falloff {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.06) 0%, transparent 20%,
    transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* HUD corner brackets */
.engage-bracket {
  position: absolute; width: 18px; height: 18px;
  border-color: rgba(0,229,255,1); border-style: solid; z-index: 6;
  filter: drop-shadow(0 0 4px rgba(0,229,255,0.9));
}
.engage-bracket.tl { top: 7px;    left: 7px;  border-width: 2px 0 0 2px; }
.engage-bracket.tr { top: 7px;    right: 7px; border-width: 2px 2px 0 0; }
.engage-bracket.bl { bottom: 7px; left: 7px;  border-width: 0 0 2px 2px; }
.engage-bracket.br { bottom: 7px; right: 7px; border-width: 0 2px 2px 0; }

/* Corner data overlays */
.engage-corner-data {
  display: none; /* removed per design — brackets speak for themselves */
}
.engage-corner-data.tl { top: 9px;    left: 9px; }
.engage-corner-data.tr { top: 9px;    right: 9px; }
.engage-corner-data.bl { bottom: 9px; left: 9px; }
.engage-corner-data.br { bottom: 9px; right: 9px; }
.engage-corner-data .eb-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--sw-yellow); box-shadow: 0 0 5px var(--sw-yellow);
  animation: pulse-dot 1.2s ease-in-out infinite; flex-shrink: 0;
}

/* Bottom bar — inside image, identical pattern to HUD hpx-bottom-bar */
.engage-bottom-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px 14px;
  z-index: 7;
}
.engage-bar-row {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 10px;
}
.engage-bar-info { display: flex; flex-direction: column; gap: 3px; }
.engage-title {
  font-family: var(--font-stencil); color: #fff;
  font-size: 20px; letter-spacing: 0.04em; line-height: 1.1;
  text-shadow: 0 0 14px rgba(0,229,255,0.4);
}
.engage-meta-row {
  font-size: 9px; letter-spacing: 0.16em;
  color: rgba(0,229,255,0.75);
}
.engage-cta {
  background: var(--sw-cyan); border: none;
  color: #000; font-family: inherit; font-weight: 700;
  font-size: 10px; letter-spacing: 0.18em;
  padding: 8px 16px; border-radius: 3px;
  cursor: pointer; transition: 0.18s; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px;
  box-shadow: 0 0 12px rgba(0,229,255,0.35);
}
.engage-cta:hover { background: var(--sw-yellow); box-shadow: 0 0 16px rgba(255,199,0,0.5); }
.engage-cta .arrow { transition: transform 0.18s; }
.engage-cta:hover .arrow { transform: translateX(4px); }

/* Release lock — floats above bottom-left of image */
.engage-cancel {
  position: absolute; bottom: 52px; left: 14px;
  background: transparent; border: none;
  color: rgba(0,229,255,0.4); font-family: inherit;
  font-size: 8px; letter-spacing: 0.22em;
  cursor: pointer; padding: 2px 0; z-index: 8;
  pointer-events: auto;
}
.engage-cancel:hover { color: var(--sw-cyan); }

/* ── Coord-lock targeting reticle ── */
.coord-lock {
  position: relative; width: 220px; height: 220px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  animation: cl-in 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
@keyframes cl-in {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
.cl-ring {
  position: absolute; border-radius: 50%;
  border-style: solid; border-color: transparent;
}
.cl-r1 {
  width: 210px; height: 210px; border-width: 1px;
  border-top-color: rgba(0,229,255,0.55);
  border-right-color: rgba(0,229,255,0.25);
  animation: cl-cw 8s linear infinite;
}
.cl-r2 {
  width: 158px; height: 158px; border-width: 1.5px;
  border-top-color: rgba(0,229,255,0.75);
  border-left-color: rgba(0,229,255,0.35);
  animation: cl-ccw 5s linear infinite;
}
.cl-r3 { display: none; }
.cl-r4 { width: 42px; height: 42px; border: 1.5px solid rgba(0,229,255,0.7); }
.cl-sig {
  position: absolute; border-radius: 50%;
  border: 2.5px solid rgba(0,229,255,1);
  width: 10px; height: 10px;
  animation: cl-broadcast 2.8s ease-out infinite;
  box-shadow: 0 0 6px rgba(0,229,255,0.7);
}
.cl-s2 { animation-delay: 0.93s; }
.cl-s3 { animation-delay: 1.86s; }
@keyframes cl-cw  { to { transform: rotate(360deg);  } }
@keyframes cl-ccw { to { transform: rotate(-360deg); } }
@keyframes cl-broadcast {
  0%   { width: 10px;  height: 10px;  opacity: 1;   border-color: rgba(0,229,255,1);   border-width: 2.5px; }
  40%  { border-width: 2px;   opacity: 0.9; border-color: rgba(0,229,255,0.85); }
  100% { width: 158px; height: 158px; opacity: 0;   border-color: rgba(0,229,255,0);   border-width: 1px; }
}
.cl-orb {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0,229,255,0.25), 0 0 14px rgba(0,229,255,1), 0 0 28px rgba(0,229,255,0.55);
}
.cl-corner { position: absolute; width: 13px; height: 13px; }
.cl-corner::before, .cl-corner::after { content: ''; position: absolute; background: rgba(0,229,255,0.7); }
.cl-tl { top: 6px; left: 6px; }
.cl-tl::before { top:0; left:0; width:1.5px; height:9px; }
.cl-tl::after  { top:0; left:0; width:9px;   height:1.5px; }
.cl-tr { top: 6px; right: 6px; }
.cl-tr::before { top:0; right:0; width:1.5px; height:9px; }
.cl-tr::after  { top:0; right:0; width:9px;   height:1.5px; }
.cl-bl { bottom: 6px; left: 6px; }
.cl-bl::before { bottom:0; left:0; width:1.5px; height:9px; }
.cl-bl::after  { bottom:0; left:0; width:9px;   height:1.5px; }
.cl-br { bottom: 6px; right: 6px; }
.cl-br::before { bottom:0; right:0; width:1.5px; height:9px; }
.cl-br::after  { bottom:0; right:0; width:9px;   height:1.5px; }
.cl-data { display: none; }
.coord-lock:hover .cl-orb {
  box-shadow: 0 0 0 6px rgba(0,229,255,0.3), 0 0 20px rgba(0,229,255,1), 0 0 40px rgba(0,229,255,0.6);
}

/* HUD overlay effects on engage cover — same as hpx-holo */
.engage-chroma-r,
.engage-chroma-b {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: 0.07;
  pointer-events: none;
}
.engage-chroma-r {
  transform: translateX(2px);
  filter: hue-rotate(180deg) saturate(2) brightness(0.6);
  z-index: 2;
}
.engage-chroma-b {
  transform: translateX(-2px);
  filter: hue-rotate(140deg) saturate(2.5) brightness(0.5);
  z-index: 2;
}
.engage-emitterglow {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: linear-gradient(to top,
    rgba(0,229,255,0.28) 0%, rgba(0,229,255,0.08) 10%, rgba(0,229,255,0) 18%);
  mix-blend-mode: screen;
}
.engage-grid {
  position: absolute; inset: 0; z-index: 7; pointer-events: none;
  background:
    linear-gradient(to right,  rgba(0,229,255,0.05) 1px, transparent 1px) 0 0 / 42px 100%,
    linear-gradient(to bottom, rgba(0,229,255,0.05) 1px, transparent 1px) 0 0 / 100% 42px;
  mix-blend-mode: screen;
}

/* Laptop adjustments */

/* ============================================================
   INFO BAND
   ============================================================ */
.panel-infoband {
  align-items: center; justify-content: center; text-align: center;
  gap: 6px; padding: 18px 24px;
}
.infoband-path {
  color: var(--sw-cyan);
  font-size: 11px; letter-spacing: 0.22em;
  opacity: 0.8;
}
.infoband-path b { color: #fff; font-weight: 700; letter-spacing: 0.06em; }
.infoband-loc {
  font-family: var(--font-stencil);
  color: var(--sw-orange-dim);
  font-size: 38px; font-weight: 900;
  letter-spacing: 0.2em;
  line-height: 1;
  text-shadow: 0 0 16px rgba(204, 68, 0, 0.5), 0 0 40px rgba(204, 68, 0, 0.2);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: color 0.4s, text-shadow 0.4s;
}
.infoband-loc.locked {
  color: var(--sw-yellow);
  text-shadow: 0 0 14px rgba(255, 199, 0, 0.6);
}
.infoband-coord {
  font-size: 9px; letter-spacing: 0.18em;
  color: rgba(0,229,255,0.7);
}
.infoband-coord span { color: var(--sw-cyan); font-weight: 700; }

/* ============================================================
   GALLERY VIEW — Viewer / Info / Map / Counter / Thumbs
   ============================================================ */
.mode-gallery .panel-logo       { grid-column: 1; grid-row: 1; border-color: transparent !important; background: transparent; }
.mode-gallery .panel-viewer     { grid-column: 1; grid-row: 2; }
.mode-gallery .panel-thumbs     { grid-column: 1; grid-row: 3; }
.gallery-right-col              { display: none; }
.mode-gallery .panel-info       { display: none; }
.mode-gallery .panel-map        { display: none; }

/* Gallery viewer header layout */
.gallery-header {
  width: 100%; height: 100%;
  display: grid; grid-template-columns: 280px 1fr 280px;
  align-items: center; padding: 0; gap: 0;
  position: relative; /* allows .nav-sel to be absolutely centered */
}
/* Home mode: match gallery-header sub-columns to the cockpit shell columns
   (180px desktop / 160px laptop) so logo-btn-right centers directly above
   the destination pills column — not over the wider 280px gallery-mode column */
.cockpit-shell.dev-desktop.mode-home .gallery-header,
.cockpit-shell.dev-desktop.cs-carousel-mode .gallery-header {
  grid-template-columns: 280px 1fr 180px;
}
.cockpit-shell.dev-laptop.mode-home .gallery-header,
.cockpit-shell.dev-laptop.cs-carousel-mode .gallery-header {
  grid-template-columns: 200px 1fr 160px;
}
/* NavSelector: absolutely centered over the viewport so it locks to the
   globe panel center regardless of asymmetric left/right column widths */
.gallery-header .nav-sel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.gallery-header-center {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.gallery-title {
  font-family: var(--font-stencil); font-size: 20px;
  letter-spacing: 0.16em; color: #fff;
  text-shadow: 0 0 10px rgba(0,229,255,0.4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gallery-header-bars {
  display: flex; align-items: center; gap: 8px; width: 100%; max-width: 400px;
}
.ghb-num {
  font-size: 10px; letter-spacing: 0.12em;
  color: rgba(255,199,0,0.8); white-space: nowrap;
  font-family: var(--font-stencil);
}
.ghb-cells {
  display: flex; gap: 2px; flex: 1;
}
.ghb-cell {
  flex: 1; height: 14px; background: rgba(255,199,0,0.1);
  border-radius: 1px; transition: 0.18s;
}
.ghb-cell.spent  { background: rgba(255,199,0,0.45); }
.ghb-cell.active { background: var(--sw-yellow); box-shadow: 0 0 5px var(--sw-yellow); }
.ghb-total {
  font-size: 10px; letter-spacing: 0.12em;
  color: rgba(255,199,0,0.4); white-space: nowrap;
}
.gallery-header-nav {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
}
.gallery-nav-btn {
  background: transparent; border: 1px solid rgba(0,229,255,0.35);
  color: rgba(0,229,255,0.7); font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.12em;
  padding: 6px 10px; cursor: pointer; transition: 0.18s;
  max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gallery-nav-btn:hover:not(:disabled) {
  border-color: var(--sw-cyan); color: var(--sw-cyan);
  box-shadow: 0 0 8px rgba(0,229,255,0.2);
}
.gallery-nav-btn:disabled { opacity: 0.25; cursor: default; }
.gallery-nav-sep {
  font-size: 9px; letter-spacing: 0.16em;
  color: rgba(0,229,255,0.35); white-space: nowrap;
}
.mode-gallery .panel-dest       { display: none; }
.mode-gallery .panel-viewer     { grid-column: 1; grid-row: 2; }
.mode-gallery .panel-thumbs     { grid-column: 1 / -1; grid-row: 3; }

/* Right column wrapper contains info + map stacked */
.gallery-right-col {
  grid-column: 2; grid-row: 2;
  display: flex; flex-direction: column;
  gap: 4px; overflow: hidden; min-height: 0;
}
.mode-gallery .panel-info   { flex: 0 0 auto; }
.mode-gallery .panel-map    { flex: 1 1 auto; min-height: 0; }
.mode-gallery .panel-counter { display: none; }
.panel-thumbs .label { flex-shrink: 0; padding: 0 0 4px 0; border-bottom: none; margin-bottom: 2px; }
.panel-thumbs .thumb-strip { flex: 1; min-height: 0; }

/* Center viewer */
.panel-viewer {
  border-color: var(--sw-cyan);
  background: #000;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.viewer-frame { position: absolute; inset: 0; background: #000; }
/* Light mode: viewer and frame are fully transparent — seamless with page */
.cockpit-shell[data-theme="light"] .panel-viewer { background: transparent !important; border: none !important; box-shadow: none !important; }
.cockpit-shell[data-theme="light"] .viewer-frame { background: transparent !important; }

.viewer-cinema { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
/* v0.62 — CINEMA CROSSFADE LAYERS
   Two fixed slots (front/back) swap to crossfade without a blank frame.
   key={slotIndex} on each <img> keeps DOM elements stable across swaps
   so the CSS opacity transition actually fires on phase change. */
.cinema-layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; display: block;
  transition: opacity 320ms ease, filter 0.5s;
}
.cinema-layer.front { opacity: 1; z-index: 2; }
.cinema-layer.back  { opacity: 0; z-index: 1; }

.viewer-vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 5;
  box-shadow: inset 0 0 100px rgba(0, 229, 255, 0.12);
}
.cockpit-shell[data-theme="light"] .viewer-vignette { display: none; }

.viewer-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 80px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(0, 229, 255, 0.5);
  color: var(--sw-cyan); font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  z-index: 30;
  backdrop-filter: blur(6px);
  transition: 0.2s;
  border-radius: 3px;
  opacity: 0.6;
}
.panel-viewer:hover .viewer-arrow { opacity: 1; }
.viewer-arrow:hover { background: var(--sw-cyan); color: #000; box-shadow: 0 0 14px var(--sw-cyan-glow); border-color: var(--sw-cyan); }
.viewer-arrow.prev { left: 14px; }
.viewer-arrow.next { right: 14px; }

.viewer-mode {
  position: absolute; bottom: 14px; left: 14px;
  display: flex; gap: 0; z-index: 30;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(0, 229, 255, 0.45);
  border-radius: 3px;
  backdrop-filter: blur(8px);
  opacity: 0.65;
  transition: opacity 0.2s;
}
.panel-viewer:hover .viewer-mode { opacity: 1; }
.viewer-mode button {
  background: transparent; border: none; color: var(--sw-cyan);
  padding: 5px 11px; font-size: 9px; letter-spacing: 0.14em;
  font-family: inherit; text-transform: uppercase;
  transition: 0.18s;
  border-right: 1px solid rgba(0,229,255,0.2);
}
.viewer-mode button:last-child { border-right: none; }
.viewer-mode button.active { background: var(--sw-cyan); color: #000; font-weight: 700; }
.viewer-mode button:hover:not(.active) { background: rgba(0,229,255,0.15); }

.viewer-play {
  position: absolute; bottom: 14px; right: 14px; z-index: 30;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(0, 229, 255, 0.5);
  color: var(--sw-cyan);
  padding: 7px 14px; font-size: 10px; letter-spacing: 0.16em;
  border-radius: 3px; font-family: inherit;
  backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 8px;
  opacity: 0.65; transition: 0.2s;
}
.panel-viewer:hover .viewer-play { opacity: 1; }
.viewer-play:hover { background: var(--sw-cyan); color: #000; }
.viewer-play.playing { background: var(--sw-yellow); color: #000; border-color: var(--sw-yellow); opacity: 1; }

.viewer-scroll {
  position: absolute; inset: 0;
  padding: 24px 32px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: thin;
}
.viewer-scroll::-webkit-scrollbar { width: 6px; }
.viewer-scroll::-webkit-scrollbar-thumb { background: var(--sw-cyan); border-radius: 3px; }
.scroll-card {
  scroll-snap-align: start;
  margin-bottom: 22px;
  border: 1px solid rgba(0,229,255,0.3);
  position: relative;
  overflow: hidden;
}
.scroll-card img { width: 100%; height: auto; display: block; }
.scroll-card .scroll-tag {
  position: absolute; top: 10px; left: 12px;
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--sw-cyan);
  color: var(--sw-cyan);
  padding: 3px 8px; font-size: 10px; letter-spacing: 0.12em;
  backdrop-filter: blur(4px);
}

/* Info panel */
.panel-info { flex: 0 0 auto; }
.info-title {
  font-family: var(--font-stencil);
  color: #fff; font-size: 20px; letter-spacing: 0.04em;
  line-height: 1.1; margin-bottom: 4px;
  text-shadow: 0 0 12px rgba(0,229,255,0.25);
}
.info-sub {
  color: var(--sw-cyan); font-size: 10px; letter-spacing: 0.16em;
  margin-bottom: 12px;
  display: flex; gap: 10px; align-items: center;
}
.info-sub .div { width: 12px; height: 1px; background: var(--sw-cyan); }
.info-grid {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 4px 12px;
  font-size: 10px; letter-spacing: 0.08em;
}
.info-grid dt { color: rgba(255,138,0,0.6); font-weight: 700; }
.info-grid dd { color: #ddd; font-variant-numeric: tabular-nums; }
.info-grid dd.cy { color: var(--sw-cyan); }
.info-divider {
  height: 1px; background: linear-gradient(to right, transparent, rgba(0,229,255,0.3), transparent);
  margin: 12px 0 10px;
}
.info-section-label {
  font-size: 8px; letter-spacing: 0.2em;
  color: rgba(0,229,255,0.6); margin-bottom: 6px; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
}
.info-section-label .live {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--sw-yellow);
}
.info-section-label .live .blip {
  width: 5px; height: 5px; border-radius: 50%; background: var(--sw-yellow);
  box-shadow: 0 0 4px var(--sw-yellow);
  animation: pulse-dot 1.4s ease-in-out infinite;
}

/* Map panel */
.panel-map { flex: 1 1 auto; min-height: 0; border-color: var(--sw-orange); }
.map-canvas {
  flex: 1 1 auto; min-height: 0;
  position: relative;
  background: #050505;
  border: 1px solid rgba(0,229,255,0.25);
  overflow: hidden;
}
.map-canvas .leaflet-container { background: #000; width: 100%; height: 100%; }
.map-canvas .leaflet-tile-pane {
  filter: sepia(0.35) hue-rotate(168deg) saturate(3.4) brightness(1.45) contrast(1.25);
}
.map-canvas::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,229,255,0.04) 50%, transparent 100%);
  background-size: 100% 4px;
  pointer-events: none; z-index: 450;
  animation: map-scan 8s linear infinite;
}
@keyframes map-scan { from { background-position-y: 0; } to { background-position-y: 200px; } }
.map-canvas::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 8, 16, 0.4) 100%);
  pointer-events: none; z-index: 451;
}
.map-crosshair { position: absolute; inset: 0; pointer-events: none; z-index: 500; }
.map-crosshair::before, .map-crosshair::after {
  content: ''; position: absolute; background: rgba(0,229,255,0.25);
}
.map-crosshair::before { top: 50%; left: 0; right: 0; height: 1px; }
.map-crosshair::after  { left: 50%; top: 0; bottom: 0; width: 1px; }
.map-corner {
  position: absolute; width: 14px; height: 14px; border: 1px solid var(--sw-cyan);
  pointer-events: none; z-index: 500;
}
.map-corner.tl { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.map-corner.tr { top: 6px; right: 6px; border-left: none; border-bottom: none; }
.map-corner.bl { bottom: 6px; left: 6px; border-right: none; border-top: none; }
.map-corner.br { bottom: 6px; right: 6px; border-left: none; border-top: none; }

.snap-marker { position: relative; }
.snap-marker .marker-core {
  position: absolute; top: 50%; left: 50%;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--sw-cyan);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--sw-cyan);
}
.snap-marker .marker-pulse {
  position: absolute; top: 50%; left: 50%;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--sw-cyan);
  transform: translate(-50%, -50%);
  animation: marker-pulse 1.8s ease-out infinite;
  opacity: 0;
}
.snap-marker .marker-ring {
  position: absolute; top: 50%; left: 50%;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px dashed rgba(0,229,255,0.4);
  transform: translate(-50%, -50%);
}
@keyframes marker-pulse {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}
.leaflet-control-attribution, .leaflet-control-zoom { display: none !important; }

/* Counter */
.panel-counter { flex: 0 0 auto; }
.counter-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 9px; }
.counter-big {
  font-family: var(--font-stencil); color: var(--sw-yellow);
  font-size: 30px; letter-spacing: 0.06em; line-height: 1;
  text-shadow: 0 0 10px rgba(255,199,0,0.4);
}
.counter-of { color: rgba(255,199,0,0.5); font-size: 14px; font-family: var(--font-stencil); letter-spacing: 0.06em; }
.counter-cap { color: var(--sw-cyan); font-size: 9px; letter-spacing: 0.18em; margin-left: auto; }
.counter-bars { display: flex; gap: 3px; height: 22px; }
.counter-bar { flex: 1; background: rgba(255,199,0,0.12); border-radius: 1px; transition: 0.18s; }
.counter-bar.spent  { background: rgba(255,199,0,0.55); }
.counter-bar.active { background: var(--sw-yellow); box-shadow: 0 0 6px var(--sw-yellow); }

/* Thumb strip */
.panel-thumbs { padding: 6px 12px; box-sizing: border-box; border-color: var(--sw-orange); }
.thumb-strip {
  display: flex; gap: 6px; overflow-x: auto;
  flex: 1; min-height: 0; padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--sw-yellow) rgba(255,138,0,0.08);
}
.thumb-strip::-webkit-scrollbar { height: 5px; background: rgba(255,138,0,0.08); }
.thumb-strip::-webkit-scrollbar-track { background: rgba(255,138,0,0.08); border-radius: 2px; }
.thumb-strip::-webkit-scrollbar-thumb { background: var(--sw-yellow); border-radius: 2px; box-shadow: 0 0 4px rgba(255,199,0,0.4); }
.thumb {
  flex: 0 0 auto; height: 100%;
  aspect-ratio: 4 / 3;
  border: 2px solid rgba(255,199,0,0.3);
  overflow: hidden; position: relative;
  cursor: pointer; transition: 0.18s; background: #0a0a0a;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; opacity: 0.7; }
.thumb:hover { border-color: var(--sw-cyan); }
.thumb:hover img { opacity: 1; transform: scale(1.04); }
.thumb.active {
  border-color: var(--sw-cyan);
  box-shadow: 0 0 0 1px var(--sw-cyan), 0 0 10px var(--sw-cyan-glow);
}
.thumb.active img { opacity: 1; }
.thumb .thumb-idx {
  position: absolute; top: 2px; left: 4px;
  font-size: 9px; color: var(--sw-cyan);
  background: rgba(0,0,0,0.7); padding: 1px 4px;
  letter-spacing: 0.1em;
}

/* Slideshow dim (gallery only) */
.cockpit-shell.mode-gallery .panel { transition: opacity 0.5s ease, filter 0.5s ease; }
.cockpit-shell.mode-gallery.slideshow .panel:not(.panel-viewer) { opacity: 0.28; filter: saturate(0.55); }
.cockpit-shell.mode-gallery.slideshow .panel:not(.panel-viewer):hover { opacity: 0.85; filter: saturate(0.9); }
.cockpit-shell.mode-gallery.slideshow .panel-viewer { box-shadow: 0 0 0 1px var(--sw-cyan), 0 0 32px rgba(0, 229, 255, 0.25); }

/* Gallery tablet/mobile tweaks */
.cockpit-shell.dev-tablet.mode-gallery .panel-info,
.cockpit-shell.dev-tablet.mode-gallery .panel-map,
.cockpit-shell.dev-tablet.mode-gallery .panel-counter { grid-column: auto; grid-row: auto; }
.cockpit-shell.dev-tablet.mode-gallery .panel-info { grid-column: 1 / span 2; grid-row: 3; }
.cockpit-shell.dev-tablet.mode-gallery .panel-map  { grid-column: 1 / span 2; grid-row: 3; }
.cockpit-shell.dev-tablet.mode-gallery .panel-counter { grid-column: 1 / span 2; grid-row: 3; }

.cockpit-shell.dev-mobile.mode-gallery .panel { border-radius: 0; border-width: 0; }
.cockpit-shell.dev-mobile .mobile-header {
  grid-column: 1; grid-row: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 8px;
  background: #000;
}
.cockpit-shell.dev-mobile .mobile-logo {
  color: var(--sw-cyan); font-family: var(--font-stencil); font-size: 14px;
  letter-spacing: 0.18em;
}
.cockpit-shell.dev-mobile.mode-gallery .panel-viewer { grid-column: 1; grid-row: 2; border-color: transparent; }
.cockpit-shell.dev-mobile.mode-gallery .viewer-arrow { width: 40px; height: 60px; font-size: 16px; }
.cockpit-shell.dev-mobile.mode-gallery .panel-thumbs { grid-column: 1; grid-row: 3; padding: 6px 10px; height: 70px; }
.cockpit-shell.dev-mobile.mode-gallery .mobile-tabbar {
  grid-column: 1; grid-row: 4;
  display: flex; background: #000;
  border-top: 1px solid #222;
  padding: 8px 0 14px;
}
.cockpit-shell.dev-mobile.mode-gallery .tab {
  flex: 1; text-align: center; color: #555;
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 0; background: transparent; border: none; font-family: inherit;
}
.cockpit-shell.dev-mobile.mode-gallery .tab .tab-glyph { display: block; font-size: 16px; margin-bottom: 2px; }
.cockpit-shell.dev-mobile.mode-gallery .tab.active { color: var(--sw-cyan); }

.mobile-drawer {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 50; padding: 18px;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateY(0); }
.mobile-drawer .drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
  color: var(--sw-cyan); font-size: 11px; letter-spacing: 0.18em;
}
.mobile-drawer .drawer-close {
  background: transparent; border: 1px solid var(--sw-cyan); color: var(--sw-cyan);
  padding: 4px 10px; font-size: 10px; border-radius: 2px;
}

/* ============================================================
   BOOT
   ============================================================ */
#boot-screen {
  position: fixed; inset: 0; background: #000;
  z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--sw-cyan);
  font-family: var(--font-mono);
  transition: opacity 0.6s ease;
}
.boot-lens {
  width: 80px; height: 80px;
  margin-bottom: 10px;
  animation: pulseGlow 1.4s infinite alternate;
  filter: drop-shadow(0 0 6px var(--sw-cyan)) drop-shadow(0 0 16px rgba(0,229,255,0.5));
}
.boot-logo {
  font-family: var(--font-stencil);
  font-size: clamp(20px, 7.5vw, 40px); letter-spacing: 0.18em;
  color: var(--sw-cyan);
  text-shadow: 0 0 16px var(--sw-cyan);
  margin-bottom: 22px;
  animation: pulseGlow 1.4s infinite alternate;
  max-width: 95vw; text-align: center;
}
@keyframes pulseGlow { 0% { text-shadow: 0 0 8px var(--sw-cyan-glow); } 100% { text-shadow: 0 0 20px var(--sw-cyan); } }
.boot-log { font-size: 10px; width: min(360px, 90vw); line-height: 1.7; opacity: 0.75; margin-bottom: 16px; letter-spacing: 0.04em; }
.boot-log span { display: block; opacity: 0; animation: typeIn 0.1s forwards; }
.boot-log span:nth-child(1) { animation-delay: 0.2s; }
.boot-log span:nth-child(2) { animation-delay: 0.55s; }
.boot-log span:nth-child(3) { animation-delay: 0.95s; }
.boot-log span:nth-child(4) { animation-delay: 1.35s; }
@keyframes typeIn { to { opacity: 1; } }
.boot-bar { width: min(360px, 90vw); height: 2px; background: #1a1a1a; position: relative; overflow: hidden; }
.boot-fill { position: absolute; inset: 0 100% 0 0; background: var(--sw-cyan); box-shadow: 0 0 10px var(--sw-cyan); animation: loadBar 1.8s 0.2s ease-in-out forwards; }
@keyframes loadBar { 0% { right: 100%; } 50% { right: 45%; } 100% { right: 0%; } }

/* ============================================================
   GALLERY SPLASH
   ============================================================ */
.splash {
  position: absolute; inset: 0;
  z-index: 40;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
  background:
    radial-gradient(ellipse at center, rgba(0,229,255,0.10), transparent 60%),
    rgba(0, 8, 12, 0.55);
  backdrop-filter: blur(1px);
}
.splash.in  { opacity: 1; pointer-events: auto; cursor: pointer; }
.splash.out { opacity: 0; pointer-events: none; }
.splash-corner {
  position: absolute; width: 60px; height: 60px;
  border: 2px solid var(--sw-cyan);
  filter: drop-shadow(0 0 8px var(--sw-cyan));
  opacity: 0;
  animation: splash-corner-in 0.5s 0.1s forwards;
}
.splash.in .splash-corner.tl { top: 24px; left: 24px;  border-right: none; border-bottom: none; }
.splash.in .splash-corner.tr { top: 24px; right: 24px; border-left:  none; border-bottom: none; animation-delay: 0.15s; }
.splash.in .splash-corner.bl { bottom: 24px; left: 24px;  border-right: none; border-top: none;    animation-delay: 0.2s; }
.splash.in .splash-corner.br { bottom: 24px; right: 24px; border-left:  none; border-top: none;    animation-delay: 0.25s; }
.splash.out .splash-corner { animation: none; opacity: 0; }
@keyframes splash-corner-in {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 1; transform: scale(1); }
}
.splash-rail {
  position: absolute; left: 90px; right: 90px; height: 1px;
  background: linear-gradient(to right, transparent, var(--sw-cyan), transparent);
  opacity: 0; transform: scaleX(0);
  animation: splash-rail-in 0.6s 0.35s forwards;
}
.splash-rail.top { top: 54px; }
.splash-rail.bot { bottom: 54px; animation-delay: 0.4s; }
@keyframes splash-rail-in { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
.splash-inner {
  text-align: center;
  padding: 30px 48px;
  max-width: 760px;
  opacity: 0;
  animation: splash-text-in 0.45s 0.55s forwards;
}
@keyframes splash-text-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.splash.out .splash-inner, .splash.out .splash-rail { animation: none; opacity: 0; }
.splash-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--sw-cyan);
  font-size: 11px; letter-spacing: 0.32em;
  margin-bottom: 22px;
  font-weight: 700;
}
.splash-eyebrow .splash-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sw-yellow);
  box-shadow: 0 0 8px var(--sw-yellow);
  animation: pulse-dot 1.2s ease-in-out infinite;
}
.splash-eyebrow .splash-divider { width: 18px; height: 1px; background: var(--sw-cyan); opacity: 0.5; }
.splash-title {
  font-family: var(--font-stencil);
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 0.04em; line-height: 1.05;
  margin-bottom: 32px;
  text-shadow: 0 0 20px rgba(0,229,255,0.4), 0 4px 32px rgba(0,0,0,0.85);
}
.splash-spec-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px 32px; margin-bottom: 28px; text-align: left;
}
.splash-spec { border-left: 1px solid rgba(0,229,255,0.4); padding-left: 14px; }
.splash-spec-label {
  font-size: 9px; letter-spacing: 0.22em;
  color: rgba(0,229,255,0.65);
  margin-bottom: 4px; text-transform: uppercase;
}
.splash-spec-value {
  font-family: var(--font-stencil);
  font-size: 18px; color: #fff; letter-spacing: 0.05em;
}
.splash-spec-value.status-ok { color: var(--sw-yellow); font-size: 13px; }
.splash-hint {
  color: rgba(0,229,255,0.65);
  font-size: 10px; letter-spacing: 0.3em;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

  .shell-scaler {
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
  }
  .cockpit-shell.dev-mobile.mode-home,
  .cockpit-shell.dev-mobile.mode-gallery {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    background: var(--sw-bg) !important;
    padding: 6px !important;
    gap: 6px !important;
  }
}

/* ============================================================
   MOBILE APP — airgapped layout (real mobile devices only)
   No cockpit-shell, no shell-scaler, no stage scaling.
   Prefixed .m-* to guarantee zero collision with desktop CSS.
   ============================================================ */
.m-app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--sw-bg);
  overflow: hidden;
  font-family: var(--font-mono);
}

/* Panels inside .m-app lose the cockpit-shell border treatment */
.m-app .panel { border-width: 0; border-radius: 0; padding: 0; }

/* Globe fills all available space between header and footer */
.m-app .panel-globe  { flex: 1 1 auto; min-height: 0; position: relative; }
.m-app .panel-viewer { flex: 1 1 auto; min-height: 0; position: relative; }

/* Fixed-height chrome elements */
.m-app .mobile-home-header { flex-shrink: 0; }
.m-app .mobile-home-tabbar { flex-shrink: 0; }
.m-app .mobile-header      { flex-shrink: 0; }
.m-app .panel-thumbs       { flex-shrink: 0; }
.m-app .mobile-tabbar      { flex-shrink: 0; }
.m-app .panel-infoband     { flex-shrink: 0; }

/* Mobile tab bars — ensure visible even if m-app CSS not loaded */
.mobile-home-tabbar .tab,
.mobile-tabbar .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: rgba(0,229,255,0.45);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.18s;
}
.mobile-home-tabbar .tab.active,
.mobile-tabbar .tab.active {
  color: var(--sw-cyan);
}
.mobile-home-tabbar .tab .tab-glyph,
.mobile-tabbar .tab .tab-glyph {
  font-size: 14px;
  display: block;
}

/* ============================================================
   LAPTOP — destination column overrides
   All scoped to .dev-laptop so desktop is completely untouched.
   Pills are compact so they fit without smushing.
   ============================================================ */
.cockpit-shell.dev-laptop .dest-col-stack {
  overflow-y: auto;
  gap: 2px;
  justify-content: flex-start;
}
.cockpit-shell.dev-laptop .dest-col-stack::-webkit-scrollbar { width: 3px; }
.cockpit-shell.dev-laptop .dest-col-stack::-webkit-scrollbar-thumb { background: var(--sw-yellow); border-radius: 2px; }
.cockpit-shell.dev-laptop .dest-col-stack::-webkit-scrollbar-track { background: rgba(255,138,0,0.06); }
.cockpit-shell.dev-laptop .dest-pill {
  font-size: 10px;
  padding: 4px 6px;
  border-radius: 6px;
  min-height: 24px;
  flex-shrink: 0;
}
.cockpit-shell.dev-laptop .dest-pill-empty {
  padding: 4px 6px;
  border-radius: 6px;
  min-height: 24px;
  flex-shrink: 0;
  margin: 0 8px;
}
.cockpit-shell.dev-laptop .dest-search {
  padding: 4px 7px;
  margin-bottom: 5px;
}
.cockpit-shell.dev-laptop .label {
  font-size: 9px;
  padding: 4px 8px;
}

/* ============================================================
   LAPTOP — infoband, engage card, header scaling
   All scoped to .dev-laptop — zero desktop impact.
   ============================================================ */

/* Info band: smaller font so gallery name fits in 100px footer */
.cockpit-shell.dev-laptop .infoband-loc {
  font-size: 26px;
  letter-spacing: 0.14em;
}
.cockpit-shell.dev-laptop .infoband-path {
  font-size: 9px;
  letter-spacing: 0.18em;
}
.cockpit-shell.dev-laptop .panel-infoband {
  padding: 10px 16px;
  gap: 3px;
}

/* Logo header: tighter on laptop */
.cockpit-shell.dev-laptop .logo-svg {
  max-width: 200px;
}
.cockpit-shell.dev-laptop .gallery-header {
  grid-template-columns: 220px 1fr 220px;
  padding: 0;
}
.cockpit-shell.dev-laptop .gallery-title {
  font-size: 16px;
}

/* Engage card: scale down so it fits inside the globe panel.
   Panel is overflow:hidden so card must fit in ~530px total. */
.cockpit-shell.dev-laptop .engage-left     { padding: 8px 4px 8px 20px; }
.cockpit-shell.dev-laptop .engage-title    { font-size: 16px; }
.cockpit-shell.dev-laptop .engage-cta      { font-size: 9px; padding: 6px 12px; }
.cockpit-shell.dev-laptop .engage-cancel   { font-size: 7px; bottom: 44px; }
.cockpit-shell.dev-laptop .coord-lock      { width: 170px; height: 170px; }
.cockpit-shell.dev-laptop .cl-r1           { width: 162px; height: 162px; }
.cockpit-shell.dev-laptop .cl-r2           { width: 122px; height: 122px; }

/* Laptop: hide empty placeholder pills — filled pills with natural
   whitespace at bottom looks cleaner than dim placeholder columns */
.cockpit-shell.dev-laptop .dest-pill-empty { display: none; }

/* Give filled pills slightly more vertical breathing room */
.cockpit-shell.dev-laptop .dest-pill {
  padding: 6px 7px;
  margin-bottom: 1px;
}

/* ============================================================
   LAPTOP — tighter shell, smaller header, more pill spacing
   ============================================================ */

/* Shell padding/gap reduced so header starts closer to top */
.cockpit-shell.dev-laptop {
  gap: 6px;
  padding: 6px;
}

/* Reduce header row height */
.cockpit-shell.dev-laptop.mode-home {
  grid-template-rows: 72px 1fr 100px;
}
.cockpit-shell.dev-laptop.mode-gallery {
  grid-template-rows: 72px 1fr 100px;
}

/* Logo smaller on laptop to fit 72px header */
.cockpit-shell.dev-laptop .logo-svg {
  max-width: 170px;
}
.cockpit-shell.dev-laptop button .logo-tag {
  font-size: 8px;
  letter-spacing: 0.22em;
}

/* More space between pills now that empty ones are gone */
.cockpit-shell.dev-laptop .dest-col-stack {
  gap: 5px;
}

/* Gallery header fits 72px */
.cockpit-shell.dev-laptop .gallery-header {
  grid-template-columns: 200px 1fr 200px;
}
.cockpit-shell.dev-laptop .gallery-title {
  font-size: 15px;
  letter-spacing: 0.12em;
}

/* Laptop: hide the tagline under logo — too much for 72px header */
.cockpit-shell.dev-laptop button .logo-tag { display: none; }

/* ============================================================
   MOBILE APP — v4.5
   All rules scoped to .m-app. Zero desktop impact.
   CHANGELOG from v4.4:
   - Sheets: full screen (top:0), no border-radius, fully covers home
   - Story-style segmented progress bar, 10px gap from top
   - Frame counter removed from frames header; gallery name only (larger)
   - Play button → pill above thumb strip
   - Grid toggle → far right of thumb strip; grid drawer slides up
   - Thumbnail frame numbers: small badge bottom-center
   - Tap hint: larger pill, higher position, right arrow indicator
   - Stack: only orange frame number, no gallery name in caption
   - Grid/Stack: sticky header (MobStickyHeader) above scroll
   - Nav unselected: rgba(255,255,255,.52)
   - All subtext: increased opacity/size throughout
   ============================================================ */

.m-app {
  --cy:      #00e5ff;
  --cy-dim:  rgba(0,229,255,.55);
  --cy-glow: rgba(0,229,255,.5);
  --or:      #FF8A00;
  --or-dim:  rgba(255,138,0,.65);
  --yl:      #FFC700;
  --bg:      #0D0D0D;
  --panel:   rgba(9,9,9,.98);
  --mono:    'JetBrains Mono', monospace;
  --stencil: Audiowide, monospace;
  --nav-h:   60px;
  --close-h: 52px;
  --thumb-h: 60px;
  --story-t: 10px;   /* gap from very top to story bar */
  --sticky-h: 48px;   /* sticky header height for grid/stack — browser chrome provides its own offset */

  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  background: var(--bg); overflow: hidden;
  font-family: var(--mono);
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* ── SCREENS ── */
.mob-screen { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .28s ease; will-change: opacity; }
.mob-screen.active { opacity: 1; pointer-events: all; }
/* Explicitly block children of inactive screens — prevents pointer-events:all on
   descendants (e.g. mob-cv-hdr) from intercepting taps meant for the active screen */
.mob-screen:not(.active) * { pointer-events: none !important; }

/* ── HOME NAV ── */
.mob-nav {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(7,7,7,.97); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid rgba(0,229,255,.12);
  display: flex; align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mob-nav-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 8px 0; background: transparent; border: none; cursor: pointer;
  color: rgba(255,255,255,.52); font-family: var(--mono); transition: color .15s; position: relative;
}
.mob-nav-tab svg { width: 22px; height: 22px; flex-shrink: 0; }
.mob-nav-tab.active { color: var(--cy); }
.mob-nav-tab.active::before { display: none; }
.mob-nav-lbl { font-size: 8px; letter-spacing: .16em; text-transform: uppercase; }

/* ── GALLERY NAV (FRAMES + STACK only) ── */
.mob-gnav { /* inherits .mob-nav */ }
.mob-garrow {
  width: 52px; flex-shrink: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; padding: 8px 0;
  background: transparent; border: none; cursor: pointer;
  color: rgba(255,255,255,.52); font-family: var(--mono); transition: color .15s;
}
.mob-garrow:disabled { color: rgba(255,255,255,.18); cursor: default; }
.mob-garrow:not(:disabled):active { color: var(--or); }
.mob-garrow svg { width: 20px; height: 20px; }
.mob-garrow-lbl { font-size: 7px; letter-spacing: .12em; }
.mob-gdiv { width: 1px; background: rgba(0,229,255,.1); align-self: stretch; margin: 10px 0; flex-shrink: 0; }
.mob-gmode {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 8px 0; background: transparent; border: none; cursor: pointer;
  color: rgba(255,255,255,.52); font-family: var(--mono); transition: color .15s; position: relative;
}
.mob-gmode svg { width: 20px; height: 20px; }
.mob-gmode.active { color: var(--cy); }
.mob-gmode.active::before { display: none; }
.mob-gmode-lbl { font-size: 7.5px; letter-spacing: .14em; }

/* ── CAROUSEL ── */
.mob-carousel { position: absolute; inset: 0; z-index: 0; cursor: pointer; }
.mob-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; will-change: opacity; }
.mob-slide.active { opacity: 1; }
.mob-slide-img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Pause / play button — outside carousel, absolute on mob-screen */
.mob-carousel-playbtn {
  position: absolute;
  bottom: calc(var(--nav-h) + 14px);
  right: 18px;
  z-index: 6;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.mob-carousel-playbtn svg { width: 11px; height: 11px; }
.mob-carousel-playbtn:active { background: rgba(0,0,0,0.7); border-color: rgba(255,255,255,0.5); color: #fff; }
.mob-carousel-playbtn.paused { border-color: rgba(255,255,255,0.4); color: rgba(255,255,255,0.9); }
.mob-vig-t { position: absolute; top: 0; left: 0; right: 0; height: 250px; background: linear-gradient(to bottom, rgba(0,0,0,.65), transparent); z-index: 1; pointer-events: none; }
.mob-vig-b { position: absolute; bottom: 0; left: 0; right: 0; height: 400px; background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.5) 50%, transparent 100%); z-index: 1; pointer-events: none; }
.mob-c-progress { position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 10; background: rgba(0,229,255,.07); pointer-events: none; }
.mob-c-progress-fill { height: 100%; background: var(--cy); box-shadow: 0 0 6px var(--cy); transition: width .4s linear; }

/* ── LOGO BADGE ── */
.mob-logo-badge { position: absolute; top: 36px; left: 18px; z-index: 10; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.mob-logo-svg-wrap { width: 220px; filter: drop-shadow(0 0 10px rgba(0,229,255,.35)); }
.mob-logo-sub { font-size: 9.5px; letter-spacing: .22em; color: rgba(0,229,255,.9); text-shadow: 0 1px 8px rgba(0,0,0,.75); width: 220px; text-align: center; }

/* ── CAROUSEL INFO ── */
.mob-carousel-info { position: absolute; left: 20px; right: 20px; z-index: 5; bottom: calc(var(--nav-h) + 14px); transition: opacity .25s, transform .25s; }
.mob-ci-name { font-family: var(--stencil); font-size: 22px; letter-spacing: .05em; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.75); line-height: 1.1; margin-bottom: 9px; }
.mob-ci-pills { display: flex; gap: 7px; margin-bottom: 13px; flex-wrap: wrap; }
.mob-ci-pill { font-size: 9px; letter-spacing: .16em; padding: 4px 10px; border: 1px solid rgba(255,138,0,.55); color: #FF8A00; border-radius: 2px; background: rgba(0,0,0,.4); }
.mob-ci-cta { font-size: 10px; letter-spacing: .2em; color: var(--cy); padding: 8px 18px; border: 1px solid rgba(0,229,255,.4); border-radius: 2px; background: rgba(0,229,255,.07); font-family: var(--mono); cursor: pointer; transition: background .15s; }
.mob-ci-cta:active { background: rgba(0,229,255,.18); }

/* ── SHEETS — full screen, no rounded corners ── */
.mob-sheet {
  position: absolute;
  top: 0; bottom: var(--nav-h); left: 0; right: 0;  /* full screen above nav */
  background: var(--panel);
  backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
  border: none; border-radius: 0;                   /* no rounded corners */
  z-index: 50; display: flex; flex-direction: column;
  transform: translateY(110%);
  transition: transform .44s cubic-bezier(.16,1,.3,1);
}
.mob-sheet.open { transform: translateY(0); }
.mob-sheet-scan { position: absolute; top: 0; left: 28px; right: 28px; height: 1px; background: linear-gradient(to right, transparent, var(--cy), transparent); opacity: .5; pointer-events: none; }
.mob-sheet-handle { flex-shrink: 0; padding: 12px 0 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; user-select: none; -webkit-user-select: none; }
.mob-sheet-pill { width: 38px; height: 4px; border-radius: 2px; background: rgba(0,229,255,.22); transition: background .15s; }
.mob-sheet-handle:active .mob-sheet-pill { background: rgba(0,229,255,.5); }
.mob-sheet-hdr { flex-shrink: 0; padding: 0 20px 14px; display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid rgba(0,229,255,.1); }
.mob-sheet-title { font-family: var(--stencil); font-size: 14px; letter-spacing: .12em; color: var(--cy); }
.mob-sheet-sub { font-size: 9px; letter-spacing: .18em; color: rgba(0,229,255,.65); margin-top: 4px; }
.mob-sheet-close { background: transparent; border: 1px solid rgba(0,229,255,.35); color: rgba(0,229,255,.75); font-size: 9px; letter-spacing: .16em; padding: 5px 13px; border-radius: 2px; font-family: var(--mono); cursor: pointer; }

.mob-sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mob-sheet-body::-webkit-scrollbar { display: none; }

/* ── EXPLORE GRID ── */
.mob-trips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 12px 14px 16px; }
.mob-trip-tile { position: relative; overflow: hidden; border-radius: 7px; cursor: pointer; aspect-ratio: 3/2; border: 1px solid rgba(0,229,255,.1); transition: transform .13s, border-color .13s; }
.mob-trip-tile:active { transform: scale(.95); border-color: rgba(0,229,255,.35); }
.mob-tt-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mob-tt-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.88) 0%, transparent 55%); padding: 8px; display: flex; flex-direction: column; justify-content: flex-end; }
.mob-tt-region { position: absolute; top: 6px; right: 6px; font-size: 7px; letter-spacing: .18em; color: var(--cy); border: 1px solid rgba(0,229,255,.35); padding: 2px 5px; border-radius: 2px; background: rgba(0,0,0,.55); }
.mob-tt-name { font-size: 10px; letter-spacing: .05em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.mob-tt-meta { font-size: 8.5px; letter-spacing: .13em; color: rgba(255,138,0,.8); }

/* ── ABOUT BODY ── */
.mob-about-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 20px 24px 32px; display: flex; flex-direction: column; }
.mob-about-body::-webkit-scrollbar { display: none; }
.mob-about-wordmark { display: flex; justify-content: center; margin-bottom: 14px; }
.mob-about-tagline { font-size: 10px; letter-spacing: .24em; color: rgba(0,229,255,.7); text-align: center; margin-bottom: 24px; }
.mob-about-divider { height: 1px; background: linear-gradient(to right, transparent, rgba(0,229,255,.28), transparent); margin-bottom: 20px; }
/* Description sits at top, after tagline */
.mob-about-desc { font-size: 14px; letter-spacing: .02em; color: rgba(255,255,255,.72); line-height: 1.85; margin-bottom: 0; text-align: center; }
.mob-about-link { color: var(--cy); text-decoration: none; }
.mob-about-link:active { opacity: .7; }
/* Spacer pushes stats to bottom */
.mob-about-spacer { flex: 1; min-height: 24px; }
.mob-about-stat-lbl { font-size: 8.5px; letter-spacing: .22em; color: rgba(0,229,255,.7); margin-bottom: 12px; border-bottom: 1px solid rgba(0,229,255,.1); padding-bottom: 8px; }
.mob-about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mob-about-stat { background: rgba(0,229,255,.04); border: 1px solid rgba(0,229,255,.14); border-radius: 6px; padding: 10px 6px; text-align: center; }
.mob-stat-val { font-family: var(--stencil); font-size: 20px; color: var(--or); letter-spacing: .02em; line-height: 1; }
.mob-stat-key { font-size: 8.5px; letter-spacing: .2em; color: rgba(0,229,255,.7); margin-top: 6px; }

/* ── GALLERY SPLASH ── */
.mob-splash { position: absolute; inset: 0; z-index: 200; background: rgba(0,0,0,.76); backdrop-filter: blur(9px); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .32s; }
.mob-splash.visible { opacity: 1; pointer-events: all; }
.mob-spc { position: absolute; width: 26px; height: 26px; border-color: var(--cy); border-style: solid; filter: drop-shadow(0 0 4px var(--cy)); }
.mob-spc.tl { top: 28px; left: 28px; border-width: 1.5px 0 0 1.5px; }
.mob-spc.tr { top: 28px; right: 28px; border-width: 1.5px 1.5px 0 0; }
.mob-spc.bl { bottom: 28px; left: 28px; border-width: 0 0 1.5px 1.5px; }
.mob-spc.br { bottom: 28px; right: 28px; border-width: 0 1.5px 1.5px 0; }
.mob-sp-eyebrow { display: flex; align-items: center; gap: 9px; font-size: 8px; letter-spacing: .28em; color: var(--cy); margin-bottom: 12px; }
.mob-sp-ydot { width: 6px; height: 6px; border-radius: 50%; background: var(--yl); box-shadow: 0 0 8px var(--yl); animation: mobPulse 1.2s infinite; }
@keyframes mobPulse { 0%,100%{opacity:1} 50%{opacity:.18} }
.mob-sp-name { font-family: var(--stencil); font-size: 24px; color: #fff; letter-spacing: .06em; text-align: center; text-shadow: 0 0 16px rgba(0,229,255,.3), 0 4px 20px rgba(0,0,0,.9); margin-bottom: 16px; padding: 0 20px; line-height: 1.2; }
.mob-sp-specs { display: flex; gap: 16px; margin-bottom: 16px; }
.mob-sp-spec { text-align: center; border-left: 1px solid rgba(0,229,255,.25); padding-left: 14px; }
.mob-sp-spec:first-child { border-left: none; padding-left: 0; }
.mob-sp-lbl { font-size: 8px; letter-spacing: .2em; color: rgba(0,229,255,.65); margin-bottom: 3px; }
.mob-sp-val { font-family: var(--stencil); font-size: 13px; color: #fff; }
.mob-sp-hint { font-size: 8px; letter-spacing: .26em; color: rgba(0,229,255,.5); animation: mobBlink 1.8s infinite; }
@keyframes mobBlink { 0%,100%{opacity:.28} 50%{opacity:1} }

/* ── X CLOSE (frames mode) ── */
.mob-close { position: absolute; top: 14px; right: 16px; z-index: 95; }
.mob-close-btn { background: rgba(0,0,0,.52); border: 1.5px solid rgba(255,255,255,.28); border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: rgba(255,255,255,.8); transition: background .15s, border-color .15s, color .15s; backdrop-filter: blur(8px); -webkit-tap-highlight-color: rgba(0,0,0,0); }
.mob-close-btn:active { background: rgba(0,0,0,.8); border-color: rgba(255,255,255,.6); color: #fff; }
.mob-close-btn svg { width: 16px; height: 16px; }

/* ── STORY BAR — segmented, 10px from top ── */
.mob-story-bar {
  position: absolute; top: var(--story-t); left: 12px; right: 12px;
  z-index: 96; display: flex; gap: 3px; height: 3px; pointer-events: none;
}
.mob-story-seg {
  flex: 1; height: 100%; border-radius: 1.5px;
  background: rgba(255,255,255,.3);
  transition: background .3s;
}
.mob-story-seg.done   { background: rgba(255,138,0,.9); }
.mob-story-seg.active { background: #fff; box-shadow: 0 0 4px rgba(255,255,255,.6); }

/* ── FRAMES VIEW — photo + header ── */
.mob-cv-outer {
  position: absolute; inset: 0; background: #000;
  padding-top: calc(var(--story-t) + 8px);
  padding-bottom: calc(var(--nav-h) + var(--thumb-h));
  display: flex; align-items: center; justify-content: center;
  user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0); touch-action: manipulation;
}
/* Left / right tap zones — full-height, half-width invisible hit targets */
.mob-cv-tap {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  z-index: 2;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  cursor: pointer;
}
.mob-cv-tap-left  { left: 0; }
.mob-cv-tap-right { right: 0; }
.mob-cv-photo { max-width: 100%; max-height: 100%; object-fit: contain; display: block; pointer-events: none; -webkit-tap-highlight-color: rgba(0,0,0,0); }

/* Header — gallery name left, share icon right, X button far right */
.mob-cv-hdr {
  position: absolute; top: calc(var(--story-t) + 8px); left: 18px; right: 18px;
  z-index: 94; pointer-events: all;
  padding-top: 18px;
  background: linear-gradient(to bottom, rgba(0,0,0,.65) 0%, transparent 100%);
  padding-bottom: 8px;
  display: flex; align-items: center; gap: 0;
}
/* mob-cv-hdr-left removed — name and share are direct flex children */
.mob-cv-gal-name {
  font-family: var(--stencil); font-size: 17px; letter-spacing: .08em;
  color: rgba(255,255,255,.92); line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1; min-width: 0;
}
/* Share button — small frosted circle, directly after gallery name */
.mob-share-btn {
  flex-shrink: 0; margin-left: 10px;
  background: rgba(0,0,0,.4); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.22); border-radius: 50%;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: rgba(255,255,255,.7);
  transition: background .15s, border-color .15s, color .15s;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.mob-share-btn:active { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.5); color: #fff; }
.mob-share-btn svg { width: 13px; height: 13px; }
/* X close button in viewer header — same size/style as share button */
.mob-cv-close-btn {
  flex-shrink: 0; margin-left: 8px;
  background: rgba(0,0,0,.4); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.22); border-radius: 50%;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: rgba(255,255,255,.7);
  transition: background .15s, border-color .15s;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.mob-cv-close-btn:active { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.5); color: #fff; }
.mob-cv-close-btn svg { width: 11px; height: 11px; }

/* ── TAP HINT — centered in photo area, visible over photo ── */
.mob-tap-hint {
  position: absolute;
  /* Center in photo area: top of photo = story-t+8, bottom = nav+thumb */
  /* Use top:50% and adjust with transform to account for asymmetric bars */
  top: calc(50% - (var(--nav-h) + var(--thumb-h) - var(--story-t)) / 2);
  left: 50%; transform: translate(-50%, -50%);
  z-index: 92; white-space: nowrap;
  font-size: 12px; letter-spacing: .22em; color: #fff;
  background: rgba(0,0,0,.62); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 24px; padding: 10px 24px;
  opacity: 0; pointer-events: none; transition: opacity .5s ease;
  text-shadow: none;
}
.mob-tap-hint.visible { opacity: 1; }

/* Right arrow indicator — vertically centered alongside hint */
.mob-tap-arrow {
  position: absolute;
  top: calc(50% - (var(--nav-h) + var(--thumb-h) - var(--story-t)) / 2);
  right: 20px;
  transform: translateY(-50%);
  z-index: 92; pointer-events: none;
  font-size: 44px; color: rgba(255,255,255,.75);
  text-shadow: 0 0 14px rgba(0,0,0,.9);
  opacity: 0; transition: opacity .5s ease;
  animation: mobArrowPulse 1s ease-in-out infinite;
  line-height: 1;
}
.mob-tap-arrow.visible { opacity: 1; }
@keyframes mobArrowPulse { 0%,100%{transform:translateY(-50%) translateX(0)} 50%{transform:translateY(-50%) translateX(6px)} }

/* ── NC CORNERS ── */
.mob-nc { position: absolute; width: 14px; height: 14px; border-color: rgba(0,229,255,.55); border-style: solid; pointer-events: none; z-index: 92; opacity: 1; transition: opacity .6s ease; filter: drop-shadow(0 0 4px var(--cy)); }
.mob-nc.hidden { opacity: 0; }
.mob-nc.tl { top: calc(var(--story-t) + 12px); left: 14px; border-width: 1.5px 0 0 1.5px; }
.mob-nc.tr { top: calc(var(--story-t) + 12px); right: 14px; border-width: 1.5px 1.5px 0 0; }
.mob-nc.bl { bottom: calc(var(--nav-h) + var(--thumb-h) + 4px); left: 14px; border-width: 0 0 1.5px 1.5px; }
.mob-nc.br { bottom: calc(var(--nav-h) + var(--thumb-h) + 4px); right: 14px; border-width: 0 1.5px 1.5px 0; }

/* ── PLAY PILL — above thumb strip, centered ── */
.mob-play-pill {
  position: absolute;
  bottom: calc(var(--nav-h) + var(--thumb-h) + 14px);
  left: 50%; transform: translateX(-50%);
  z-index: 93;
  display: flex; align-items: center; gap: 7px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 20px; padding: 7px 16px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .22em;
  color: rgba(255,255,255,.75); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  white-space: nowrap;
}
.mob-play-pill svg { width: 12px; height: 12px; flex-shrink: 0; }
.mob-play-pill:active { background: rgba(0,0,0,.8); }
.mob-play-pill.playing { border-color: rgba(255,138,0,.55); color: var(--or); }

/* ============================================================
   v0.62 — MOBILE BOTTOM STACK
   Groups section context + play pill as a single anchored unit
   above the thumb strip so they can never collide regardless of
   photo aspect ratio. Pointer-events off at container level;
   re-enabled on the play button only.
   ============================================================ */
.mob-cv-bottom-stack {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(var(--nav-h) + var(--thumb-h) + 14px);
  z-index: 93;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
/* Section context: override old absolute positioning — now in flex flow */
.mob-cv-bottom-stack .mob-cv-section {
  position: relative;
  bottom: auto; left: auto; right: auto;
  width: calc(100% - 24px);
  pointer-events: none;
}
/* Play pill: override old absolute positioning — re-enable taps */
.mob-cv-bottom-stack .mob-play-pill {
  position: relative;
  bottom: auto; left: auto;
  transform: none;
  pointer-events: all;
  flex-shrink: 0;
}

/* ── THUMB STRIP — grid toggle on far right ── */
.mob-cv-thumbs {
  position: absolute; bottom: var(--nav-h); left: 0; right: 0; z-index: 91;
  height: var(--thumb-h);
  background: rgba(7,7,7,.9); backdrop-filter: blur(14px);
  border-top: 1px solid rgba(0,229,255,.1);
  display: flex; align-items: center; gap: 0; padding: 0;
}
.mob-cv-thumb-scroll { flex: 1; display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; padding: 0 8px; }
.mob-cv-thumb-scroll::-webkit-scrollbar { display: none; }

/* Thumbnail item — frame number badge bottom-center */
.mob-t-item {
  flex-shrink: 0; width: 56px; height: 44px; border-radius: 3px; overflow: hidden;
  border: 1.5px solid transparent; cursor: pointer; opacity: .62;
  transition: opacity .15s, border-color .15s; position: relative;
}
.mob-t-item.active { border-color: var(--or); opacity: 1; box-shadow: 0 0 6px rgba(255,138,0,.28); }
.mob-t-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Frame number — bottom-center, overlaid */
.mob-t-num {
  position: absolute; bottom: 2px; left: 0; right: 0;
  text-align: center;
  font-size: 7px; letter-spacing: .06em;
  color: rgba(255,255,255,.85);
  text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 6px rgba(0,0,0,.8);
  pointer-events: none;
}
.mob-t-item.active .mob-t-num { color: var(--or); }

/* Grid toggle button — far right of strip */
.mob-grid-toggle {
  flex-shrink: 0; width: 50px; height: var(--thumb-h);
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; border-left: 1px solid rgba(0,229,255,.1);
  cursor: pointer; color: rgba(255,255,255,.45);
  transition: color .15s, background .15s;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.mob-grid-toggle svg { width: 20px; height: 20px; }
.mob-grid-toggle:active, .mob-grid-toggle.active { color: var(--cy); background: rgba(0,229,255,.06); }

/* ── GRID DRAWER — slides up from thumb strip ── */
.mob-grid-drawer {
  position: absolute;
  bottom: calc(var(--nav-h) + var(--thumb-h));
  left: 0; right: 0;
  height: 64%;
  background: rgba(9,9,9,.96); backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,229,255,.15);
  z-index: 90;
  transform: translateY(100%);
  transition: transform .38s cubic-bezier(.16,1,.3,1);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.mob-grid-drawer::-webkit-scrollbar { display: none; }
.mob-grid-drawer.open { transform: translateY(0); }
.mob-grid-drawer-inner { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; padding: 3px; }
.mob-drawer-cell { position: relative; aspect-ratio: 1; overflow: hidden; cursor: pointer; background: #111; }
.mob-drawer-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .13s; }
.mob-drawer-cell:active img { opacity: .62; }
.mob-drawer-cell.mob-drawer-active::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--or); pointer-events: none; }
.mob-drawer-num {
  position: absolute; bottom: 3px; left: 0; right: 0; text-align: center;
  font-size: 8px; letter-spacing: .06em; color: rgba(255,255,255,.8);
  text-shadow: 0 1px 4px rgba(0,0,0,.95);
}
.mob-drawer-cell.mob-drawer-active .mob-drawer-num { color: var(--or); }

/* ── STICKY HEADER (stack + grid) ── */
.mob-sticky-hdr {
  position: absolute; top: 0; left: 0; right: 0; z-index: 89;
  /* Auto-height: safe-area for status bar + content */
  padding-top: max(12px, env(safe-area-inset-top, 12px));
  padding-bottom: 10px; padding-left: 18px; padding-right: 18px;
  background: rgba(0,0,0,.78); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,229,255,.1);
  display: flex; align-items: flex-end;  /* content anchors to bottom of padding */
}
/* Adjust stack/grid scroll to account for dynamic header */
.mob-stack-view  { padding-top: calc(max(12px, env(safe-area-inset-top, 12px)) + 42px); }
.mob-grid-view   { padding-top: calc(max(12px, env(safe-area-inset-top, 12px)) + 42px); }
.mob-sticky-info { flex: 1; min-width: 0; }
.mob-sticky-name { font-family: var(--stencil); font-size: 15px; letter-spacing: .09em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.mob-sticky-meta { font-size: 9px; letter-spacing: .16em; color: var(--or-dim); }

/* ── STACK VIEW ── */
.mob-stack-view {
  position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: var(--nav-h);
  z-index: 1; background: var(--bg);
}
.mob-stack-view::-webkit-scrollbar { display: none; }
.mob-stack-item { position: relative; background: #000; margin-bottom: 4px; }
.mob-stack-item img { width: 100%; display: block; object-fit: cover; }
/* Caption: only orange frame number, right-aligned */
.mob-stack-cap { padding: 7px 14px 8px; display: flex; justify-content: flex-end; }
.mob-stack-cap-num { font-family: var(--stencil); font-size: 10px; color: var(--or-dim); letter-spacing: .08em; }

/* ── GRID VIEW (standalone mode from nav) ── */
.mob-grid-view {
  position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: var(--nav-h);
  z-index: 1; background: var(--bg);
}
.mob-grid-view::-webkit-scrollbar { display: none; }
.mob-grid-inner { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; padding: 4px; }
.mob-grid-cell { position: relative; aspect-ratio: 1; overflow: hidden; cursor: pointer; background: #111; }
.mob-grid-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .13s; }
.mob-grid-cell:active img { opacity: .62; }
.mob-grid-num { position: absolute; bottom: 3px; left: 0; right: 0; text-align: center; font-size: 7.5px; letter-spacing: .08em; color: rgba(255,255,255,.75); text-shadow: 0 1px 4px rgba(0,0,0,.95); }
.mob-grid-active::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--or); pointer-events: none; }

/* ── LOADING ── */
.mob-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; z-index: 5; background: var(--bg); }
.mob-ring { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(0,229,255,.12); border-top-color: var(--cy); animation: mobSpin 1s linear infinite; }
@keyframes mobSpin { to { transform: rotate(360deg); } }
.mob-loading-txt { font-size: 9px; letter-spacing: .24em; color: rgba(0,229,255,.65); }

/* ── MINI GLOBE — About page ── */
.mob-mini-globe-wrap {
  width: 220px; height: 220px;
  aspect-ratio: 1;              /* belt+suspenders square enforcement */
  flex-shrink: 0;
  margin: 0 auto 18px;
  border-radius: 50%;
  position: relative;
  background: #000;
  border: 1.5px solid rgba(0,229,255,.28);
  box-shadow:
    0 0 0 1px rgba(0,229,255,.08),
    0 0 32px rgba(0,229,255,.1),
    inset 0 0 20px rgba(0,0,0,.5);
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%);
}
/* SVG fills wrapper exactly — viewBox="0 0 240 240" declared in JSX ensures square coords */
.mob-mini-globe-svg { display: block; width: 100%; height: 100%; }

/* Sphere — fills full circle; gradient gives depth illusion */
.mg-sphere {
  fill: url(#mg-sphere-grad);
  stroke: rgba(0,229,255,.18);
  stroke-width: 0.8;
}

/* Graticule — more visible than before */
.mg-graticule { fill: none; stroke: rgba(0,229,255,.16); stroke-width: 0.45; }

/* Non-gallery countries */
.mg-country { fill: rgba(0,229,255,.12); stroke: rgba(0,229,255,.32); stroke-width: 0.6; }

/* Gallery countries — warm orange highlight */
.mg-country-active {
  fill: rgba(255,138,0,.38);
  stroke: rgba(255,138,0,.85);
  stroke-width: 1;
}

/* Dots */
.mg-dot-ring {
  fill: rgba(255,138,0,.12);
  stroke: rgba(255,138,0,.65);
  stroke-width: 1.4;
  animation: mgRingPulse 2.4s ease-in-out infinite;
}
.mg-dot-core {
  fill: #FF8A00;
  filter: drop-shadow(0 0 3px rgba(255,138,0,.9));
}
@keyframes mgRingPulse {
  0%,100% { opacity: .25; }
  50%      { opacity: .9; }
}

/* ── KSSL.RUN SIGNATURE ── */
.mob-kssl-sig {
  display: flex; align-items: center; gap: 5px; justify-content: center;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.3);
}
.mob-kssl-sig svg { flex-shrink: 0; color: rgba(0,229,255,.6); }
.mob-kssl-link {
  color: rgba(255,255,255,.5); text-decoration: none;
  transition: color .15s;
}
.mob-kssl-link:hover { color: rgba(0,229,255,.9); }

/* ================================================================
   CAROUSEL HOME LAYOUT — v56  (Gallery Grid)
   NO grid-template-rows override on cockpit — mode-gallery's own
   row heights apply, keeping header/footer identical to app.
   Tiles use 1fr × 1fr cells (fill grid), no aspect-ratio conflict.
   Large gap shows SpaceBackdrop stars and nebulae between cards.
   ================================================================ */

/* Globe toggle */
.cs-globe-btn {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.07em;
  padding: 5px 12px;
  background: transparent;
  border: 1px solid rgba(0,229,255,0.3);
  color: rgba(0,229,255,0.75);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.12s;
}
.cs-globe-btn:hover {
  background: rgba(0,229,255,0.08);
  border-color: var(--sw-cyan);
  color: var(--sw-cyan);
}

/* Back to grid button in globe header */
.carousel-back-btn {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.07em;
  padding: 5px 12px;
  background: transparent;
  border: 1px solid rgba(0,229,255,0.3);
  color: rgba(0,229,255,0.75);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.12s;
}
.carousel-back-btn:hover {
  background: rgba(0,229,255,0.08);
  border-color: var(--sw-cyan);
  color: var(--sw-cyan);
}

/* Stat chips — bordered but non-interactive, match globe button height */
.cs-stat-chip {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border: 1px solid rgba(0,229,255,0.18);
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

/* ── InfoBand wrapper in panel-thumbs grid slot ── */
/* Transparent outer shell so InfoBand's own styling shows */
.panel-thumbs.cs-infoband {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  overflow: visible !important;
}
.panel-thumbs.cs-infoband .panel-infoband {
  width: 100%;
  height: 100%;
  border-color: var(--sw-orange) !important;
}

/* ── Grid panel ── */
.cs-grid-panel {
  position: relative !important;
  overflow: hidden !important;
}
.cs-grid-panel .space-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Grid fills the panel exactly — rows/cols from inline style */
/* gap creates the visible space where backdrop shows through */
.cs-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: grid;
  gap: 28px;
  padding: 18px;
  box-sizing: border-box;
  align-content: space-evenly;
  align-items: start;
  justify-content: space-evenly;
  overflow-y: auto;
  overflow-x: hidden;
}
.cs-grid::-webkit-scrollbar { width: 4px; }
.cs-grid::-webkit-scrollbar-thumb { background: rgba(255,138,0,0.25); border-radius: 2px; }
.cs-grid::-webkit-scrollbar-track { background: transparent; }

/* ── Gallery tile — fills its 1fr × 1fr grid cell ── */
.cs-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  align-self: start;
  overflow: hidden;
  cursor: pointer;
  border-radius: 7px;
  border: 1px solid rgba(255, 138, 0, 0.4);
  box-shadow: 0 0 10px rgba(255, 138, 0, 0.07);
  background: #080e16;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

/* Hovered — bright orange + cyan outer glow */
.cs-tile.cs-tile-active {
  border-color: rgba(255, 138, 0, 0.95);
  box-shadow:
    0 0 20px rgba(255, 138, 0, 0.5),
    0 0 40px rgba(255, 138, 0, 0.15),
    0 0 8px rgba(0, 229, 255, 0.12);
  z-index: 2;
}

/* Dim — translucent so backdrop bleeds through */
.cs-tile.cs-tile-dim {
  opacity: 0.3;
}
.cs-tile.cs-tile-dim::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 14, 0.5);
  z-index: 1;
  pointer-events: none;
}

.cs-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.cs-tile.cs-tile-active .cs-tile-img {
  transform: scale(1.04);
}
.cs-tile-placeholder {
  width: 100%;
  height: 100%;
  background: #0a1018;
}

/* ── Tile overlay — globe-style eyebrow + prominent name ── */
.cs-tile-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
  padding: 24px 10px 8px;
  z-index: 2;
}
.cs-tile-eyebrow {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  color: var(--sw-cyan, #00e5ff);
  letter-spacing: 0.09em;
  margin-bottom: 3px;
  opacity: 0.9;
}
.cs-tile-blip {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sw-cyan, #00e5ff);
  flex-shrink: 0;
  box-shadow: 0 0 4px rgba(0,229,255,0.9);
}
.cs-tile-name {
  font-size: 12px;
  color: rgba(255,255,255,0.96);
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-tile-meta {
  font-size: 8px;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.05em;
}

/* ================================================================
   DESKTOP ABOUT MODAL — v59
   Fixed overlay, centered panel, navicomputer corner brackets.
   Reuses mobile about content: MiniGlobe, stats, KsslSignature.
   ================================================================ */

/* SITE_INFO trigger chip */
.cs-site-info-btn {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  padding: 5px 10px;
  background: transparent;
  border: 2px solid var(--sw-orange);
  border-radius: 10px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: all 0.12s;
}
.cs-site-info-btn:hover {
  border-color: var(--sw-orange);
  color: var(--sw-orange);
}
.cs-info-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sw-orange);
  box-shadow: 0 0 5px rgba(255,138,0,0.7);
  flex-shrink: 0;
}

/* Overlay — fixed, above everything */
.dab-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

/* Panel */
.dab-panel {
  position: relative;
  width: 500px;
  background: #0a0e14;
  border: 2px solid var(--sw-orange);
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(255,138,0,0.12), 0 24px 80px rgba(0,0,0,0.8);
  padding: 0;
  overflow: hidden;
}
/* Light mode: full light treatment at source — defeats all cascade issues */
.cockpit-shell[data-theme="light"] .dab-panel { background: #f0f2f4 !important; border-color: #0077aa !important; box-shadow: 0 8px 40px rgba(0,0,0,0.1) !important; }
.cockpit-shell[data-theme="light"] .dab-overlay { background: rgba(180,188,196,0.72) !important; backdrop-filter: blur(8px); }
.cockpit-shell[data-theme="light"] .dab-scan { display: none !important; }
.cockpit-shell[data-theme="light"] .dab-hdr { background: #e6e6e6 !important; border-bottom: 1px solid rgba(0,0,0,0.08) !important; }
.cockpit-shell[data-theme="light"] .dab-hdr-title { color: #0077aa !important; text-shadow: none !important; }
.cockpit-shell[data-theme="light"] .dab-close { color: rgba(0,0,0,0.4) !important; border-color: rgba(0,0,0,0.18) !important; }
.cockpit-shell[data-theme="light"] .dab-close:hover { color: #0077aa !important; border-color: #0077aa !important; }
.cockpit-shell[data-theme="light"] .dab-tagline { color: rgba(0,0,0,0.4) !important; }
.cockpit-shell[data-theme="light"] .dab-divider { background: rgba(0,0,0,0.1) !important; }
.cockpit-shell[data-theme="light"] .dab-desc { color: rgba(0,0,0,0.55) !important; }
.cockpit-shell[data-theme="light"] .dab-link { color: #0077aa !important; }
.cockpit-shell[data-theme="light"] .dab-stat-lbl { color: rgba(0,0,0,0.35) !important; }
.cockpit-shell[data-theme="light"] .dab-stat-val { color: #0077aa !important; }
.cockpit-shell[data-theme="light"] .dab-stat-key { color: rgba(0,0,0,0.45) !important; }
.cockpit-shell[data-theme="light"] .dab-stat { border-left-color: rgba(0,0,0,0.1) !important; }
.cockpit-shell[data-theme="light"] .dab-panel .mob-kssl-sig { border-top-color: rgba(0,0,0,0.08) !important; }

/* Corner brackets removed — panel uses site-standard rounded corners */

/* Scanline texture */
.dab-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.06) 3px,
    rgba(0,0,0,0.06) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Header row */
.dab-hdr {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,138,0,0.2);
}
.dab-hdr-title {
  font-size: 10px;
  color: var(--sw-orange);
  letter-spacing: 0.1em;
}
.dab-close {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid rgba(255,138,0,0.3);
  color: rgba(255,138,0,0.6);
  cursor: pointer;
  transition: all 0.12s;
}
.dab-close:hover {
  border-color: var(--sw-orange);
  color: var(--sw-orange);
}

/* Logo + tagline */
.dab-logo-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 20px 20px 8px;
}
.dab-tagline {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 9px;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.12em;
  padding-bottom: 16px;
}

/* Divider */
.dab-divider {
  position: relative;
  z-index: 2;
  height: 1px;
  background: rgba(255,138,0,0.15);
  margin: 0 16px 16px;
}

/* Mini globe centered */
.dab-globe-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-bottom: 14px;
}

/* Description */
.dab-desc {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.05em;
  line-height: 1.7;
  padding: 0 32px 16px;
}
.dab-link {
  color: var(--sw-cyan);
  text-decoration: none;
  letter-spacing: 0.06em;
}
.dab-link:hover { text-decoration: underline; }

/* Stats row */
.dab-stat-lbl {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 8px;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.dab-stats {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0 16px 20px;
}
.dab-stat {
  flex: 1;
  text-align: center;
  border-left: 1px solid rgba(255,138,0,0.12);
  padding: 6px 8px;
}
.dab-stat:first-child { border-left: none; }
.dab-stat-val {
  font-size: 22px;
  color: var(--sw-orange);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 4px;
  font-family: var(--font-stencil);
}
.dab-stat-key {
  font-size: 8px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
}

/* KsslSignature sits inside modal — reuse mob-kssl-sig with centering */
.dab-panel .mob-kssl-sig {
  position: relative;
  z-index: 2;
  justify-content: center;
  padding: 10px 0 16px;
  border-top: 1px solid rgba(255,138,0,0.1);
  margin: 0 16px;
}


/* ============================================================
   HUD VIEW — holographic projection (v1.0)
   All rules prefixed .hpx-* — zero collision with existing CSS.
   Center panel (panel-globe slot) only; columns/header/footer untouched.
   ============================================================ */

/* ── Stage fills the panel-globe slot ── */
.hpx-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ── Centering column ── */
.hpx-center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
}

/* ── Holo frame + wrap — single element handles both ── */
.hpx-holo-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.55);
  box-shadow:
    0 0 18px rgba(0, 229, 255, 0.35),
    0 0 42px rgba(0, 229, 255, 0.18),
    0 0 80px rgba(0, 229, 255, 0.07);
  height: min(72%, 640px);
  aspect-ratio: 3 / 2;
  flex-shrink: 1;
  min-height: 0;
  cursor: pointer;
  transition: box-shadow 0.5s ease, border-color 0.5s ease;
}

/* ── Inner holo container — fills the wrap ── */
.hpx-holo {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* ── Main photo — near-natural; edge treatments handled by overlays ── */
.hpx-holo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) brightness(0.98) contrast(1.02);
  mix-blend-mode: normal;
  opacity: 1;
  z-index: 1;
}

/* ── Chromatic split — barely-there edge aberration ── */
.hpx-holo-chroma-r,
.hpx-holo-chroma-b {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: 0.07;
  pointer-events: none;
}
.hpx-holo-chroma-r {
  transform: translateX(2px);
  filter: hue-rotate(180deg) saturate(2) brightness(0.6);
  z-index: 2;
}
.hpx-holo-chroma-b {
  transform: translateX(-2px);
  filter: hue-rotate(140deg) saturate(2.5) brightness(0.5);
  z-index: 2;
}

/* ── Interlace scanlines — near-invisible, just a textural hint ── */
.hpx-holo-interlace {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0)     0px,
    rgba(0, 0, 0, 0)     5px,
    rgba(0, 0, 0, 0.03)  5px,
    rgba(0, 0, 0, 0.03)  6px
  );
  mix-blend-mode: multiply;
}

/* ── Top edge vignette — very thin, only the top ~10% ── */
.hpx-holo-falloff {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0) 80%,
    rgba(2, 8, 14, 0.22) 92%,
    rgba(2, 8, 14, 0.50) 100%
  );
  mix-blend-mode: multiply;
}

/* ── Bottom edge emitter glow — stays in the bottom ~15% only ── */
.hpx-holo-emitterglow {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 229, 255, 0.28) 0%,
    rgba(0, 229, 255, 0.08) 10%,
    rgba(0, 229, 255, 0)    18%
  );
  mix-blend-mode: screen;
}

/* ── Wireframe data grid ── */
.hpx-holo-grid {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(0, 229, 255, 0.05) 1px, transparent 1px) 0 0 / 42px 100%,
    linear-gradient(to bottom, rgba(0, 229, 255, 0.05) 1px, transparent 1px) 0 0 / 100% 42px;
  mix-blend-mode: screen;
}

/* ── Corner brackets ── */
.hpx-holo-bracket {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: rgba(0, 229, 255, 0.8);
  border-style: solid;
  filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.8));
  pointer-events: none;
  z-index: 20;
  transition: border-color 0.3s, filter 0.3s;
}
.hpx-holo-bracket.tl { top: 6px;    left: 6px;   border-width: 1.5px 0 0 1.5px; }
.hpx-holo-bracket.tr { top: 6px;    right: 6px;  border-width: 1.5px 1.5px 0 0; }
.hpx-holo-bracket.bl { bottom: 6px; left: 6px;   border-width: 0 0 1.5px 1.5px; }
.hpx-holo-bracket.br { bottom: 6px; right: 6px;  border-width: 0 1.5px 1.5px 0; }
/* Locked state — brackets turn yellow */
.hpx-holo-bracket.locked {
  border-color: var(--sw-yellow);
  filter: drop-shadow(0 0 5px var(--sw-yellow));
}

/* ── Bottom emission seam ── */
.hpx-holo-seam {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 229, 255, 0.45) 15%,
    rgba(200, 250, 255, 0.95) 50%,
    rgba(0, 229, 255, 0.45) 85%,
    transparent 100%
  );
  box-shadow:
    0 0 8px rgba(0, 229, 255, 0.75),
    0 0 18px rgba(0, 229, 255, 0.4),
    0 -4px 14px rgba(0, 229, 255, 0.25);
  filter: blur(0.4px);
  z-index: 11;
  pointer-events: none;
  animation: hpx-seam-pulse 3.6s ease-in-out infinite;
}
@keyframes hpx-seam-pulse {
  0%, 100% { opacity: 1; transform: scaleX(1); }
  50%      { opacity: 0.78; transform: scaleX(0.985); }
}

/* ── Corner data readouts ── */
.hpx-holo-data {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: rgba(0, 229, 255, 0.85);
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  z-index: 13;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hpx-holo-data.tl { top: 10px;    left: 32px; }
.hpx-holo-data.tr { top: 10px;    right: 32px; }
.hpx-holo-data.bl { bottom: 10px; left: 32px; }
.hpx-holo-data.br { bottom: 10px; right: 32px; }

/* Live/preview signal blip */
.hpx-holo-data .blip-live {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--sw-yellow);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--sw-yellow);
  animation: pulse-dot 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
.hpx-holo-data .blip-live.preview {
  background: var(--sw-cyan);
  box-shadow: 0 0 5px var(--sw-cyan);
}

/* ── Idle state message ── */
.hpx-idle-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-stencil);
  font-size: 18px;
  letter-spacing: 0.22em;
  color: rgba(0, 229, 255, 0.25);
  pointer-events: none;
  z-index: 8;
}

/* ── Materialization sequence ── */
.hpx-holo.materialize {
  animation: hpx-frame-snap 700ms cubic-bezier(0.18, 0.9, 0.3, 1.1) both;
}
.hpx-holo.materialize .hpx-holo-img,
.hpx-holo.materialize .hpx-holo-chroma-r,
.hpx-holo.materialize .hpx-holo-chroma-b {
  animation: hpx-img-resolve 700ms ease-out both;
}
.hpx-holo.materialize .hpx-holo-bracket.tl { animation: hpx-bracket-snap-tl 700ms cubic-bezier(0.18, 0.9, 0.3, 1.2) both; }
.hpx-holo.materialize .hpx-holo-bracket.tr { animation: hpx-bracket-snap-tr 700ms cubic-bezier(0.18, 0.9, 0.3, 1.2) both; }
.hpx-holo.materialize .hpx-holo-bracket.bl { animation: hpx-bracket-snap-bl 700ms cubic-bezier(0.18, 0.9, 0.3, 1.2) both; }
.hpx-holo.materialize .hpx-holo-bracket.br { animation: hpx-bracket-snap-br 700ms cubic-bezier(0.18, 0.9, 0.3, 1.2) both; }

@keyframes hpx-img-resolve {
  0%   { opacity: 0; filter: brightness(2.0) saturate(0); }
  18%  { opacity: 0.04; filter: brightness(2.2) saturate(0); }
  42%  { opacity: 0.45; filter: brightness(1.25) saturate(0.45); }
  72%  { opacity: 0.82; filter: brightness(1.05) saturate(0.72) contrast(1.04); }
  100% { opacity: 1;    filter: saturate(0.88) brightness(0.96) contrast(1.04); }
}
@keyframes hpx-frame-snap {
  0%   { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
  12%  { box-shadow: 0 0 36px rgba(0, 229, 255, 0.55), 0 0 80px rgba(0, 229, 255, 0.25); }
  100% { box-shadow: 0 0 26px rgba(0, 229, 255, 0.22), 0 0 56px rgba(0, 229, 255, 0.07); }
}
@keyframes hpx-bracket-snap-tl {
  0%   { transform: translate(-12px, -12px); opacity: 0; }
  35%  { opacity: 0; }
  55%  { transform: translate(2px, 2px);    opacity: 1; }
  100% { transform: translate(0, 0);        opacity: 1; }
}
@keyframes hpx-bracket-snap-tr {
  0%   { transform: translate(12px, -12px); opacity: 0; }
  35%  { opacity: 0; }
  55%  { transform: translate(-2px, 2px);   opacity: 1; }
  100% { transform: translate(0, 0);        opacity: 1; }
}
@keyframes hpx-bracket-snap-bl {
  0%   { transform: translate(-12px, 12px); opacity: 0; }
  35%  { opacity: 0; }
  55%  { transform: translate(2px, -2px);   opacity: 1; }
  100% { transform: translate(0, 0);        opacity: 1; }
}
@keyframes hpx-bracket-snap-br {
  0%   { transform: translate(12px, 12px);  opacity: 0; }
  35%  { opacity: 0; }
  55%  { transform: translate(-2px, -2px);  opacity: 1; }
  100% { transform: translate(0, 0);        opacity: 1; }
}

/* ── Materialization wireframe pre-roll ── */
.hpx-holo-wire {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  opacity: 0;
}
.hpx-holo.materialize .hpx-holo-wire {
  animation: hpx-wire-show 700ms linear both;
}
.hpx-holo-wire .wire {
  position: absolute;
  background: rgba(220, 255, 255, 0.95);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.95), 0 0 24px rgba(0, 229, 255, 0.55);
}
.hpx-holo-wire .wire-h {
  left: 0; right: 0; top: 50%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: 50% 50%;
}
.hpx-holo-wire .wire-v {
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  transform: scaleY(0);
  transform-origin: 50% 50%;
}
.hpx-holo-wire .wire-grid {
  inset: 0;
  background:
    linear-gradient(to right, rgba(0, 229, 255, 0.25) 1px, transparent 1px) 0 0 / 28px 100%,
    linear-gradient(to bottom, rgba(0, 229, 255, 0.25) 1px, transparent 1px) 0 0 / 100% 28px;
  opacity: 0;
  mix-blend-mode: screen;
  box-shadow: none;
}
.hpx-holo-wire .wire-flash {
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%,
    rgba(220, 255, 255, 0.85) 0%,
    rgba(0, 229, 255, 0.35) 25%,
    transparent 60%);
  opacity: 0;
  mix-blend-mode: screen;
  box-shadow: none;
}
.hpx-holo.materialize .hpx-holo-wire .wire-h    { animation: hpx-wire-sweep-h 700ms cubic-bezier(0.2, 0.8, 0.3, 1) both; }
.hpx-holo.materialize .hpx-holo-wire .wire-v    { animation: hpx-wire-sweep-v 700ms cubic-bezier(0.2, 0.8, 0.3, 1) both; }
.hpx-holo.materialize .hpx-holo-wire .wire-grid { animation: hpx-wire-grid 700ms ease-out both; }
.hpx-holo.materialize .hpx-holo-wire .wire-flash{ animation: hpx-wire-flash 700ms ease-out both; }

@keyframes hpx-wire-show    { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hpx-wire-sweep-h { 0% { transform: scaleX(0); opacity: 1; } 35% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes hpx-wire-sweep-v { 0% { transform: scaleY(0); opacity: 1; } 35% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes hpx-wire-grid    { 0% { opacity: 0; } 20% { opacity: 0.85; } 55% { opacity: 0.4; } 100% { opacity: 0; } }
@keyframes hpx-wire-flash   { 0% { opacity: 0; } 10% { opacity: 0.95; } 40% { opacity: 0.35; } 100% { opacity: 0; } }

/* ── Engage strip — docked below holo ── */
/* ── Photo-tint edge glow — gallery hue via --photo-tint; cyan fallback for all galleries ── */
.hpx-holo-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  box-shadow:
    inset 0 0 50px 8px var(--photo-tint, rgba(0, 229, 255, 0.22)),
    inset 0 0 20px 2px rgba(0, 229, 255, 0.12);
  opacity: 0.72;
  mix-blend-mode: screen;
  transition: box-shadow 0.7s ease;
}

/* ── Unified bottom bar — cycling (name+meta+CTA) and locked (eyebrow+CTA+release) ── */
.hpx-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 18;
  background: linear-gradient(to top, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.45) 52%, transparent 100%);
  padding: 26px 12px 22px; /* extra bottom padding keeps bracket visible */
  pointer-events: auto;
  animation: hpx-engage-in 0.3s ease both;
}
.hpx-lock-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--sw-yellow);
  margin-bottom: 6px;
}
.hpx-eb-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sw-yellow);
  box-shadow: 0 0 6px var(--sw-yellow);
  animation: pulse-dot 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
.hpx-bar-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.hpx-bar-info {
  min-width: 0;
  flex: 1;
}
.hpx-caption-name {
  font-family: var(--font-stencil);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 0 10px rgba(0,229,255,0.3);
  margin-bottom: 2px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hpx-caption-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(0,229,255,0.75);
}
.hpx-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
@keyframes hpx-engage-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Enter Gallery CTA — outline style (not filled) ── */
.hpx-engage-cta {
  background: transparent;
  border: 1px solid rgba(0, 229, 255, 0.8);
  color: var(--sw-cyan);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  padding: 7px 16px;
  cursor: pointer;
  transition: 0.18s;
  text-shadow: 0 0 8px rgba(0,229,255,0.5);
  box-shadow: 0 0 12px rgba(0,229,255,0.15), inset 0 0 8px rgba(0,229,255,0.04);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hpx-engage-cta:hover {
  background: rgba(0,229,255,0.12);
  box-shadow: 0 0 22px rgba(0,229,255,0.38), inset 0 0 14px rgba(0,229,255,0.08);
  border-color: var(--sw-cyan);
}
.hpx-engage-cta .arrow { transition: transform 0.18s; }
.hpx-engage-cta:hover .arrow { transform: translateX(4px); }
.hpx-engage-cancel {
  background: transparent;
  border: none;
  color: rgba(0, 229, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.15s;
}
.hpx-engage-cancel:hover { color: var(--sw-cyan); }

/* ── Auto-cycle crossfade — simple opacity transition for cycle steps ── */
.hpx-holo.fade .hpx-holo-img {
  animation: hpx-img-fade 0.4s ease both;
}
@keyframes hpx-img-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Auto-cycle pill — pause/resume control below the frame ── */
.hpx-auto-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 8, 14, 0.72);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--sw-cyan);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  padding: 5px 12px;
  border-radius: 2px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.14s;
}
.hpx-auto-pill:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--sw-cyan);
}
.hpx-auto-pill.on .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sw-yellow);
  box-shadow: 0 0 6px var(--sw-yellow);
  animation: pulse-dot 1.2s infinite;
  flex-shrink: 0;
}
.hpx-auto-pill.off .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.35);
  flex-shrink: 0;
}

/* ============================================================
   HOME VIEW TOGGLE — 3-way GRID / GLOBE / HUD
   Sits in .logo-btn-right inside the header panel.
   Scoped to .hv-* to avoid collision with dev TopDeck .seg-*
   ============================================================ */
.hv-seg-group {
  display: flex;
  gap: 0;
  flex-shrink: 0;
}
.hv-seg-btn {
  background: transparent;
  color: rgba(0, 229, 255, 0.6);
  border: 1px solid rgba(0, 229, 255, 0.28);
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
  white-space: nowrap;
}
.hv-seg-btn + .hv-seg-btn { border-left: none; }
.hv-seg-btn:first-child { border-radius: 3px 0 0 3px; }
.hv-seg-btn:last-child  { border-radius: 0 3px 3px 0; }
.hv-seg-btn:hover {
  color: var(--sw-cyan);
  border-color: rgba(0, 229, 255, 0.55);
  background: rgba(0, 229, 255, 0.06);
}
.hv-seg-btn.active {
  background: var(--sw-cyan);
  color: #000;
  border-color: var(--sw-cyan);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
}

/* Laptop: slightly compact */
.cockpit-shell.dev-laptop .hv-seg-btn {
  font-size: 8px;
  padding: 4px 9px;
  letter-spacing: 0.1em;
}

/* ============================================================
   LIGHT THEMES — v1.0
   Applied via data-theme attribute on .cockpit-shell.
   Only variables and targeted overrides — zero structural changes.
   ============================================================ */

/* ── Shared light-mode resets ── */
.cockpit-shell[data-theme="light-a"],
.cockpit-shell[data-theme="light-c"] {
  --sw-orange:      #005f7a;
  --sw-orange-dim:  #004560;
  --sw-yellow:      #005f7a;
  --sw-red:         #cc2200;
}
/* No stars/nebula in light mode */
.cockpit-shell[data-theme="light-a"] .space-backdrop,
.cockpit-shell[data-theme="light-c"] .space-backdrop { display: none; }

/* ── Light A — light gray + teal ── */
.cockpit-shell[data-theme="light-a"] {
  --sw-cyan:        #005f7a;
  --sw-cyan-glow:   rgba(0, 95, 122, 0.45);
  --sw-bg:          #f0f0f0;
  --sw-panel-bg:    #e8e8e8;
}
.cockpit-shell[data-theme="light-a"] body,
[data-theme="light-a"].cockpit-shell,
[data-theme="light-a"] .cockpit-shell { background: #f0f0f0; color: #005f7a; }
.cockpit-shell[data-theme="light-a"] .panel { background: #e8e8e8; border-color: rgba(0,95,122,0.3); color: #222; }
.cockpit-shell[data-theme="light-a"] .panel.cy { border-color: rgba(0,95,122,0.45); }
.cockpit-shell[data-theme="light-a"] .panel-infoband { border-color: rgba(0,95,122,0.35) !important; background: #e0e0e0; }
.cockpit-shell[data-theme="light-a"] .infoband-loc { color: #005f7a; }
.cockpit-shell[data-theme="light-a"] .infoband-path,
.cockpit-shell[data-theme="light-a"] .infoband-coord { color: #444; }
.cockpit-shell[data-theme="light-a"] .label { color: #333; border-color: rgba(0,95,122,0.25); }
.cockpit-shell[data-theme="light-a"] .label .meta { color: #666; }
/* Pills — cool teal ombre instead of warm orange/yellow */
.cockpit-shell[data-theme="light-a"] .dest-pill { background-color: rgba(0,95,122,0.08); border-color: rgba(0,95,122,0.15); color: #333; }
.cockpit-shell[data-theme="light-a"] .dest-pill:hover { background: rgba(0,95,122,0.14); color: #005f7a; box-shadow: inset 0 0 6px rgba(0,95,122,0.2); }
.cockpit-shell[data-theme="light-a"] .dest-pill.active { background: rgba(0,95,122,0.15); color: #005f7a; box-shadow: inset 0 0 10px rgba(0,95,122,0.25), 0 0 6px rgba(0,95,122,0.2); outline: 1px solid rgba(0,95,122,0.5); }
.cockpit-shell[data-theme="light-a"] .dest-pill-empty { border-color: rgba(0,95,122,0.15); background: rgba(0,95,122,0.04); }
/* Globe */
.cockpit-shell[data-theme="light-a"] .globe-sphere { fill: #dde8ec; }
.cockpit-shell[data-theme="light-a"] .graticule { stroke: rgba(0,95,122,0.15); }
.cockpit-shell[data-theme="light-a"] .globe-hover-card { background: #e0e8ec; border-color: rgba(0,95,122,0.4); }
/* Header region */
.cockpit-shell[data-theme="light-a"] .gallery-header { background: #e8e8e8; border-color: rgba(0,95,122,0.25); }
.cockpit-shell[data-theme="light-a"] .hv-seg-btn { color: rgba(0,95,122,0.6); border-color: rgba(0,95,122,0.3); }
.cockpit-shell[data-theme="light-a"] .hv-seg-btn.active { background: #005f7a; color: #fff; border-color: #005f7a; }
.cockpit-shell[data-theme="light-a"] .cs-site-info-btn { color: #444; border-color: rgba(0,95,122,0.3); }
.cockpit-shell[data-theme="light-a"] .logo-tag { color: #005f7a; }
/* Top deck */
.cockpit-shell[data-theme="light-a"] .top-deck-bar { background: #dcdcdc; border-color: rgba(0,95,122,0.2); }

/* ── Light C — cool blue-white + navy ── */
.cockpit-shell[data-theme="light-c"] {
  --sw-cyan:        #003d6b;
  --sw-cyan-glow:   rgba(0, 61, 107, 0.45);
  --sw-bg:          #eaf2f8;
  --sw-panel-bg:    #dde8f0;
}
.cockpit-shell[data-theme="light-c"] body,
[data-theme="light-c"].cockpit-shell,
[data-theme="light-c"] .cockpit-shell { background: #eaf2f8; color: #003d6b; }
.cockpit-shell[data-theme="light-c"] .panel { background: #dde8f0; border-color: rgba(0,61,107,0.28); color: #222; }
.cockpit-shell[data-theme="light-c"] .panel.cy { border-color: rgba(0,61,107,0.42); }
.cockpit-shell[data-theme="light-c"] .panel-infoband { border-color: rgba(0,61,107,0.32) !important; background: #d4e4f0; }
.cockpit-shell[data-theme="light-c"] .infoband-loc { color: #003d6b; }
.cockpit-shell[data-theme="light-c"] .infoband-path,
.cockpit-shell[data-theme="light-c"] .infoband-coord { color: #334; }
.cockpit-shell[data-theme="light-c"] .label { color: #222; border-color: rgba(0,61,107,0.22); }
.cockpit-shell[data-theme="light-c"] .label .meta { color: #557; }
/* Pills — cool navy ombre */
.cockpit-shell[data-theme="light-c"] .dest-pill { background-color: rgba(0,61,107,0.07); border-color: rgba(0,61,107,0.14); color: #334; }
.cockpit-shell[data-theme="light-c"] .dest-pill:hover { background: rgba(0,61,107,0.12); color: #003d6b; box-shadow: inset 0 0 6px rgba(0,61,107,0.18); }
.cockpit-shell[data-theme="light-c"] .dest-pill.active { background: rgba(0,61,107,0.14); color: #003d6b; box-shadow: inset 0 0 10px rgba(0,61,107,0.22), 0 0 6px rgba(0,61,107,0.18); outline: 1px solid rgba(0,61,107,0.45); }
.cockpit-shell[data-theme="light-c"] .dest-pill-empty { border-color: rgba(0,61,107,0.14); background: rgba(0,61,107,0.04); }
/* Globe */
.cockpit-shell[data-theme="light-c"] .globe-sphere { fill: #c8dff0; }
.cockpit-shell[data-theme="light-c"] .graticule { stroke: rgba(0,61,107,0.14); }
.cockpit-shell[data-theme="light-c"] .globe-hover-card { background: #d0e4f0; border-color: rgba(0,61,107,0.38); }
/* Header region */
.cockpit-shell[data-theme="light-c"] .gallery-header { background: #dde8f0; border-color: rgba(0,61,107,0.22); }
.cockpit-shell[data-theme="light-c"] .hv-seg-btn { color: rgba(0,61,107,0.58); border-color: rgba(0,61,107,0.28); }
.cockpit-shell[data-theme="light-c"] .hv-seg-btn.active { background: #003d6b; color: #fff; border-color: #003d6b; }
.cockpit-shell[data-theme="light-c"] .cs-site-info-btn { color: #445; border-color: rgba(0,61,107,0.28); }
.cockpit-shell[data-theme="light-c"] .logo-tag { color: #003d6b; }
/* Top deck */
.cockpit-shell[data-theme="light-c"] .top-deck-bar { background: #cfdde8; border-color: rgba(0,61,107,0.18); }

/* ============================================================
   THEME TOGGLE BUTTON — sun/moon icon, far-right header
   ============================================================ */
.theme-toggle-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(0, 229, 255, 0.45);
  color: var(--sw-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  padding: 0;
}
.theme-toggle-btn:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--sw-cyan);
  box-shadow: 0 0 8px rgba(0,229,255,0.35);
}
.cockpit-shell[data-theme="light-a"] .theme-toggle-btn {
  border-color: rgba(0,95,122,0.35);
  color: #005f7a;
}
.cockpit-shell[data-theme="light-a"] .theme-toggle-btn:hover {
  background: rgba(0,95,122,0.1);
  border-color: #005f7a;
}
.cockpit-shell[data-theme="light-c"] .theme-toggle-btn {
  border-color: rgba(0,61,107,0.32);
  color: #003d6b;
}
.cockpit-shell[data-theme="light-c"] .theme-toggle-btn:hover {
  background: rgba(0,61,107,0.1);
  border-color: #003d6b;
}

/* ============================================================
   NAV SELECTOR — centered cockpit mode selector (v1.0)
   Replaces hv-seg-group in the header panel-logo center column.
   All rules prefixed .nav-sel-* — hv-seg-* kept for reference.
   ============================================================ */
.nav-sel {
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: 54px;
}

.nav-sel-btn {
  width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid rgba(0, 229, 255, 0.28);
  border-right: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.18s, border-color 0.18s;
  padding: 0;
}
.nav-sel-btn:first-child { border-radius: 10px 0 0 10px; }
.nav-sel-btn:last-child  { border-right: 2px solid rgba(0, 229, 255, 0.28); border-radius: 0 10px 10px 0; }

.nav-sel-btn.active {
  background: rgba(0, 229, 255, 0.09);
  border-color: rgba(0, 229, 255, 0.75);
}
.nav-sel-btn.active + .nav-sel-btn { border-left-color: rgba(0, 229, 255, 0.75); }

.nav-sel-lbl {
  font-family: var(--font-stencil);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: rgba(0, 229, 255, 0.28);
  transition: color 0.18s;
}
.nav-sel-btn.active .nav-sel-lbl { color: #00e5ff; }
.nav-sel-btn:hover:not(.active) { background: rgba(0, 229, 255, 0.04); }
.nav-sel-btn:hover:not(.active) .nav-sel-lbl { color: rgba(0, 229, 255, 0.5); }

/* Laptop: slightly compact */
.cockpit-shell.dev-laptop .nav-sel-btn { width: 82px; height: 48px; }
.cockpit-shell.dev-laptop .nav-sel-lbl { font-size: 7.5px; }

/* Theme toggle visible in all themes — styled per-theme below */

/* ── HUD top readout strip — mirrors globe-readout-top ── */
.hpx-readout-top {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  background: rgba(0, 14, 22, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 3px;
  padding: 5px 12px;
  backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 10px;
  font-size: 9px; letter-spacing: 0.14em;
  z-index: 6;
  white-space: nowrap;
}

/* ── Subway tile array layout ── */
.cs-subway {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
  padding: 18px;
  box-sizing: border-box;
  align-content: start;
  overflow-y: auto;
  overflow-x: hidden;
}
.cs-subway::-webkit-scrollbar { width: 4px; }
.cs-subway::-webkit-scrollbar-thumb { background: rgba(255,138,0,0.25); border-radius: 2px; }
.cs-subway::-webkit-scrollbar-track { background: transparent; }

/* Full tiles span 2 columns; offset spacers span 1 */
.cs-subway-cell {
  grid-column: span 2;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.cs-subway-spacer {
  grid-column: span 1;
  pointer-events: none;
}
/* Tile inherits all the same visual styles as cs-tile */
.cs-subway-cell .cs-tile-img        { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; display: block; }
.cs-subway-cell:hover .cs-tile-img  { transform: scale(1.04); }
.cs-subway-cell .cs-tile-overlay    { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 10px 10px; background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 100%); opacity: 0; transition: opacity 0.22s; }
.cs-subway-cell:hover .cs-tile-overlay { opacity: 1; }
.cs-subway-cell .cs-tile-placeholder { position: absolute; inset: 0; background: rgba(0,229,255,0.04); border: 1px solid rgba(0,229,255,0.1); }

/* ============================================================
   LIGHT MODE — Palette B (cool light gray + cyan)  v1.0
   Applied via data-theme="light" on .cockpit-shell.
   Philosophy: same layout, hidden sci-fi chrome, light palette.
   All rules scoped to [data-theme="light"] — zero dark mode impact.
   ============================================================ */

/* ── Core variables ── */
.cockpit-shell[data-theme="light"] {
  --sw-bg:          #ffffff;
  --sw-panel-bg:    #ffffff;
  --sw-cyan:        #0077aa;
  --sw-cyan-glow:   rgba(0, 119, 170, 0.3);
  --sw-orange:      #0077aa;
  --sw-yellow:      #0077aa;
  --sw-red:         #cc3300;
}
/* In gallery mode, remove all shell chrome so viewer fills edge-to-edge */

/* ── Shell & body background ── */
[data-theme="light"].cockpit-shell { background: #ffffff; color: #1a1a1a; }

/* ── Space backdrop — hidden in daylight ── */
.cockpit-shell[data-theme="light"] .space-backdrop { display: none; }

/* ── All panel borders removed ── */
.cockpit-shell[data-theme="light"] .panel {
  background: #ffffff;
  border-color: transparent;
  color: #1a1a1a;
}
.cockpit-shell[data-theme="light"] .panel.cy { border-color: transparent; }

/* ── Nav selector — hidden in light mode (array is the only view) ── */
.cockpit-shell[data-theme="light"] .nav-sel { visibility: hidden; /* preserves layout so right cluster stays put */ }

/* ── Theme toggle — visible in light mode ── */
.cockpit-shell[data-theme="light"] .theme-toggle-btn {
  display: flex;
  border-color: rgba(0, 119, 170, 0.35);
  color: #0077aa;
}
.cockpit-shell[data-theme="light"] .theme-toggle-btn:hover {
  background: rgba(0, 119, 170, 0.08);
  border-color: #0077aa;
}

/* ── Header ── */
.cockpit-shell[data-theme="light"] .gallery-header { background: #ffffff; border-color: transparent; }
.cockpit-shell[data-theme="light"] .logo-tag { color: rgba(0,0,0,0.35); }
.cockpit-shell[data-theme="light"] .cs-site-info-btn {
  color: rgba(0,0,0,0.5);
  border-color: #0077aa;
}
.cockpit-shell[data-theme="light"] .cs-site-info-btn:hover { color: #0077aa; }
.cockpit-shell[data-theme="light"] .cs-info-dot { background: #0077aa; box-shadow: none; }

/* ── LogoSvg — dark wordmark, filled lens stays ── */
.cockpit-shell[data-theme="light"] .logo-svg .snap-stroke { stroke: #1a1a1a; }
.cockpit-shell[data-theme="light"] .logo-svg .snap-fill   { fill:   #1a1a1a; }

/* ── Array grid ── */
.cockpit-shell[data-theme="light"] .cs-grid-panel { background: #ffffff; border-color: transparent; }
.cockpit-shell[data-theme="light"] .cs-tile {
  border: 1px solid rgba(0,0,0,0.06);
}
.cockpit-shell[data-theme="light"] .cs-tile-placeholder {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
}
.cockpit-shell[data-theme="light"] .cs-tile-eyebrow { color: rgba(255,255,255,0.8); }
.cockpit-shell[data-theme="light"] .cs-tile-name    { color: #fff; }
.cockpit-shell[data-theme="light"] .cs-tile-meta    { color: rgba(255,255,255,0.6); }

/* ── InfoBand — hide path and coords, show only gallery name ── */
.cockpit-shell[data-theme="light"] .panel-infoband {
  background: #ffffff;
  border-color: transparent;
}
.cockpit-shell[data-theme="light"] .infoband-path  { display: none; }
.cockpit-shell[data-theme="light"] .infoband-coord { display: none; }
.cockpit-shell[data-theme="light"] .infoband-loc {
  color: #0077aa;
  font-size: 16px;
}
.cockpit-shell[data-theme="light"] .infoband-loc:not(.locked) { color: rgba(0,0,0,0.2); }

/* ── Gallery viewer header ── */
.cockpit-shell[data-theme="light"] .gallery-title { color: #1a1a1a; text-shadow: none; }
.cockpit-shell[data-theme="light"] .ghb-cell { background: rgba(0,0,0,0.12); }
.cockpit-shell[data-theme="light"] .ghb-cell.spent  { background: rgba(0,119,170,0.4); }
.cockpit-shell[data-theme="light"] .ghb-cell.active { background: #0077aa; box-shadow: none; }
.cockpit-shell[data-theme="light"] .ghb-num,
.cockpit-shell[data-theme="light"] .ghb-total { color: rgba(0,0,0,0.4); }
.cockpit-shell[data-theme="light"] .gallery-nav-btn {
  color: rgba(0,0,0,0.5);
  border-color: rgba(0,0,0,0.15);
  background: transparent;
}
.cockpit-shell[data-theme="light"] .gallery-nav-btn:hover:not(:disabled) {
  color: #0077aa;
  border-color: #0077aa;
  background: rgba(0,119,170,0.06);
  box-shadow: none;
}
.cockpit-shell[data-theme="light"] .gallery-nav-sep { color: rgba(0,0,0,0.3); }

/* ── Photo viewer panel ── */
.cockpit-shell[data-theme="light"] .panel-viewer {
  background: #ffffff;
  border-color: transparent;
}
/* Gallery splash overlay */
.cockpit-shell[data-theme="light"] .gallery-splash {
  background: rgba(240,242,244,0.92);
}
.cockpit-shell[data-theme="light"] .splash-title { color: #1a1a1a; text-shadow: none; }
.cockpit-shell[data-theme="light"] .splash-meta  { color: rgba(0,0,0,0.45); }
.cockpit-shell[data-theme="light"] .splash-count { color: #0077aa; }
/* Viewer arrows */
.cockpit-shell[data-theme="light"] .viewer-arrow {
  color: rgba(0,0,0,0.3);
  border-color: rgba(0,0,0,0.14);
  background: rgba(240,242,244,0.8);
}
.cockpit-shell[data-theme="light"] .viewer-arrow:hover {
  background: #0077aa;
  color: #fff;
  border-color: #0077aa;
  box-shadow: none;
}
/* Play button */
.cockpit-shell[data-theme="light"] .viewer-play {
  color: rgba(0,0,0,0.4);
  border-color: rgba(0,0,0,0.14);
  background: rgba(240,242,244,0.85);
}
.cockpit-shell[data-theme="light"] .viewer-play:hover,
.cockpit-shell[data-theme="light"] .viewer-play.playing {
  background: #0077aa;
  color: #fff;
  border-color: #0077aa;
  box-shadow: none;
}
/* Photo itself — no treatment needed, just sits on light bg */
.cockpit-shell[data-theme="light"] .cinema-photo { background: transparent; }

/* ── Thumbnail strip ── */
.cockpit-shell[data-theme="light"] .panel-thumbs {
  background: #ffffff;
  border-color: transparent;
}
.cockpit-shell[data-theme="light"] .thumb-strip::-webkit-scrollbar-track { background: rgba(0,0,0,0.04); }
.cockpit-shell[data-theme="light"] .thumb-strip::-webkit-scrollbar-thumb {
  background: rgba(0,119,170,0.4);
  box-shadow: none;
}
.cockpit-shell[data-theme="light"] .thumb-cell {
  border-color: transparent;
  opacity: 0.55;
}
.cockpit-shell[data-theme="light"] .thumb-cell:hover  { opacity: 0.8; }
.cockpit-shell[data-theme="light"] .thumb-cell.active {
  opacity: 1;
  border-color: #0077aa;
  box-shadow: none;
}
.cockpit-shell[data-theme="light"] .thumb-frame-num { color: rgba(0,0,0,0.4); }

/* ── About modal ── */
.cockpit-shell[data-theme="light"] .dab-overlay { background: rgba(200,205,210,0.7); }
.cockpit-shell[data-theme="light"] .dab-panel {
  background: #ffffff;
  border-color: #0077aa;
  box-shadow: 0 8px 40px rgba(0,0,0,0.14);
}
.cockpit-shell[data-theme="light"] .dab-hdr { background: #ffffff; border-color: rgba(0,0,0,0.08); }
.cockpit-shell[data-theme="light"] .dab-hdr-title { color: #0077aa; }
.cockpit-shell[data-theme="light"] .dab-close { color: rgba(0,0,0,0.4); }
.cockpit-shell[data-theme="light"] .dab-close:hover { color: #0077aa; }
.cockpit-shell[data-theme="light"] .dab-body { color: #333; }
.cockpit-shell[data-theme="light"] .dab-scan { display: none; }

/* ── Top deck (dev switcher) ── */
.cockpit-shell[data-theme="light"] .top-deck-bar {
  background: #dde0e4;
  border-color: rgba(0,0,0,0.1);
}

/* ============================================================
   LIGHT MODE — corrections v1.1
   These rules override the v1.0 block above for specificity.
   ============================================================ */

/* ── Logo: filled teal letters (readable on light bg); lens O unchanged ── */
.cockpit-shell[data-theme="light"] .logo-svg {
  filter: none;
}
/* First <g> = SNAPSHOTS text paths: switch from stroke to filled teal */
.cockpit-shell[data-theme="light"] .logo-svg g:first-of-type {
  fill: #00a8c4 !important;
  stroke: none !important;
}
/* Second <g> = lens O: keep existing fill color, adjust opacity slightly */
.cockpit-shell[data-theme="light"] .logo-svg g:last-of-type {
  fill: #00c8e0 !important;
  fill-opacity: 0.95 !important;
}

/* ── Theme toggle: 2px border matching SITE_INFO ── */
.cockpit-shell[data-theme="light"] .theme-toggle-btn {
  display: flex;
  border: 2px solid #0077aa;
  border-radius: 50%;
  color: #0077aa;
  width: 28px; height: 28px;
}

/* ── Header: transparent bg, no border ── */
.cockpit-shell[data-theme="light"] .panel-logo {
  background: transparent;
  border-color: transparent;
}
.cockpit-shell[data-theme="light"] .gallery-header {
  background: transparent;
  border-color: transparent;
}

/* ── Footer (InfoBand): transparent bg, no border ── */
.cockpit-shell[data-theme="light"] .panel-infoband {
  background: transparent;
  border: none;
}
/* Hide GLOBAL_ORBIT when nothing is hovered; show gallery name on hover */
.cockpit-shell[data-theme="light"] .infoband-loc:not(.locked) {
  visibility: hidden;
}
.cockpit-shell[data-theme="light"] .infoband-loc.locked {
  visibility: visible;
  color: #0077aa;
}

/* ── Gallery viewer: transparent bg, no border ── */
.cockpit-shell[data-theme="light"] .panel-viewer {
  background: transparent;
  border: none;
}
.cockpit-shell[data-theme="light"] .viewer-frame {
  background: transparent;
}

/* ── Gallery splash: light overlay, dark text so name is visible ── */
.cockpit-shell[data-theme="light"] .splash {
  background: rgba(235, 238, 241, 0.92);
  backdrop-filter: blur(6px);
}
.cockpit-shell[data-theme="light"] .splash-corner {
  border-color: #0077aa;
  filter: none;
}
.cockpit-shell[data-theme="light"] .splash-rail {
  background: rgba(0, 119, 170, 0.4);
}
.cockpit-shell[data-theme="light"] .splash-title {
  color: #1a1a1a;
  text-shadow: none;
}
.cockpit-shell[data-theme="light"] .splash-eyebrow {
  color: #0077aa;
}
.cockpit-shell[data-theme="light"] .splash-dot {
  background: #0077aa;
  box-shadow: none;
}
.cockpit-shell[data-theme="light"] .splash-spec-label { color: rgba(0,0,0,0.45); }
.cockpit-shell[data-theme="light"] .splash-spec-value { color: #1a1a1a; }
.cockpit-shell[data-theme="light"] .splash-hint { color: rgba(0,0,0,0.35); }
.cockpit-shell[data-theme="light"] .status-ok { color: #0077aa; }

/* ── About modal: light bg, proper text colors ── */
.cockpit-shell[data-theme="light"] .dab-overlay {
  background: rgba(180, 188, 196, 0.65);
  backdrop-filter: blur(8px);
}
.cockpit-shell[data-theme="light"] .dab-panel {
  background: #ffffff;
  border: 2px solid #0077aa;
  border-radius: 10px;
}
.cockpit-shell[data-theme="light"] .dab-hdr {
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.cockpit-shell[data-theme="light"] .dab-hdr-title { color: #0077aa; text-shadow: none; }
.cockpit-shell[data-theme="light"] .dab-hdr-sub   { color: rgba(0,0,0,0.45); }
.cockpit-shell[data-theme="light"] .dab-close      { color: rgba(0,0,0,0.4); border-color: rgba(0,0,0,0.15); }
.cockpit-shell[data-theme="light"] .dab-close:hover { color: #0077aa; border-color: #0077aa; }
.cockpit-shell[data-theme="light"] .dab-body * { color: #333; }
.cockpit-shell[data-theme="light"] .dab-stat-val  { color: #0077aa; }
.cockpit-shell[data-theme="light"] .dab-stat-label { color: rgba(0,0,0,0.45); }
.cockpit-shell[data-theme="light"] .dab-divider { border-color: rgba(0,0,0,0.1); }
.cockpit-shell[data-theme="light"] .dab-scan { display: none; }

/* ============================================================
   LIGHT MODE — corrections v1.2
   ============================================================ */

/* ── Body/html background — eliminate dark border on smaller screens ── */
html:has(.cockpit-shell[data-theme="light"]),
body:has(.cockpit-shell[data-theme="light"]) {
  background: #ffffff;
}

/* ── Viewer panel + thumbstrip — fully transparent, seamless ── */
.cockpit-shell[data-theme="light"] .panel-viewer {
  background: transparent !important;
  border: none !important;
}
.cockpit-shell[data-theme="light"] .viewer-frame { background: transparent; }
.cockpit-shell[data-theme="light"] .panel-thumbs {
  background: #ffffff;
  border: none !important;
}

/* ── Gallery tile hover — teal highlight, no orange ── */
.cockpit-shell[data-theme="light"] .cs-tile.cs-tile-active {
  outline: 2px solid #0077aa;
  box-shadow: 0 0 14px rgba(0,119,170,0.2);
}
.cockpit-shell[data-theme="light"] .cs-tile.cs-tile-dim { opacity: 0.55; }

/* ── Hide hover overlay on array tiles in light mode ── */
.cockpit-shell[data-theme="light"] .cs-tile-overlay { display: none; }

/* ── About modal — comprehensive light treatment ── */
.cockpit-shell[data-theme="light"] .dab-overlay {
  background: rgba(180,188,196,0.72) !important;
}
.cockpit-shell[data-theme="light"] .dab-panel {
  background: #f0f2f4 !important;
  border: 2px solid #0077aa !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12) !important;
}
.cockpit-shell[data-theme="light"] .dab-scan { display: none !important; }
.cockpit-shell[data-theme="light"] .dab-hdr {
  background: #e6e6e6 !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
}
.cockpit-shell[data-theme="light"] .dab-hdr-title {
  color: #0077aa !important;
  text-shadow: none !important;
}
.cockpit-shell[data-theme="light"] .dab-close {
  color: rgba(0,0,0,0.4) !important;
  border-color: rgba(0,0,0,0.18) !important;
}
.cockpit-shell[data-theme="light"] .dab-close:hover {
  color: #0077aa !important;
  border-color: #0077aa !important;
}
.cockpit-shell[data-theme="light"] .dab-tagline { color: rgba(0,0,0,0.4) !important; }
.cockpit-shell[data-theme="light"] .dab-divider { background: rgba(0,0,0,0.1) !important; }
.cockpit-shell[data-theme="light"] .dab-desc { color: rgba(0,0,0,0.55) !important; }
.cockpit-shell[data-theme="light"] .dab-link { color: #0077aa !important; }
.cockpit-shell[data-theme="light"] .dab-stat-lbl { color: rgba(0,0,0,0.35) !important; }
.cockpit-shell[data-theme="light"] .dab-stat-val { color: #0077aa !important; }
.cockpit-shell[data-theme="light"] .dab-stat-key { color: rgba(0,0,0,0.45) !important; }
.cockpit-shell[data-theme="light"] .dab-stat {
  border-left-color: rgba(0,0,0,0.1) !important;
}
.cockpit-shell[data-theme="light"] .dab-panel .mob-kssl-sig {
  border-top-color: rgba(0,0,0,0.08) !important;
}

/* ============================================================
   LIGHT MODE — corrections v1.3
   ============================================================ */

/* ── 1. RESTORE cs-tile-overlay — always visible, remove the display:none ── */
.cockpit-shell[data-theme="light"] .cs-tile-overlay { display: block !important; }
/* Eyebrow blip and text in teal for light mode */
.cockpit-shell[data-theme="light"] .cs-tile-eyebrow { color: rgba(255,255,255,0.75); }
.cockpit-shell[data-theme="light"] .cs-tile-blip { background: #fff; box-shadow: none; }

/* ── 2. HIDE INFOBAND ENTIRELY in light mode — no global orbit, no name ── */
.cockpit-shell[data-theme="light"] .panel-infoband { display: none !important; }

/* ── 3. LOGO — unify letter and lens teal; add hover glow ── */
.cockpit-shell[data-theme="light"] .logo-svg g:first-of-type {
  fill: #00b0cc !important;
  stroke: none !important;
}
.cockpit-shell[data-theme="light"] .logo-svg g:last-of-type {
  fill: #00b0cc !important;
  fill-opacity: 0.92 !important;
}
/* Hover glow on the logo button */
.cockpit-shell[data-theme="light"] .logo-svg:hover g {
  filter: drop-shadow(0 0 6px rgba(0,176,204,0.6));
}

/* ── Moon/sun toggle — 2px matching SITE_INFO, hover glow ── */
.cockpit-shell .theme-toggle-btn { border: 2px solid rgba(0,229,255,0.45) !important; }
.cockpit-shell .theme-toggle-btn:hover { box-shadow: 0 0 8px rgba(0,229,255,0.4) !important; border-color: rgba(0,229,255,0.85) !important; background: rgba(0,229,255,0.08) !important; }
.cockpit-shell[data-theme="light"] .theme-toggle-btn { border: 2px solid #0077aa !important; color: #0077aa; }
.cockpit-shell[data-theme="light"] .theme-toggle-btn:hover { box-shadow: 0 0 8px rgba(0,119,170,0.3) !important; border-color: #0077aa !important; background: rgba(0,119,170,0.08) !important; }

/* ── Viewer — filmstrip ── */
.cockpit-shell[data-theme="light"] .panel-viewer,
.cockpit-shell[data-theme="light"] .viewer-frame,
.cockpit-shell[data-theme="light"] .viewer-cinema { background: transparent !important; }
.cockpit-shell[data-theme="light"] .panel-thumbs { background: #e8e8e8 !important; border: none !important; }
.cockpit-shell[data-theme="light"] .thumb-cell { border-color: rgba(0,0,0,0.06); opacity: 0.6; }
.cockpit-shell[data-theme="light"] .thumb-cell.active { opacity: 1; border-color: #0077aa; box-shadow: none; }
.cockpit-shell[data-theme="light"] .panel-thumbs.cs-infoband { display: none !important; }

/* ── Splash: minimal overlay in light mode — photo shows through, text uses shadow for legibility ── */
.cockpit-shell[data-theme="light"] .splash {
  background: transparent !important;
  backdrop-filter: none !important;
}
.cockpit-shell[data-theme="light"] .splash-title { color: #fff !important; text-shadow: 0 2px 24px rgba(0,0,0,0.9), 0 0 40px rgba(0,0,0,0.7) !important; }
.cockpit-shell[data-theme="light"] .splash-eyebrow { color: rgba(255,255,255,0.9) !important; text-shadow: 0 1px 8px rgba(0,0,0,0.8); }
.cockpit-shell[data-theme="light"] .splash-spec-label { color: rgba(255,255,255,0.6) !important; }
.cockpit-shell[data-theme="light"] .splash-spec-value { color: #fff !important; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.cockpit-shell[data-theme="light"] .splash-hint { color: rgba(255,255,255,0.55) !important; }
.cockpit-shell[data-theme="light"] .splash-dot { background: #fff !important; box-shadow: none !important; }
.cockpit-shell[data-theme="light"] .splash-rail { background: rgba(255,255,255,0.35) !important; }
.cockpit-shell[data-theme="light"] .splash-corner { border-color: rgba(255,255,255,0.5) !important; filter: none !important; }

/* ── About modal body: all text and globe elements light-mode adapted ── */
.cockpit-shell[data-theme="light"] .dab-tagline { color: rgba(0,0,0,0.45) !important; }
.cockpit-shell[data-theme="light"] .dab-desc { color: rgba(0,0,0,0.6) !important; }
.cockpit-shell[data-theme="light"] .dab-link { color: #0077aa !important; }
.cockpit-shell[data-theme="light"] .dab-stat-lbl { color: rgba(0,0,0,0.35) !important; }
.cockpit-shell[data-theme="light"] .dab-stat-val { color: #0077aa !important; }
.cockpit-shell[data-theme="light"] .dab-stat-key { color: rgba(0,0,0,0.4) !important; }
.cockpit-shell[data-theme="light"] .dab-stat { border-left-color: rgba(0,0,0,0.1) !important; }
.cockpit-shell[data-theme="light"] .dab-panel .mob-kssl-sig { border-top-color: rgba(0,0,0,0.08) !important; color: rgba(0,0,0,0.4) !important; }
.cockpit-shell[data-theme="light"] .dab-panel .mob-kssl-sig svg { color: #0077aa !important; }
.cockpit-shell[data-theme="light"] .dab-panel .mob-kssl-link { color: rgba(0,0,0,0.4) !important; }
.cockpit-shell[data-theme="light"] .dab-panel .mob-kssl-link:hover { color: #0077aa !important; }
/* Globe in modal — teal tint over its dark background */
.cockpit-shell[data-theme="light"] .dab-globe-wrap { opacity: 0.85; filter: hue-rotate(0deg) saturate(0.7) brightness(1.2); }

/* ============================================================
   v0.61 — DESKTOP + LAPTOP CINEMA PADDING
   Inset the cinema image inside the cyan-bordered panel so the
   photo sits like a mounted print rather than bleeding to the edge.
   - Desktop: 14px matte; Laptop: 10px matte (proportional to viewer width).
   - Panel-viewer background is already #000, so the inset reads as a
     deliberate black matte regardless of photo content (bright or dark).
   - Scoped to .dev-desktop / .dev-laptop only — mobile shell is untouched.
   - Arrows, mode pill, play button, splash, and bottom-bar are positioned
     on .panel-viewer / .viewer-frame, NOT .viewer-cinema, so their
     placement is unaffected.
   ============================================================ */
.cockpit-shell.dev-desktop .viewer-cinema { inset: 32px; }
.cockpit-shell.dev-laptop  .viewer-cinema { inset: 22px; }
/* ============================================================
   v0.61 — DESKTOP GALLERY SHARE BUTTON
   Small icon-only frosted button placed inline next to the
   gallery title in the cockpit header center column. Uses the
   same SVG glyph as .mob-share-btn for visual consistency.
   Theming: dark = white-on-frosted-black, light = ink-on-white.
   ============================================================ */
.gallery-title-row {
  display: flex; align-items: center; gap: 10px;
  max-width: 100%;
}
.gallery-title-row .gallery-title {
  min-width: 0; /* allow ellipsis when name is long */
}

.gallery-share-btn {
  flex-shrink: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0,229,255,0.30);
  border-radius: 50%;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: rgba(0,229,255,0.75);
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  padding: 0;
}
.gallery-share-btn svg { width: 12px; height: 12px; }
.gallery-share-btn:hover {
  background: rgba(0,229,255,0.08);
  border-color: var(--sw-cyan);
  color: var(--sw-cyan);
  box-shadow: 0 0 8px rgba(0,229,255,0.22);
}
.gallery-share-btn:active {
  background: rgba(0,229,255,0.15);
}

/* Laptop — slightly smaller to match the tighter header */
.cockpit-shell.dev-laptop .gallery-share-btn { width: 22px; height: 22px; }
.cockpit-shell.dev-laptop .gallery-share-btn svg { width: 11px; height: 11px; }
.cockpit-shell.dev-laptop .gallery-title-row { gap: 8px; }

/* Light theme — ink on white, no glow */
.cockpit-shell[data-theme="light"] .gallery-share-btn {
  background: transparent;
  border-color: rgba(0,0,0,0.18);
  color: rgba(0,0,0,0.5);
}
.cockpit-shell[data-theme="light"] .gallery-share-btn:hover {
  background: rgba(0,119,170,0.06);
  border-color: #0077aa;
  color: #0077aa;
  box-shadow: none;
}
.cockpit-shell[data-theme="light"] .gallery-share-btn:active {
  background: rgba(0,119,170,0.12);
}

/* Hide on mobile shell — mobile has its own .mob-share-btn already */
.cockpit-shell.dev-mobile .gallery-share-btn { display: none; }

/* ============================================================
   v0.61 — PER-PHOTO SECTION CONTEXT
   Renders the section_name / section_desc fields delivered by
   snapshots-bridge v1.0.7+ from [snap_section] shortcode markers.
   Three surfaces: desktop cinema overlay, mobile cinema overlay,
   mobile stack divider. All cleanly hide when fields are empty.
   ============================================================ */

/* ── Desktop cinema overlay — bottom-left film-caption style ── */
.cinema-section {
  position: absolute;
  bottom: 22px;
  left: 22px;
  z-index: 8;                       /* above .viewer-vignette */
  max-width: 55%;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 2px solid var(--sw-cyan);
  padding: 9px 14px 10px 12px;
  opacity: 0;
  animation: cinema-section-in 0.45s 0.12s ease forwards;
}
.cinema-section-name {
  font-family: var(--font-stencil);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.25);
}
.cinema-section-desc {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: rgba(0, 229, 255, 0.78);
  margin-top: 4px;
  text-transform: uppercase;
}
@keyframes cinema-section-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Laptop — slightly smaller / tighter inset to match tighter shell */
.cockpit-shell.dev-laptop .cinema-section {
  bottom: 16px; left: 16px;
  padding: 7px 12px 8px 10px;
}
.cockpit-shell.dev-laptop .cinema-section-name { font-size: 11px; letter-spacing: 0.16em; }
.cockpit-shell.dev-laptop .cinema-section-desc { font-size: 9px; }

/* Light theme — ink on frosted white, no glow */
.cockpit-shell[data-theme="light"] .cinema-section {
  background: rgba(255, 255, 255, 0.78);
  border-left-color: #0077aa;
}
.cockpit-shell[data-theme="light"] .cinema-section-name {
  color: #1a1a1a; text-shadow: none;
}
.cockpit-shell[data-theme="light"] .cinema-section-desc {
  color: #0077aa;
}

/* ── Mobile cinema overlay — above play pill, no hard border lines ── */
.mob-cv-section {
  position: absolute;
  left: 12px;
  right: 12px;
  /* play pill bottom = nav-h + thumb-h + 14px; pill height ~34px; add 8px gap */
  bottom: calc(var(--nav-h, 60px) + var(--thumb-h, 60px) + 56px);
  z-index: 8;
  pointer-events: none;
  text-align: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 7px 14px 8px;
  opacity: 0;
  animation: cinema-section-in 0.45s 0.12s ease forwards;
}
.mob-cv-section-name {
  font-family: 'Audiowide', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #fff;
  text-transform: uppercase;
}
.mob-cv-section-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(0, 229, 255, 0.78);
  margin-top: 3px;
  text-transform: uppercase;
}

/* ── Mobile stack view section divider — full-width header band ── */
.mob-stack-section {
  padding: 22px 22px 14px;
  border-top: 1px solid rgba(0, 229, 255, 0.18);
  background: linear-gradient(180deg,
    rgba(0, 229, 255, 0.06) 0%,
    rgba(0, 229, 255, 0.0) 100%);
}
.mob-stack-section-name {
  font-family: 'Audiowide', monospace;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--sw-cyan, #00e5ff);
  text-transform: uppercase;
}
.mob-stack-section-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
  text-transform: uppercase;
}

/* ============================================================
   v0.62 — HUD MINI-GLOBE
   Bottom-right corner inset inside hpx-stage. Purely decorative/
   reactive — pointer-events:none so HUD clicks pass through.
   Sized by class; D3 reads clientWidth on mount to scale.
   ============================================================ */
.mini-globe-wrap {
  display: none; /* hidden — kept in code for future use */
  position: absolute;
  bottom: 22px;
  right: 22px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.30);
  box-shadow:
    0 0 18px rgba(0, 229, 255, 0.10),
    inset 0 0 24px rgba(0, 0, 0, 0.50);
  pointer-events: none;
  z-index: 4; /* behind HUD brackets/data overlays, above SpaceBackdrop */
}
.mini-globe-svg { display: block; }

/* Laptop — proportionally smaller */
.cockpit-shell.dev-laptop .mini-globe-wrap {
  width: 138px;
  height: 138px;
  bottom: 16px;
  right: 16px;
}

/* ── D3 element styles — scoped to HUD mini-globe only ── */
.mini-globe-wrap .mg-sphere {
  fill: rgba(0, 5, 18, 0.85);
}
.mini-globe-wrap .mg-graticule {
  fill: none;
  stroke: rgba(0, 229, 255, 0.09);
  stroke-width: 0.4;
}
/* Country paths — active fill/stroke set inline by D3 */
.mini-globe-wrap .mg-cp {
  transition: none;
}
.mini-globe-wrap .mg-beam {
  stroke: var(--sw-cyan);
  stroke-width: 1;
  stroke-opacity: 0.90;
  stroke-linecap: round;
}
.mini-globe-wrap .mg-dot {
  fill: var(--sw-cyan);
  filter: drop-shadow(0 0 3px var(--sw-cyan));
}