/* ───────────────────────────────────────────────────────────
   Sky · Midnight Observatory
   Ported from the design handoff (handover/sky.css) with
   substitutions for production:
     - 'Tinos' replaced by self-hosted 'Source Serif 4'
     - 'JetBrains Mono' uses the variable woff2 from /shared/fonts/
     - .hud-search-* aliased to .mast-search-* (sky.js's innerHTML
       output uses the legacy class names)
     - Legacy modal styles (#tonightPanel, #timePanel, #imageLightbox,
       #compassBanner, .obj-popup-* sub-sections) preserved at the
       bottom of the file so existing sky.js drawer/popup pipelines
       keep their existing look behind the new chrome.
   ─────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/shared/fonts/jetbrains-mono-latin-variable.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/shared/fonts/source-serif-4-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/shared/fonts/source-serif-4-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Scope tokens with !important so they win against the inline-style
   custom properties /shared/fcc-theme-boot.js + /shared/fcc-econav.js
   write to documentElement at runtime — those scripts overwrite --ink,
   --accent, --accent-2, --line, --panel-2 to whatever sitewide theme
   the user picked elsewhere on fcc.cc, which kept washing out our
   text on this page. !important on a custom-property declaration is
   spec-supported and beats inline style without !important. */
:root, html, body {
  --ink: #0a1020 !important;
  --ink-2: #0f1830 !important;
  --ink-3: #15203f !important;
  --paper: #f5efe2 !important;
  --paper-2: #ece4d3 !important;
  --line: rgba(245,239,226,.18) !important;
  --line-strong: rgba(245,239,226,.45) !important;
  --accent: #6cd4ff !important;
  --accent-2: #ffd166 !important;
  --warm: #ff8c5a !important;
  --mute: rgba(245,239,226,.55) !important;
  --mute-2: rgba(245,239,226,.32) !important;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  background: #03060f;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(35,45,80,.55) 0%, rgba(20,28,55,.32) 35%, rgba(8,12,28,0) 70%),
    radial-gradient(ellipse 110% 90% at 50% 50%, rgba(10,18,38,1) 0%, rgba(4,6,16,1) 45%, rgba(0,1,5,1) 100%);
  pointer-events: none;
}

[hidden] { display: none !important; }

/* ── Celestial canvas ─────────────────────────────────────── */
#celestial-map {
  position: fixed; inset: 0;
  z-index: 1;
}
#celestial-map canvas, #celestial-map svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
#sky-glow-canvas {
  position: fixed; inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* ── Cardinal labels (positioned in JS by horizon projection) ── */
.cardinal-dir {
  position: fixed; z-index: 4;
  pointer-events: none; user-select: none;
  display: inline-flex; flex-direction: column; align-items: center;
  font-family: var(--mono);
  text-shadow: 0 0 8px rgba(0,0,0,.85);
  letter-spacing: .14em;
  transform: translate(-50%, -50%);
}
.cardinal-dir b {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .12em;
  line-height: 1;
}
.cardinal-dir i {
  font-style: normal;
  font-size: 9px;
  color: var(--mute);
  margin-top: 4px;
}
.cardinal-dir--minor {
  font-size: 10px;
  font-weight: 500;
  color: var(--mute-2);
}

/* ── Pointer reticle ──────────────────────────────────────── */
#reticle {
  position: fixed; z-index: 4;
  pointer-events: none;
  width: 28px; height: 28px;
  border: 1px solid rgba(108,212,255,.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .12s;
}
#reticle::before, #reticle::after {
  content: ''; position: absolute; background: rgba(108,212,255,.45);
}
#reticle::before { left: 50%; top: -8px; bottom: -8px; width: 1px; transform: translateX(-50%); }
#reticle::after  { top: 50%; left: -8px; right: -8px; height: 1px; transform: translateY(-50%); }
#reticle.is-on { opacity: 1; }

/* ── Masthead ─────────────────────────────────────────────── */
.mast {
  position: fixed; left: 0; right: 0; top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 12px 22px 10px;
  background: linear-gradient(180deg, rgba(3,6,15,.92) 0%, rgba(3,6,15,.70) 70%, rgba(3,6,15,0) 100%);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
}
@media (max-width: 1280px) {
  .mast { grid-template-columns: 1fr 1fr; gap: 12px 24px; padding: 10px 18px 8px; }
  .mast-c { grid-column: 1 / -1; order: 3; align-items: flex-start; padding-top: 4px; border-top: 1px dashed var(--line); width: 100%; }
  .mast-edition { flex-direction: row; gap: 14px; }
  .mast-r { justify-content: flex-end; }
}
@media (max-width: 760px) {
  .mast-nav { display: none; }
  .mast-search { width: 220px; }
  .mast-brand-sub { display: none; }
}

.mast-l { display: flex; align-items: center; gap: 18px; min-width: 0; flex-wrap: wrap; }
.mast-brand {
  display: flex; align-items: baseline; gap: 10px;
  text-decoration: none; color: var(--paper);
}
.mast-brand-glyph { color: var(--accent); font-size: 16px; text-shadow: 0 0 12px rgba(108,212,255,.6); }
.mast-brand-name { font-weight: 700; letter-spacing: .14em; font-size: 12px; }
.mast-brand-sub { font-size: 10px; color: var(--mute); letter-spacing: .14em; }

.mast-nav { display: flex; gap: 14px; flex-wrap: wrap; }
/* shared/fcc-econav.js renders <a> children inside .ecosystem-nav */
.mast-nav a, .mast-nav-a {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .12s, border-color .12s;
}
.mast-nav a:hover, .mast-nav-a:hover { color: var(--paper); }
.mast-nav a.active, .mast-nav-a.is-active { color: var(--accent); border-bottom-color: var(--accent); }

.mast-c { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mast-edition-no { font-size: 10px; letter-spacing: .22em; color: var(--accent-2); }
.mast-edition-date { font-size: 10px; letter-spacing: .14em; color: var(--mute); }
.mast-edition { display: flex; flex-direction: column; align-items: center; gap: 2px; }

.mast-r { display: flex; justify-content: flex-end; }
.mast-search {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  width: clamp(200px, 28vw, 320px);
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: rgba(15,24,48,.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.mast-search-icon { width: 14px; height: 14px; color: var(--mute); flex: none; }
.mast-search-input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
}
.mast-search-input::placeholder { color: var(--mute-2); }
.mast-search-kbd {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--mute);
  border: 1px solid var(--line);
  padding: 1px 6px;
}
.mast-search-results, .hud-search-results {
  position: absolute;
  top: calc(100% + 6px); left: 0; right: 0;
  margin: 0; padding: 4px;
  list-style: none;
  background: rgba(10,16,32,.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  max-height: 380px; overflow-y: auto;
  font-size: 12px;
  z-index: 50;
}
.mast-search-result, .hud-search-result {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 12px;
  padding: 7px 10px;
  cursor: pointer;
}
.mast-search-result:hover, .hud-search-result:hover,
.mast-search-result[aria-selected="true"], .hud-search-result[aria-selected="true"] { background: rgba(108,212,255,.12); }
.mast-search-result-name, .hud-search-result-name { color: var(--paper); font-weight: 500; }
.mast-search-result-sub, .hud-search-result-sub { color: var(--mute); font-size: 10px; margin-left: 8px; letter-spacing: .08em; }
.mast-search-result-type, .hud-search-result-type { color: var(--accent); font-size: 9px; letter-spacing: .14em; }
.hud-search-empty { padding: 8px 10px; color: var(--mute); font-size: 11px; letter-spacing: .04em; }

/* ── Condition strip ──────────────────────────────────────── */
.strip {
  position: fixed; left: 0; right: 0; top: 56px;
  z-index: 29;
  pointer-events: none;
  display: flex; justify-content: center;
  padding: 0 22px;
}
@media (max-width: 1280px) { .strip { top: 92px; } }
@media (max-width: 760px) { .strip { top: 84px; } }
.strip-inner {
  display: flex; align-items: center; gap: 12px; flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  padding: 7px 18px;
  background: #08101e !important;
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--paper);
  pointer-events: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.strip-inner::-webkit-scrollbar { display: none; }
.strip-item { display: inline-flex; gap: 6px; align-items: baseline; flex: none; }
.strip-k { color: var(--mute); text-transform: uppercase; }
.strip-v { color: var(--paper); }
.strip-sep { width: 1px; height: 14px; background: var(--line); }
.strip-live { color: var(--accent); }
.strip-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 1.4s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ── Logbook (left) ───────────────────────────────────────── */
.logbook {
  position: fixed; left: 22px; top: 140px; bottom: 110px;
  width: 308px;
  z-index: 25;
  display: flex; flex-direction: column;
  background: #08101e !important;
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-family: var(--mono);
  transition: transform .3s cubic-bezier(.4,.1,.2,1);
}
.logbook.is-collapsed { transform: translateX(calc(-100% + 38px)); }
.logbook-toggle {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  background: var(--ink-2);
  color: var(--paper);
  border: 0; border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  cursor: pointer;
}
.logbook-toggle-l { font-weight: 600; }
.logbook-toggle-r { font-size: 14px; color: var(--accent); transition: transform .3s; }
.logbook.is-collapsed .logbook-toggle-r { transform: rotate(180deg); }

.logbook-body {
  flex: 1; overflow-y: auto;
  padding: 4px 14px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.logbook-body::-webkit-scrollbar { width: 4px; }
.logbook-body::-webkit-scrollbar-thumb { background: var(--line-strong); }

.lb-sec { padding: 14px 0; border-top: 1px solid var(--line); }
.lb-sec:first-child { border-top: 0; }

.lb-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.lb-h-no { font-size: 9px; letter-spacing: .22em; color: var(--accent); }
.lb-h-t {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  color: var(--paper);
  letter-spacing: .01em;
}

.lb-toggles { display: grid; gap: 6px; }
.lb-toggle {
  display: grid; grid-template-columns: 22px 1fr;
  align-items: center; gap: 10px;
  padding: 7px 10px;
  background: transparent;
  border: 1px solid var(--line);
  color: #ece4d3 !important;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-align: left;
  cursor: pointer;
  transition: all .12s;
}
.lb-toggle .lb-toggle-l { color: #ece4d3 !important; }
.lb-toggle:hover { color: #f5efe2 !important; border-color: var(--line-strong); }
.lb-toggle:hover .lb-toggle-l { color: #f5efe2 !important; }
.lb-toggle.is-on { color: #f5efe2 !important; }
.lb-toggle.is-on .lb-toggle-l { color: #f5efe2 !important; }
.lb-toggle.is-on {
  color: var(--paper);
  border-color: var(--accent);
  background: rgba(108,212,255,.08);
}
.lb-toggle-k {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border: 1px solid var(--line);
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0;
}
.lb-toggle.is-on .lb-toggle-k { border-color: var(--accent); background: rgba(108,212,255,.15); }

.lb-mag { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.lb-mag-l {
  display: block;
  font-size: 9px; letter-spacing: .22em; color: var(--mute);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.lb-mag-row { display: flex; align-items: center; gap: 10px; }
.lb-mag-row input[type=range] {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 2px;
  background: var(--line-strong);
  outline: 0;
}
.lb-mag-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  cursor: pointer;
}
.lb-mag-row input[type=range]::-moz-range-thumb {
  width: 10px; height: 10px; background: var(--accent); border: 0; border-radius: 50%; box-shadow: 0 0 10px var(--accent);
}
.lb-mag-v {
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  color: var(--accent); min-width: 40px; text-align: right;
}
.lb-mag-meta {
  display: flex; justify-content: space-between;
  margin-top: 6px;
  font-size: 9px; letter-spacing: .12em; color: var(--mute);
}

.lb-dl {
  margin: 0;
  display: grid; grid-template-columns: auto 1fr;
  column-gap: 14px; row-gap: 6px;
  font-size: 11px;
  letter-spacing: .04em;
}
.lb-dl dt { color: var(--mute); text-transform: uppercase; font-size: 9px; letter-spacing: .14em; align-self: center; }
.lb-dl dd { margin: 0; color: var(--paper); }
.lb-tonight-more {
  display: block;
  margin-top: 10px;
  background: transparent;
  border: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 0;
}
.lb-tonight-more:hover { color: var(--paper); }

.lb-picks { list-style: none; margin: 0; padding: 0; }
.lb-picks li {
  display: grid; grid-template-columns: 22px 1fr; column-gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  font-size: 11px;
  transition: background .12s;
}
.lb-picks li:first-child { border-top: 0; }
.lb-picks li:hover { background: rgba(108,212,255,.08); }
.lb-picks-loading { color: var(--mute); cursor: default !important; padding: 8px 0; grid-column: 1 / -1 !important; }
.lb-picks-loading:hover { background: transparent !important; }
.lb-pick-no { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 13px; }
.lb-pick-n { font-weight: 600; color: var(--paper); letter-spacing: .04em; }
.lb-pick-d { grid-column: 2; color: var(--mute); font-size: 10px; margin-top: 2px; letter-spacing: .04em; }

.lb-foot {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 9px; letter-spacing: .14em;
  color: var(--mute);
  background: var(--ink-2);
  margin: 0 -14px -12px;
}

/* ── Dispatch / Object popup (right) ──────────────────────── */
/* Combines new design (.dispatch) with legacy (.obj-popup) on the
   same <aside id="objectPopup"> element. */
.dispatch {
  /* !important on position rules wins against the inline style that
     sky.js's existing repositionPopup() applies (which planted the
     popup near the click and kept clipping it under the masthead).
     The new design intends a fixed right-side panel; pan-and-center
     in showObjectPopup brings the clicked object to chart center. */
  position: fixed !important;
  right: 22px !important;
  top: 140px !important;
  left: auto !important;
  bottom: auto !important;
  width: 340px;
  max-height: calc(100vh - 250px);
  z-index: 25;
  background: #08101e !important;
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: 18px 18px 16px;
  font-family: var(--mono);
  transform: translateX(0);
  transition: transform .3s cubic-bezier(.4,.1,.2,1), opacity .3s;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.dispatch.is-hidden { transform: translateX(calc(100% + 22px)); opacity: 0; pointer-events: none; }
.dispatch::-webkit-scrollbar { width: 4px; }
.dispatch::-webkit-scrollbar-thumb { background: var(--line-strong); }
.dispatch-close {
  position: absolute; top: 10px; right: 12px;
  width: 24px; height: 24px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--mute);
  font-size: 16px; line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.dispatch-close:hover { color: var(--paper); border-color: var(--paper); }
.dispatch-h {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.dispatch-h-no { font-size: 9px; letter-spacing: .22em; color: var(--accent); }
.dispatch-h-kind {
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--mute);
  text-transform: uppercase;
}
.dispatch-name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -.01em;
  color: #f5efe2 !important;
}
.dispatch-bayer {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--accent-2);
  margin: 4px 0 14px;
}
.dispatch-bayer:empty { display: none; }
.dispatch-grid {
  margin: 0 0 14px;
  display: grid; grid-template-columns: auto 1fr;
  column-gap: 14px; row-gap: 6px;
  font-size: 11px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.dispatch-grid:empty { display: none; }
.dispatch-grid dt {
  margin: 0;
  color: #ece4d3 !important; font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  opacity: .85;
}
.dispatch-grid dd {
  margin: 0;
  color: #f5efe2 !important;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.dispatch-grid dd.dim { color: #ece4d3 !important; opacity: .7; }
.dispatch-grid dd a, .dispatch-grid dd .popup-const-link { color: #6cd4ff !important; text-decoration: none; }
.dispatch-grid dd a:hover { text-decoration: underline; }

.dispatch-section { margin: 0 0 14px; }
.dispatch-section h4 {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

.dispatch-extract {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.55;
  color: #f5efe2 !important;
  margin: 0;
  text-wrap: pretty;
}
.dispatch-extract::first-letter {
  font-size: 30px;
  font-weight: 700;
  float: left;
  line-height: 1;
  margin: 2px 6px 0 0;
  color: var(--accent);
}
.obj-popup-thumb-link { display: block; margin-bottom: 10px; }
.obj-popup-thumb {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.obj-popup-extract { /* legacy alias to .dispatch-extract */
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--paper);
  margin: 0;
}

.obj-popup-readmore {
  display: none; /* superseded by .dispatch-cta-a button below */
}

.dispatch-cta {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.dispatch-cta-a {
  flex: 1;
  text-decoration: none;
  text-align: center;
  padding: 8px 10px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: all .12s;
  display: inline-block;
}
.dispatch-cta-a:hover { background: var(--accent); color: var(--ink); }
.dispatch-cta-b {
  padding: 8px 10px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--mute);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .12s;
}
.dispatch-cta-b:hover { color: var(--paper); border-color: var(--paper); }

/* obj-popup-* sub-section styling, scoped inside Dispatch */
.dispatch .obj-popup-const-lore {
  font-family: var(--serif);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--paper-2);
  margin: 0 0 10px;
}
.dispatch .obj-popup-const-month {
  font-size: 10px; color: var(--mute); letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 10px;
}
.dispatch .obj-popup-const-section { margin: 0 0 10px; }
.dispatch .obj-popup-const-h {
  margin: 0 0 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}
.dispatch .obj-popup-const-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dispatch .obj-popup-const-chip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  padding: 4px 8px;
  cursor: pointer;
  display: inline-flex; gap: 6px; align-items: baseline;
}
.dispatch .obj-popup-const-chip:hover { border-color: var(--accent); color: var(--accent); }
.dispatch .obj-popup-const-chip-name { font-weight: 500; }
.dispatch .obj-popup-const-chip-mag { color: var(--mute); font-size: 9px; }

.dispatch .obj-popup-travel-grid {
  margin: 0;
  display: grid; grid-template-columns: auto 1fr;
  column-gap: 14px; row-gap: 5px;
  font-size: 11px;
}
.dispatch .obj-popup-travel-grid dt {
  color: var(--mute); font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  margin: 0;
}
.dispatch .obj-popup-travel-grid dd { margin: 0; color: var(--paper); }

.dispatch .obj-popup-gallery-thumbs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  margin-bottom: 8px;
}
.dispatch .obj-popup-gallery-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  cursor: pointer;
}
.dispatch .obj-popup-gallery-thumb:hover { border-color: var(--accent); }
.dispatch .obj-popup-gallery-thumb.is-user { border-color: var(--accent-2); }
.dispatch .obj-popup-share-link {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--accent-2);
  text-decoration: none;
}
.dispatch .obj-popup-share-link:hover { text-decoration: underline; }

/* ── Time strip (bottom) ──────────────────────────────────── */
.timestrip {
  position: fixed; left: 22px; right: 22px; bottom: 22px;
  z-index: 25;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  background: #08101e !important;
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-family: var(--mono);
}

.ts-l { display: flex; gap: 6px; flex-wrap: wrap; }
.ts-mode {
  padding: 6px 10px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--mute);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .12s;
}
.ts-mode:hover { color: var(--paper); border-color: var(--paper); }
.ts-mode.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(108,212,255,.1);
}

.ts-c { position: relative; }
.ts-bar {
  position: relative;
  height: 26px;
  margin: 4px 0;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.5);
  overflow: visible;
}
.ts-band {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--from) * 1%);
  width: calc((var(--to) - var(--from)) * 1%);
  background: var(--c);
  font-size: 0;
}
.ts-now {
  position: absolute; top: -8px; bottom: -8px;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  left: 50%;
  pointer-events: none;
  z-index: 4;
}
.ts-now-l {
  position: absolute; top: -16px; left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--accent);
  white-space: nowrap;
}
.ts-moon {
  position: absolute; top: 50%; left: 87%;
  transform: translate(-50%,-50%);
  font-size: 14px;
  color: var(--accent-2);
  z-index: 3;
  filter: drop-shadow(0 0 6px rgba(255,209,102,.7));
}
.ts-moon[hidden] { display: none; }
.ts-scrub {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  width: 100%; height: 100%;
  margin: 0; padding: 0;
  -webkit-appearance: none; appearance: none;
  background: transparent;
  cursor: grab;
  z-index: 5;
}
.ts-scrub:active { cursor: grabbing; }
.ts-scrub::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 26px;
  background: var(--accent);
  cursor: grab;
  box-shadow: 0 0 12px var(--accent);
}
.ts-scrub::-moz-range-thumb {
  width: 14px; height: 26px; background: var(--accent); border: 0; cursor: grab;
}
.ts-scrub::-webkit-slider-runnable-track { background: transparent; }
.ts-scrub::-moz-range-track { background: transparent; }
.ts-axis {
  display: flex; justify-content: space-between;
  font-size: 9px; letter-spacing: .14em; color: var(--mute);
  margin-top: 2px;
}

.ts-r { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.ts-clock {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0;
  color: var(--paper);
  line-height: 1;
}
.ts-clock small {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--accent);
  margin-left: 4px;
  font-weight: 500;
}
.ts-sub {
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--mute);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── Time-travel banner ──────────────────────────────────── */
.time-banner {
  position: fixed; top: 100px; left: 50%;
  transform: translateX(-50%);
  z-index: 28;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px;
  background: rgba(15,24,48,.92);
  border: 1px solid var(--accent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  box-shadow: 0 0 24px rgba(108,212,255,.4);
}
.time-banner-label { color: var(--accent); }
.time-banner-date { color: var(--paper); }
.time-banner-now {
  background: var(--accent);
  color: var(--ink);
  border: 0;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  cursor: pointer;
}

/* ── Hover tooltip on canvas ─────────────────────────────── */
.hover-tip {
  position: fixed; z-index: 35;
  pointer-events: none;
  display: flex; flex-direction: column; gap: 1px;
  padding: 6px 10px;
  background: rgba(10,16,32,.96);
  border: 1px solid var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  white-space: nowrap;
  transform: translate(12px, 12px);
}
.hover-tip-n { color: var(--paper); font-weight: 600; }
.hover-tip-s { color: var(--mute); font-size: 9px; letter-spacing: .14em; }

/* ── Tonight drawer (legacy modal, opens behind Tonight mode btn) ── */
.tonight {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  z-index: 40;
  background: rgba(10,16,32,.96);
  border-left: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-family: var(--mono);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,.1,.2,1);
}
.tonight[aria-hidden="false"] { transform: translateX(0); }
.tonight-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}
.tonight-title { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--paper); }
.tonight-meta { display: flex; gap: 12px; font-size: 10px; color: var(--mute); letter-spacing: .12em; margin-top: 4px; text-transform: uppercase; }
.tonight-close {
  width: 32px; height: 32px; background: transparent;
  border: 1px solid var(--line); color: var(--mute);
  font-size: 18px; cursor: pointer;
}
.tonight-close:hover { color: var(--paper); border-color: var(--paper); }
.tonight-body { flex: 1; overflow-y: auto; padding: 16px 20px 20px; }
.tonight-section { padding: 12px 0; border-top: 1px solid var(--line); }
.tonight-section:first-child { border-top: 0; padding-top: 0; }
.tonight-h {
  margin: 0 0 8px; font-family: var(--mono); font-size: 9px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.tonight-rows, .tonight-moon { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.tonight-row {
  display: grid; grid-template-columns: 22px 1fr auto;
  align-items: baseline;
  gap: 10px; padding: 7px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
}
.tonight-row:last-child { border-bottom: 0; }
.tonight-icon {
  font-size: 13px;
  text-align: center;
  color: var(--accent);
  line-height: 1;
}
.tonight-label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tonight-name { color: #f5efe2 !important; font-weight: 500; letter-spacing: .02em; }
.tonight-sub { color: #c8c0ad !important; font-size: 10.5px; letter-spacing: .04em; }
.tonight-value { color: #f5efe2 !important; font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.tonight-value--accent { color: var(--accent); }
.tonight-row--peak { background: rgba(108,212,255,.05); }
.tonight-row--peak .tonight-value { color: var(--accent); }
.tonight-row--dim { opacity: .65; }
.tonight-row[data-clickable="true"] { cursor: pointer; }
.tonight-row[data-clickable="true"]:hover { background: rgba(108,212,255,.08); }
.tonight-loading { color: var(--paper-2); font-size: 11px; opacity: .7; }
.twilight-bar { position: relative; height: 6px; background: rgba(255,255,255,.06); margin: 4px 0 8px; }
.twilight-bar-dark { position: absolute; top: 0; bottom: 0; background: var(--accent); opacity: .35; }
.twilight-bar-now { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.tonight-backdrop {
  position: fixed; inset: 0; z-index: 39;
  background: rgba(0,0,0,.4);
}
.tonight-backdrop[hidden] { display: none; }

/* ── Time-travel panel (legacy modal) ────────────────────── */
.time-panel {
  position: fixed; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 92vw);
  max-height: 90vh;
  z-index: 50;
  background: rgba(10,16,32,.96);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-family: var(--mono);
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,.7);
}
.time-panel-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}
.time-panel-title { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--paper); }
.time-panel-close {
  width: 32px; height: 32px;
  background: transparent; border: 1px solid var(--line); color: var(--mute);
  font-size: 18px; cursor: pointer;
}
.time-panel-close:hover { color: var(--paper); border-color: var(--paper); }
.time-panel-body { padding: 16px 18px; overflow-y: auto; }
.time-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.time-preset {
  padding: 5px 10px; background: transparent; border: 1px solid var(--line);
  color: var(--paper); font-family: var(--mono); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  transition: all .12s;
}
.time-preset:hover, .time-preset.is-active {
  color: var(--accent); border-color: var(--accent); background: rgba(108,212,255,.08);
}
.time-controls { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.time-date, .time-time {
  background: rgba(15,24,48,.55); border: 1px solid var(--line); color: var(--paper);
  padding: 6px 10px; font-family: var(--mono); font-size: 12px;
}
.time-slider-row { display: flex; flex-direction: column; gap: 6px; }
.time-slider-label { font-size: 10px; color: var(--mute); letter-spacing: .12em; }
.time-slider {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 2px; background: var(--line-strong);
}
.time-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 8px var(--accent); cursor: pointer;
}

/* legacy hud-btn used by btnTimeNow inside the time panel */
.hud-btn {
  background: transparent; border: 1px solid var(--line);
  color: var(--paper); font-family: var(--mono); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px;
  cursor: pointer;
}
.hud-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ── Image lightbox ──────────────────────────────────────── */
.img-lightbox {
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(3,6,15,.94);
  display: flex; align-items: center; justify-content: center;
}
.img-lightbox-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: transparent; border: 1px solid var(--line); color: var(--paper);
  font-size: 22px; cursor: pointer; z-index: 2;
}
.img-lightbox-close:hover { border-color: var(--accent); color: var(--accent); }
.img-lightbox-figure {
  margin: 0; max-width: 95vw; max-height: 95vh;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.img-lightbox-figure img { max-width: 100%; max-height: 80vh; object-fit: contain; border: 1px solid var(--line); }
.img-lightbox-caption {
  display: flex; flex-direction: column; gap: 4px; font-size: 11px;
  text-align: center; color: var(--mute);
}
.img-lightbox-credit { color: var(--mute-2); font-size: 10px; }
.img-lightbox-source { color: var(--accent); text-decoration: none; font-size: 10px; letter-spacing: .12em; }
.img-lightbox-source:hover { text-decoration: underline; }

/* ── Compass mode banner ─────────────────────────────────── */
.compass-banner {
  position: fixed; top: 100px; left: 50%;
  transform: translateX(-50%);
  z-index: 28;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px;
  background: rgba(255,209,102,.92);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  font-weight: 600;
}
.compass-banner-icon { font-size: 14px; }
.compass-banner-off {
  background: var(--ink); color: var(--accent-2);
  border: 0; padding: 4px 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  cursor: pointer;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .logbook { width: 270px; }
  .dispatch { width: 290px; }
}
@media (max-width: 880px) {
  .logbook { display: none; }
  .dispatch { width: calc(100vw - 22px); right: 11px; }
  .strip-inner { font-size: 9px; gap: 8px; }
  .timestrip { grid-template-columns: 1fr; gap: 8px; padding: 10px 12px; }
  .ts-r { flex-direction: row; align-items: baseline; gap: 8px; }
  .ts-clock { font-size: 22px; }
}
