/* Tactical Aerospace Dark Design System */
:root {
  --bg-primary: #070b14;
  --bg-secondary: #0c1424;
  --bg-tertiary: #131f38;
  --bg-glass: rgba(12, 20, 36, 0.78);
  --bg-glass-card: rgba(16, 28, 52, 0.65);

  --border-color: rgba(56, 189, 248, 0.2);
  --border-glow: rgba(56, 189, 248, 0.5);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --accent-cyan: #00f0ff;
  --accent-blue: #38bdf8;
  --accent-amber: #f59e0b;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-purple: #a855f7;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-cyan: #38bdf8;

  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --sidebar-width: 380px;
  --header-height: 60px;
  --z-hud: 100;
  --z-modal: 500;

  --sidebar-current-width: 380px;
  --right-panel-current-width: 380px;
}

body.sidebar-collapsed {
  --sidebar-current-width: 0px;
}
body.right-panel-collapsed {
  --right-panel-current-width: 0px;
}

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

html, body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
  overscroll-behavior: none;
  height: 100%; height: 100dvh; height: calc(var(--vh, 1vh) * 100);
  width: 100vw;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
}

body.auth-locked {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

/* Universal Tactical Aerospace Scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 240, 255, 0.4) rgba(7, 11, 20, 0.5);
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: rgba(7, 12, 22, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.35);
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  transition: all 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

/* Cesium Container fills screen */
#cesiumContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%; height: 100dvh; height: calc(var(--vh, 1vh) * 100);
  z-index: 1;
}

/* Header / Top Bar */
.top-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.95) 0%, rgba(7, 11, 20, 0.7) 80%, transparent 100%);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10000 !important;
}

.brand-section {
  position: relative;
  z-index: 9001 !important;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(12, 20, 36, 0.45);
  transition: all 0.25s ease;
}

.brand-section:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
}

.brand-logo-wrap {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s;
}

.brand-section:hover .brand-logo-wrap {
  transform: scale(1.08) rotate(3deg);
  filter: drop-shadow(0 0 16px rgba(0, 240, 255, 0.85));
}

.brand-logo-svg {
  width: 36px;
  height: 36px;
  display: block;
}

.brand-compact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.brand-abbr-row {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.brand-abbr {
  font-family: var(--font-mono);
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 30%, #94a3b8 70%, #64748b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 8px rgba(148, 163, 184, 0.5);
}

.brand-tag {
  font-size: 10px;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.brand-dropdown-icon {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.25s ease;
  margin-left: 2px;
}

.brand-section:hover .brand-dropdown-icon {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.brand-sub-summary {
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 0.4px;
  font-weight: 500;
  white-space: nowrap;
}

/* Hover Dropdown Card (?�문 �??�세 ?�양 ?�단 ?�개) */
.brand-hover-card {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 450px;
  background: #080e1a !important;
  /* 100% Opaque solid tactical background */
  border: 1.5px solid var(--accent-cyan) !important;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(0, 240, 255, 0.45) !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  z-index: 99999 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Hover state on brand-section, logo-wrap, or hover card itself */
.brand-section:hover .brand-hover-card,
.brand-hover-card:hover,
.brand-hover-card.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

/* Focus Backdrop Overlay when Logo Explanation Card is Open (주�? ?�면 블러 �??�전) */
.brand-focus-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%; height: 100dvh; height: calc(var(--vh, 1vh) * 100);
  background: rgba(4, 8, 16, 0.65);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 8500;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

/* Activate Backdrop Blur when hovered or focused */
body.brand-card-focused .brand-focus-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: none !important;
}

/* Blur & Dim other Top Nav items (time HUD & nav-actions) when logo card is hovered/focused */
.top-nav .time-hud,
.top-nav .nav-actions {
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.brand-section:hover~.time-hud,
.brand-section:hover~.nav-actions,
body.brand-card-focused .top-nav .time-hud,
body.brand-card-focused .top-nav .nav-actions {
  filter: blur(5px) opacity(0.28);
  pointer-events: none;
}

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

.bhc-beacon {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 1px;
}

.bhc-ver {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.bhc-title-en {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.6px;
  color: #fff;
  background: linear-gradient(135deg, #ffffff 40%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.bhc-title-ko {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.5px;
}

.bhc-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.4), rgba(56, 189, 248, 0.1), transparent);
  margin: 4px 0;
}

.bhc-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bhc-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(16, 28, 52, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 6px 10px;
}

.bhc-detail-lbl {
  font-size: 10px;
  color: var(--text-cyan);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.bhc-detail-val {
  font-size: 11.5px;
  color: #f1f5f9;
  line-height: 1.4;
}

.bhc-footer {
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bhc-footer-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* Single-Line High-Contrast Tactical Time HUD */
.time-hud {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(12, 20, 36, 0.85);
  padding: 4px 10px;
  height: 38px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  white-space: nowrap !important;
  flex-shrink: 0;
}

.time-block {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.time-block.is-primary {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.time-block.is-primary .time-val {
  color: var(--accent-cyan);
  font-weight: 800;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
  font-size: 13px;
}

.time-block.is-secondary {
  opacity: 0.78;
}

.time-block.is-secondary .time-val {
  color: var(--text-secondary);
  font-size: 12px;
}

.time-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.time-badge.active {
  background: var(--accent-cyan);
  color: #060b14;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.time-date {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

.time-val {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.tz-standard-tag {
  font-size: 9px;
  color: var(--accent-cyan);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Timezone Toggle Switch Button */
.btn-tz-switch {
  background: rgba(19, 31, 56, 0.9);
  border: 1px solid var(--border-color);
  color: var(--accent-cyan);
  width: 26px;
  height: 26px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 700;
}

.btn-tz-switch:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--accent-cyan);
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* Speed Indicator Pill */
.speed-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent-blue);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.speed-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 6px var(--accent-blue);
}

/* Modern Bottom Tactical Playback Bar (Above Cesium Timeline) */
.tactical-playback-bar {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(10, 16, 28, 0.92);
  backdrop-filter: none;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 12px rgba(0, 240, 255, 0.12);
  z-index: 99;
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap !important;
}

body.sidebar-collapsed .tactical-playback-bar {
  /* left: 10px; */ /* Centered */
}

.playback-mobile-row {
  display: contents;
}

.btn-play-ctrl { order: 1; }
.playback-step-group { order: 2; }
.playback-speed-group { order: 3; }
.playback-divider { order: 4; }
#btnSyncRealNow { order: 5; }
#btnResetScenario { order: 6; }
#btnOpenTimeJump { order: 7; }

.btn-play-ctrl {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--accent-cyan);
  color: #070b14;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-play-ctrl:hover {
  transform: scale(1.06);
  background: #38bdf8;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.8);
}

.pb-icon {
  width: 14px;
  height: 14px;
}

.playback-step-group {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.btn-step-sm {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap !important;
  transition: all 0.15s ease;
}

.btn-step-sm:last-child {
  border-right: none;
}

.btn-step-sm:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #fff;
}

.playback-speed-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(15, 23, 42, 0.7);
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.speed-group-title {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  margin-right: 3px;
  text-transform: uppercase;
}

.btn-speed-pill {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap !important;
  transition: all 0.15s ease;
}

.btn-speed-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-speed-pill.active {
  background: rgba(0, 240, 255, 0.2);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.35);
}

.playback-divider {
  width: 1px;
  height: 20px;
  background: var(--border-color);
  margin: 0 2px;
  flex-shrink: 0;
}

.btn-pb-action {
  background: rgba(19, 31, 56, 0.85);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap !important;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-pb-action:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--accent-blue);
  color: #fff;
}

.btn-pb-action.btn-live-sync {
  border-color: rgba(16, 185, 129, 0.5);
  color: #10b981;
  font-weight: 700;
}

.btn-pb-action.btn-live-sync:hover {
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.pb-action-icon {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  flex-shrink: 0;
}

.tz-radio-group {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-primary);
  margin-top: 4px;
}

.tz-radio-group label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.btn-tactical {
  background: rgba(19, 31, 56, 0.85);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 6px 11px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  white-space: nowrap !important;
  word-break: keep-all;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-tactical span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap !important;
}

.btn-tactical:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.btn-tactical.active {
  background: var(--accent-cyan);
  color: #050b14;
  font-weight: 800;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.btn-tactical.mode-active-only {
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
  font-weight: 700;
  border-color: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
}

.btn-tactical.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-color: #38bdf8;
  color: #fff;
}

.btn-tactical.btn-primary:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.btn-tactical.btn-turbo {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.btn-tactical.btn-turbo:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
  color: #6ee7b7;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.btn-tactical.btn-turbo.active {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border-color: #34d399;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.6);
}

/* Small Tactical Button Variant */
.btn-tactical-sm,
.btn-tactical.btn-tactical-sm {
  background: rgba(19, 31, 56, 0.85);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap !important;
  word-break: keep-all;
  flex-shrink: 0;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.btn-tactical-sm:hover,
.btn-tactical.btn-tactical-sm:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.btn-tactical-sm:active,
.btn-tactical.btn-tactical-sm:active {
  transform: translateY(1px);
}

.btn-tactical-sm.btn-primary,
.btn-tactical.btn-tactical-sm.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-color: #38bdf8;
  color: #fff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.btn-tactical-sm.btn-primary:hover,
.btn-tactical.btn-tactical-sm.btn-primary:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
  color: #fff;
}

/* Icon SVG inside buttons */
.btn-icon-svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.btn-tactical:hover .btn-icon-svg {
  transform: scale(1.1);
}

/* Gear Icon smooth spin on hover */
.btn-tactical:hover .icon-gear {
  transform: rotate(60deg) scale(1.1);
}

/* Left Sidebar - Missions Control Panel */
.sidebar {
  position: absolute;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-glass);
  backdrop-filter: none;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: var(--z-hud);
  box-shadow: 8px 0 25px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  transform: translateZ(0);
  isolation: isolate;
  will-change: transform;
  backface-visibility: hidden;
}

.sidebar.collapsed {
  transform: translateX(-100%);
  box-shadow: none;
}

.sidebar-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-toggle-btn {
  position: absolute;
  right: -28px;
  top: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: none;
  color: var(--accent-cyan);
  width: 28px;
  height: 38px;
  border-radius: 0 6px 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s ease;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.sidebar-toggle-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  color: #fff;
  border-color: var(--accent-cyan);
}

/* Stats Row */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-subtle);
}

.stat-box {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
}

.stat-box.active-pulse {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.stat-box.active-pulse .stat-value {
  color: var(--accent-cyan);
  animation: textGlow 2s infinite alternate;
}

.stat-label {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Filter Controls */
.filter-container {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-input {
  width: 100%;
  background: rgba(7, 11, 20, 0.8);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  outline: none;
  font-family: var(--font-sans);
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip:hover {
  color: #fff;
  border-color: var(--border-color);
}

.filter-chip.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Mission List */
.mission-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  contain: strict;
  will-change: scroll-position;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
}

.mission-list::-webkit-scrollbar {
  width: 5px;
}

.mission-list::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: 4px;
}

.mission-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  content-visibility: auto;
  contain-intrinsic-size: 0 96px;
  contain: paint layout;
  transform: translateZ(0);
}

.mission-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-blue);
  opacity: 0.7;
}

.mission-card.type-satellite::before {
  background: var(--sat-color, var(--accent-cyan));
}

.mission-card[style*="--sat-color"]::before {
  background: var(--sat-color) !important;
  box-shadow: 0 0 6px var(--sat-color);
}

.mission-card.type-aircraft::before {
  background: var(--accent-amber);
}

.mission-card.is-active-now {
  border-color: var(--sat-color, var(--accent-cyan)) !important;
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
}

.mission-card.is-active-now::before {
  background: var(--sat-color, var(--accent-cyan)) !important;
  box-shadow: 0 0 10px var(--sat-color, var(--accent-cyan));
}

.mission-card:hover {
  border-color: var(--sat-color, var(--accent-cyan));
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.25);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.card-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
}

.card-status {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-active {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
}

.status-scheduled {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.status-completed {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
}

.sensor-tag {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  color: #e2e8f0;
}

.card-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

/* Floating Quick Controls (Top Right) */
.floating-controls {
  position: absolute;
  top: calc(var(--header-height) + 15px);
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: var(--z-hud);
}

.hud-pill {
  background: var(--bg-glass);
  backdrop-filter: none;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Detail Drawer (Right Side) */
.detail-drawer {
  position: absolute;
  top: calc(var(--header-height) + 15px);
  right: 15px;
  bottom: 100px;
  width: 360px;
  background: rgba(10, 16, 28, 0.96);
  backdrop-filter: none;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  z-index: 120;
  box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  transform: translateX(calc(100% + 30px));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

.btn-close:hover {
  color: #fff;
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 13px;
  color: #f1f5f9;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.detail-value.mono {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.drawer-actions {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 8px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 90%;
  max-width: 580px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 70vh;
  overflow-y: auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
  background: rgba(7, 11, 20, 0.9);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-cyan);
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* Animations */
@keyframes textGlow {
  0% {
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.3);
  }

  100% {
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.8);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.5);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(0, 240, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
  }
}

.pulse-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  animation: pulseGlow 1.8s infinite;
}

/* Unified Layer Panel Focus Backdrop Blur */
.layer-panel-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%; height: 100dvh; height: calc(var(--vh, 1vh) * 100);
  background: rgba(4, 8, 16, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9500;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

body.layer-panel-open .layer-panel-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Map & 3D Terrain Switcher Panel - Docked directly beneath btnToggleMapLayers */
.map-layer-panel {
  position: fixed;
  top: calc(var(--header-height) + 8px);
  width: 380px;
  background: rgba(9, 15, 28, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 240, 255, 0.45);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.9), 0 0 24px rgba(0, 240, 255, 0.25);
  z-index: 10001;
  display: none;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - var(--header-height) - 30px);
  overflow-y: auto;
  animation: layerPanelDockIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-layer-panel::before {
  content: '';
  position: absolute;
  top: -6px;
  left: var(--arrow-left, 50%);
  transform: translateX(-50%) rotate(45deg);
  width: 11px;
  height: 11px;
  background: rgba(9, 15, 28, 0.98);
  border-left: 1px solid rgba(0, 240, 255, 0.45);
  border-top: 1px solid rgba(0, 240, 255, 0.45);
  z-index: 1;
}

@keyframes layerPanelDockIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.map-layer-panel.open {
  display: flex;
}

/* Unified Layer & Tactical Display Panel Elements */
.layer-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  margin-bottom: 2px;
}

.layer-panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.layer-panel-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-cyan);
}

.layer-panel-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.layer-panel-close-btn,
.layer-panel-btn-close {
  background: rgba(0, 240, 255, 0.15) !important;
  border: 1px solid rgba(0, 240, 255, 0.35) !important;
  color: #00f0ff !important;
  border-radius: 4px !important;
  padding: 3px 10px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  line-height: 1.3 !important;
  transition: all 0.2s ease !important;
}

.layer-panel-close-btn:hover,
.layer-panel-btn-close:hover {
  background: rgba(0, 240, 255, 0.35) !important;
  color: #fff !important;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.3) !important;
}

/* Layer Tabs Nav */
.layer-tabs-nav {
  display: flex;
  gap: 4px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 6px;
  padding: 3px;
  margin-bottom: 6px;
}

.layer-tab-btn {
  flex: 1;
  padding: 6px 4px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
}

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

.layer-tab-btn.active {
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.18);
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
  font-weight: 700;
}

.layer-tab-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.layer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

.panel-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.layer-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.layer-card {
  background: rgba(16, 28, 52, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.layer-card:hover {
  border-color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.15);
}

.layer-card.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.layer-name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.layer-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #f1f5f9;
  cursor: pointer;
}

.badge-status-on {
  font-size: 10px;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.exaggeration-pills {
  display: flex;
  gap: 6px;
}

.exag-pill {
  flex: 1;
  text-align: center;
  font-size: 11px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.exag-pill.active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.15);
  font-weight: 600;
}

.lang-pills {
  display: flex;
  gap: 6px;
}

.lang-pill {
  flex: 1;
  text-align: center;
  font-size: 11px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  transition: all 0.15s ease;
  user-select: none;
}

.lang-pill:hover {
  border-color: rgba(0, 240, 255, 0.4);
  color: #fff;
}

.lang-pill.active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.18);
  font-weight: 700;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

.lang-select-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lang-radio-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  cursor: pointer;
  color: #e2e8f0;
  transition: all 0.2s ease;
}

.lang-radio-label:hover {
  background: rgba(0, 240, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.35);
}

.lang-radio-label input[type="radio"] {
  accent-color: var(--accent-cyan);
  width: 17px;
  height: 17px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}


.quick-zoom-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.btn-zoom-preset {
  background: rgba(19, 31, 56, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.btn-zoom-preset:hover {
  border-color: var(--accent-cyan);
  color: #fff;
  background: rgba(56, 189, 248, 0.2);
}

/* Floating Tactical Camera & Zoom HUD Controller */
.tactical-zoom-hud {
  position: absolute;
  right: 396px;
  bottom: 110px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: var(--z-hud);
  background: var(--bg-glass);
  backdrop-filter: none;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 240, 255, 0.25);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.right-panel-collapsed .tactical-zoom-hud {
  right: 20px;
}

.btn-zoom-hud {
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  background: rgba(19, 31, 56, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--accent-cyan);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-zoom-hud:hover {
  background: rgba(0, 240, 255, 0.25);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
  transform: scale(1.08);
  color: #fff;
}

.btn-zoom-hud:active {
  transform: scale(0.92);
}

.zoom-hud-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 1px 0;
}

/* Sidebar Tabs Switcher */
.sidebar-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border-subtle);
}

.tab-btn {
  flex: 1;
  padding: 10px 6px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.tab-btn:hover {
  color: #fff;
  background: rgba(56, 189, 248, 0.1);
}

.tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  font-weight: 700;
}



.sat425-card {
  background: rgba(16, 28, 52, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  content-visibility: auto;
  contain-intrinsic-size: 0 176px;
  contain: paint layout;
  transform: translateZ(0);
}

.sat425-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--sat-color, var(--accent-cyan));
  z-index: 1;
}

.sat425-card:hover {
  border-color: var(--sat-color, var(--accent-cyan));
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.25);
}

.sat425-card.is-active-pass {
  border-color: var(--sat-color, var(--accent-cyan));
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.1);
}

.sat425-card.is-active-pass::before {
  box-shadow: 0 0 10px var(--sat-color, var(--accent-cyan));
}

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

.sat425-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.sat425-platform-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.sat425-platform-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 3px;
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.35);
  font-family: var(--font-mono);
}

.sat425-target-primary-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 5px 0 4px 0;
  line-height: 1.35;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  word-break: keep-all;
}

.sat425-eei-strip {
  font-size: 10.5px;
  color: #fcd34d;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 7px;
  border-radius: 4px;
  border-left: 2px solid var(--accent-amber);
  margin: 4px 0;
  line-height: 1.35;
}

.sat425-spec-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
}

.spec-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
}

.spec-badge.highlight {
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.sat425-target {
  font-size: 11px;
  color: #e2e8f0;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 8px;
  border-radius: 4px;
  border-left: 2px solid var(--accent-amber);
}

.sat425-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.sat425-actions .btn-tactical-sm {
  flex: 1 1 auto;
  min-width: 68px;
  white-space: nowrap;
  justify-content: center;
  align-items: center;
  display: inline-flex;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  color: #e2e8f0;
  transition: all 0.2s ease;
}

.sat425-actions .btn-jump-pass {
  flex: 1.2;
  border-color: rgba(0, 240, 255, 0.6);
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
}

.sat425-actions .btn-jump-pass:hover {
  background: rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
  color: #fff;
}

.sat425-actions .btn-track-sat {
  flex: 1;
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.sat425-actions .btn-track-sat:hover {
  background: rgba(56, 189, 248, 0.25);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
  color: #fff;
}

.sat425-actions .btn-inspect-sat {
  flex: 0.9;
  border-color: rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.sat425-actions .btn-inspect-sat:hover {
  background: rgba(168, 85, 247, 0.25);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
  color: #fff;
}

/* Live Acquisition Alert Banner (Top Center) */
.acquisition-alert-banner {
  position: absolute;
  top: calc(var(--header-height) + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(12, 20, 36, 0.92);
  backdrop-filter: none;
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.4);
  border-radius: 8px;
  padding: 8px 18px;
  display: none;
  align-items: center;
  gap: 12px;
  z-index: var(--z-hud);
  cursor: pointer;
  animation: bannerPulse 2s infinite alternate;
}

.acquisition-alert-banner.open {
  display: flex;
}

@keyframes bannerPulse {
  0% {
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  }

  100% {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.7);
  }
}

/* KST Midnight Session Expiration Warning Banner */
.session-security-banner {
  position: absolute;
  top: calc(var(--header-height) + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(24, 18, 5, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid #f59e0b;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.85), 0 0 22px rgba(245, 158, 11, 0.45);
  border-radius: 8px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: calc(var(--z-hud) + 10);
  animation: sessionBannerPulse 2s infinite alternate;
}

@keyframes sessionBannerPulse {
  0% { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.8), 0 0 12px rgba(245, 158, 11, 0.3); }
  100% { box-shadow: 0 6px 28px rgba(0, 0, 0, 0.9), 0 0 24px rgba(245, 158, 11, 0.6); }
}

.security-alert-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  animation: blinkWarnDot 1s infinite alternate;
  flex-shrink: 0;
}

@keyframes blinkWarnDot {
  0% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1.15); }
}

.security-alert-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #fef3c7;
}

.security-badge {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  color: #fbbf24;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.security-desc {
  font-size: 11.5px;
  color: #d1d5db;
}

@media (max-width: 768px) {
  .session-security-banner {
    flex-direction: column !important;
    text-align: center !important;
    padding: 10px 14px !important;
    top: auto !important;
    bottom: 110px !important;
    width: min(340px, 92%) !important;
  }
  .security-alert-text {
    flex-direction: column !important;
    gap: 4px !important;
  }
}

/* Tactical Ephemeral HUD Toast for Map & Mode Feedback */
.tactical-hud-toast {
  position: fixed;
  top: calc(var(--header-height) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-15px);
  background: rgba(10, 22, 38, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 240, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 240, 255, 0.35);
  border-radius: 8px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: calc(var(--z-hud) + 20);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'JetBrains Mono', 'Pretendard', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #e0f2fe;
}
.tactical-hud-toast.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.tactical-hud-toast .toast-icon {
  font-size: 16px;
  line-height: 1;
}
.tactical-hud-toast .toast-msg {
  letter-spacing: 0.3px;
}
.tactical-hud-toast.toast-amber {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.85), 0 0 20px rgba(245, 158, 11, 0.35);
  color: #fef3c7;
}

.alert-dot {
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulseGlow 1.2s infinite;
}

.alert-text {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.alert-target {
  color: var(--accent-cyan);
  font-weight: 700;
}

.alert-btn-recon,
#btnOpenAlertReconModal,
.acquisition-alert-banner .btn-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25) 0%, rgba(168, 85, 247, 0.35) 100%);
  border: 1px solid var(--accent-cyan);
  color: #00f0ff;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4), inset 0 0 8px rgba(168, 85, 247, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
  letter-spacing: 0.3px;
  margin-left: 8px;
  animation: pulseGlowBtn 2s infinite alternate;
}

.alert-btn-recon:hover,
#btnOpenAlertReconModal:hover,
.acquisition-alert-banner .btn-live:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.5) 0%, rgba(168, 85, 247, 0.6) 100%);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.8), 0 0 25px rgba(168, 85, 247, 0.6);
  transform: translateY(-1px) scale(1.04);
}

@keyframes pulseGlowBtn {
  0% {
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3), inset 0 0 6px rgba(168, 85, 247, 0.2);
  }

  100% {
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.6), inset 0 0 12px rgba(168, 85, 247, 0.4);
  }
}

/* Simulated Reconnaissance Image Preview Modal */
.recon-modal-card {
  max-width: 680px;
  width: 90vw;
}

.recon-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 78vh;
  overflow-y: auto;
}

.recon-image-preview {
  position: relative;
  width: 100%;
  height: 250px;
  background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
  border: 1px solid var(--accent-cyan);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.2);
}

.recon-img-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.recon-synthetic-view {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(120%) brightness(95%);
}

.recon-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(to right, rgba(0, 240, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.recon-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00f0ff, transparent);
  box-shadow: 0 0 14px #00f0ff;
  animation: scanSweep 3s infinite linear;
  pointer-events: none;
}

@keyframes scanSweep {
  0% {
    top: 0%;
    opacity: 0.9;
  }

  100% {
    top: 100%;
    opacity: 0.9;
  }
}

.recon-target-reticle {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px dashed rgba(0, 240, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
  animation: reticleSpin 12s infinite linear;
}

.recon-target-reticle::before,
.recon-target-reticle::after {
  content: '';
  position: absolute;
  background: var(--accent-cyan);
}

.recon-target-reticle::before {
  top: 50%;
  left: -10px;
  right: -10px;
  height: 1px;
  transform: translateY(-50%);
}

.recon-target-reticle::after {
  left: 50%;
  top: -10px;
  bottom: -10px;
  width: 1px;
  transform: translateX(-50%);
}

@keyframes reticleSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.recon-hud-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 14px;
  pointer-events: none;
  font-family: var(--font-mono);
}

.recon-hud-top,
.recon-hud-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-tag {
  background: rgba(7, 11, 20, 0.75);
  border: 1px solid var(--border-color);
  color: var(--accent-cyan);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.8px;
}

.hud-tag.alert {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.recon-hud-coords {
  font-size: 11px;
  color: #fff;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

.recon-hud-alt {
  font-size: 11px;
  color: var(--accent-amber);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

/* Tactical Target Collection Plan & Exploitation Sheet */
.target-plan-header-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
}

.target-plan-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-target-code {
  font-size: 11px;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.35);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.badge-target-id {
  font-size: 11px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.badge-priority {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-priority.priority-cat1 {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

.badge-priority.priority-cat2 {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.badge-category {
  font-size: 10px;
  color: #cbd5e1;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
}

.target-plan-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #4ade80;
  font-family: var(--font-mono);
  font-weight: 600;
}

.workflow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse-beacon 1.5s infinite;
}

/* ISR Pipeline Steps Breadcrumb */
.isr-pipeline-steps {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.pipe-step {
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pipe-step.done {
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.3);
}

.pipe-step.active {
  background: rgba(0, 240, 255, 0.2);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  font-weight: 700;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.25);
}

.pipe-arrow {
  color: var(--text-muted);
  font-size: 9px;
}

/* Sidebar 425 Card Target Badges */
.target-badge-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.target-be-badge {
  font-size: 9.5px;
  font-family: var(--font-mono);
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.3px;
  font-weight: 600;
}

.target-priority-badge {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.target-priority-badge.priority-cat1 {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.target-priority-badge.priority-cat2 {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.target-cat-badge {
  font-size: 9px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.target-name-text {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 3px;
}

.target-eei-text {
  font-size: 10px;
  color: var(--accent-amber);
  line-height: 1.35;
  font-family: var(--font-sans);
  background: rgba(245, 158, 11, 0.06);
  padding: 3px 6px;
  border-radius: 4px;
  border-left: 2px solid var(--accent-amber);
  margin-top: 3px;
}

/* Pass Schedule Card Target Meta */
.pass-target-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.pass-target-code {
  font-size: 9.5px;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  font-weight: 600;
}

.pass-target-priority {
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
}

.pass-target-priority.priority-cat1 {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.pass-target-priority.priority-cat2 {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.pass-target-cat {
  font-size: 9px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 4px;
  border-radius: 3px;
}

.pass-target-eei {
  font-size: 10px;
  color: var(--accent-amber);
  margin-top: 3px;
  line-height: 1.35;
  border-left: 2px solid var(--accent-amber);
  padding-left: 5px;
  background: rgba(245, 158, 11, 0.05);
  border-radius: 0 3px 3px 0;
  padding-top: 2px;
  padding-bottom: 2px;
}

/* Recon Details Grid */
.recon-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.recon-detail-card {
  background: rgba(12, 20, 36, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.recon-detail-card.eei-card {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.35);
}

.recon-detail-label {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.recon-detail-val {
  font-size: 12px;
  color: var(--text-primary);
}

.recon-detail-val.highlight {
  color: var(--accent-cyan);
  font-weight: 700;
}

.recon-detail-val.mono {
  font-family: var(--font-mono);
}

/* 425 Satellites Sidebar List */
.sat425-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 14px 28px 14px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  contain: strict;
  will-change: scroll-position;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
}

.sat425-list::-webkit-scrollbar {
  width: 5px;
}

.sat425-list::-webkit-scrollbar-track {
  background: rgba(4, 9, 18, 0.45);
  border-radius: 4px;
}

.sat425-list::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.35);
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  transition: all 0.2s ease;
}

.sat425-list::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.sat425-banner-info {
  background: rgba(0, 240, 255, 0.05);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 14px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.sat425-banner-info strong {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Right Panel: Korean Peninsula Pass Schedule Timeline List Box
   ========================================================================== */
.right-pass-panel {
  position: absolute;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  width: 380px;
  background: var(--bg-glass);
  backdrop-filter: none;
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 92;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.6);
  transform: translateZ(0);
  isolation: isolate;
  will-change: transform;
  backface-visibility: hidden;
}

.right-pass-panel.collapsed {
  transform: translateX(100%);
  box-shadow: none;
}

.right-panel-toggle-btn {
  position: absolute;
  top: 14px;
  left: -28px;
  width: 28px;
  height: 38px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: 6px 0 0 6px;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s ease;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.right-panel-toggle-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  color: #fff;
  border-color: var(--accent-cyan);
}

.right-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(7, 11, 20, 0.7);
}

.right-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}

.beacon-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulseGlow 1.5s infinite;
}

.pass-count-tag {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--accent-cyan);
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
}

/* Statistics Grid */
.pass-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-subtle);
}

.pass-stat-item {
  background: rgba(16, 28, 52, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  padding: 6px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.pass-stat-item.active-beacon {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.35);
}

.pass-stat-val {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #fff;
}

.pass-stat-item.active-beacon .pass-stat-val {
  color: #ef4444;
}

.pass-stat-lbl {
  font-size: 9.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Filter and Search Section */
.pass-filter-section {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pass-search-box {
  width: 100%;
  background: rgba(7, 11, 20, 0.85);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 7px 11px;
  border-radius: 5px;
  font-size: 11px;
  outline: none;
  font-family: var(--font-sans);
  transition: border-color 0.2s;
}

.pass-search-box:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.pass-filter-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

/* Chronological Pass Schedule List Box */
.pass-cards-listbox {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  contain: strict;
  will-change: scroll-position;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
}

.pass-cards-listbox::-webkit-scrollbar {
  width: 5px;
}

.pass-cards-listbox::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.25);
  border-radius: 3px;
}

.pass-schedule-card {
  background: rgba(16, 28, 52, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  cursor: pointer;
  content-visibility: auto;
  contain-intrinsic-size: 0 216px;
  contain: paint layout;
  transform: translateZ(0);
}

.pass-schedule-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.25);
}

/* Scroll Performance Acceleration: disable hover style calculation while scrolling */
.is-scrolling .mission-card,
.is-scrolling .pass-schedule-card,
.is-scrolling .sat425-card {
  pointer-events: none !important;
}

.pass-schedule-card.is-425 {
  border-left: 3px solid var(--accent-cyan);
}

.pass-schedule-card.status-live {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.35);
}

.pass-schedule-card.status-live.is-425 {
  border-left-color: #ef4444;
}

.pass-schedule-card.status-completed {
  opacity: 0.65;
}

.platform-selector-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 8px;
}

.platform-selector-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.3px;
}

.platform-selector-label .selector-icon {
  width: 13px;
  height: 13px;
  stroke: var(--accent-cyan);
}

.platform-select-dropdown {
  background: rgba(10, 15, 30, 0.95);
  color: #f1f5f9;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 11.5px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.platform-select-dropdown:hover,
.platform-select-dropdown:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.platform-select-dropdown optgroup {
  background: #0f172a;
  color: var(--accent-amber);
  font-weight: 700;
  font-size: 11px;
}

.platform-select-dropdown option {
  background: #0b1120;
  color: #e2e8f0;
  font-weight: 500;
  padding: 4px;
}

.pass-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.pass-target-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.pass-platform-badge-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.pass-target-primary-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 2px 0 0 0;
  line-height: 1.35;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  word-break: keep-all;
}

.pass-asset-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pass-cat-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.pass-cat-badge.badge-425 {
  background: rgba(0, 240, 255, 0.2);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.pass-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}

.pass-status-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.badge-live {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border: 1px solid #ef4444;
  animation: pulseGlow 1.2s infinite;
}

.badge-upcoming {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-completed {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.pass-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.pass-time-main {
  color: var(--accent-amber);
  font-weight: 700;
  font-family: var(--font-mono);
}

.pass-time-sub {
  color: var(--text-muted);
  font-size: 10px;
}

.pass-progress-container {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.pass-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00f0ff, #ef4444);
  width: 0%;
  transition: width 0.4s ease;
}

.pass-spec-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--text-secondary);
}

.pass-spec-tag {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.sensor-eoir,
.sensor-eo {
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.sensor-sar {
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.sensor-sigint {
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.pass-region-text {
  color: var(--text-secondary);
  font-size: 10.5px;
}

.pass-target-box {
  background: rgba(0, 0, 0, 0.35);
  padding: 5px 8px;
  border-radius: 4px;
  border-left: 2px solid var(--accent-amber);
}

.pass-target-name {
  font-size: 11px;
  color: #e2e8f0;
  line-height: 1.35;
}

.pass-actions {
  display: flex;
  gap: 6px;
  margin-top: 5px;
}

.pass-actions .btn-tactical-sm {
  flex: 1;
  justify-content: center;
  padding: 5px 4px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  color: #e2e8f0;
  transition: all 0.2s ease;
}

.pass-actions .btn-pass-jump {
  flex: 1.2;
  border-color: rgba(0, 240, 255, 0.6);
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
}

.pass-actions .btn-pass-jump:hover {
  background: rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  color: #fff;
}

.pass-actions .btn-pass-track {
  flex: 1;
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.pass-actions .btn-pass-track:hover {
  background: rgba(56, 189, 248, 0.25);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  color: #fff;
}

.pass-actions .btn-pass-inspect {
  flex: 0.9;
  border-color: rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.pass-actions .btn-pass-inspect:hover {
  background: rgba(168, 85, 247, 0.25);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  color: #fff;
}

/* =========================================================================
   20. Full-Page Settings View (?�경?�정 ?�?�보??
   ========================================================================= */

.settings-view {
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100% - var(--header-height));
  background: var(--bg-primary);
  z-index: 9500;
  display: flex;
  flex-direction: column;
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  background: rgba(12, 20, 36, 0.8);
  border-bottom: 1px solid var(--border-subtle);
}

.settings-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.settings-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.settings-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.settings-sidebar {
  width: 250px;
  background: rgba(16, 26, 46, 0.5);
  border-right: 1px solid var(--border-subtle);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

.settings-tab {
  padding: 14px 24px;
  text-align: left;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.settings-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.settings-tab.active {
  background: rgba(0, 240, 255, 0.1);
  border-left-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 700;
}

.settings-content {
  flex: 1;
  padding: 40px 60px;
  overflow-y: auto;
}

.settings-pane {
  max-width: 800px;
}

.settings-pane h3 {
  margin: 0 0 8px 0;
  font-size: 22px;
  color: #fff;
}

.section-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  margin: 0 0 22px 0 !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.25) !important;
  display: flex;
  align-items: center;
  gap: 8px;
  word-break: keep-all;
}

.settings-desc {
  margin: 0 0 30px 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.tle-sync-section {
  background: rgba(12, 20, 36, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 24px;
}

.tle-sync-section h4 {
  margin: 0 0 10px 0;
  color: #fff;
  font-size: 16px;
}

.tle-log-terminal {
  background: #000;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 12px;
  margin-top: 16px;
  height: 150px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #10b981;
  line-height: 1.6;
}

.tle-log-terminal .log-line {
  margin-bottom: 4px;
}

.tle-log-terminal .log-error {
  color: #ef4444;
}

.file-upload-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.form-input-file {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--border-subtle);
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 13px;
  flex: 1;
}

.form-input-file::file-selector-button {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 12px;
  transition: background 0.2s ease;
}

.form-input-file::file-selector-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* =========================================================================
   14. Collection Plan Calendar (������ȹ ���� ��ú��� �޷�)
   ========================================================================= */
.calendar-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  border-radius: 4px;
}

/* =========================================================================
   14. FullCalendar Custom Theme Overrides (���̹���ũ/���� UI �׸�)
   ========================================================================= */
:root {
  --fc-page-bg-color: transparent;
  --fc-neutral-bg-color: rgba(16, 26, 46, 0.5);
  --fc-border-color: #1e293b;
  --fc-daygrid-event-dot-width: 8px;
  --fc-event-bg-color: rgba(52, 211, 153, 0.2);
  --fc-event-border-color: #34d399;
  --fc-event-text-color: #f8fafc;
  --fc-today-bg-color: rgba(52, 211, 153, 0.08);
}

.fc-theme-standard th,
.fc-theme-standard td,
.fc-theme-standard .fc-scrollgrid {
  border-color: var(--fc-border-color) !important;
}

.fc .fc-toolbar-title {
  color: #f8fafc;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
}

.fc .fc-button-primary {
  background-color: #070b14;
  border-color: #1e293b;
  color: #f8fafc;
  text-transform: uppercase;
}

.fc .fc-button-primary:hover {
  background-color: rgba(52, 211, 153, 0.1);
  border-color: #34d399;
}

.fc .fc-button-primary:disabled {
  background-color: rgba(0, 0, 0, 0.5);
  border-color: #334155;
}

.fc .fc-button-active {
  background-color: rgba(52, 211, 153, 0.2) !important;
  border-color: #34d399 !important;
  color: #34d399 !important;
}

.fc-daygrid-day-number {
  color: #94a3b8;
}

.fc-daygrid-event {
  cursor: pointer;
  border-radius: 2px !important;
  font-size: 11px;
}

.fc-daygrid-event:hover {
  opacity: 0.8;
}

/* =========================================================================
   15. Coverage Legend HUD (������ ���� ��Ȳ ����)
   ========================================================================= */
.coverage-legend-hud {
  display: none;
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: rgba(10, 15, 26, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px 16px;
  z-index: 50;
  backdrop-filter: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
}

.legend-title {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
  letter-spacing: 0.5px;
}

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

.legend-color {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid;
}

.legend-label {
  color: var(--text-secondary);
  font-size: 12px;
  font-family: 'Pretendard', sans-serif;
}

/* =========================================================================
   16. Transparent Overlay (���� ��Ȳ �� �� Ȯ�ο�)
   ========================================================================= */
.settings-view.transparent-overlay {
  background: transparent !important;
  pointer-events: none;
  /* ������ Ŭ���� �� �ֵ��� Ŭ�� �̺�Ʈ ��� */
}

.settings-view.transparent-overlay .settings-header,
.settings-view.transparent-overlay .settings-sidebar {
  pointer-events: auto;
  /* ����� ���̵�ٴ� Ŭ�� �����ؾ� �� */
}

/* Data Coverage Legend HUD */
.coverage-legend-hud {
  position: absolute;
  bottom: 30px;
  left: 260px; /* Moved to the right of the 240px sidebar */
  background: rgba(11, 19, 30, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 8px;
  padding: 12px 14px;
  z-index: 10000; /* Higher than .settings-view (9999) */
  backdrop-filter: none;
  width: max-content;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.coverage-legend-hud .legend-title {
  color: #00f0ff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  padding-bottom: 8px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.legend-info-icon {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background-color: transparent !important;
  border: 1px solid rgba(0, 240, 255, 0.6) !important;
  color: #00f0ff !important;
  font-size: 11px !important;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: auto;
  outline: none;
  padding: 0;
  box-shadow: none;
}

.legend-info-icon:hover {
  background: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

/* Legend Info Modal - 범례 밖 별도 요소, 범례 바로 위에 도킹 */
.legend-info-modal {
  position: absolute;
  bottom: 175px; /* Positioned right above the legend hud */
  left: 260px; /* Same left as the hud */
  width: auto;
  max-width: 420px;
  background: rgba(11, 19, 30, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  backdrop-filter: none;
  z-index: 10001; /* Above hud */
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}

.legend-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  color: #00f0ff;
  font-weight: 700;
  font-size: 12px;
}

.legend-info-close {
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #64748b;
  transition: color 0.2s;
  padding: 0 2px;
}

.legend-info-close:hover {
  color: #ffffff;
}

.legend-info-body {
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-info-body .info-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.legend-info-body .info-color {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid;
  border-radius: 2px;
  flex-shrink: 0;
}

.legend-info-body .info-title {
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.legend-info-body .info-sub {
  color: #94a3b8;
  font-size: 11px;
}

.coverage-details-panel {
  position: absolute;
  right: 20px;
  top: 80px;
  width: 280px;
  background: rgba(11, 19, 30, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  backdrop-filter: none;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.coverage-details-panel .details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 240, 255, 0.1);
  padding: 10px 15px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 8px 8px 0 0;
  color: #00f0ff;
  font-weight: bold;
  font-size: 14px;
}

.coverage-details-panel .details-header .close-btn {
  cursor: pointer;
  color: #a0aec0;
  font-size: 16px;
  transition: color 0.2s;
}

.coverage-details-panel .details-header .close-btn:hover {
  color: #fff;
}

.coverage-details-panel .details-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coverage-details-panel .detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.coverage-details-panel .detail-row .label {
  color: #a0aec0;
}

.coverage-details-panel .detail-row .value {
  color: #ffffff;
  font-weight: 500;
}


.coverage-legend-hud .legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s;
}

.coverage-legend-hud .legend-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.coverage-legend-hud .legend-item.disabled {
  opacity: 0.4;
}

.coverage-legend-hud .legend-color {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  border: 1px solid;
  border-radius: 2px;
}

.coverage-legend-hud .legend-label {
  color: #e2e8f0;
  font-size: 12px;
}

.legend-items-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-label-full {
  display: inline;
}

.legend-label-short {
  display: none;
}

.tle-pane-heading {
  margin: 0 0 6px 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  word-break: keep-all !important;
  letter-spacing: 0.2px !important;
  line-height: 1.4 !important;
}

/* 비인가/잠금/로그아웃 상태 시 ISR-CDMS 내부 컨텐츠 완전 은닉 (3D 지구, HUD, 툴바 차폐) */
body.auth-locked > *:not(#authOverlay) {
  visibility: hidden !important;
}

/* 세션 활성화 상태 시 오버레이 즉시 은닉 (초기 렌더링 깜빡임 방지) 및 내부 컨텐츠 가시화 */
html.auth-session-active #authOverlay,
html.auth-session-active .auth-overlay {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.auth-session-active body.auth-locked {
  filter: none !important;
  pointer-events: auto !important;
}

html.auth-session-active body > * {
  visibility: visible !important;
}

/* Auth Overlay */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100dvh;
  background: #040812 !important; /* 완전 불투명 차폐 - 내부 ISR-CDMS 노출 원천 차단 */
  z-index: 99999999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.auth-box {
  background: rgba(11, 17, 32, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.2), inset 0 0 15px rgba(0, 240, 255, 0.1);
  border-radius: 4px;
  padding: 40px;
  width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.auth-box::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 4px;
  pointer-events: none;
}

.auth-title {
  margin: 0 0 24px 0;
  color: #fff;
  letter-spacing: 3px;
  font-weight: 700;
  font-size: 20px;
  text-shadow: 0 0 8px rgba(255,255,255,0.4);
}

.auth-input {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
  font-size: 16px;
  letter-spacing: 6px;
  padding: 14px 0;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 240, 255, 0.3);
}

.auth-input:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.auth-input::placeholder {
  letter-spacing: 4px;
  color: rgba(255,255,255,0.2);
}

.auth-btn {
  width: 100%;
  font-size: 16px;
  letter-spacing: 4px;
  padding: 14px 0;
  font-weight: bold;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-error {
  color: #ef4444;
  margin-top: 16px;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
  animation: flashError 0.5s ease;
}

@keyframes flashError {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}

.alert-btn-close:hover { color: #fff !important; }



/* TOUCH ACTION OPTIMIZATION FOR CESIUM ON MOBILE */
#cesiumContainer {
  touch-action: none !important; /* Prevents browser pinch-to-zoom and panning */
}



/* =========================================
   MOBILE RESPONSIVE TACTICAL LAYOUT
   ========================================= */

@media (max-width: 900px) {
  .brand-sub-summary, .brand-tag, .brand-dropdown-icon {
    display: none !important;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 105px;
  }
  
  /* 1. TOP NAV: Centered Time Info on Top Row, Wrapped Centered Action Buttons on Next Rows */
  .top-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    padding: 7px 10px 8px 10px !important;
    height: auto !important;
    min-height: unset !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(7, 11, 20, 0.94) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(0, 240, 255, 0.25) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7) !important;
    z-index: 10000 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }
  .top-nav::before { content: none !important; }
  
  /* Logo Box: Docked top-left corner, fully accessible for hover explanation card */
  .top-nav .brand-section {
    position: absolute !important;
    top: 6px !important;
    left: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: auto !important;
    max-width: fit-content !important;
    padding: 4px 8px !important;
    margin: 0 !important;
    background: rgba(11, 17, 32, 0.8) !important;
    border: 1px solid rgba(0, 240, 255, 0.4) !important;
    border-radius: 6px !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15) !important;
    transform: none !important;
    z-index: 10002 !important;
  }
  .brand-logo-wrap {
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }
  .brand-logo-svg {
    width: 24px !important;
    height: 24px !important;
  }
  .brand-compact {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .brand-abbr-row {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .brand-abbr {
    display: inline-flex !important;
    flex-direction: row !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: -0.5px !important;
    margin: 0 !important;
    color: #fff !important;
  }
  .brand-abbr .brand-line-1,
  .brand-abbr .brand-line-2 {
    display: inline !important;
    line-height: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .brand-tag {
    display: inline-block !important;
    font-size: 9px !important;
    padding: 1px 4px !important;
  }
  .brand-dropdown-icon {
    display: inline-block !important;
    font-size: 8px !important;
  }
  .brand-sub-summary {
    display: none !important;
  }

  /* Time HUD: Top Row, Perfectly Centered */
  .top-nav .time-hud {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    gap: 6px !important;
    padding: 4px 10px !important;
    background: rgba(11, 17, 32, 0.85) !important;
    border: 1px solid rgba(0, 240, 255, 0.4) !important;
    border-radius: 6px !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15) !important;
    white-space: nowrap !important;
    z-index: 10001 !important;
  }
  .time-hud .is-secondary,
  .time-hud .tz-standard-tag {
    display: none !important;
  }
  .time-hud .btn-tz-switch {
    display: flex !important;
    width: auto !important;
    min-width: 30px !important;
    height: 22px !important;
    font-size: 10.5px !important;
    padding: 0 6px !important;
    margin: 0 4px !important;
    flex-shrink: 0 !important;
    background: rgba(19, 31, 56, 0.9) !important;
    border: 1px solid var(--accent-cyan) !important;
    border-radius: 4px !important;
  }
  .time-hud .btn-tz-switch .tz-switch-icon {
    display: none !important;
  }
  .time-hud .btn-tz-switch .tz-switch-text {
    display: inline-block !important;
  }
  .time-hud .is-primary {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin: 0 !important;
  }
  .time-hud .time-badge {
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 5px !important;
    border-radius: 4px !important;
    background: rgba(0, 240, 255, 0.2) !important;
    color: #00f0ff !important;
    border: 1px solid rgba(0, 240, 255, 0.4) !important;
  }
  .time-hud .time-date {
    font-size: 11px !important;
    color: #94a3b8 !important;
    letter-spacing: 0px !important;
  }
  .time-hud .time-val {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #00f0ff !important;
    font-family: 'JetBrains Mono', monospace !important;
  }
  .time-hud .speed-pill {
    padding: 2px 6px !important;
    font-size: 10px !important;
    height: 20px !important;
  }

  /* 2nd Row Action Buttons: Multi-line wrapping with centered layout */
  .top-nav .nav-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    gap: 5px !important;
    padding: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
    -webkit-overflow-scrolling: auto !important;
    scrollbar-width: none !important;
  }
  .top-nav .nav-actions::-webkit-scrollbar {
    display: none !important;
  }
  .nav-actions .btn-tactical {
    flex: 0 0 auto !important;
    padding: 5px 8px !important;
    height: 30px !important;
    min-width: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
  }
  .nav-actions .btn-tactical span {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    letter-spacing: -0.3px !important;
  }
  .nav-actions .btn-tactical .btn-icon-svg {
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  /* 2. CAMERA & TERRAIN ZOOM HUD (Lower-right, clear of bottom playback bar and fullscreen) */
  .tactical-zoom-hud {
    position: absolute !important;
    top: auto !important;
    bottom: max(160px, calc(env(safe-area-inset-bottom, 0px) + 120px)) !important;
    right: 12px !important;
    left: auto !important;
    z-index: 850 !important;
    background: rgba(11, 17, 32, 0.88) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(0, 240, 255, 0.35) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6) !important;
    border-radius: 8px !important;
    padding: 4px !important;
    gap: 4px !important;
  }
  .btn-zoom-hud {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
  }
  .zoom-hud-divider {
    margin: 3px 0 !important;
  }

  /* 3. SIDEBARS AS DRAWERS WITH VERTICALLY STAGGERED TOGGLE BUTTONS */
  .sidebar, .right-pass-panel {
    width: min(340px, calc(100% - 50px)) !important;
    top: var(--header-height, 98px) !important;
    bottom: 0 !important;
    height: calc(100% - var(--header-height, 98px)) !important;
    z-index: 950 !important;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  
  .sidebar {
    left: 0 !important;
    right: auto !important;
    transform: translateX(-100%) !important;
    border-right: 1px solid rgba(0, 240, 255, 0.35) !important;
  }
  .sidebar:not(.collapsed) {
    transform: translateX(0) !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.85) !important;
  }
  body.sidebar-collapsed .sidebar {
    transform: translateX(-100%) !important;
  }

  .right-pass-panel {
    right: 0 !important;
    left: auto !important;
    transform: translateX(100%) !important;
    border-left: 1px solid rgba(56, 189, 248, 0.35) !important;
  }
  .right-pass-panel:not(.collapsed) {
    transform: translateX(0) !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.85) !important;
  }

  /* Left button sits at Screen Y = 118px (UPPER) */
  .sidebar-toggle-btn {
    top: 20px !important;
    right: -38px !important;
    left: auto !important;
    width: 38px !important;
    height: 44px !important;
    border-radius: 0 8px 8px 0 !important;
    border: 1px solid rgba(0, 240, 255, 0.6) !important;
    border-left: none !important;
    background: rgba(11, 17, 32, 0.94) !important;
    color: #00f0ff !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 4px 2px 14px rgba(0, 0, 0, 0.6) !important;
    z-index: 960 !important;
    transform: none !important;
  }

  /* Right button sits at top: 70px from panel top to avoid collision with zoom HUD */
  .right-panel-toggle-btn {
    top: 70px !important;
    bottom: auto !important;
    left: -38px !important;
    right: auto !important;
    width: 38px !important;
    height: 44px !important;
    border-radius: 8px 0 0 8px !important;
    border: 1px solid rgba(56, 189, 248, 0.6) !important;
    border-right: none !important;
    background: rgba(11, 17, 32, 0.94) !important;
    color: #38bdf8 !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: -4px 2px 14px rgba(0, 0, 0, 0.6) !important;
    z-index: 960 !important;
    transform: none !important;
  }

  /* 4. BOTTOM TIMELINE PLAYBACK BAR (Dedicated 2-Row Layout, Compact Base Width) */
  .tactical-playback-bar,
  body.sidebar-collapsed .tactical-playback-bar,
  body.right-panel-collapsed .tactical-playback-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: max-content !important;
    max-width: none !important;
    bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 8px)) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 8px 12px !important;
    gap: 6px !important;
    background: rgba(10, 16, 28, 0.94) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    border-radius: 9px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.75), 0 0 12px rgba(0, 240, 255, 0.15) !important;
    z-index: 800 !important;
    transition: transform 0.2s ease, bottom 0.2s ease !important;
  }

  .playback-mobile-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: auto !important;
  }

  .playback-divider {
    display: none !important;
  }

  .btn-play-ctrl {
    order: unset !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    border-radius: 5px !important;
  }
  .btn-play-ctrl svg {
    width: 12px !important;
    height: 12px !important;
  }

  .playback-step-group {
    order: unset !important;
    display: inline-flex !important;
    gap: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }
  .playback-step-group .btn-step-sm {
    padding: 2px 4px !important;
    font-size: 9.5px !important;
    font-family: inherit !important;
    min-width: unset !important;
    height: 23px !important;
    border-radius: 0 !important;
    font-weight: 700 !important;
  }

  .playback-speed-group {
    order: unset !important;
    flex-basis: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 1.5px !important;
    margin: 0 !important;
    padding: 2px 4px !important;
    flex-shrink: 0 !important;
  }
  .speed-group-title {
    font-size: 9.5px !important;
    color: #94a3b8 !important;
    margin-right: 2px !important;
    font-weight: 700 !important;
  }
  .playback-speed-group .btn-speed-pill {
    font-size: 11px !important;
    font-family: inherit !important;
    padding: 4px 8px !important;
    height: 26px !important;
    min-width: unset !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
  }

  .btn-pb-action {
    order: unset !important;
    padding: 2px 5px !important;
    height: 23px !important;
    font-size: 9.5px !important;
    gap: 3px !important;
    border-radius: 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }
  .btn-pb-action span {
    display: inline-block !important;
    font-size: 9.5px !important;
  }
  .pb-action-icon {
    width: 11px !important;
    height: 11px !important;
  }

  /* Acquisition Alert & Map Layer Panel Adjustments */
  .acquisition-alert-banner {
    flex-direction: column !important;
    text-align: center !important;
    padding: 10px 14px !important;
    top: auto !important;
    bottom: 110px !important;
    height: auto !important;
    max-height: 180px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(320px, 90%) !important;
  }
  .map-layer-panel {
    width: 90% !important;
    left: 5% !important;
    top: 110px !important;
  }
}

@media (max-width: 484px) {
  /* On compact mobile screens, collapse logo text so centered time-hud has full breathing room */
  .top-nav .brand-compact {
    display: none !important;
  }
  .top-nav .brand-section {
    padding: 3px 5px !important;
    left: 6px !important;
    top: 6px !important;
  }
}

@media (max-width: 440px) {
  .time-hud .time-date {
    display: none !important;
  }
  .nav-actions .btn-tactical {
    padding: 4px 6px !important;
    font-size: 10.5px !important;
  }
  .nav-actions .btn-tactical span {
    font-size: 10.5px !important;
  }
  .tactical-playback-bar,
  body.sidebar-collapsed .tactical-playback-bar,
  body.right-panel-collapsed .tactical-playback-bar {
    transform: translateX(-50%) scale(0.92) !important;
    bottom: max(10px, calc(env(safe-area-inset-bottom, 0px) + 6px)) !important;
  }
}

@media (max-width: 370px) {
  .tactical-playback-bar,
  body.sidebar-collapsed .tactical-playback-bar,
  body.right-panel-collapsed .tactical-playback-bar {
    transform: translateX(-50%) scale(0.86) !important;
    bottom: max(8px, calc(env(safe-area-inset-bottom, 0px) + 4px)) !important;
  }
}

/* Updated btn-close to look like the labeling tool */
.btn-close {
  background: rgba(0, 240, 255, 0.2) !important;
  border: 1px solid rgba(0, 240, 255, 0.4) !important;
  color: #00f0ff !important;
  border-radius: 4px !important;
  padding: 6px 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease;
}
.btn-close:hover {
  background: rgba(0, 240, 255, 0.4) !important;
}

/* Layout Classes for Modals */
.plan-split-layout {
  display: flex;
  gap: 24px;
  height: calc(100% - 40px);
}
.plan-split-left {
  flex: 1;
  border-right: 1px solid var(--border-color);
  padding-right: 24px;
}
.plan-split-right {
  flex: 1.2;
}

/* Desktop view: Subtoggle hidden */
.plan-mobile-subtoggle {
  display: none;
}

@media (max-width: 768px) {
  /* 1. Full-screen Settings & Plan Modal Container */
  .settings-view {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    background: #070d19 !important;
    z-index: 10000 !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .settings-view[style*="display: none"],
  .settings-view[style*="display:none"] {
    display: none !important;
  }

  .settings-view[style*="display: flex"],
  .settings-view[style*="display:flex"] {
    display: flex !important;
  }

  .settings-header {
    padding: 12px 14px !important;
    flex-shrink: 0 !important;
    background: rgba(12, 20, 36, 0.98) !important;
    border-bottom: 1px solid rgba(0, 240, 255, 0.25) !important;
  }

  .settings-title {
    gap: 8px !important;
  }

  .settings-title h2 {
    font-size: 15.5px !important;
    font-weight: 700 !important;
    letter-spacing: -0.3px !important;
  }

  .settings-layout {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    min-height: 0 !important;
  }

  /* 2. Sleek Horizontal Swipeable Tab Bar (가로 스와이프 탭 바 - 글자 잘림 및 강제 줄바꿈 완전 해결) */
  .settings-sidebar {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 8px 10px !important;
    gap: 8px !important;
    background: rgba(11, 19, 38, 0.98) !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2) !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 20 !important;
  }

  .settings-sidebar::-webkit-scrollbar {
    display: none !important;
  }

  .settings-sidebar .settings-tab {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    white-space: nowrap !important;
    padding: 7px 13px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    border-radius: 20px !important;
    background: rgba(16, 26, 46, 0.8) !important;
    color: var(--text-secondary) !important;
    line-height: 1.2 !important;
    text-align: center !important;
    margin: 0 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: all 0.2s ease !important;
  }

  .settings-sidebar .settings-tab:hover {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #fff !important;
  }

  .settings-sidebar .settings-tab.active {
    background: rgba(0, 240, 255, 0.18) !important;
    border-color: #00f0ff !important;
    color: #00f0ff !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.25) !important;
    font-weight: 700 !important;
  }

  /* 3. Settings Content (Unified Touch Vertical Scroll Area - 이중 스크롤 방지) */
  .settings-content {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 12px 12px 80px 12px !important;
    min-height: 0 !important;
  }

  /* 4. Tab 1: Mobile Segmented Subtoggle (신규 수집계획 수립 ⟷ 등록 목록 전환) */
  .plan-mobile-subtoggle {
    display: flex !important;
    gap: 6px !important;
    background: rgba(15, 23, 42, 0.95) !important;
    padding: 5px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    margin-top: 14px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
  }

  .plan-subtoggle-btn {
    flex: 1 !important;
    padding: 9px 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
    background: transparent !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
  }

  .plan-subtoggle-btn.active {
    background: rgba(0, 240, 255, 0.2) !important;
    color: #00f0ff !important;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.3) !important;
    font-weight: 700 !important;
  }

  /* Plan Layout Split -> Toggle Controlled on Mobile */
  .plan-split-layout {
    flex-direction: column !important;
    height: auto !important;
    gap: 0 !important;
  }

  .plan-split-layout.mobile-subview-form .plan-split-left {
    display: none !important;
  }

  .plan-split-layout.mobile-subview-form .plan-split-right {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .plan-split-layout.mobile-subview-list .plan-split-left {
    display: block !important;
    width: 100% !important;
    border-right: none !important;
    border-bottom: none !important;
    padding: 0 !important;
  }

  .plan-split-layout.mobile-subview-list .plan-split-right {
    display: none !important;
  }

  /* List on mobile: Remove nested scroll trapping */
  #planMissionsListUl {
    max-height: none !important;
    overflow-y: visible !important;
  }

  /* Plan Form Header & Title (신규 촬영계획 수립 세로 글자 깨짐 완전 방지) */
  .plan-form-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  .plan-form-title {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    line-height: 1.4 !important;
    word-break: keep-all !important;
  }

  .plan-form-title span {
    white-space: nowrap !important;
  }

  .plan-form-badge {
    margin-left: 0 !important;
  }

  /* 3D 지도에서 좌표 찍기 버튼 full width on mobile */
  #btnPickCoordinateOnGlobe {
    width: 100% !important;
    justify-content: center !important;
    margin-top: 4px !important;
    padding: 8px 12px !important;
  }

  /* 5. Tab 2: Target Templates Management Mobile Responsive */
  #planTabTemplates {
    height: auto !important;
    min-height: 100% !important;
  }

  .template-header-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    margin-top: 6px !important;
  }

  .template-header-actions #btnOpenAddTemplateModal {
    grid-column: 1 / -1 !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
  }

  #templateCategoryFilterBadges {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 4px !important;
  }

  #templateCategoryFilterBadges::-webkit-scrollbar {
    display: none !important;
  }

  #targetTemplatesGridContainer {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    height: auto !important;
    overflow-y: visible !important;
  }

  .target-template-card {
    min-height: 150px !important;
    height: auto !important;
    overflow: visible !important;
    padding: 12px 14px !important;
  }

  /* 6. Tab 3: Time-Series Ledger Mobile Responsive */
  #planTabTimeseries {
    height: auto !important;
    min-height: 100% !important;
  }

  #timeseriesSummaryCard {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    padding: 10px 12px !important;
  }

  #timeseriesLedgerContainer {
    height: auto !important;
    overflow-y: visible !important;
    gap: 10px !important;
  }

  .timeseries-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 12px !important;
  }

  .timeseries-card > div:last-child {
    min-width: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px dashed rgba(56, 189, 248, 0.2) !important;
    padding-top: 6px !important;
    margin-top: 4px !important;
    text-align: left !important;
  }

  /* 7. Tab 4: Calendar Mobile Responsive */
  #planTabCalendar {
    height: auto !important;
    min-height: 100% !important;
  }

  .fc .fc-toolbar {
    flex-direction: column !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  .fc .fc-toolbar-chunk {
    display: flex !important;
    justify-content: center !important;
  }

  .fc .fc-toolbar-title {
    font-size: 15px !important;
  }

  .fc .fc-button {
    padding: 5px 8px !important;
    font-size: 11px !important;
  }

  /* 8. Tab 5: Coverage Legend HUD Mobile Dock & Simplification */
  .coverage-legend-hud {
    left: 10px !important;
    right: 10px !important;
    bottom: 24px !important;
    width: auto !important;
    max-width: calc(100vw - 20px) !important;
    padding: 8px 12px !important;
    background: rgba(10, 16, 28, 0.94) !important;
    border: 1px solid rgba(0, 240, 255, 0.35) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7) !important;
    z-index: 10001 !important;
  }

  .coverage-legend-hud .legend-title {
    font-size: 12px !important;
    margin-bottom: 6px !important;
    padding-bottom: 4px !important;
  }

  .coverage-legend-hud .legend-items-wrapper {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 6px !important;
  }

  .coverage-legend-hud .legend-item {
    flex: 1 !important;
    padding: 6px 4px !important;
    margin-bottom: 0 !important;
    background: rgba(15, 23, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
    justify-content: center !important;
    gap: 5px !important;
  }

  .coverage-legend-hud .legend-color {
    width: 10px !important;
    height: 10px !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
  }

  .coverage-legend-hud .legend-label-full {
    display: none !important;
  }

  .coverage-legend-hud .legend-label-short {
    display: inline !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
  }

  .legend-info-modal {
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    bottom: 120px !important;
    max-width: calc(100vw - 20px) !important;
  }

  /* 9. Prevent awkward syllable line-breaks (e.g. 설 \n 정) */
  .settings-title h2,
  .settings-pane h3,
  .cat-header h4,
  .tle-pane-heading,
  .section-title,
  .plan-subtoggle-btn {
    word-break: keep-all !important;
  }
}

/* ==========================================================================
   Tactical Display Filter Popover & Dashboard Styles (수집·정찰 자산 시현 제어)
   ========================================================================== */

/* 1. Header Quick Display Filter Popover */
.display-filter-popover {
  position: fixed;
  top: 60px;
  right: 80px;
  width: 320px;
  background: rgba(11, 19, 38, 0.94);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 240, 255, 0.25);
  z-index: 9900;
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes popoverFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(0, 240, 255, 0.08);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.popover-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.5px;
}

.popover-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.popover-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.popover-body {
  padding: 12px 14px;
}

.filter-section-title {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-check-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
  margin-bottom: 3px;
}

.filter-check-item:hover {
  background: rgba(0, 240, 255, 0.06);
}

.filter-check-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border-color);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.filter-check-item input[type="checkbox"]:checked {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.filter-check-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.badge-425 {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.35);
}

.badge-fighter {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-uav {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-sat {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.filter-name {
  font-size: 11.5px;
  color: #e2e8f0;
  font-weight: 500;
}

.filter-elements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
}

.filter-check-sm {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 10.5px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.filter-check-sm:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.filter-check-sm input[type="checkbox"] {
  accent-color: var(--accent-cyan);
  width: 13px;
  height: 13px;
}

.popover-footer-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-filter-quick {
  flex: 1;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-filter-quick:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn-filter-quick.primary {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.35);
  color: var(--accent-cyan);
}

.btn-filter-quick.primary:hover {
  background: rgba(0, 240, 255, 0.25);
  color: #fff;
}

/* 2. Full-Page Settings View Dashboard Cards & Switches */
.display-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.display-category-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.cat-header {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cat-header h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 3px;
  letter-spacing: 0.3px;
}

.cat-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.filter-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.filter-toggle-row:hover {
  border-color: rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.04);
}

.toggle-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 82%;
}

.platform-chip {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-top: 2px;
  flex-shrink: 0;
}

.chip-425 {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.chip-fighter {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.chip-uav {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.chip-sat {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.element-icon {
  font-size: 15px;
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
}

.toggle-texts strong {
  display: block;
  font-size: 12.5px;
  color: #f1f5f9;
  font-weight: 600;
  margin-bottom: 2px;
}

.toggle-texts p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Tactical Switch Toggle */
.tactical-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.tactical-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.tactical-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}

.tactical-switch .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #cbd5e1;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.tactical-switch input:checked + .slider {
  background-color: rgba(0, 240, 255, 0.3);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.tactical-switch input:checked + .slider:before {
  transform: translateX(20px);
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
}

/* =========================================================================
   21. NORAD ID & Custom TLE Management Styles
   ========================================================================= */

.norad-mgmt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.norad-sat-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.norad-sat-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.nsc-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nsc-title {
  font-size: 13.5px;
  color: #f8fafc;
  font-weight: 700;
}

.nsc-codename {
  font-size: 11px;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.nsc-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0;
}

.nsc-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
}

.norad-number-input {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: #00f0ff !important;
  background: rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(0, 240, 255, 0.3) !important;
  border-radius: 6px;
  padding: 7px 10px;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.norad-number-input:focus {
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4) !important;
  outline: none;
}

.nsc-desc {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

.platform-chip.chip-sar {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.tle-custom-textarea {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: #38bdf8;
  background: rgba(8, 14, 26, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 10px;
  width: 100%;
  resize: vertical;
  min-height: 90px;
  white-space: pre;
  tab-size: 4;
}

.tle-custom-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  outline: none;
}

/* Badge for NORAD ID in UI */
.badge-norad {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.4);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* =========================================================================
   Zero-Blur High-Performance GPU Compositor Optimization
   Preserves 100% of the UI design, layout, borders, and colors while
   completely eliminating the 17-pass Gaussian blur over live 60FPS WebGL canvas.
   (The initial login screen #authOverlay retains security blur while locked,
    and is display:none during actual map usage so it causes zero runtime overhead)
   ========================================================================= */
*:not(#authOverlay):not(.auth-overlay) {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#authOverlay,
.auth-overlay {
  background: rgba(4, 8, 16, 0.75) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}

.top-nav {
  background: #080d19 !important;
}

.sidebar,
.right-pass-panel {
  background: #090e1b !important;
}

.tactical-playback-bar,
.tactical-zoom-hud,
.display-filter-popover,
.map-layer-panel,
.coverage-legend-hud,
.coverage-details-panel {
  background: rgba(9, 14, 25, 0.96) !important;
}

/* ==========================================================================
   Tactical 3-Line Rectangular MGRS Coordinate HUD (Right Toolbar Docked)
   ========================================================================== */
.tactical-coord-hud {
  position: absolute;
  right: calc(100% + 10px);
  top: 110px;
  transform: translateY(-50%);
  width: 204px;
  z-index: var(--z-hud);
  display: none;
  flex-direction: column;
  gap: 3px;
  padding: 8px 12px;
  background: rgba(9, 14, 25, 0.94);
  backdrop-filter: none;
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), 0 0 14px rgba(0, 240, 255, 0.15);
  font-family: 'JetBrains Mono', 'Pretendard', monospace;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.coord-hud-row {
  display: flex;
  align-items: center;
}

.coord-hud-header {
  justify-content: space-between;
  margin-bottom: 2px;
}

.coord-hud-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  background: rgba(0, 240, 255, 0.2);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.5);
  border-radius: 3px;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.coord-hud-gzd {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.coord-hud-body {
  margin: 1px 0 2px 0;
}

.coord-hud-grid {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.8px;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
  line-height: 1.2;
}

.coord-hud-footer {
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 4px;
  margin-top: 1px;
  font-size: 9.5px;
}

.coord-hud-wgs {
  color: #cbd5e1;
}

.coord-hud-elev {
  color: #38bdf8;
  font-weight: 600;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .tactical-coord-hud {
    right: calc(100% + 8px);
    top: 96px;
    width: 180px;
    padding: 6px 10px;
    z-index: 10050 !important;
  }
  .coord-hud-grid {
    font-size: 13px;
  }
  .coord-hud-footer {
    font-size: 8.5px;
  }
}

/* Mobile Devices (Smartphones): Fixed Top-Center Docking to prevent being hidden by side panels or drifting */
@media (max-width: 768px) {
  .tactical-coord-hud {
    position: fixed !important;
    top: calc(var(--header-height, 105px) + 8px) !important;
    bottom: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: min(260px, calc(100vw - 28px)) !important;
    max-width: calc(100vw - 28px) !important;
    padding: 6px 12px !important;
    background: rgba(9, 14, 25, 0.95) !important;
    border: 1px solid rgba(0, 240, 255, 0.5) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.85), 0 0 15px rgba(0, 240, 255, 0.25) !important;
    border-radius: 8px !important;
    z-index: 10050 !important;
    pointer-events: none !important;
  }
  .tactical-coord-hud .coord-hud-grid {
    font-size: 13.5px !important;
    text-align: center !important;
  }
  .tactical-coord-hud .coord-hud-header,
  .tactical-coord-hud .coord-hud-footer {
    font-size: 9px !important;
  }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 520px) {
  .tactical-coord-hud {
    position: fixed !important;
    top: auto !important;
    bottom: 12px !important;
    left: 12px !important;
    right: auto !important;
    transform: none !important;
    width: 200px !important;
    z-index: 10050 !important;
  }
}

/* =========================================================================
   Ground Station & Elevation Mask Management (지상국 교신망 및 앙각 설정)
   ========================================================================= */

.gs-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.gs-profile-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.gs-profile-card:hover {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(56, 189, 248, 0.15);
  transform: translateY(-1px);
}

.gs-profile-card.is-primary {
  border-left: 3.5px solid var(--accent-cyan);
}

.gs-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.gs-card-code {
  font-family: monospace;
  font-size: 11px;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.gs-card-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 4px 0 2px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gs-card-org {
  font-size: 11px;
  color: var(--text-muted);
}

.gs-coord-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
}

.gs-coord-badge {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  color: #94a3b8;
  font-family: monospace;
}

.gs-coord-badge strong {
  color: #f1f5f9;
}

.gs-el-mask-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-family: monospace;
}

.gs-card-antenna {
  font-size: 11px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px 10px;
  border-radius: 4px;
  line-height: 1.45;
}

.gs-card-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0;
}

.gs-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

/* Ground Station Satellite Mapping Table */
.gs-mapping-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.gs-mapping-table th {
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.5px;
  text-align: left;
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
}

.gs-mapping-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.gs-mapping-table tr:hover td {
  background: rgba(56, 189, 248, 0.04);
}

.gs-select-input {
  width: 100%;
  background: rgba(7, 11, 20, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #fff;
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s;
}

.gs-select-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

.gs-el-input {
  width: 85px;
  background: rgba(7, 11, 20, 0.95);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 5px;
  font-family: monospace;
  font-size: 12px;
  text-align: right;
  outline: none;
  transition: border-color 0.2s;
}

.gs-el-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

/* Pass Schedule Card Ground Station Row */
.pass-gs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 5px;
  background: rgba(56, 189, 248, 0.08);
  padding: 4px 8px;
  border-radius: 4px;
  border-left: 2px solid var(--accent-cyan);
}

/* ========================================================
   Target Template & Time-Series Ledger Tactical Styling
   ======================================================== */
.filter-chip {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--text-secondary);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.filter-chip:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #fff;
  border-color: rgba(56, 189, 248, 0.5);
}

.filter-chip.active {
  background: rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  font-weight: 600;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

/* Target Template Card */
.target-template-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.target-template-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.15);
  transform: translateY(-1px);
}

.target-template-card.default-template::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-cyan);
}

.target-template-card.custom-template::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-amber);
}

.tpl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

.tpl-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 600;
}

.tpl-badge-wmd { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }
.tpl-badge-c4i { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }
.tpl-badge-nav { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.tpl-badge-air { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.tpl-badge-front { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.tpl-badge-infra { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.4); }

.tpl-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.tpl-address {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tpl-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.25);
  padding: 5px 8px;
  border-radius: 4px;
}

.tpl-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.tpl-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 6px;
}

/* Address Autocomplete Dropdown Items */
.address-search-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
}

.address-search-item:last-child {
  border-bottom: none;
}

.address-search-item:hover {
  background: rgba(56, 189, 248, 0.15);
}

.address-item-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.address-item-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Time-Series Ledger Card */
.timeseries-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.timeseries-card:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(56, 189, 248, 0.4);
}

.timeseries-card.status-acquired {
  border-left: 3px solid #10b981;
}

.timeseries-card.status-planned {
  border-left: 3px solid #38bdf8;
}

/* ========================================================
   Historical Decision Support Panel & Analytics Table
   ======================================================== */
.hist-decision-panel {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 12px 14px;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.hist-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 6px;
}

.hist-panel-header:hover {
  opacity: 0.95;
}

.btn-toggle-hist {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 4px;
  padding: 3px 8px !important;
  color: var(--accent-cyan);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-toggle-hist:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.45) !important;
}

.freshness-gauge-track {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hist-table th {
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.hist-table td {
  padding: 5px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  white-space: nowrap;
}

.hist-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.12);
}

.hist-table tbody tr:last-child td {
  border-bottom: none;
}

/* Cesium Widgets Modern Dark Aerospace Theme Override */

/* Timeline Widget */
.cesium-viewer-timelineContainer {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  bottom: 0 !important;
  height: 38px !important;
  width: var(--playback-bar-width, min(600px, calc(100% - 90px))) !important;
  background: rgba(10, 16, 28, 0.96) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
  z-index: 100 !important;
  transition: transform 0.3s ease !important;
}

body.sidebar-collapsed .cesium-viewer-timelineContainer {
  /* left: 10px !important; */
}

body.right-panel-collapsed .cesium-viewer-timelineContainer {
  /* right: 10px !important; */
}

body.right-panel-collapsed .cesium-viewer-timelineContainer {
  /* right: 10px !important; */
}

.cesium-timeline-main {
  border-color: rgba(56, 189, 248, 0.2) !important;
  background-color: transparent !important;
}

.cesium-timeline-needle {
  background: #00f0ff !important;
  box-shadow: 0 0 10px #00f0ff !important;
  width: 2px !important;
}

.cesium-timeline-bar {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.15) 0%, rgba(12, 20, 36, 0.4) 100%) !important;
}

.cesium-timeline-ticLabel {
  color: #94a3b8 !important;
  font-family: 'JetBrains Mono', Consolas, monospace !important;
  font-size: 10px !important;
}

/* Animation Widget (Replaced with Custom Modern Tactical Playback Bar) */
.cesium-viewer-animationContainer {
  display: none !important;
}

/* Navigation & Fullscreen Buttons */
.cesium-viewer-toolbar {
  top: calc(var(--header-height, 60px) + 12px) !important;
  right: calc(var(--right-panel-current-width, 0px) + 68px) !important;
  z-index: 900 !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  transition: right 0.28s cubic-bezier(0.16, 1, 0.3, 1), top 0.2s ease !important;
}

/* Scene Mode Picker Dropdown (격자 버튼 클릭 시 아래로 펼쳐지는 3D/Columbus/2D 메뉴) */
.cesium-sceneModePicker-wrapper {
  position: relative !important;
  display: inline-block !important;
}

.cesium-sceneModePicker-wrapper button.cesium-sceneModePicker-visible {
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 130px !important;
  height: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: rgba(11, 17, 32, 0.96) !important;
  border: 1px solid rgba(0, 240, 255, 0.5) !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85), 0 0 14px rgba(0, 240, 255, 0.3) !important;
  right: 0 !important;
  left: auto !important;
  transform: translateX(-94px) !important; /* 왼쪽으로 뻗어나와 우측 사이드바 펼침 버튼과 전혀 겹치지 않음 */
  z-index: 1000 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.cesium-sceneModePicker-wrapper button.cesium-sceneModePicker-none {
  display: none !important;
}

.cesium-sceneModePicker-wrapper button.cesium-sceneModePicker-visible svg {
  position: static !important; /* Cesium 기본 absolute 해제하여 텍스트와 겹치지 않고 정상 flex 아이템으로 배치 */
  width: 20px !important;
  height: 20px !important;
  margin-left: 10px !important;
  margin-right: 0 !important;
  flex-shrink: 0 !important;
  display: block !important;
  top: auto !important;
  left: auto !important;
}

.cesium-sceneModePicker-wrapper button.cesium-sceneModePicker-visible::after {
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  height: 100% !important;
  padding-right: 8px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  letter-spacing: -0.2px !important;
}

.cesium-sceneModePicker-wrapper button.cesium-sceneModePicker-visible[title="3D"]::after {
  content: "3D 구체";
  color: #38bdf8;
  font-weight: 700;
}

.cesium-sceneModePicker-wrapper button.cesium-sceneModePicker-visible[title="2D"]::after {
  content: "2D 평면";
  color: #cbd5e1;
  font-weight: 600;
}

.cesium-sceneModePicker-wrapper button.cesium-sceneModePicker-visible[title="Columbus View"]::after {
  content: "2.5D 입체평면";
  color: #cbd5e1;
  font-weight: 600;
}

.cesium-button {
  background: rgba(12, 20, 36, 0.85) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 6px !important;
  color: #e2e8f0 !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5) !important;
  transition: all 0.2s !important;
}

.cesium-button:hover {
  background: rgba(56, 189, 248, 0.25) !important;
  border-color: #00f0ff !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4) !important;
}

.cesium-button svg {
  fill: #38bdf8 !important;
}

/* Credit Container - Hidden or Discrete */
.cesium-widget-credits {
  display: none !important; /* Offline clean look */
}

/* InfoBox Override */
.cesium-infoBox {
  background: rgba(12, 20, 36, 0.95) !important;
  border: 1px solid #00f0ff !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 240, 255, 0.3) !important;
  top: 75px !important;
  right: 15px !important;
  font-family: inherit !important;
}

.cesium-infoBox-title {
  background: rgba(15, 23, 42, 0.8) !important;
  color: #00f0ff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.3) !important;
}

@media (max-width: 768px) {
  /* Position Cesium Home & SceneModePicker below mobile top nav, shifted left away from right toggle button */
  .cesium-viewer-toolbar {
    top: calc(var(--header-height, 105px) + 8px) !important;
    right: 68px !important;
    z-index: 900 !important;
  }

  /* Mobile: Hide Cesium ruler timeline bar completely for maximum screen space */
  .cesium-viewer-timelineContainer,
  body.sidebar-collapsed .cesium-viewer-timelineContainer,
  body.right-panel-collapsed .cesium-viewer-timelineContainer {
    display: none !important;
  }
}

/* Override Cesium default hiding on small screens */
@media screen and (max-width: 900px) {
  .cesium-viewer-fullscreenContainer {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* Let width/height be controlled by .btn-zoom-hud class to allow mobile scaling to 32px */
  }
}

/* Match fullscreen button to zoom hud */
.cesium-viewer-fullscreenContainer {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* Let width/height be controlled by .btn-zoom-hud class to allow mobile scaling to 32px */
}
.cesium-viewer-fullscreenContainer svg {
    position: static !important;
    width: 15px !important;
    height: 15px !important;
    fill: #00f0ff !important;
    margin: auto !important;
    display: block !important;
}

/* Strip Cesium inner button styles so container styles show through */
.cesium-viewer-fullscreenContainer .cesium-button,
.cesium-viewer-fullscreenContainer .cesium-button:hover,
.cesium-viewer-fullscreenContainer .cesium-button:focus,
.cesium-viewer-fullscreenContainer .cesium-button:active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}
