/* International Conflict Studies — Beta v3.0 Live Globe Command Platform CSS */

:root {
  --bg-dark: #070a12;
  --bg-panel: #0d1322;
  --bg-card: rgba(19, 27, 46, 0.92);
  --bg-card-hover: rgba(26, 37, 64, 0.98);
  --border: #1e293b;
  --border-subtle: rgba(148, 163, 184, 0.15);
  --border-gold: #c5a059;
  --gold: #c5a059;
  --gold-hover: #dfb66d;
  --gold-glow: rgba(197, 160, 89, 0.22);
  --red: #ef4444;
  --red-glow: rgba(239, 68, 68, 0.28);
  --amber: #f59e0b;
  --green: #10b981;
  --blue: #3b82f6;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════════════════════════════════════════
   1. COMMAND HEADER
   ═══════════════════════════════════════════════════════════════════════════ */
.cmd-header {
  height: 60px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  z-index: 100;
  gap: 1rem;
}

.cmd-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.cmd-brand img { width: 32px; height: 32px; border-radius: 4px; }
.cmd-brand span { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; }

.cmd-badge {
  background: var(--gold-glow);
  color: var(--gold);
  border: 1px solid var(--border-gold);
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Header Maltego Transform Search */
.header-center-search {
  flex: 1;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.search-wrap {
  display: flex;
  align-items: center;
  background: rgba(5, 8, 17, 0.95);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.search-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}

.search-icon {
  font-size: 0.78rem;
  color: var(--text-dim);
}

#maltego-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  outline: none;
}

#maltego-search-input::placeholder {
  color: var(--text-dim);
  font-size: 0.72rem;
}

.btn-transform-exec {
  background: var(--gold);
  color: var(--bg-dark);
  border: none;
  border-radius: 4px;
  font-size: 0.66rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-transform-exec:hover {
  background: var(--gold-hover);
}

.header-chips-row {
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-chips-row::-webkit-scrollbar { display: none; }

.maltego-chip {
  font-size: 0.62rem;
  font-family: var(--font-mono);
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 1px 6px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.maltego-chip:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-gkg-stream {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-gkg-stream:hover {
  background: rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  background: rgba(10, 15, 29, 0.8);
  border: 1px solid var(--border);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

.gdelt-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.25); }
  100% { opacity: 0.4; transform: scale(0.9); }
}

/* Tactical Hegemonic Threat Status Strip */
.hegemonic-threat-strip {
  height: 28px;
  background: rgba(13, 19, 34, 0.98);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 1rem;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  overflow-x: auto;
  white-space: nowrap;
  gap: 1rem;
  z-index: 90;
}

.threat-status-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.pulse-indicator.red {
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
  animation: pulseDot 1.4s infinite;
}

.pulse-indicator.amber {
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
  animation: pulseDot 1.8s infinite;
}

.pulse-indicator.gold {
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
  animation: pulseDot 2.2s infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. MAIN DUAL-PANE COMMAND LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */
.cmd-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 420px 1fr;
  height: calc(100vh - 88px);
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. LEFT TELEMETRY & DOSSIER PANEL
   ═══════════════════════════════════════════════════════════════════════════ */
.telemetry-panel {
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.panel-sec {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.sec-title {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Target Dossier */
.dossier-sec {
  background: rgba(10, 15, 29, 0.95);
  border-bottom: 1px solid var(--border-gold);
}

.dossier-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.dossier-location {
  font-size: 0.66rem;
  color: var(--gold);
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
}

.dossier-cat-pill {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 3px;
}

.beta-badge {
  font-size: 0.62rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.level-crit { background: var(--red-glow); color: var(--red); border: 1px solid var(--red); }
.level-elev { background: rgba(245, 158, 11, 0.2); color: var(--amber); border: 1px solid var(--amber); }
.level-guard { background: rgba(16, 185, 129, 0.2); color: var(--green); border: 1px solid var(--green); }

.guardrail-pill {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
}
.score-core { background: rgba(16, 185, 129, 0.2); color: var(--green); border: 1px solid var(--green); }
.score-actor { background: rgba(59, 130, 246, 0.2); color: var(--blue); border: 1px solid var(--blue); }
.score-warning { background: rgba(239, 68, 68, 0.2); color: var(--red); border: 1px solid var(--red); }

.dossier-headline {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.dossier-actors-box {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
  padding: 0.35rem 0.5rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 4px;
  border: 1px solid var(--border);
}

.dossier-brief-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.65rem;
}

.dossier-brief-label {
  font-size: 0.58rem;
  font-family: var(--font-mono);
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: 0.04em;
}

.dossier-desc-text {
  font-size: 0.76rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin-bottom: 0.45rem;
}

.dossier-realist-text {
  font-size: 0.73rem;
  color: var(--gold);
  line-height: 1.4;
  font-style: italic;
}

.dossier-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.66rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-bottom: 0.65rem;
}

/* Geo-Economic & Supply Chain Metric Widget */
.econ-container {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: rgba(234, 179, 8, 0.06);
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-radius: 4px;
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.econ-metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.66rem;
}

.hhi-score-tag {
  font-size: 0.6rem;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
}
.hhi-score-tag.severe { background: var(--red-glow); color: var(--red); border: 1px solid var(--red); }
.hhi-score-tag.high { background: rgba(245, 158, 11, 0.2); color: var(--amber); border: 1px solid var(--amber); }

.econ-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
}

.ticker-delta.up { color: var(--green); font-weight: 700; }
.ticker-delta.down { color: var(--red); font-weight: 700; }

.econ-hhi-meter {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.econ-hhi-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.64rem;
}

.econ-hhi-bar-bg {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.econ-hhi-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--red));
}

.econ-logistics-box {
  font-size: 0.66rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Publisher Credibility Engine Box */
.pub-container {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 4px;
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.pub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pub-name { font-weight: 700; color: var(--text); }
.pub-tier-tag { font-size: 0.58rem; padding: 1px 5px; border-radius: 3px; font-weight: 700; }
.pub-tier-1 { background: rgba(16, 185, 129, 0.2); color: var(--green); border: 1px solid var(--green); }
.pub-tier-2 { background: rgba(59, 130, 246, 0.2); color: var(--blue); border: 1px solid var(--blue); }

.pub-sentiment {
  display: flex;
  justify-content: space-between;
  font-size: 0.64rem;
  color: var(--text-muted);
}

/* OpenAlex Peer-Reviewed Scholarship Box */
.scholar-container {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 4px;
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.scholar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scholar-tag {
  font-size: 0.6rem;
  font-weight: 700;
  color: #a78bfa;
  letter-spacing: 0.03em;
}

.scholar-cite-tag {
  font-size: 0.58rem;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(167, 139, 250, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(167, 139, 250, 0.4);
  font-weight: 700;
}

.scholar-paper-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.scholar-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.64rem;
  color: var(--text-muted);
}

.scholar-journal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.scholar-doi-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.64rem;
  font-weight: 700;
  transition: color 0.15s ease;
}

.scholar-doi-link:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

.dossier-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-full-wire {
  flex: 1;
  text-align: center;
  background: var(--gold);
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 0.74rem;
  padding: 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-full-wire:hover { background: var(--gold-hover); }

.btn-pin-scrap {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.74rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-pin-scrap:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Theater Focus Selector */
.theater-bar {
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.theater-bar::-webkit-scrollbar { display: none; }

.theater-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.64rem;
  font-family: var(--font-mono);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.theater-btn:hover { border-color: var(--gold); color: var(--text); }
.theater-btn.active {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
  font-weight: 700;
}

/* Live Incident Stream / Telemetry Feed */
.incident-feed-sec {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.incident-count-badge {
  font-size: 0.62rem;
  font-family: var(--font-mono);
  color: var(--gold);
  font-weight: 700;
}

.incidents-container {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow-y: auto;
  max-height: 260px;
}

.incident-feed-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.incident-feed-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  transform: translateX(2px);
}

.incident-feed-card.active-card {
  border-color: var(--gold);
  border-left: 3px solid var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
}

.incident-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.2rem;
}

.incident-card-loc {
  font-size: 0.62rem;
  color: var(--gold);
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
}

.incident-card-title {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.2rem;
}

.incident-card-time {
  font-size: 0.62rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* Scrapbook & Evidence Log */
.scrapbook-sec {
  background: rgba(5, 8, 17, 0.8);
}

.scrap-actions {
  display: flex;
  gap: 0.35rem;
}

.btn-scrap-action {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.6rem;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-scrap-action:hover { border-color: var(--gold); color: var(--gold); }

.scrapbook-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 140px;
  overflow-y: auto;
}

.scrap-item {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.4rem 0.55rem;
  font-size: 0.7rem;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scrap-item:hover { border-color: var(--border-gold); }

.scrap-remove {
  position: absolute;
  top: 4px;
  right: 6px;
  color: var(--text-dim);
  font-size: 0.65rem;
  cursor: pointer;
}
.scrap-remove:hover { color: var(--red); }

.scrap-item-title {
  font-weight: 600;
  color: var(--text);
  padding-right: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scrap-item-coords {
  font-size: 0.62rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* Observation Form */
.field-obs-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-obs-form input,
.field-obs-form textarea {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  font-size: 0.74rem;
  font-family: var(--font-sans);
  outline: none;
}

.field-obs-form input:focus,
.field-obs-form textarea:focus { border-color: var(--gold); }

.btn-transmit {
  background: var(--gold);
  color: var(--bg-dark);
  border: none;
  font-weight: 700;
  font-size: 0.74rem;
  padding: 0.45rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-transmit:hover { background: var(--gold-hover); }

/* ═══════════════════════════════════════════════════════════════════════════
   4. RIGHT VISUALIZATION WORKSPACE (EXCLUSIVE 3D GLOBE MAP)
   ═══════════════════════════════════════════════════════════════════════════ */
.cmd-workspace {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #03060c;
  overflow: hidden;
}

/* Breadcrumb Navigation Trail */
.breadcrumb-bar {
  height: 38px;
  background: rgba(13, 19, 34, 0.95);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  z-index: 10;
}
.breadcrumb-bar::-webkit-scrollbar { display: none; }

.trail-label {
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}

.breadcrumb-node {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.breadcrumb-node:hover {
  border-color: var(--gold);
  color: var(--text);
}

.breadcrumb-node.active-trail {
  border-color: var(--gold);
  background: rgba(197, 160, 89, 0.15);
  color: var(--gold);
  font-weight: 700;
}

.trail-arrow {
  color: var(--text-dim);
  font-size: 0.6rem;
}

/* Full-Screen 3D Globe Container */
.globe-viewport-container {
  flex: 1;
  position: relative;
  width: 100%;
  height: calc(100% - 38px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #091325 0%, #03060c 100%);
  overflow: hidden;
}

.globe-canvas {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.globe-canvas:active {
  cursor: grabbing;
}

/* Floating Controls Overlays */
.controls-overlay-top {
  position: absolute;
  top: 14px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 20;
}

.timeline-bar {
  display: flex;
  background: rgba(10, 15, 29, 0.9);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px;
  gap: 2px;
  backdrop-filter: blur(6px);
}

.timeline-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-family: var(--font-mono);
  padding: 3px 9px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.timeline-btn:hover { color: var(--text); }
.timeline-btn.active {
  background: var(--gold);
  color: var(--bg-dark);
  font-weight: 700;
}

.ctrl-btn {
  background: rgba(10, 15, 29, 0.9);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.66rem;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
}

.ctrl-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.ctrl-btn.active {
  background: var(--gold);
  color: var(--bg-dark);
  font-weight: 700;
}

.controls-overlay-right {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 0.45rem;
  z-index: 20;
}

.globe-ctrl-btn {
  background: rgba(10, 15, 29, 0.9);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.68rem;
  font-family: var(--font-mono);
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
}

.globe-ctrl-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.globe-ctrl-btn.active {
  border-color: var(--green);
  color: var(--green);
  background: rgba(16, 185, 129, 0.15);
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. GLOBE MAP STYLING & LABELS
   ═══════════════════════════════════════════════════════════════════════════ */
.globe-ocean {
  transition: fill 0.3s ease;
}

.globe-graticule {
  pointer-events: none;
}

.globe-land {
  pointer-events: none;
}

.globe-arc {
  pointer-events: none;
  filter: drop-shadow(0 0 2px rgba(197, 160, 89, 0.4));
}

.globe-label {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: #e2e8f0;
  text-shadow: 0 1px 4px #000, 0 0 2px #000;
  pointer-events: none;
  user-select: none;
}

.globe-label.hub-label {
  font-size: 11px;
  font-weight: 700;
  fill: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. HOVER TOOLTIP
   ═══════════════════════════════════════════════════════════════════════════ */
.graph-tooltip {
  position: fixed;
  display: none;
  width: 340px;
  background: rgba(10, 15, 29, 0.98);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  color: var(--text);
  font-family: var(--font-sans);
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.graph-tooltip.active { display: block; }

.tip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.tip-loc {
  font-size: 0.64rem;
  color: var(--gold);
  font-family: var(--font-mono);
  font-weight: 700;
}

.tip-title {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.tip-section-label {
  font-size: 0.58rem;
  font-family: var(--font-mono);
  color: var(--gold);
  font-weight: 700;
  margin-top: 0.35rem;
  margin-bottom: 0.15rem;
}

.tip-backup-brief {
  font-size: 0.72rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin-bottom: 0.35rem;
}

.tip-actors {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.tip-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
  font-size: 0.64rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cmd-layout {
    grid-template-columns: 360px 1fr;
  }
}

@media (max-width: 768px) {
  .cmd-header {
    height: auto;
    padding: 0.6rem 0.8rem;
    flex-wrap: wrap;
  }
  .header-center-search {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .cmd-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .telemetry-panel {
    height: 480px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .globe-viewport-container {
    height: 520px;
  }
}
