:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(3, 11, 18, 0.9), 0 0 0 5px rgba(56, 189, 248, 0.35);
}

.skipLink {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 9px 12px;
  border-radius: 5px;
  background: #e0f2fe;
  color: #082f49;
  font-weight: 700;
}

.skipLink:focus-visible {
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

body {
  margin: 0;
  display: flex;
  height: 100vh;
  overflow: hidden;
  font-family: var(--font-ui);
  background: radial-gradient(circle at 70% 12%, rgba(40, 105, 150, 0.16), transparent 34rem), var(--color-navy-950);
  color: var(--color-blue-soft);
  -webkit-font-smoothing: antialiased;
}

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

::-webkit-scrollbar-track {
  background: rgba(4, 19, 31, 0.6);
}

::-webkit-scrollbar-thumb {
  background: #173b56;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #235880;
}

.ico {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.14em;
  flex-shrink: 0;
  display: inline-block;
}

#sidebar {
  width: 320px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2;
  background: linear-gradient(180deg, rgba(18, 54, 80, 0.98), rgba(6, 25, 41, 0.98));
  border-right: 1px solid var(--color-line-strong);
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.04);
}

#sidebarHeader {
  padding: 16px 18px 14px;
  background: linear-gradient(135deg, rgba(217, 213, 197, 0.98), rgba(181, 186, 180, 0.95));
  border-bottom: 1px solid rgba(6, 21, 34, 0.72);
  color: #10283a;
}

.sidebarBrandRow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.sidebarBrandLogo {
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(16, 40, 58, 0.08);
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.sidebarBrandRow:hover .sidebarBrandLogo {
  transform: scale(1.08) rotate(3deg);
}

.sidebarBrandCol {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#sidebarHeader .brandBadge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  background: rgba(16, 40, 58, 0.14);
  color: #10283a;
  border-radius: 4px;
  margin-bottom: 4px;
  width: fit-content;
}

#sidebarHeader h1 {
  margin: 0 0 2px;
  color: #10283a;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebarMissionDesc {
  margin: 0 0 6px !important;
  color: #1a425f !important;
  font-size: 0.72rem !important;
  line-height: 1.35 !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.95;
}

.sidebarExplDesc {
  margin: 0 !important;
  color: rgba(16, 40, 58, 0.76) !important;
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
}

#sidebarHeader p {
  margin: 0;
  color: rgba(16, 40, 58, 0.76);
  font-size: 0.78rem;
  line-height: 1.45;
}

#results {
  display: none;
  flex-direction: column;
  max-height: 45%;
  border-bottom: 1px solid var(--color-line-soft);
  background: rgba(7, 29, 46, 0.9);
}

#resultsHeader {
  padding: 11px 16px;
  background: linear-gradient(180deg, rgba(22, 59, 86, 0.96), rgba(14, 43, 65, 0.96));
  border-bottom: 1px solid var(--color-line-soft);
  color: #e4eef5;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#resultsHeader .count {
  margin-left: 6px;
  color: var(--color-blue-soft);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}

#clearResults {
  background: transparent;
  border: 1px solid var(--color-line-soft);
  color: var(--color-blue-soft);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.15s;
}

#clearResults:hover {
  background: rgba(57, 125, 169, 0.25);
  border-color: var(--color-blue-active);
  color: #fff;
}

#resultsList {
  overflow-y: auto;
  flex: 1;
}

.resultItem {
  padding: 8px 16px;
  border-bottom: 1px solid rgba(164, 207, 237, 0.13);
  color: #c6d8e5;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  align-items: center;
  transition: all 0.15s;
}

.resultItem:hover {
  background: rgba(57, 125, 169, 0.2);
  color: #fff;
}

.resultItem.active {
  background: linear-gradient(90deg, rgba(63, 143, 198, 0.62), rgba(37, 83, 119, 0.68));
  border-left: 3px solid var(--color-blue-active);
  color: #fff;
  box-shadow: inset 0 0 16px rgba(102, 185, 239, 0.1);
}

.resultItem .rid {
  font-size: 0.75rem;
  color: #ddd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resultItem .rmeta {
  grid-column: 1;
  font-size: 0.72rem;
  color: var(--color-subtle);
}

.resultItem.active .rid,
.resultItem.active .rmeta {
  color: #fff;
}

.resultItem .fullBtn {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-size: 0.7rem;
  background: var(--color-panel);
  color: var(--color-blue-soft);
  border: 1px solid var(--color-line-soft);
  border-radius: 4px;
  padding: 3px 7px;
  cursor: pointer;
  transition: all 0.15s;
}

.resultItem .fullBtn:hover {
  background: var(--color-panel-raised);
  border-color: var(--color-blue-active);
  color: #fff;
}

#sidebarFileSearch {
  padding: 8px 12px 6px;
  border-bottom: 1px solid var(--color-line-soft);
  background: rgba(10, 30, 48, 0.85);
}

.sidebarSearchWrap {
  position: relative;
  display: flex;
  align-items: center;
}

.sidebarSearchIcon {
  position: absolute;
  left: 9px;
  width: 14px;
  height: 14px;
  color: #64748b;
  pointer-events: none;
  transition: color 0.2s;
}

#sidebarFileSearch:focus-within .sidebarSearchIcon {
  color: var(--color-blue-active);
}

#fileSearchInput {
  width: 100%;
  background: rgba(6, 18, 30, 0.85);
  color: #e2e8f0;
  border: 1px solid rgba(164, 207, 237, 0.22);
  border-radius: var(--radius-console);
  padding: 7px 28px 7px 30px;
  font-size: 0.76rem;
  font-family: var(--font-ui);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#fileSearchInput::placeholder {
  color: #4b6477;
}

#fileSearchInput:focus {
  border-color: var(--color-blue-active);
  box-shadow: 0 0 0 2px rgba(102, 185, 239, 0.18);
}

.fileSearchClear {
  position: absolute;
  right: 4px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.fileSearchClear:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.fileSearchStatus {
  font-size: 0.68rem;
  color: #64748b;
  padding: 3px 2px 0;
  min-height: 1.1em;
  letter-spacing: 0.02em;
}

.fileSearchStatus.has-filter {
  color: var(--color-blue-soft);
}

.fileItem.search-hidden {
  display: none !important;
}

.bandGroup.search-hidden {
  display: none !important;
}

.fileItem .search-match {
  background: rgba(250, 204, 21, 0.28);
  color: #fde68a;
  border-radius: 2px;
  padding: 0 1px;
}

.fitsHeaderPanel {
  display: none;
  position: absolute;
  z-index: 36;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(620px, calc(100vw - 48px));
  max-height: min(85vh, 700px);
  background: linear-gradient(145deg, rgba(10, 30, 48, 0.99), rgba(6, 20, 34, 0.99));
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-bezel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  animation: surveySlideIn 0.2s ease-out;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.fitsHeaderPanel[style*="display: flex"],
.fitsHeaderPanel[style*="display:flex"],
.fitsHeaderPanel.open {
  display: flex !important;
}

.fitsHeaderPanelHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.fitsHeaderPanelTitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
}

.fitsHeaderPanelTitle .ico {
  color: #60a5fa;
  width: 18px;
  height: 18px;
}

#fitsHeaderCloseBtn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

#fitsHeaderCloseBtn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.fitsHeaderSearchWrap {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 16px;
  position: relative;
  flex-shrink: 0;
}

.fitsHeaderSearchWrap .ico {
  position: absolute;
  left: 26px;
  width: 14px;
  height: 14px;
  color: #4b6477;
  pointer-events: none;
  transition: color 0.2s;
  z-index: 1;
}

.fitsHeaderSearchWrap:focus-within .ico {
  color: var(--color-blue-active);
}

#fitsHeaderSearchInput {
  width: 100%;
  background: rgba(6, 18, 30, 0.85);
  color: #e2e8f0;
  border: 1px solid rgba(164, 207, 237, 0.22);
  border-radius: var(--radius-console);
  padding: 7px 28px 7px 32px;
  font-size: 0.76rem;
  font-family: var(--font-ui);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#fitsHeaderSearchInput::placeholder {
  color: #4b6477;
}

#fitsHeaderSearchInput:focus {
  border-color: var(--color-blue-active);
  box-shadow: 0 0 0 2px rgba(102, 185, 239, 0.18);
}

.fitsHeaderSearchClearBtn {
  position: absolute;
  right: 22px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.fitsHeaderSearchClearBtn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.fitsHeaderHduTabs {
  display: flex;
  gap: 4px;
  padding: 4px 16px 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.fitsHeaderHduTab {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(164, 207, 237, 0.2);
  background: rgba(14, 40, 62, 0.4);
  color: #7dd3fc;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fitsHeaderHduTab:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #fff;
}

.fitsHeaderHduTab.active {
  background: rgba(56, 189, 248, 0.24);
  border-color: #38bdf8;
  color: #fff;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.18);
}

.fitsHeaderStats {
  padding: 4px 16px 6px;
  font-size: 0.68rem;
  color: #64748b;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.fitsHeaderStats .match-count {
  color: var(--color-blue-soft);
  font-weight: 600;
}

.fitsHeaderTableWrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 16px;
  min-height: 0;
}

.fitsHeaderTableWrap::-webkit-scrollbar {
  width: 6px;
}

.fitsHeaderTableWrap::-webkit-scrollbar-track {
  background: transparent;
}

.fitsHeaderTableWrap::-webkit-scrollbar-thumb {
  background: rgba(164, 207, 237, 0.2);
  border-radius: 3px;
}

.fitsHeaderTableWrap::-webkit-scrollbar-thumb:hover {
  background: rgba(164, 207, 237, 0.35);
}

.fitsHeaderTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
  font-family: 'Inter', system-ui, monospace;
}

.fitsHeaderTable thead th {
  position: sticky;
  top: 0;
  background: rgba(10, 30, 48, 0.98);
  padding: 6px 8px;
  text-align: left;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.fitsHeaderTable tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.1s;
}

.fitsHeaderTable tbody tr:hover {
  background: rgba(56, 189, 248, 0.06);
}

.fitsHeaderTable tbody tr.search-hidden {
  display: none;
}

.fitsHeaderTable td {
  padding: 4px 8px;
  color: #cbd5e1;
  vertical-align: top;
  word-break: break-word;
}

.fitsHeaderTable td:first-child {
  color: #7dd3fc;
  font-weight: 600;
  font-family: 'Inter', monospace;
  white-space: nowrap;
  min-width: 90px;
  max-width: 140px;
}

.fitsHeaderTable td:last-child {
  color: #e2e8f0;
  font-family: monospace;
}

.fitsHeaderTable td .search-match {
  background: rgba(250, 204, 21, 0.32);
  color: #fde68a;
  border-radius: 2px;
  padding: 0 1px;
}

.fitsHeaderTable tr.comment-row td {
  color: #4b6477;
  font-style: italic;
  font-size: 0.7rem;
}

.fitsHeaderTable tr.comment-row td:first-child {
  color: #3a5570;
}

.fitsHeaderEmpty {
  text-align: center;
  padding: 30px 16px;
  color: #4b6477;
  font-size: 0.8rem;
}

.fitsHeaderEmpty .ico {
  display: block;
  margin: 0 auto 8px;
  width: 32px;
  height: 32px;
  color: #2a4560;
}

.fitsHeaderActions {
  display: flex;
  gap: 8px;
  padding: 10px 16px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.fitsHeaderActions button {
  flex: 1;
  background: #1e3a5f;
  color: #e0f2fe;
  border: 1px solid #2d5a8e;
  border-radius: var(--radius-console);
  padding: 7px 12px;
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.fitsHeaderActions button:hover {
  background: #2563eb;
  border-color: #3b82f6;
  color: #fff;
}

#bandList {
  overflow-y: auto;
  flex: 1;
  background: rgba(7, 29, 46, 0.9);
}

.bandGroup {
  border-bottom: 1px solid rgba(164, 207, 237, 0.15);
}

.bandHeader {
  position: relative;
  padding: 11px 16px 11px 38px;
  background: linear-gradient(180deg, rgba(22, 59, 86, 0.96), rgba(14, 43, 65, 0.96));
  border-bottom: 1px solid var(--color-line-soft);
  color: #e4eef5;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.15s;
}

.bandHeader::before {
  position: absolute;
  left: 16px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--color-blue-active);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(102, 185, 239, 0.36);
  content: "";
}

.bandHeader:hover {
  background: var(--color-panel-raised);
}

.bandHeader .count {
  color: var(--color-blue-soft);
  font-weight: 400;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.fileList {
  display: none;
}

.fileList.open {
  display: block;
}

.fileItem {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 3px;
  padding: 7px 14px 7px 18px;
  border-bottom: 1px solid rgba(164, 207, 237, 0.08);
  font-size: 0.75rem;
  color: #c6d8e5;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

.fileItem:hover {
  background: rgba(57, 125, 169, 0.2);
  color: #fff;
}

.fileItem.active {
  background: linear-gradient(90deg, rgba(63, 143, 198, 0.45), rgba(37, 83, 119, 0.55));
  border-left: 3px solid var(--color-blue-active);
  color: #fff;
  box-shadow: inset 0 0 16px rgba(102, 185, 239, 0.15);
}

.fileMainRow {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.fileDetBadge {
  font-size: 0.62rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  flex-shrink: 0;
  line-height: 1.2;
}

.fileExpTitle {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #e2edf4;
  flex-shrink: 0;
  white-space: nowrap;
}

.fileFieldTag {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: #8daabd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.fileNameSpan {
  font-size: 0.72rem;
  color: #e2edf4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.fileItem .fileSkyBtn {
  margin-left: 0;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(16, 43, 64, 0.85);
  border: 1px solid rgba(164, 207, 237, 0.25);
  border-radius: 4px;
  color: var(--color-blue-soft);
  padding: 2px 7px;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.fileItem .fileSkyBtn .ico {
  width: 10px;
  height: 10px;
}

.fileItem .fileSkyBtn:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-blue-active);
}

.fileItem .fileSkyBtn.inSky {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.45);
  color: #34d399;
}

.fileBtnGroup {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.fileItem .fileSimbadBtn,
.fileSimbadBtn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 4px;
  color: #c4b5fd;
  padding: 2px 6px;
  font-size: 0.62rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.fileItem .fileSimbadBtn .ico,
.fileSimbadBtn .ico {
  width: 10px;
  height: 10px;
}

.fileItem .fileSimbadBtn:hover,
.fileSimbadBtn:hover {
  background: rgba(139, 92, 246, 0.38);
  border-color: #a78bfa;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(167, 139, 250, 0.25);
}

.sidebarDistributionBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  margin: 4px 8px 8px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 6px;
  font-size: 0.7rem;
}

.sidebarDistributionBar .distLabel {
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
}

.sidebarDistributionBar .distBtnGroup {
  display: flex;
  gap: 4px;
}

.distModeBtn {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.distModeBtn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.distModeBtn.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(2, 132, 199, 0.55));
  border-color: #38bdf8;
  color: #f0f9ff;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
}

.fitsCenterSimbadBadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(167, 139, 250, 0.45);
  border-radius: 4px;
  color: #c4b5fd;
  padding: 1px 7px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  vertical-align: middle;
}

.fitsCenterSimbadBadge:hover {
  background: rgba(139, 92, 246, 0.4);
  border-color: #c4b5fd;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.3);
}

.fitsCenterSimbadBadge .ico {
  width: 11px;
  height: 11px;
}

.fileSubRow {
  font-size: 0.63rem;
  font-family: var(--font-mono);
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  min-width: 0;
  line-height: 1.2;
}

.fileItem:hover .fileSubRow {
  color: #94a3b8;
}

.fileItem.active .fileSubRow {
  color: #c6d8e5;
}

.zipBtn {
  margin: 8px 16px 10px 38px;
  font-size: 0.75rem;
  background: var(--color-panel);
  color: var(--color-blue-soft);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-console);
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.15s;
  max-width: calc(100% - 54px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  box-sizing: border-box;
}

.zipBtn:hover {
  border-color: var(--color-blue-active);
  background: var(--color-panel-raised);
  color: #fff;
}

#main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  background: var(--color-navy-950);
}

#topbar {
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  box-sizing: border-box;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(180deg, rgba(13, 38, 58, 0.98), rgba(7, 25, 40, 0.98));
  border-bottom: 1px solid var(--color-line-strong);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  z-index: 20;
}

.topbarBrand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}

.topbarBrandLink {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  max-height: 48px;
}

.topbarBrandLogo {
  width: 26px;
  height: 26px;
  max-width: 26px;
  max-height: 26px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.45));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
  vertical-align: middle;
  flex-shrink: 0;
}

.topbarBrandLink:hover .topbarBrandLogo {
  transform: scale(1.12) rotate(4deg);
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.85));
}

.topbarBrandText {
  display: flex;
  align-items: baseline;
  gap: 4px;
  user-select: none;
}

.topbarBrandTitle {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 40%, #7dd3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.topbarBrandSub {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-blue-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.activeFilePill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(6, 20, 34, 0.7);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-console);
  min-width: 0;
  max-width: 150px;
  flex-shrink: 1;
  transition: all 0.2s ease;
  user-select: none;
}

.activeFilePill .ico {
  width: 12px;
  height: 12px;
  color: #64748b;
  flex-shrink: 0;
}

.activeFilePill.hasFile {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(14, 165, 233, 0.1);
}

.activeFilePill.hasFile .ico {
  color: var(--color-blue-active);
}

#currentFileName {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 120px;
}

.activeFilePill.hasFile #currentFileName {
  color: #e2edf4;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.topbarGroup {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.viewToggleGroup {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  background: rgba(6, 20, 34, 0.7);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-console);
  flex-shrink: 0;
}

.viewToggleGroup .viewToggle,
button.viewToggle {
  min-height: 26px;
  padding: 3px 8px;
  font-size: 0.76rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: #9fb8c9;
  cursor: pointer;
  transition: all 160ms ease;
  white-space: nowrap;
}

.viewToggleGroup .viewToggle:hover,
button.viewToggle:hover {
  color: #fff;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(102, 185, 239, 0.2);
}

.viewToggleGroup .viewToggle.active,
button.viewToggle.active {
  border-color: var(--color-blue-active);
  background: linear-gradient(180deg, #2c79a9, #1c527b);
  color: #fff;
  box-shadow: var(--shadow-active);
  font-weight: 600;
}

#dome-return {
  display: none !important;
  min-height: 28px;
  padding: 4px 12px;
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(180deg, #2c79a9, #1c527b);
  border: 1px solid var(--color-blue-active, #66b9ef);
  border-radius: var(--radius-sm, 4px);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(102, 185, 239, 0.28);
  transition: all 160ms ease;
  white-space: nowrap;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
}

#dome-return:hover {
  background: linear-gradient(180deg, #388ac0, #236595);
  border-color: #9fd3f5;
  box-shadow: 0 0 14px rgba(102, 185, 239, 0.45);
}

#dome-return:focus-visible {
  outline: 2px solid var(--color-blue-active, #66b9ef);
  outline-offset: 2px;
}

.topbarTools {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  flex-shrink: 1;
  min-width: 0;
}

.topbarSurveyWrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.topbarSurveyIcon {
  width: 14px;
  height: 14px;
  color: var(--color-subtle);
  flex-shrink: 0;
}

select,
#skySelect,
#cmapSelect {
  min-height: 26px;
  height: 26px;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-console);
  background: linear-gradient(180deg, rgba(24, 61, 87, 0.96), rgba(12, 36, 56, 0.96));
  color: #e2edf4;
  padding: 2px 6px;
  font-size: 0.75rem;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

#skySelect {
  max-width: 105px;
}

#cmapSelect {
  max-width: 85px;
}

select:hover,
select:focus,
#skySelect:hover,
#skySelect:focus,
#cmapSelect:hover,
#cmapSelect:focus {
  border-color: var(--color-blue-active);
  background: var(--color-panel-raised);
}

.overlayToggleBtn,
.missionScienceTopBtn,
#helpBtn,
#resourcesBtn,
#skyResetBtn {
  min-height: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-console);
  background: linear-gradient(180deg, rgba(24, 61, 87, 0.96), rgba(12, 36, 56, 0.96));
  color: #e2edf4;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.overlayToggleBtn:hover,
#helpBtn:hover,
#resourcesBtn:hover,
#skyResetBtn:hover {
  border-color: var(--color-blue-active);
  background: var(--color-panel-raised);
  color: #fff;
}

.missionScienceTopBtn:hover {
  border-color: #a78bfa;
  background: rgba(139, 92, 246, 0.18);
  color: #fff;
}

.overlayToggleBtn.active {
  border-color: var(--color-blue-active);
  background: linear-gradient(180deg, #2c79a9, #1c527b);
  color: #fff;
  box-shadow: var(--shadow-active);
  font-weight: 600;
}

.topbarBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  background: #0284c7;
  color: #fff;
  margin-left: 2px;
}

.topbarCmapWrap {
  display: inline-flex;
  align-items: center;
}

#surveyBrowserBtn {
  min-height: 26px;
  height: 26px;
  border: 1px solid rgba(255, 157, 132, 0.64);
  border-radius: var(--radius-console);
  background: linear-gradient(180deg, var(--color-orange-hover), var(--color-orange-action));
  color: #fff;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18), 0 5px 14px rgba(217, 77, 53, 0.2);
}

#surveyBrowserBtn:hover {
  background: linear-gradient(180deg, #f07b5f, var(--color-orange-hover));
  border-color: #ffc0ae;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.22), 0 7px 18px rgba(217, 77, 53, 0.32);
}

#surveyBrowserBtn .kbdHint {
  font-size: 0.6rem;
  opacity: 0.85;
  margin-left: 2px;
  background: rgba(0, 0, 0, 0.25);
  padding: 1px 4px;
  border-radius: 3px;
}

@media (max-width: 1380px) {
  #surveyBrowserBtn .kbdHint {
    display: none !important;
  }

  .activeFilePill {
    max-width: 120px;
  }

  #currentFileName {
    max-width: 95px;
  }
}

@media (max-width: 1250px) {
  .activeFilePill {
    display: none !important;
  }

  .viewToggleGroup .viewToggle,
  button.viewToggle {
    padding: 3px 6px;
    font-size: 0.73rem;
  }

  #skySelect {
    max-width: 90px;
  }

  #cmapSelect {
    max-width: 75px;
  }

  .missionScienceTopBtn span {
    display: none;
  }
}

@media (max-width: 1100px) {
  .topbarBrandSub {
    display: none;
  }

  .overlayToggleBtn span {
    display: none;
  }

  #surveyBrowserBtn span:not(.kbdHint) {
    display: none;
  }

  .viewToggleGroup .viewToggle,
  button.viewToggle {
    padding: 2px 5px;
    font-size: 0.7rem;
  }

  .topbarTools {
    gap: 4px;
  }

  #resourcesBtn,
  #helpBtn {
    padding: 2px 6px;
    font-size: 0.72rem;
  }
}

@media (max-width: 960px) {
  #topbar {
    overflow-x: auto;
    scrollbar-width: none;
  }

  #topbar::-webkit-scrollbar {
    display: none;
  }
}

#cmapSelect optgroup {
  color: var(--color-subtle);
  font-style: normal;
  background: var(--color-navy-900);
}

#cmapSelect option {
  color: #e2edf4;
  background: var(--color-navy-900);
}

#subBar {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  gap: 12px;
  background: rgba(7, 27, 43, 0.92);
  border-bottom: 1px solid var(--color-line-soft);
  flex-shrink: 0;
  z-index: 10;
}

#workflowBar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  background: transparent;
  border-bottom: none;
  overflow-x: auto;
  scrollbar-width: none;
}

#workflowBar::-webkit-scrollbar {
  display: none;
}

.subBarDivider {
  width: 1px;
  height: 16px;
  background: var(--color-line-soft);
  flex-shrink: 0;
}

#status {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border-bottom: none;
  color: var(--color-blue-soft);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  min-height: 0;
  min-width: 0;
  max-width: 52%;
  overflow: hidden;
}

#statusText {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.statusDot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: #75d991;
  box-shadow: 0 0 9px rgba(117, 217, 145, 0.85);
  flex-shrink: 0;
}

#workflowBar .workflowLabel {
  color: #7fa6bd;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-right: 2px;
}

.workflowStep {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #9fb8c9;
  padding: 4px 11px;
  font-size: 0.74rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.workflowStep:hover {
  border-color: var(--color-line-soft);
  background: rgba(63, 143, 198, 0.15);
  color: #fff;
}

.workflowStep.active {
  border-color: rgba(130, 205, 247, 0.65);
  background: linear-gradient(90deg, #438fc0, #2d6790);
  color: #fff;
  box-shadow: var(--shadow-active);
}

.workflowStep .stepNum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
}

.workflowStep.active .stepNum {
  background: #66b9ef;
  color: #061522;
  border-color: #66b9ef;
}

#viewArea {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  padding: 8px;
  background: linear-gradient(135deg, rgba(17, 55, 80, 0.82), rgba(4, 19, 31, 0.98));
}

#skyMapWrap,
#canvasWrap,
#terrainWrap {
  position: absolute;
  inset: 8px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-bezel);
  background: var(--color-screen);
  box-shadow: var(--shadow-screen);
  overflow: hidden;
}

#skyMapWrap {
  display: block;
}

#aladin-lite-div {
  width: 100%;
  height: 100%;
  background: #030b12;
  cursor: crosshair;
}

#aladin-lite-div:focus-visible,
#canvasWrap:focus-visible,
#terrainCanvas:focus-visible,
#terrainCanvas canvas:focus-visible {
  outline-offset: -4px;
}

#fileSearchInput:focus-visible,
#fitsHeaderSearchInput:focus-visible,
#surveySearch:focus-visible,
#searchPanel .nameRow input:focus-visible,
#searchPanel input:focus-visible,
#searchPanel select:focus-visible,
.fssNameWrap input:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 1px;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.28);
}

#mobileMenuBtn,
#sidebarScrim {
  display: none;
}

@media (max-width: 700px) {
  body {
    display: block;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  #sidebar {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    width: min(88vw, 360px);
    min-width: 0;
    height: 100vh;
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform 220ms ease;
    box-shadow: 18px 0 48px rgba(0, 0, 0, 0.45);
    padding-bottom: env(safe-area-inset-bottom);
  }

  body.mobileSidebarOpen #sidebar {
    transform: translateX(0);
  }

  #sidebarScrim {
    display: block;
    position: fixed;
    z-index: 29;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.62);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  body.mobileSidebarOpen #sidebarScrim {
    opacity: 1;
    visibility: visible;
  }

  #mobileMenuBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid var(--color-line-soft);
    border-radius: var(--radius-console);
    background: var(--color-panel);
    color: #e2edf4;
    font-size: 1.2rem;
    cursor: pointer;
  }

  #main {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
  }

  #topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: max(8px, env(safe-area-inset-top)) 10px 8px;
    flex: 0 0 auto;
    min-height: auto;
  }

  .topbarBrand {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  #currentFileName {
    min-width: 0;
    max-width: none;
    font-size: 0.84rem;
  }

  .viewToggleGroup {
    flex: 1 1 100%;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .viewToggleGroup::-webkit-scrollbar {
    display: none;
  }

  .viewToggleGroup .viewToggle {
    flex: 1;
    min-height: 36px;
    font-size: 0.75rem;
    padding: 4px 6px;
  }

  .topbarTools {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-left: 0;
  }

  .topbarTools::-webkit-scrollbar {
    display: none;
  }

  .topbarTools select,
  .topbarTools button {
    min-height: 36px;
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  #surveyBrowserBtn {
    padding: 5px 8px;
  }

  #surveyBrowserBtn .kbdHint {
    display: none;
  }

  #subBar {
    padding: 0 10px;
    gap: 8px;
    min-height: 32px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  #subBar::-webkit-scrollbar {
    display: none;
  }

  #workflowBar {
    padding: 4px 0;
    gap: 5px;
    flex: 0 0 auto;
  }

  #workflowBar .workflowLabel {
    display: none;
  }

  .workflowStep {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  #status {
    min-height: 27px;
    padding: 4px 0;
    font-size: 0.66rem;
    flex: 0 0 auto;
  }

  #viewArea {
    padding: 3px;
  }

  #skyMapWrap,
  #canvasWrap,
  #terrainWrap {
    inset: 3px;
  }

  #searchPanel,
  .floating-panel {
    width: min(360px, calc(100vw - 20px));
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }

  #terrainControls {
    top: auto;
    right: 8px;
    bottom: 8px;
    width: min(300px, calc(100% - 16px));
    max-height: 48%;
    overflow-y: auto;
  }

  #fitsZoomHud {
    max-width: calc(100% - 20px);
    flex-wrap: wrap;
    justify-content: center;
    bottom: 8px;
  }

  #surveyPanel {
    max-width: calc(100vw - 16px);
  }

  .helpGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  #topbar {
    padding-left: 7px;
    padding-right: 7px;
  }

  #topbar select,
  #topbar button.viewToggle,
  #topbar #surveyBrowserBtn,
  #topbar #helpBtn,
  #topbar #skyResetBtn {
    padding-left: 6px;
    padding-right: 6px;
    font-size: 0.7rem;
  }

  .workflowStep {
    padding-left: 7px;
    padding-right: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {

  #sidebar,
  #sidebarScrim {
    transition: none;
  }
}

#fileSearchInput:focus-visible,
#fitsHeaderSearchInput:focus-visible,
#surveySearch:focus-visible,
#searchPanel input:focus-visible,
#searchPanel select:focus-visible,
.fssNameWrap input:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 1px;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.28);
}

#canvasWrap {
  display: none;
  align-items: center;
  justify-content: center;
  user-select: none;
  cursor: crosshair;
}

#canvasInner {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  position: relative;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-console);
  background: #030b12;
  box-shadow: var(--shadow-screen);
  display: inline-block;
  transform-origin: 0 0;
  will-change: transform;
}

#canvas {
  display: block;
}

#fitsNavHint {
  position: absolute;
  bottom: 58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  background: rgba(8, 29, 45, 0.92);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-console);
  padding: 4px 12px;
  font-size: 0.7rem;
  color: var(--color-blue-soft);
  backdrop-filter: blur(8px);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: opacity 0.2s ease;
}

#fitsZoomHud {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 3px;
  max-width: calc(100% - 28px);
  overflow-x: auto;
  scrollbar-width: none;
  background: linear-gradient(145deg, rgba(18, 55, 80, 0.94), rgba(7, 28, 45, 0.94));
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-console);
  padding: 3px 5px;
  box-shadow: var(--shadow-console);
  backdrop-filter: blur(12px);
}

#fitsZoomHud::-webkit-scrollbar {
  display: none;
}

#fitsZoomHud button {
  background: var(--color-panel);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-sm);
  color: #e2edf4;
  padding: 2px 6px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.15s;
}

#fitsZoomHud button:hover {
  background: var(--color-panel-raised);
  border-color: var(--color-blue-active);
  color: #fff;
}

#fitsZoomHud #zoomLevel {
  min-width: 36px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--color-blue-active);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

#fitsZoomHud .hudDivider {
  width: 1px;
  height: 16px;
  background: var(--color-line-soft);
  margin: 0 2px;
}

.fitsRenderControl {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #8daabd;
  font-size: 0.66rem;
  white-space: nowrap;
}

.fitsRenderControl select {
  max-width: 104px;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-sm);
  background: rgba(5, 20, 33, 0.92);
  color: #e2edf4;
  padding: 4px 5px;
  font: inherit;
  font-size: 0.68rem;
}

.fitsRenderControl select:focus-visible,
.comparisonLayerRow button:focus-visible {
  outline: 2px solid var(--color-blue-active);
  outline-offset: 2px;
}

#placeholder {
  display: none;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--color-subtle);
  font-size: 0.85rem;
}

#meta {
  padding: 6px 16px;
  font-size: 0.75rem;
  color: var(--color-subtle);
  border-top: 1px solid var(--color-line-soft);
  background: rgba(7, 27, 43, 0.6);
}

#searchPanel,
.floating-panel {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 5;
  width: 310px;
  max-width: calc(100% - 24px);
  max-height: min(420px, calc(48% - 18px));
  overflow-y: auto;
  padding: 14px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-console);
  background: linear-gradient(145deg, rgba(18, 55, 80, 0.96), rgba(7, 28, 45, 0.96));
  box-shadow: var(--shadow-console);
  color: #e1edf4;
  backdrop-filter: blur(14px);
  font-size: 0.8rem;
}

#searchPanel h3 {
  margin: 0 0 4px;
  color: #f1f7fb;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

#searchPanel .hint,
#searchPanel .nameHint {
  margin: 0 0 8px;
  font-size: 0.72rem;
  color: #a9c0cf;
  line-height: 1.4;
}

#searchPanel .nameRow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: stretch;
  margin-bottom: 8px;
}

#searchPanel .nameWrap {
  position: relative;
}

#searchPanel input,
#searchPanel select {
  min-height: 30px;
  width: 100%;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-console);
  background: rgba(3, 17, 29, 0.8);
  color: #edf6fb;
  padding: 5px 8px;
  font-size: 0.8rem;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

#searchPanel input:focus,
#searchPanel select:focus {
  border-color: var(--color-blue-active);
  outline: none;
  box-shadow: 0 0 0 2px rgba(102, 185, 239, 0.16), inset 0 1px rgba(255, 255, 255, 0.04);
}

#sResolve {
  border: 1px solid rgba(102, 185, 239, 0.7);
  border-radius: var(--radius-console);
  background: rgba(20, 77, 111, 0.96);
  color: #fff;
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

#sResolve:hover {
  background: #286c9c;
}

#sResolve:disabled {
  opacity: 0.5;
  cursor: default;
}

#searchPanel .nameHint {
  grid-column: 1 / span 2;
  font-size: 0.68rem;
  margin-top: 2px;
}

#searchPanel .quickTargets {
  grid-column: 1 / span 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

#searchPanel .quickTargets button {
  font-size: 0.66rem;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid var(--color-line-soft);
  background: rgba(12, 44, 65, 0.72);
  color: var(--color-blue-soft);
  cursor: pointer;
  transition: all 0.15s;
}

#searchPanel .quickTargets button:hover {
  background: rgba(54, 131, 180, 0.35);
  border-color: var(--color-blue-active);
  color: #fff;
}

#searchPanel .recentTargets {
  grid-column: 1 / span 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

#searchPanel .recentTargets .recentLabel {
  font-size: 0.65rem;
  color: #8faec5;
  align-self: center;
}

#searchPanel .recentTargets button {
  font-size: 0.64rem;
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid var(--color-line-soft);
  background: rgba(20, 77, 111, 0.4);
  color: #d2e7f7;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

#searchPanel .recentTargets button:hover {
  border-color: var(--color-blue-active);
  color: #fff;
}

#searchPanel .recentTargets .recentX {
  opacity: 0.6;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 4px;
}

#searchPanel .recentTargets .recentX:hover {
  opacity: 1;
  color: #ff8a8a;
}

#searchPanel #sNameAuto {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 3px;
  background: rgba(10, 27, 42, 0.98);
  border: 1px solid var(--color-blue-active);
  border-radius: var(--radius-console);
  max-height: 220px;
  overflow-y: auto;
  z-index: 30;
  box-shadow: var(--shadow-console);
  display: none;
}

#searchPanel #sNameAuto.open {
  display: block;
}

#searchPanel #sNameAuto .autoItem {
  padding: 6px 10px;
  font-size: 0.78rem;
  color: #ddd;
  cursor: pointer;
  border-bottom: 1px solid rgba(164, 207, 237, 0.1);
}

#searchPanel #sNameAuto .autoItem:hover,
#searchPanel #sNameAuto .autoItem.active {
  background: rgba(54, 131, 180, 0.35);
  color: #fff;
}

#searchPanel #sNameAuto .autoMain {
  font-weight: 600;
  color: #e8f4fc;
}

#searchPanel #sNameAuto .autoMeta {
  font-size: 0.66rem;
  color: var(--color-subtle);
}

#searchPanel .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

#searchPanel .coordRow {
  grid-column: 1 / span 2;
  display: flex;
  gap: 6px;
  align-items: flex-end;
}

#searchPanel .coordRow label {
  flex: 1;
}

#searchPanel .coordRow #sViewCenter {
  background: var(--color-panel);
  color: var(--color-blue-soft);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-console);
  padding: 5px 8px;
  font-size: 0.7rem;
  cursor: pointer;
  white-space: nowrap;
  height: 30px;
  align-self: flex-end;
  transition: all 0.15s;
}

#searchPanel .coordRow #sViewCenter:hover {
  background: var(--color-panel-raised);
  border-color: var(--color-blue-active);
  color: #fff;
}

#searchPanel label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.74rem;
  color: #bdc8d5;
}

#searchPanel label.wide {
  grid-column: 1 / span 2;
}

#sGo {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--color-blue-active);
  border-radius: var(--radius-console);
  background: linear-gradient(180deg, #4b9bd0, #286c9c);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.15s;
}

#sGo:hover {
  background: linear-gradient(180deg, #66b9ef, #3783b7);
}

#sMsg {
  margin-top: 8px;
  font-size: 0.72rem;
  color: #8faec5;
  line-height: 1.4;
  min-height: 1.4em;
}

#surveyPanel {
  display: none;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 480px;
  max-width: calc(100vw - 24px);
  max-height: calc(100% - 24px);
  z-index: 20;
  background: linear-gradient(145deg, rgba(8, 29, 45, 0.98), rgba(5, 20, 33, 0.98));
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-bezel);
  box-shadow: var(--shadow-console);
  backdrop-filter: blur(16px);
  flex-direction: column;
  overflow: hidden;
  animation: surveySlideIn 0.2s ease-out;
}

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

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#surveyPanel.open {
  display: flex;
}

#surveyPanelHeader {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--color-line-soft);
  flex-shrink: 0;
}

#surveyPanelHeader h3 {
  margin: 0 0 10px 0;
  font-size: 1rem;
  color: #e8f2f8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#surveyPanelHeader h3 .panelTitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#surveyPanelHeader h3 .panelTitle .ico {
  color: var(--color-blue-active);
}

.surveyHeaderActions {
  display: flex;
  align-items: center;
  gap: 6px;
}

#surveyRefreshBtn {
  background: var(--color-panel);
  border: 1px solid var(--color-line-soft);
  color: var(--color-blue-soft);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

#surveyRefreshBtn:hover {
  border-color: var(--color-blue-active);
  color: #fff;
}

#surveyPanelClose {
  background: none;
  border: none;
  color: var(--color-subtle);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

#surveyPanelClose:hover {
  color: #ff6b6b;
}

.surveySearchWrap {
  position: relative;
}

#surveySearch {
  width: 100%;
  background: rgba(3, 17, 29, 0.85);
  color: #edf6fb;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-console);
  padding: 8px 12px 8px 32px;
  font-size: 0.82rem;
  outline: none;
}

#surveySearch:focus {
  border-color: var(--color-blue-active);
  box-shadow: 0 0 0 2px rgba(102, 185, 239, 0.2);
}

.surveySearchIcon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
  pointer-events: none;
  display: flex;
}

#surveyFilters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px 16px 6px;
  border-bottom: 1px solid var(--color-line-soft);
  flex-shrink: 0;
}

.filterChip {
  font-size: 0.7rem;
  padding: 3px 9px;
  border-radius: 12px;
  border: 1px solid var(--color-line-soft);
  background: rgba(12, 44, 65, 0.72);
  color: #a9c4d5;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.filterChip:hover {
  background: rgba(54, 131, 180, 0.28);
  border-color: var(--color-blue-active);
  color: #fff;
}

.filterChip.active {
  border-color: var(--color-blue-active);
  background: linear-gradient(135deg, rgba(63, 143, 198, 0.5), rgba(37, 83, 119, 0.6));
  color: #fff;
  box-shadow: 0 0 10px rgba(102, 185, 239, 0.2);
}

#surveyWaveFilter {
  padding: 8px 16px 10px;
  border-bottom: 1px solid var(--color-line-soft);
  flex-shrink: 0;
  font-size: 0.72rem;
  color: #aaa;
}

#surveyWaveFilter .waveFilterHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

#surveyWaveFilter .waveFilterHeader label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a9c4d5;
  font-size: 0.72rem;
}

#surveyWaveFilter .waveRangeLabel {
  color: var(--color-blue-active);
  font-variant-numeric: tabular-nums;
  font-size: 0.7rem;
}

#surveyWaveFilter .waveResetBtn {
  background: none;
  border: 1px solid var(--color-line-soft);
  color: var(--color-blue-soft);
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
}

#surveyWaveFilter .waveSliderWrap {
  position: relative;
  height: 46px;
  margin-top: 4px;
  user-select: none;
  touch-action: none;
}

#surveyWaveFilter .waveAxis {
  position: absolute;
  left: 0;
  right: 0;
  top: 20px;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(to right,
      #6f6 0%, #ff9 10%, #d8f 18%, #c9f 23%, #6c6 30%, #f96 45%, #8cc 65%, #6cc 73%, #79c 82%, #9af 100%);
  opacity: 0.7;
  pointer-events: none;
}

#surveyWaveFilter .waveAxisDim {
  position: absolute;
  top: 20px;
  height: 10px;
  background: rgba(0, 0, 0, 0.65);
  pointer-events: none;
  border-radius: 5px;
  transition: left 0.08s, width 0.08s;
}

#surveyWaveFilter .waveFill {
  position: absolute;
  top: 20px;
  height: 10px;
  background: rgba(255, 255, 255, 0.25);
  border-left: 2px solid var(--color-blue-active);
  border-right: 2px solid var(--color-blue-active);
  pointer-events: none;
  border-radius: 2px;
  transition: left 0.08s, width 0.08s;
}

#surveyWaveFilter input[type="range"] {
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  width: 100%;
  margin: 0;
  height: 26px;
  opacity: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

#surveyWaveFilter .waveThumb {
  position: absolute;
  top: 16px;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-blue-active);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  cursor: grab;
  transition: transform 0.08s ease-out;
}

#surveyWaveFilter .waveThumb.dragging {
  transform: scale(1.2);
  cursor: grabbing;
}

#surveyWaveFilter .waveThumb.max {
  border-color: var(--color-warning);
}

#surveyWaveFilter .waveThumbLabel {
  position: absolute;
  top: -6px;
  font-size: 0.66rem;
  color: #fff;
  background: #102b40;
  border: 1px solid var(--color-line-soft);
  padding: 2px 6px;
  border-radius: 4px;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}

#surveyWaveFilter .waveThumbLabel.show {
  opacity: 1;
}

#surveyWaveFilter .waveAxisLabels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.6rem;
  color: #7fa6bd;
  padding: 0 2px;
}

#surveyTools {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 16px;
  border-bottom: 1px solid var(--color-line-soft);
  flex-shrink: 0;
  font-size: 0.72rem;
  color: var(--color-blue-soft);
}

#surveyTools select {
  min-height: 26px;
  padding: 2px 6px;
  font-size: 0.72rem;
}

#surveyTools .toolSpacer {
  flex: 1;
}

#surveyCount {
  font-size: 0.72rem;
  color: #7fa6bd;
  padding: 5px 16px 3px;
  flex-shrink: 0;
}

#surveyList {
  overflow-y: auto;
  flex: 1;
  padding: 2px 0;
}

.surveyGroupHeader {
  padding: 8px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-blue-soft);
  background: rgba(41, 113, 157, 0.2);
  position: sticky;
  top: 0;
  z-index: 1;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 6px;
}

.surveyGroupHeader .groupCount {
  color: #7fa6bd;
  font-weight: 400;
  font-size: 0.65rem;
}

.surveyItem {
  padding: 7px 16px;
  font-size: 0.8rem;
  color: #c6d8e5;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.surveyItem:hover {
  background: rgba(54, 131, 180, 0.2);
  border-left-color: var(--color-blue-active);
  color: #fff;
}

.surveyItem.active {
  background: rgba(54, 131, 180, 0.34);
  border-left-color: #a5dcff;
  color: #fff;
}

.surveyItem .surveyIcon {
  font-size: 0.95rem;
  flex-shrink: 0;
  width: 18px;
  color: #7d8794;
  display: flex;
  align-items: center;
  justify-content: center;
}

.surveyItem .surveyFav {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.9rem;
  color: #556877;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
  display: flex;
  align-items: center;
}

.surveyItem .surveyFav:hover,
.surveyItem .surveyFav.faved {
  color: var(--color-warning);
}

.surveyItem .surveyFav.faved .ico {
  fill: currentColor;
}

.surveyItem .surveyTitle {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.surveyItem .surveyMeta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.surveyItem .surveyWave {
  font-size: 0.6rem;
  color: #bcd;
  background: #141a22;
  border: 1px solid #243042;
  border-radius: 3px;
  padding: 1px 5px;
  flex-shrink: 0;
}

.surveyItem .surveyOrder {
  font-size: 0.6rem;
  color: #7fa6bd;
  background: rgba(4, 19, 31, 0.6);
  border-radius: 3px;
  padding: 1px 4px;
}

.surveyItem .surveyRegime {
  font-size: 0.65rem;
  color: #777;
  background: #1e1e22;
  border-radius: 10px;
  padding: 2px 8px;
  flex-shrink: 0;
  font-weight: 500;
}

.surveyItem .surveyRegime.regime-optical {
  background: #152515;
  color: #6c6;
  border: 1px solid #2a3d2a;
}

.surveyItem .surveyRegime.regime-infrared {
  background: #251515;
  color: #f96;
  border: 1px solid #3d2a2a;
}

.surveyItem .surveyRegime.regime-radio {
  background: #151525;
  color: #9af;
  border: 1px solid #2a2a3d;
}

.surveyItem .surveyRegime.regime-uv {
  background: #201520;
  color: #c9f;
  border: 1px solid #352a35;
}

.surveyItem .surveyRegime.regime-x-ray {
  background: #252515;
  color: #ff9;
  border: 1px solid #3d3d2a;
}

.surveyItem .surveyRegime.regime-gamma-ray {
  background: #251515;
  color: #f66;
  border: 1px solid #3d2a2a;
}

.surveyItem .surveyRegime.regime-cmb {
  background: #1a1a25;
  color: #aad;
  border: 1px solid #2a2a3d;
}

.surveyItem .surveyRegime.regime-millimeter {
  background: #1a2020;
  color: #8cc;
  border: 1px solid #2a3535;
}

.surveyItem .surveyRegime.regime-euv {
  background: #1f151f;
  color: #d8f;
  border: 1px solid #30253e;
}

.surveyItem .surveyRegime.regime-submillimeter {
  background: #15201f;
  color: #6cc;
  border: 1px solid #2a3535;
}

.surveyItem .surveyRegime.regime-microwave {
  background: #15202a;
  color: #79c;
  border: 1px solid #2a2a3d;
}

.surveyItem .surveyRegime.regime-other {
  background: #1f1f1f;
  color: #aaa;
  border: 1px solid var(--color-line-soft);
}

#surveyLoading {
  padding: 30px;
  text-align: center;
  color: #7fa6bd;
  font-size: 0.82rem;
}

#surveyLoading .spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-line-soft);
  border-top-color: var(--color-blue-active);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#overlayPanel {
  display: none;
  position: absolute;
  left: 12px;
  top: 12px;
  width: 320px;
  min-width: 280px;
  max-width: calc(100% - 24px);
  z-index: 10;
  background: linear-gradient(145deg, rgba(8, 29, 45, 0.98), rgba(5, 20, 33, 0.98));
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-bezel);
  box-shadow: var(--shadow-console);
  backdrop-filter: blur(14px);
  padding: 8px 10px;
  max-height: min(480px, calc(100% - 24px));
  overflow-y: auto;
  flex-direction: column;
  gap: 6px;
  font-size: 0.74rem;
  animation: surveySlideIn 0.2s ease-out;
  box-sizing: border-box;
}

#overlayPanel h3 {
  margin: 0;
  font-size: 0.92rem;
  color: #e8f2f8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#overlayPanel h3 .panelTitle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

#overlayPanel h3 .panelTitle .ico {
  color: var(--color-blue-active);
}

#overlayPanelClose {
  background: none;
  border: none;
  color: var(--color-subtle);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}

#overlayPanelClose:hover {
  color: #ff6b6b;
}

#overlayFileName {
  margin: -3px 0 0 0;
  color: var(--color-blue-active);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overlayControl label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #bdc8d5;
  font-size: 0.74rem;
}

.overlayControl output {
  color: var(--color-blue-active);
  font-variant-numeric: tabular-nums;
}

#overlayPanel input[type="range"] {
  width: 100%;
  margin-top: 5px;
  accent-color: var(--color-blue-active);
}

.overlayGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.overlayGrid label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #aaa;
  font-size: 0.72rem;
}

.overlayCheck {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #bdc8d5;
  font-size: 0.74rem;
  cursor: pointer;
}

.overlayCheck input {
  accent-color: var(--color-blue-active);
}

.overlayActions {
  display: flex;
  gap: 7px;
}

.overlayActions button {
  flex: 1;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-console);
  background: var(--color-panel);
  color: var(--color-blue-soft);
  padding: 6px 8px;
  font-size: 0.74rem;
  cursor: pointer;
}

.overlayActions button:hover {
  border-color: var(--color-blue-active);
  background: var(--color-panel-raised);
  color: #fff;
}

.overlayNote {
  margin: 0;
  color: #9eb7c7;
  font-size: 0.68rem;
  line-height: 1.4;
}

#terrainWrap {
  display: none;
  background: radial-gradient(circle at 50% 20%, rgba(35, 75, 120, 0.22), transparent 44%),
    linear-gradient(180deg, #0b111a 0%, #080a0f 100%);
}

#terrainCanvas {
  position: absolute;
  inset: 0;
}

#terrainCanvas canvas {
  width: 100%;
  height: 100%;
  display: block;
}

#terrainControls {
  position: absolute;
  z-index: 4;
  top: 16px;
  right: 16px;
  width: 276px;
  padding: 15px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-bezel);
  background: linear-gradient(145deg, rgba(8, 29, 45, 0.98), rgba(5, 20, 33, 0.98));
  box-shadow: var(--shadow-console);
  backdrop-filter: blur(14px);
}

#terrainControls h3 {
  margin: 0;
  font-size: 0.94rem;
  color: #f4f7fb;
}

#terrainControls .terrainSubhead {
  color: #9eb7c7;
  font-size: 0.72rem;
  line-height: 1.45;
  margin: 4px 0 13px;
}

.terrainControl label,
.terrainCheck {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #bdc8d5;
  font-size: 0.77rem;
}

.terrainControl output {
  color: var(--color-blue-active);
  font-variant-numeric: tabular-nums;
}

#terrainControls input[type="range"] {
  width: 100%;
  margin-top: 8px;
  accent-color: var(--color-blue-active);
}

.terrainCheck {
  justify-content: flex-start;
  margin: 10px 0;
  cursor: pointer;
}

.terrainCheck input {
  accent-color: var(--color-blue-active);
}

.terrainActions {
  display: flex;
  gap: 7px;
  margin-top: 14px;
}

.terrainActions button {
  flex: 1;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-console);
  background: var(--color-panel);
  color: var(--color-blue-soft);
  padding: 6px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
}

.terrainActions button:hover {
  border-color: var(--color-blue-active);
  background: var(--color-panel-raised);
  color: #fff;
}

#terrainEmpty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  color: #9eb7c7;
  pointer-events: none;
}

#terrainEmpty strong {
  display: block;
  color: #e7edf5;
  font-size: 1.08rem;
  margin-bottom: 7px;
}

#terrainHud {
  position: absolute;
  z-index: 3;
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-blue-soft);
  font-size: 0.72rem;
  pointer-events: none;
}

#terrainHud .hudBadge {
  border: 1px solid var(--color-line-soft);
  border-radius: 999px;
  background: rgba(5, 23, 37, 0.86);
  padding: 5px 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
}

#inspectorPanel {
  display: none;
  position: absolute;
  z-index: 15;
  right: 12px;
  bottom: 12px;
  width: 310px;
  background: linear-gradient(145deg, rgba(8, 29, 45, 0.98), rgba(5, 20, 33, 0.98)) !important;
  border: 1px solid var(--color-line-strong) !important;
  border-radius: var(--radius-bezel) !important;
  padding: 14px 16px !important;
  font-size: 0.8rem !important;
  color: #e1edf4 !important;
  box-shadow: var(--shadow-console) !important;
  backdrop-filter: blur(14px) !important;
}

#fitsSkySearchPanel {
  display: none;
  position: absolute;
  z-index: 35;
  width: 350px;
  max-width: calc(100vw - 28px);
  max-height: calc(100% - 28px);
  overflow-y: auto;
  background: linear-gradient(145deg, rgba(10, 30, 48, 0.98), rgba(6, 20, 34, 0.98));
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-bezel);
  padding: 14px 16px;
  font-size: 0.8rem;
  color: #e1edf4;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  animation: surveySlideIn 0.18s ease-out;
}

.fitsSkySearchHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fitsSkySearchTitle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
}

.fitsSkySearchTitle .ico {
  color: #60a5fa;
}

#fssCloseBtn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

#fssCloseBtn:hover {
  color: #ef4444;
}

.fssCoordsBadge {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.28);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.fssCoordItem {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fssCoordItem.wide {
  grid-column: 1 / span 2;
}

.fssCoordLabel {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.fssCoordVal {
  font-size: 0.76rem;
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
  font-family: monospace;
}

.fssSection {
  margin-bottom: 10px;
}

.fssSectionTitle {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7dd3fc;
  margin-bottom: 5px;
}

.fssObjectCard {
  background: rgba(14, 42, 66, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 9px 12px;
  line-height: 1.45;
}

.fssObjNameRow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}

.fssObjNameRow strong {
  font-size: 0.88rem;
  color: #fff;
}

.fssObjTypeBadge {
  font-size: 0.65rem;
  padding: 1px 6px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  border-radius: 999px;
  font-weight: 600;
}

.fssObjSep {
  font-size: 0.72rem;
  color: #94a3b8;
}

.fssObjNote {
  margin: 3px 0 0 0;
  font-size: 0.68rem;
  color: #64748b;
}

.fssSearchRow {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  position: relative;
}

.fssNameWrap {
  flex: 1;
  position: relative;
}

.fssNameWrap input {
  width: 100%;
  background: #091c2b;
  color: #eee;
  border: 1px solid #1f4260;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.78rem;
  outline: none;
}

.fssNameWrap input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.fssAutoDropdown {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 2px;
  background: rgba(8, 26, 42, 0.98);
  border: 1px solid #1f4260;
  border-radius: 6px;
  max-height: 160px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
}

.fssAutoDropdown.open {
  display: block;
}

.fssAutoItem {
  padding: 5px 8px;
  font-size: 0.74rem;
  color: #cbd5e1;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.fssAutoItem:hover {
  background: rgba(56, 189, 248, 0.18);
  color: #fff;
}

#fssResolveBtn {
  background: #1e3a5f;
  color: #e0f2fe;
  border: 1px solid #2d5a8e;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

#fssResolveBtn:hover {
  background: #2563eb;
  border-color: #3b82f6;
  color: #fff;
}

.fssQuickTargets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.fssQuickTargets button {
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid #1e3b54;
  background: rgba(14, 40, 62, 0.4);
  color: #7dd3fc;
  cursor: pointer;
  transition: all 0.15s;
}

.fssQuickTargets button:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #fff;
}

.fssResolveStatus {
  font-size: 0.7rem;
  color: #f59e0b;
  min-height: 1.1em;
  margin-bottom: 4px;
}

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

.fssActionBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #23486a;
  background: #102940;
  color: #bae6fd;
  cursor: pointer;
  transition: all 0.15s;
}

.fssActionBtn:hover {
  background: #183e63;
  border-color: #38bdf8;
  color: #fff;
}

.fssActionBtn.primary {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  border-color: #3b82f6;
  color: #fff;
}

.fssActionBtn.primary:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.fssSecondaryActions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.fssSecondaryActions button {
  flex: 1;
  padding: 5px;
  font-size: 0.7rem;
  background: rgba(15, 36, 56, 0.6);
  border: 1px solid #1a3c5a;
  border-radius: 5px;
  color: #94a3b8;
  cursor: pointer;
}

.fssSecondaryActions button:hover {
  color: #e2e8f0;
  border-color: #38bdf8;
}

.fssMsg {
  margin-top: 6px;
  font-size: 0.72rem;
  color: #f59e0b;
  min-height: 1em;
  line-height: 1.35;
}

#fitsSearchHudBtn {
  background: #15324d;
  color: #7dd3fc;
  border: 1px solid #234d74;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 0.72rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#fitsSearchHudBtn:hover {
  background: #1e4970;
  border-color: #38bdf8;
  color: #fff;
}

#helpModal {
  display: none;
  position: absolute;
  z-index: 40;
  inset: 20px;
  max-width: 680px;
  max-height: calc(100% - 40px);
  margin: auto;
  overflow: auto;
  padding: 22px 24px 24px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-bezel);
  background: linear-gradient(145deg, rgba(8, 29, 45, 0.98), rgba(5, 20, 33, 0.98));
  box-shadow: var(--shadow-console);
}

#helpModal.open {
  display: block;
  animation: surveySlideIn 0.18s ease-out;
}

#helpModal h2 {
  margin: 0 0 5px;
  font-size: 1.15rem;
  color: #f3f7fc;
}

#helpModal .helpLead {
  color: #9eb7c7;
  margin: 0 0 17px;
  font-size: 0.82rem;
  line-height: 1.55;
}

.helpGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.helpCard {
  padding: 12px;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-console);
  background: rgba(7, 25, 40, 0.8);
}

.helpCard h4 {
  margin: 0 0 6px;
  color: var(--color-blue-active);
  font-size: 0.8rem;
}

.helpCard p,
.helpCard li {
  color: #c6d8e5;
  font-size: 0.75rem;
  line-height: 1.5;
}

.helpCard p {
  margin: 0;
}

.helpCard ol {
  margin: 0;
  padding-left: 17px;
}

#helpClose {
  float: right;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1.3rem;
  cursor: pointer;
}

#helpClose:hover {
  color: #fff;
}

#privacyLinks {
  position: fixed;
  z-index: 20;
  right: 12px;
  bottom: 10px;
  display: flex;
  gap: 12px;
  font-size: 12px;
}

#privacyLinks button,
#cookieBanner button {
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-console);
  background: rgba(12, 42, 62, 0.94);
  color: #cce4f3;
  padding: 6px 11px;
  cursor: pointer;
  transition: all 0.15s;
}

#privacyLinks button:hover,
#cookieBanner button:hover {
  border-color: var(--color-blue-active);
  background: var(--color-panel-raised);
  color: #fff;
}

#cookieBanner {
  position: fixed;
  z-index: 30;
  left: 16px;
  bottom: 16px;
  width: min(540px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-bezel);
  background: linear-gradient(145deg, rgba(16, 48, 70, 0.98), rgba(6, 24, 39, 0.98));
  box-shadow: var(--shadow-console);
  color: #e1edf4;
}

#cookieBanner p {
  color: #c5c9d1;
  font-size: 13px;
  line-height: 1.5;
  margin: 8px 0 14px;
}

.consentActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#cookieBanner .primary {
  border-color: #ff9c87;
  background: var(--color-orange-action);
  color: #fff;
}

#cookieBanner .primary:hover {
  background: var(--color-orange-hover);
}

#privacyDialog {
  width: min(700px, calc(100vw - 28px));
  max-height: min(80vh, 760px);
  padding: 24px;
  color: #e1edf4;
  background: linear-gradient(145deg, rgba(14, 43, 65, 0.98), rgba(6, 22, 36, 0.98));
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-bezel);
  box-shadow: var(--shadow-console);
}

#privacyDialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

#privacyDialog h2 {
  margin: 0 0 12px;
}

#privacyDialog h3 {
  margin: 20px 0 6px;
  font-size: 15px;
  color: var(--color-blue-active);
}

#privacyDialog p {
  color: #c5c9d1;
  font-size: 14px;
  line-height: 1.6;
}

#privacyDialog .dialogHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#privacyDialog button {
  color: #eee;
  background: var(--color-panel);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-console);
  padding: 7px 11px;
  cursor: pointer;
}

#privacyDialog button:hover {
  background: var(--color-panel-raised);
  border-color: var(--color-blue-active);
}

@media (max-width: 900px) {
  #sidebar {
    width: 270px;
    min-width: 270px;
  }

  #topbar {
    padding: 0 12px;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  #topbar::-webkit-scrollbar {
    display: none;
  }

  #subBar {
    padding: 0 12px;
    gap: 8px;
  }

  #workflowBar {
    padding: 3px 0;
  }

  #terrainControls {
    top: 10px;
    right: 10px;
    width: 248px;
  }
}

#viewArea.splitMode {
  display: flex !important;
  flex-direction: row;
  gap: 8px;
}

@media (max-width: 900px) {
  #viewArea.splitMode {
    flex-direction: column !important;
  }
}

#viewArea.splitMode #skyMapWrap,
#viewArea.splitMode #canvasWrap {
  position: relative !important;
  inset: 0 !important;
  flex: 1 1 50% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: flex !important;
}

#viewArea.splitMode #terrainWrap,
#viewArea.splitMode #placeholder {
  display: none !important;
}

#viewArea.splitMode .fitsLightRangeBar {
  width: min(390px, calc(100% - 24px));
}

#viewArea.splitMode .fitsTelemetryHud {
  top: auto;
  bottom: 56px;
  right: 12px;
  padding: 3px 8px;
  gap: 8px;
  font-size: 0.65rem;
}

#viewArea.splitMode #fitsNavHint {
  display: none;
}

#viewArea.splitMode #fitsZoomHud {
  bottom: 8px;
  padding: 3px 6px;
  gap: 2px;
}

#searchPanel.collapsed {
  max-height: 44px;
  overflow: hidden;
  padding: 8px 14px;
}

#searchPanel.collapsed> :not(#searchPanelHeader) {
  display: none !important;
}

#overlayPanel.collapsed {
  max-height: 44px;
  overflow: hidden;
  padding: 8px 14px;
}

#overlayPanel.collapsed> :not(#overlayPanelHeader) {
  display: none !important;
}

.fitsLightRangeBar.collapsed {
  gap: 0;
  padding: 4px 8px;
}

.fitsLightRangeBar.collapsed .flrCollapsibleContent {
  display: none !important;
}

@media (max-width: 1250px) {
  .fitsTelemetryHud {
    top: auto !important;
    bottom: 50px !important;
    right: 10px !important;
    left: auto !important;
    z-index: 12 !important;
    max-width: calc(100% - 20px) !important;
    padding: 3px 8px;
    gap: 3px 6px;
  }
}

.fitsTelemetryHud {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 8px;
  max-width: calc(100% - 490px);
  background: linear-gradient(135deg, rgba(8, 29, 45, 0.94), rgba(4, 19, 31, 0.96));
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-console);
  padding: 3px 8px;
  box-shadow: var(--shadow-console);
  backdrop-filter: blur(14px);
  pointer-events: none;
  font-size: 0.67rem;
  transition: opacity 0.2s ease;
  overflow: visible;
  box-sizing: border-box;
}

.fitsTelemetryHud .telItem {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 3px;
  flex-shrink: 0;
  min-width: 0;
}

.fitsTelemetryHud .telLabel {
  font-size: 0.54rem;
  font-weight: 700;
  color: var(--color-subtle);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fitsTelemetryHud .telVal {
  color: #e2edf4;
  font-family: var(--font-mono, monospace);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 0.66rem;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fitsTelemetryHud .telItem.highlight .telVal {
  color: var(--color-blue-active);
  font-weight: 600;
}

.fitsLightRangeBar {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 15;
  width: auto;
  max-width: 485px;
  background: linear-gradient(145deg, rgba(10, 32, 50, 0.96), rgba(4, 18, 30, 0.98));
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-bezel);
  box-shadow: var(--shadow-console);
  backdrop-filter: blur(14px);
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  user-select: none;
  box-sizing: border-box;
}

.flrHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
}

.flrTitle {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  flex-shrink: 0;
}

.flrBadge {
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(102, 185, 239, 0.15);
  border: 1px solid rgba(102, 185, 239, 0.4);
  color: var(--color-blue-active);
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}

.flrUnit {
  color: #94a3b8;
  font-family: monospace;
  font-size: 0.66rem;
}

.flrSpan {
  color: #64748b;
  font-size: 0.64rem;
}

.flrControls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.flrMiniControl {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.64rem;
  color: #8daabd;
}

.flrMiniControl select {
  background: rgba(5, 20, 33, 0.9);
  border: 1px solid var(--color-line-soft);
  color: #e2edf4;
  border-radius: var(--radius-sm);
  padding: 2px 4px;
  font-size: 0.64rem;
  outline: none;
  max-width: 88px;
  text-overflow: ellipsis;
}

.flrIconBtn {
  background: var(--color-panel);
  border: 1px solid var(--color-line-soft);
  color: #cbd5e1;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  cursor: pointer;
  transition: all 0.15s;
}

.flrIconBtn:hover {
  background: var(--color-panel-raised);
  border-color: var(--color-blue-active);
  color: #fff;
}

.flrIconBtn.active {
  background: var(--color-accent);
  border-color: var(--color-blue-active);
  color: #fff;
}

.flrHistWrap {
  width: 100%;
  height: 24px;
  background: rgba(3, 11, 18, 0.6);
  border: 1px solid rgba(164, 207, 237, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

#flrHistCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.flrGradientWrap {
  position: relative;
  width: 100%;
  height: 14px;
  border-radius: 3px;
  overflow: visible;
  border: 1px solid rgba(164, 207, 237, 0.25);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

#flrColorbarCanvas {
  width: 100%;
  height: 100%;
  border-radius: 2px;
  display: block;
}

.flrNeedle {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9), 0 0 12px var(--color-blue-active);
  pointer-events: none;
  transform: translateX(-50%);
  transition: left 0.05s ease-out;
  z-index: 5;
}

.flrNeedleValue {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 2px;
  background: rgba(3, 11, 18, 0.95);
  border: 1px solid var(--color-blue-active);
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 0.6rem;
  color: #fff;
  white-space: nowrap;
  font-family: monospace;
}

.flrLabelsRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
}

.flrCutGroup {
  display: flex;
  align-items: center;
  gap: 3px;
}

.flrCutLabel {
  color: #8faec5;
  font-size: 0.64rem;
}

.flrCutInput {
  width: 74px;
  background: rgba(4, 18, 30, 0.9);
  border: 1px solid var(--color-line-soft);
  color: #fff;
  font-size: 0.65rem;
  font-family: monospace;
  padding: 2px 4px;
  border-radius: 3px;
}

.flrStatsMid {
  color: #64748b;
  font-size: 0.62rem;
  text-align: center;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flrTuningRow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid rgba(164, 207, 237, 0.12);
}

.flrSliderLabel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  color: #94a3b8;
  flex: 1;
}

.flrSliderLabel input[type="range"] {
  flex: 1;
  height: 4px;
  accent-color: var(--color-blue-active);
}

.flrSliderLabel output {
  font-family: monospace;
  color: var(--color-blue-active);
  font-size: 0.65rem;
}

.flrSmallBtn {
  background: var(--color-panel);
  border: 1px solid var(--color-line-soft);
  color: #94a3b8;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.62rem;
  cursor: pointer;
}

.flrSmallBtn:hover {
  color: #fff;
  border-color: var(--color-blue-active);
}

.fitsProfilePanel {
  position: absolute;
  left: 14px;
  bottom: 60px;
  z-index: 25;
  width: 480px;
  max-width: calc(100% - 28px);
  background: linear-gradient(145deg, rgba(10, 32, 50, 0.98), rgba(4, 18, 30, 0.98));
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-bezel);
  box-shadow: var(--shadow-console);
  backdrop-filter: blur(14px);
  padding: 10px 14px;
}

.fppHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.fppTitle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #fff;
  font-size: 0.78rem;
}

.fppActions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fppActions select {
  background: rgba(5, 20, 33, 0.9);
  border: 1px solid var(--color-line-soft);
  color: #e2edf4;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.68rem;
}

.fppActions button {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}

.fppActions button:hover {
  color: #fff;
}

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

#fppCanvas {
  width: 100%;
  height: 120px;
  background: rgba(2, 8, 14, 0.8);
  border: 1px solid var(--color-line-soft);
  border-radius: 4px;
}

.fppStatsRow {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #94a3b8;
}

.fppStatsRow strong {
  color: var(--color-blue-active);
  font-family: monospace;
}

.fitsStatsPanel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  width: 440px;
  max-width: calc(100% - 28px);
  background: linear-gradient(145deg, rgba(10, 32, 50, 0.98), rgba(4, 18, 30, 0.98));
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-bezel);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  padding: 14px 16px;
}

.fspHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(164, 207, 237, 0.2);
}

.fspTitle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
}

.fspHeader button {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

.fspHeader button:hover {
  color: #fff;
}

.fspGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fspItem {
  background: rgba(6, 21, 34, 0.7);
  border: 1px solid rgba(164, 207, 237, 0.15);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fspLabel {
  font-size: 0.64rem;
  color: #8daabd;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fspVal {
  color: #e2edf4;
  font-family: monospace;
  font-size: 0.76rem;
  font-weight: 500;
}

.overlayTabs {
  display: flex;
  background: rgba(4, 18, 30, 0.7);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-console);
  padding: 2px;
  gap: 2px;
  margin-top: 2px;
}

.overlayTabBtn {
  flex: 1;
  background: none;
  border: none;
  color: #8daabd;
  font-size: 0.7rem;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.overlayTabBtn:hover {
  color: #fff;
}

.overlayTabBtn.active {
  background: var(--color-control);
  color: #fff;
  font-weight: 600;
}

.overlayTabBtn .tabBadge {
  background: #0284c7;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 4px;
  min-width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fitsComparisonSection {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.fitsComparisonHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(164, 207, 237, 0.12);
  width: 100%;
  box-sizing: border-box;
}

.fitsComparisonHeading {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #e2edf4;
  letter-spacing: 0.02em;
}

.fitsComparisonHeading .ico {
  width: 13px;
  height: 13px;
  color: var(--color-blue-active);
}

.comparisonBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #0284c7;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.fitsComparisonHeaderActions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.compMiniBtn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--color-line-soft);
  border-radius: 4px;
  color: #cbd5e1;
  font-size: 0.64rem;
  font-weight: 600;
  padding: 2px 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.compMiniBtn .ico {
  width: 11px;
  height: 11px;
}

.compMiniBtn:hover {
  background: var(--color-panel-raised);
  border-color: var(--color-blue-active);
  color: #fff;
}

.compMiniBtn.highlight {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.compMiniBtn.highlight:hover {
  background: rgba(245, 158, 11, 0.3);
  border-color: #fbbf24;
  color: #fff;
}

.compMiniBtn.danger {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.1);
}

.compMiniBtn.danger:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fff;
}

.comparisonOverlayListContainer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0;
  width: 100%;
  box-sizing: border-box;
}

.comparisonLayerList {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.comparisonLayerRow {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(8, 26, 43, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  width: 100%;
  transition: all 0.15s ease;
  min-width: 0;
}

.comparisonLayerRow:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(10, 32, 54, 0.9);
}

.comparisonLayerRow.hiddenLayer {
  opacity: 0.55;
  border-style: dashed;
}

.comparisonLayerCardHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.comparisonLayerMeta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.comparisonLayerSwatch {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #000, #38bdf8, #fff);
}

.comparisonLayerSwatch[data-cmap="inferno"] {
  background: linear-gradient(135deg, #000004, #bb3754, #fcffa4);
}

.comparisonLayerSwatch[data-cmap="viridis"] {
  background: linear-gradient(135deg, #440154, #21918c, #fde725);
}

.comparisonLayerSwatch[data-cmap="plasma"] {
  background: linear-gradient(135deg, #0d0887, #cc4778, #f0f921);
}

.comparisonLayerSwatch[data-cmap="magma"] {
  background: linear-gradient(135deg, #000004, #b73779, #fcfdbf);
}

.comparisonLayerSwatch[data-cmap="turbo"] {
  background: linear-gradient(135deg, #30123b, #28bbec, #fb8022);
}

.comparisonLayerBadge {
  font-size: 0.62rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 3px;
  padding: 1px 4px;
  line-height: 1.2;
  flex-shrink: 0;
}

.comparisonLayerName {
  font-size: 0.74rem;
  font-weight: 600;
  color: #f1f5f9;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compBandChip {
  font-size: 0.6rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.compBandChip.band-d1 {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.compBandChip.band-d2 {
  background: rgba(14, 165, 233, 0.2);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

.compBandChip.band-d3 {
  background: rgba(20, 184, 166, 0.2);
  color: #14b8a6;
  border: 1px solid rgba(20, 184, 166, 0.35);
}

.compBandChip.band-d4 {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.compBandChip.band-d5 {
  background: rgba(249, 115, 22, 0.2);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.compBandChip.band-d6 {
  background: rgba(236, 72, 153, 0.2);
  color: #ec4899;
  border: 1px solid rgba(236, 72, 153, 0.35);
}

.compExpNumber {
  font-family: var(--font-mono);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 700;
}

.compObsMeta {
  font-size: 0.65rem;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.comparisonLayerLocate {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 3px;
  color: #7dd3fc;
  font-size: 0.64rem;
  font-family: var(--font-mono);
  padding: 1px 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.comparisonLayerLocate:hover {
  background: var(--color-blue-active);
  color: #fff;
  border-color: #38bdf8;
}

.comparisonLayerActions {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.comparisonLayerSolo {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid var(--color-line-soft) !important;
  border-radius: 3px !important;
  color: #94a3b8 !important;
  font-size: 0.62rem !important;
  padding: 2px 5px !important;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.comparisonLayerSolo:hover {
  color: #fff !important;
  border-color: var(--color-blue-active) !important;
}

.comparisonLayerSolo.active {
  background: var(--color-blue-active) !important;
  color: #fff !important;
  border-color: #38bdf8 !important;
}

.comparisonLayerToggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--color-line-soft);
  border-radius: 3px;
  color: #cbd5e1;
  font-size: 0.62rem;
  padding: 2px 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.comparisonLayerToggle .ico {
  width: 10px;
  height: 10px;
}

.comparisonLayerToggle:hover {
  color: #fff;
  border-color: var(--color-blue-active);
}

.comparisonLayerToggle.off {
  color: #64748b;
  opacity: 0.7;
}

.comparisonLayerRemove {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0;
  transition: all 0.15s ease;
}

.comparisonLayerRemove:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fff;
}

.comparisonLayerControls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  background: rgba(4, 15, 26, 0.55);
  padding: 4px 6px;
  border-radius: 5px;
  border: 1px solid rgba(56, 189, 248, 0.1);
}

.comparisonLayerCmap {
  flex: 1;
  min-width: 0;
  max-width: 125px;
  background: rgba(5, 20, 33, 0.95);
  border: 1px solid var(--color-line-soft);
  color: #e2edf4;
  border-radius: 3px;
  font-size: 0.68rem;
  padding: 2px 4px;
  height: 22px;
  cursor: pointer;
}

.comparisonLayerOpWrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
}

.comparisonLayerOpWrap input[type="range"] {
  width: 65px !important;
  margin: 0 !important;
  accent-color: var(--color-blue-active);
  cursor: pointer;
}

.comparisonLayerOpVal {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: #38bdf8;
  min-width: 28px;
  text-align: right;
  flex-shrink: 0;
}

.comparisonLayerSimbad {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

.layerSimbadHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.layerSimbadPill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.66rem;
  color: #bae6fd;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.layerSimbadPill:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.4);
}

.layerSimbadPill .ico {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  color: #38bdf8;
}

.layerSimbadPill strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
  color: #fff;
  font-weight: 600;
}

.layerSimbadType {
  font-size: 0.6rem;
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.2);
  border-radius: 2px;
  padding: 0 4px;
  flex-shrink: 0;
}

.layerSimbadSep {
  font-size: 0.6rem;
  color: #94a3b8;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.layerSimbadToggleBtn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--color-line-soft);
  border-radius: 3px;
  color: #94a3b8;
  font-size: 0.62rem;
  padding: 2px 5px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.layerSimbadToggleBtn:hover {
  color: #fff;
  border-color: var(--color-blue-active);
}

.layerSimbadList {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 120px;
  overflow-y: auto;
  background: rgba(3, 10, 18, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.1);
  border-radius: 4px;
  padding: 4px;
  box-sizing: border-box;
}

.layerSimbadItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 0.65rem;
  cursor: pointer;
  transition: background 0.15s ease;
  min-width: 0;
}

.layerSimbadItem:hover {
  background: rgba(14, 165, 233, 0.18);
}

.layerSimbadItemName {
  font-weight: 600;
  color: #e2edf4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layerSimbadEmptyRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 0.64rem;
  width: 100%;
  flex-wrap: wrap;
}

.layerSimbadNone {
  color: #64748b;
  font-size: 0.62rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layerSimbadNone.error {
  color: #f87171;
}

.layerSimbadActionBtn {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 3px;
  color: #38bdf8;
  font-size: 0.62rem;
  padding: 1px 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.layerSimbadActionBtn:hover {
  background: var(--color-blue-active);
  color: #fff;
  border-color: #38bdf8;
}

.layerSimbadLoading {
  font-size: 0.64rem;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
}

.layerSimbadSearchBox {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  background: rgba(3, 12, 22, 0.7);
  padding: 6px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.15);
  box-sizing: border-box;
}

.layerSimbadSearchInputWrap {
  display: flex;
  gap: 4px;
  width: 100%;
}

.layerSimbadInput {
  flex: 1;
  min-width: 0;
  background: rgba(5, 20, 33, 0.9);
  border: 1px solid var(--color-line-soft);
  color: #fff;
  padding: 3px 6px;
  font-size: 0.68rem;
  border-radius: 3px;
  outline: none;
}

.layerSimbadInput:focus {
  border-color: var(--color-blue-active);
}

.layerSimbadGoBtn {
  background: var(--color-blue-active);
  border: 1px solid #38bdf8;
  color: #fff;
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 600;
}

.addMoreRow {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 6px 0 4px;
  box-sizing: border-box;
}

.addMoreRow button {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 4px;
  border-radius: var(--radius-console);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.addMoreRow button .ico {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.addServerFitsBtn {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.addServerFitsBtn:hover {
  background: var(--color-blue-active);
  border-color: #38bdf8;
  color: #fff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.addMoreFitsBtn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--color-line-soft);
  color: #cbd5e1;
}

.addMoreFitsBtn:hover {
  background: var(--color-panel-raised);
  border-color: var(--color-blue-active);
  color: #fff;
}

.addMoreCompanionBtn {
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

.addMoreCompanionBtn:hover,
.addMoreCompanionBtn.active {
  background: rgba(168, 85, 247, 0.28);
  border-color: #c084fc;
  color: #fff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.companionBandMenu {
  background: rgba(8, 26, 43, 0.98);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 8px;
  padding: 10px;
  margin: 6px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.15s ease-out;
  box-sizing: border-box;
  width: 100%;
}

.cbmHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #c084fc;
}

.cbmCloseBtn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.cbmCloseBtn:hover {
  color: #ff6b6b;
}

.cbmGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.cbmBandBtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 8px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 5px;
  color: #f1f5f9;
  font-size: 0.68rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.cbmBandBtn strong {
  color: #e2edf4;
  font-size: 0.72rem;
}

.cbmBandBtn small {
  color: #94a3b8;
  font-size: 0.6rem;
  font-family: var(--font-mono);
}

.cbmBandBtn:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: #c084fc;
  color: #fff;
  transform: translateY(-1px);
}

.comparisonDropzone {
  background: rgba(4, 18, 30, 0.5);
  border: 1.5px dashed rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
  transition: all 0.2s ease;
  box-sizing: border-box;
  width: 100%;
}

.comparisonDropzone.dragover {
  border-color: #38bdf8;
  background: rgba(14, 165, 233, 0.15);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.comparisonDropzone.compact {
  padding: 6px 10px;
  border-width: 1px;
}

.comparisonDropzoneLabel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  width: 100%;
  user-select: none;
}

.dropzoneIconWrap {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
}

.dropzoneIconWrap .dropIcon {
  width: 20px;
  height: 20px;
}

.comparisonDropzone.compact .dropzoneIconWrap .dropIcon {
  width: 16px;
  height: 16px;
}

.dropzoneContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  width: 100%;
}

.dropzoneTitle {
  font-size: 0.74rem;
  font-weight: 700;
  color: #e2edf4;
  letter-spacing: 0.02em;
}

.dropzoneSubtitle {
  font-size: 0.65rem;
  color: #64748b;
  text-align: center;
  word-break: break-word;
}

.dropzoneActions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.dropzoneServerBtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 4px;
  color: #38bdf8;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dropzoneServerBtn:hover {
  background: var(--color-blue-active);
  border-color: #38bdf8;
  color: #fff;
}

.dropzoneServerBtn .ico {
  width: 12px;
  height: 12px;
}

.dropzoneLocalHint {
  font-size: 0.64rem;
  color: #64748b;
}

.companionQuickBar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid rgba(164, 207, 237, 0.1);
}

.companionQuickLabel {
  font-size: 0.64rem;
  color: #8daabd;
  font-weight: 600;
}

.companionChips {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}

.companionChip {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 3px;
  color: #7dd3fc;
  font-size: 0.64rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 1px 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.companionChip:hover {
  background: var(--color-blue-active);
  border-color: #38bdf8;
  color: #fff;
}

.opacityPresets {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0 8px;
}

.ovPresetBtn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--color-line-soft);
  border-radius: 4px;
  color: #cbd5e1;
  font-size: 0.66rem;
  padding: 3px 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ovPresetBtn:hover {
  background: var(--color-panel-raised);
  border-color: var(--color-blue-active);
  color: #fff;
}

.overlayLightRange {
  background: rgba(4, 18, 30, 0.6);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-console);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.overlayLightRangeHeader {
  display: flex;
  justify-content: space-between;
  font-size: 0.66rem;
  color: #8daabd;
}

#overlayColorbarCanvas {
  width: 100%;
  height: 8px;
  border-radius: 2px;
}

.overlayLightRangeValues {
  display: flex;
  justify-content: space-between;
  font-size: 0.64rem;
  font-family: monospace;
  color: #c6d8e5;
}

.overlayCoordsCard {
  background: rgba(6, 21, 34, 0.7);
  border: 1px solid rgba(164, 207, 237, 0.15);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.overlayCoordsRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
}

.coordsLabel {
  color: #8daabd;
}

.coordsVal {
  color: #e2edf4;
  font-family: var(--font-mono);
  font-weight: 500;
}

.overlayFeaturesBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  margin-top: 6px;
  padding: 5px 10px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 4px;
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.overlayFeaturesBtn:hover:not(:disabled) {
  background: var(--color-blue-active);
  color: #fff;
  border-color: #38bdf8;
}

.overlayFeaturesBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.overlayFeaturesBtn .ico {
  width: 12px;
  height: 12px;
}

.overlayFeaturesList {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 120px;
  overflow-y: auto;
  margin-top: 6px;
  padding: 4px;
  background: rgba(3, 10, 18, 0.6);
  border-radius: 4px;
}

.overlayBlinkBox {
  background: rgba(4, 18, 30, 0.6);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-console);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.overlayBlinkRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.overlayBlinkStatus {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  color: var(--color-blue-soft);
}

.blinkIndicatorDot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.blinkIndicatorDot.pulsing {
  animation: blinkPulse 0.8s infinite alternate;
}

@keyframes blinkPulse {
  0% {
    opacity: 0.3;
    transform: scale(0.85);
  }

  100% {
    opacity: 1;
    transform: scale(1.15);
    box-shadow: 0 0 10px #10b981;
  }
}

.blinkRateBtn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--color-line-soft);
  border-radius: 4px;
  color: #cbd5e1;
  font-size: 0.65rem;
  padding: 2px 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.blinkRateBtn:hover {
  border-color: var(--color-blue-active);
  color: #fff;
}

.blinkRateBtn.active {
  background: var(--color-blue-active);
  border-color: #38bdf8;
  color: #fff;
  font-weight: 600;
}

.spherexBandMatrix {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(4, 18, 30, 0.6);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-console);
  padding: 8px;
}

.spherexBandTitle {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-blue-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.spherexBandGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.spherexBandBtn {
  background: var(--color-panel);
  border: 1px solid var(--color-line-soft);
  border-radius: 4px;
  color: #c6d8e5;
  font-size: 0.65rem;
  padding: 4px 2px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}

.spherexBandBtn:hover {
  background: var(--color-panel-raised);
  border-color: var(--color-blue-active);
  color: #fff;
}

.spherexBandBtn.active {
  background: var(--color-accent);
  border-color: var(--color-blue-active);
  color: #fff;
  font-weight: 600;
}

.spherexBandBtn small {
  display: block;
  font-size: 0.58rem;
  color: #7393ac;
}

.fitsAperPhotoPanel {
  position: absolute;
  left: 14px;
  bottom: 60px;
  z-index: 28;
  width: 490px;
  max-width: calc(100% - 28px);
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(145deg, rgba(10, 32, 50, 0.98), rgba(4, 18, 30, 0.98));
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-bezel);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  padding: 12px 16px;
  box-sizing: border-box;
}

.fapHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(164, 207, 237, 0.15);
}

.fapTitle {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.fapTitle .ico {
  width: 14px;
  height: 14px;
  color: var(--color-blue-active);
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

.fapSub {
  font-size: 0.65rem;
  font-weight: 500;
  color: #8daabd;
}

#fapCloseBtn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

#fapCloseBtn:hover {
  color: #ff6b6b;
}

.fapBody {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fapControlsRow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: rgba(6, 21, 34, 0.7);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(164, 207, 237, 0.12);
}

.fapInputGroup {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: #c6d8e5;
}

.fapInputGroup input {
  width: 52px;
  background: rgba(4, 15, 26, 0.9);
  border: 1px solid var(--color-line-soft);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 4px;
  border-radius: 3px;
}

.fapCheckGroup {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: #7dd3fc;
  cursor: pointer;
}

.fapCheckGroup input {
  accent-color: var(--color-blue-active);
}

.fapCoordGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.fapCoordItem {
  background: rgba(6, 21, 34, 0.6);
  border: 1px solid rgba(164, 207, 237, 0.1);
  border-radius: 5px;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fapLbl {
  font-size: 0.58rem;
  color: #8daabd;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fapCoordItem strong {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #e2edf4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fapMetricsGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.fapMetricBox {
  background: rgba(6, 21, 34, 0.7);
  border: 1px solid rgba(164, 207, 237, 0.12);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fapMetricBox.highlight {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(14, 165, 233, 0.12);
}

.fapMetricLbl {
  font-size: 0.6rem;
  font-weight: 700;
  color: #8daabd;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fapMetricVal {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.fapMetricBox.highlight .fapMetricVal {
  color: #38bdf8;
}

.fapMetricSub {
  font-size: 0.62rem;
  color: #64748b;
  font-family: var(--font-mono);
}

.fapActionRow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.fapBtn {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 4px;
  color: #38bdf8;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fapBtn:hover {
  background: var(--color-blue-active);
  color: #fff;
  border-color: #38bdf8;
}

.fapStatusMsg {
  font-size: 0.65rem;
  color: #94a3b8;
  font-style: italic;
  margin-left: auto;
}

.serverFitsProgressOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(3, 10, 18, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.18s ease-out;
}

.nasaProgressCard {
  width: 480px;
  max-width: 94vw;
  background: #071524;
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 12px;
  padding: 22px 24px 20px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.8), 0 0 24px rgba(14, 165, 233, 0.12);
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: center;
  box-sizing: border-box;
}

.nasaMissionHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.nasaMissionBadge {
  display: inline-flex;
  align-items: center;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 999px;
  padding: 4px 12px;
}

.nasaMissionText {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #7dd3fc;
  text-transform: uppercase;
}

.nasaMissionLiveDot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.handcodedScannerReticle {
  width: 68px;
  height: 68px;
  margin: 4px auto 10px;
  position: relative;
}

.scannerSvg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.reticleRingOuter {
  fill: none;
  stroke: rgba(56, 189, 248, 0.4);
  stroke-width: 1.2;
}

.reticleRingMiddle {
  fill: none;
  stroke: rgba(56, 189, 248, 0.28);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}

.reticleRingInner {
  fill: none;
  stroke: rgba(56, 189, 248, 0.35);
  stroke-width: 1;
}

.reticleAxis {
  stroke: rgba(56, 189, 248, 0.2);
  stroke-width: 1;
  stroke-dasharray: 2 2;
}

.reticleCenterPoint {
  fill: #38bdf8;
  filter: drop-shadow(0 0 4px #38bdf8);
}

.scannerSweepSector {
  fill: rgba(56, 189, 248, 0.35);
  transform-origin: 50px 50px;
  animation: scannerSweep 2s linear infinite;
}

@keyframes scannerSweep {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.nasaTelemetryBody {
  margin-bottom: 12px;
}

.serverFitsProgressTitle {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f8fafc;
  text-transform: uppercase;
}

.nasaCoordsTelemetry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 5px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #38bdf8;
  margin: 6px auto;
  max-width: 100%;
  box-sizing: border-box;
}

.serverFitsProgressSubtitle {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.handcodedPipelineTracker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.pipelineStep {
  background: rgba(15, 30, 48, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 6px;
  padding: 6px 4px;
  text-align: center;
  transition: all 0.2s ease;
}

.pipelineStep .stepNum {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  color: #64748b;
}

.pipelineStep .stepName {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 2px;
}

.pipelineStep.active {
  background: rgba(14, 165, 233, 0.24);
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.pipelineStep.active .stepNum {
  color: #38bdf8;
}

.pipelineStep.active .stepName {
  color: #ffffff;
}

.pipelineStep.done {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.45);
}

.pipelineStep.done .stepNum,
.pipelineStep.done .stepName {
  color: #34d399;
}

.handcodedQueueWrap {
  background: rgba(6, 16, 28, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 12px;
  text-align: left;
}

.queueHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 6px;
}

.queueBadge {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.queueList {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 110px;
  overflow-y: auto;
}

.queueItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  background: rgba(15, 30, 48, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.1);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #94a3b8;
}

.queueItem.active {
  background: rgba(14, 165, 233, 0.16);
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
}

.queueItem.completed,
.queueItem.done {
  border-color: rgba(16, 185, 129, 0.35);
  color: #cbd5e1;
}

.queueBandBadge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(14, 165, 233, 0.18);
  color: #38bdf8;
  margin-right: 6px;
}

.queueFileName {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 8px;
}

.queueStatusBadge {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(100, 116, 139, 0.25);
  color: #94a3b8;
}

.queueItem.active .queueStatusBadge {
  background: #0284c7;
  color: #ffffff;
}

.queueItem.completed .queueStatusBadge,
.queueItem.done .queueStatusBadge {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.nasaProgressBarContainer {
  margin-top: 4px;
}

.serverFitsProgressBarWrap {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(30, 41, 59, 0.8);
  overflow: hidden;
}

.serverFitsProgressBar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0284c7, #38bdf8, #818cf8);
  transition: width 0.25s ease;
}

.nasaProgressStats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.62rem;
  color: #64748b;
  margin-top: 6px;
  font-family: var(--font-mono);
}

.nasaProtocolTag {
  letter-spacing: 0.08em;
  color: #475569;
}

.serverFitsBackdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 10, 18, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  animation: fadeIn 0.18s ease-out;
}

.serverFitsModal {
  width: 840px;
  max-width: 95vw;
  max-height: 86vh;
  background: linear-gradient(180deg, #07192b 0%, #04101d 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.8), 0 0 24px rgba(14, 165, 233, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #e2edf4;
  box-sizing: border-box;
}

.serverFitsHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(12, 38, 60, 0.5);
  border-bottom: 1px solid var(--color-line-soft);
}

.serverFitsHeaderLeft {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.serverFitsHeaderIcon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
}

.serverFitsHeaderIcon .ico {
  width: 18px;
  height: 18px;
}

.serverFitsTitleWrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.serverFitsTitle {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.serverFitsTitle .comparisonBadge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-family: var(--font-mono);
}

.serverFitsSubtitle {
  font-size: 0.72rem;
  color: #8daabd;
}

.serverFitsCloseBtn {
  background: transparent;
  border: none;
  color: #8daabd;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.serverFitsCloseBtn:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.2);
}

.serverFitsFilterBar {
  padding: 12px 18px;
  background: rgba(6, 20, 34, 0.6);
  border-bottom: 1px solid var(--color-line-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.serverFitsSearchWrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.serverFitsSearchIcon {
  position: absolute;
  left: 10px;
  width: 14px;
  height: 14px;
  color: #64748b;
  pointer-events: none;
}

.serverFitsSearchInput {
  width: 100%;
  padding: 7px 32px 7px 32px;
  background: rgba(10, 30, 48, 0.9);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-console);
  color: #e2edf4;
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.serverFitsSearchInput:focus {
  border-color: var(--color-blue-active);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.serverFitsSearchClear {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
}

.serverFitsMatchExposureBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-console);
  color: #7dd3fc;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.serverFitsMatchExposureBtn .ico {
  width: 13px;
  height: 13px;
}

.serverFitsMatchExposureBtn:hover {
  background: rgba(14, 165, 233, 0.22);
  border-color: #38bdf8;
  color: #fff;
}

.serverFitsMatchExposureBtn.active {
  background: var(--color-blue-active);
  border-color: #38bdf8;
  color: #fff;
}

.serverFitsBandPills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.serverFitsBandPill {
  padding: 4px 10px;
  background: rgba(12, 32, 50, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 999px;
  color: #8daabd;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.serverFitsBandPill:hover {
  color: #e2edf4;
  border-color: rgba(56, 189, 248, 0.4);
}

.serverFitsBandPill.active {
  background: rgba(14, 165, 233, 0.25);
  border-color: #38bdf8;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.serverFitsToolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  background: rgba(4, 16, 28, 0.75);
  border-bottom: 1px solid var(--color-line-soft);
  font-size: 0.75rem;
}

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

.serverFitsLinkBtn {
  background: transparent;
  border: none;
  color: var(--color-blue-soft);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 0.75rem;
}

.serverFitsLinkBtn:hover {
  text-decoration: underline;
  color: #fff;
}

.serverFitsSelectedCount {
  color: #38bdf8;
  font-weight: 600;
  font-family: var(--font-mono);
}

.serverFitsBatchAddBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid #38bdf8;
  border-radius: var(--radius-console);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.serverFitsBatchAddBtn:hover:not(:disabled) {
  background: linear-gradient(180deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.45);
}

.serverFitsBatchAddBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.serverFitsBody {
  flex: 1;
  overflow-y: auto;
  max-height: 52vh;
  padding: 8px 14px;
}

.serverFitsList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.serverFitsList li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(8, 25, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 8px;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.serverFitsList li:hover {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
}

.serverFitsList li.selected {
  background: rgba(14, 165, 233, 0.16);
  border-color: rgba(56, 189, 248, 0.5);
}

.serverFitsList input[type="checkbox"] {
  cursor: pointer;
  width: 15px;
  height: 15px;
  accent-color: var(--color-blue-active);
  flex-shrink: 0;
}

.serverFitsBandBadge {
  font-size: 0.64rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  flex-shrink: 0;
}

.serverFitsItemDetails {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.serverFitsItemTop {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.serverFitsItemExp {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #f1f5f9;
}

.serverFitsItemWavelength {
  font-size: 0.68rem;
  color: #94a3b8;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 3px;
}

.serverFitsCoordTag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: #38bdf8;
  font-family: var(--font-mono);
}

.serverFitsCoordTag .ico {
  width: 11px;
  height: 11px;
}

.serverFitsItemFilename {
  font-size: 0.66rem;
  font-family: var(--font-mono);
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.serverFitsItemAction {
  flex-shrink: 0;
}

.serverFitsSingleAddBtn {
  padding: 4px 10px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 4px;
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.serverFitsSingleAddBtn:hover {
  background: var(--color-blue-active);
  color: #fff;
  border-color: #38bdf8;
}

.serverFitsInOverlayBadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 4px;
  color: #34d399;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.fileItem:focus-visible,
.bandHeader:focus-visible,
.surveyItem:focus-visible,
.resultItem:focus-visible,
.serverFitsRow:focus-visible,
.viewToggle:focus-visible,
.workflowStep:focus-visible,
.overlayTabBtn:focus-visible,
.filterChip:focus-visible,
.cbmBandBtn:focus-visible,
.fitsHeaderHduTab:focus-visible {
  outline: 2px solid #38bdf8 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 3px rgba(3, 11, 18, 0.95), 0 0 0 5px rgba(56, 189, 248, 0.4) !important;
}

#aladin-lite-div:focus-visible,
#canvasWrap:focus-visible,
#terrainCanvas:focus-visible,
#terrainCanvas canvas:focus-visible {
  outline: 2px solid #38bdf8 !important;
  outline-offset: -3px !important;
  box-shadow: inset 0 0 0 2px rgba(56, 189, 248, 0.4) !important;
}

.fileItem:focus,
.bandHeader:focus,
.surveyItem:focus,
.resultItem:focus,
.serverFitsRow:focus {
  outline: 2px solid #38bdf8;
  outline-offset: 1px;
}

.fileDetBadge[data-band="D1"] {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.fileDetBadge[data-band="D2"] {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.4);
  color: #34d399;
}

.fileDetBadge[data-band="D3"] {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}

.fileDetBadge[data-band="D4"] {
  background: rgba(251, 146, 60, 0.15);
  border-color: rgba(251, 146, 60, 0.4);
  color: #fb923c;
}

.fileDetBadge[data-band="D5"] {
  background: rgba(192, 132, 252, 0.15);
  border-color: rgba(192, 132, 252, 0.4);
  color: #c084fc;
}

.fileDetBadge[data-band="D6"] {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.4);
  color: #f43f5e;
}

.fileSkyBtn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(16, 48, 74, 0.85);
  border: 1px solid rgba(102, 185, 239, 0.35);
  border-radius: 4px;
  color: var(--color-blue-soft);
  padding: 2px 7px;
  font-size: 0.62rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.fileSkyBtn .ico {
  width: 10px;
  height: 10px;
}

.fileSkyBtn:hover {
  background: linear-gradient(135deg, #1d5580, #2874a6);
  border-color: #66b9ef;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(102, 185, 239, 0.25);
}

.fileSkyBtn.inSky {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
}

.fileSkyBtn.inSky:hover {
  background: rgba(16, 185, 129, 0.3);
  color: #ffffff;
}

.searchMark {
  background: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  padding: 0 2px;
  border-radius: 2px;
}

.topbarSurveyWrap select {
  border: none;
  background: transparent;
  color: #e2edf4;
  font-size: 0.78rem;
  min-height: 28px;
  padding: 0 4px;
  box-shadow: none;
  cursor: pointer;
}

.overlayToggleBtn .ico {
  width: 13px;
  height: 13px;
  color: #38bdf8;
}

.topbarCmapWrap select,
#helpBtn {
  min-height: 30px;
  border: 1px solid var(--color-line-soft);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(24, 61, 87, 0.96), rgba(12, 36, 56, 0.96));
  color: #e2edf4;
  padding: 4px 9px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.topbarCmapWrap select:hover,
#helpBtn:hover {
  border-color: var(--color-blue-active);
  background: var(--color-panel-raised);
}

.statusDot.warn {
  background: #fbbf24;
  box-shadow: 0 0 9px rgba(251, 191, 36, 0.85);
}

.statusDot.error {
  background: #f43f5e;
  box-shadow: 0 0 9px rgba(244, 63, 94, 0.85);
}

.topbarSurveyWrap select,
.overlayToggleBtn,
.topbarCmapWrap select,
#surveyBrowserBtn,
#missionScienceBtn,
#resourcesBtn,
#helpBtn {
  min-height: 26px;
  height: 26px;
  font-size: 0.74rem;
  padding: 2px 7px;
}

@media (max-width: 380px) {
  #topbar {
    padding-left: 7px;
    padding-right: 7px;
  }

}

@media (prefers-reduced-motion: reduce) {

  #sidebar,
  #sidebarScrim {
    transition: none;
  }

}

#fileSearchInput:focus-visible,
#fitsHeaderSearchInput:focus-visible,
#surveySearch:focus-visible,
#searchPanel input:focus-visible,
#searchPanel select:focus-visible,
.fssNameWrap input:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 1px;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.28);
}

#surveyPanel.open {
  display: flex;
}

#overlayPanel {
  display: none;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 320px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  z-index: 10;
  background: linear-gradient(145deg, rgba(8, 29, 45, 0.98), rgba(5, 20, 33, 0.98));
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-bezel);
  box-shadow: var(--shadow-console);
  backdrop-filter: blur(16px);
  padding: 8px 10px;
  max-height: calc(100% - 32px);
  overflow-y: auto;
  overflow-x: hidden;
  flex-direction: column;
  gap: 6px;
  font-size: 0.74rem;
  animation: surveySlideIn 0.2s ease-out;
}

#ovPaneFade .overlayControl {
  margin-bottom: 4px;
}

#ovPaneFade .quickTargets {
  margin-bottom: 6px;
  gap: 4px;
}

#ovPaneFade .ovPresetBtn {
  padding: 2px 6px;
  font-size: 0.7rem;
}

#ovPaneFade .overlayGrid {
  gap: 6px;
  margin-bottom: 4px;
}

#ovPaneFade .overlayLightRange {
  margin-top: 4px !important;
  padding: 4px 6px;
}

#ovPaneFade .overlayActions {
  margin-top: 6px !important;
  gap: 6px;
}

#ovPaneFade .overlayActions button {
  padding: 3px 8px;
  font-size: 0.72rem;
}

#overlayPanelHeader,
#searchPanelHeader,
#surveyPanelHeader,
.fapHeader,
.fppHeader,
.fspHeader,
.fitsHeaderPanelHeader,
.fitsSkySearchHeader,
.serverFitsHeader,
.msmHeader {
  cursor: grab;
  user-select: none;
}

#overlayPanelHeader:active,
#searchPanelHeader:active,
#surveyPanelHeader:active,
.fapHeader:active,
.fppHeader:active,
.fspHeader:active,
.fitsHeaderPanelHeader:active,
.fitsSkySearchHeader:active,
.serverFitsHeader:active,
.msmHeader:active {
  cursor: grabbing;
}

#overlayPanel input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: rgba(164, 207, 237, 0.22);
  border-radius: 3px;
  border: 1px solid rgba(164, 207, 237, 0.15);
  transition: background 0.15s ease;
}

#overlayPanel input[type="range"]:hover::-webkit-slider-runnable-track {
  background: rgba(164, 207, 237, 0.35);
}

#overlayPanel input[type="range"]::-moz-range-track {
  width: 100%;
  height: 6px;
  background: rgba(164, 207, 237, 0.22);
  border-radius: 3px;
  border: 1px solid rgba(164, 207, 237, 0.15);
}

#overlayPanel input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-blue-active);
  border: 2px solid #ffffff;
  cursor: pointer;
  margin-top: -5px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6), 0 0 8px rgba(102, 185, 239, 0.5);
  transition: transform 0.1s ease, background 0.15s ease, box-shadow 0.15s ease;
}

#overlayPanel input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #90d5ff;
}

#overlayPanel input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-blue-active);
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6), 0 0 8px rgba(102, 185, 239, 0.5);
  transition: transform 0.1s ease, background 0.15s ease;
}

#overlayPanel input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.15);
  background: #90d5ff;
}

#terrainControls input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: rgba(164, 207, 237, 0.22);
  border-radius: 3px;
  border: 1px solid rgba(164, 207, 237, 0.15);
}

#terrainControls input[type="range"]::-moz-range-track {
  width: 100%;
  height: 6px;
  background: rgba(164, 207, 237, 0.22);
  border-radius: 3px;
  border: 1px solid rgba(164, 207, 237, 0.15);
}

#terrainControls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--color-blue-active);
  border: 2px solid #ffffff;
  cursor: pointer;
  margin-top: -4.5px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6), 0 0 8px rgba(102, 185, 239, 0.5);
  transition: transform 0.1s ease;
}

#terrainControls input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #90d5ff;
}

#terrainControls input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--color-blue-active);
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6), 0 0 8px rgba(102, 185, 239, 0.5);
}

#viewArea.splitMode {
  display: flex !important;
  flex-direction: row;
  gap: 8px;
}

#viewArea.splitMode #skyMapWrap,
#viewArea.splitMode #canvasWrap {
  position: relative !important;
  inset: 0 !important;
  flex: 1 1 50% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: flex !important;
}

#viewArea.splitMode .fitsTelemetryHud {
  top: auto;
  bottom: 56px;
  right: 14px;
  z-index: 12;
}

.flrSliderLabel input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  background: rgba(164, 207, 237, 0.22);
  border-radius: 2px;
  border: 1px solid rgba(164, 207, 237, 0.12);
}

.flrSliderLabel input[type="range"]::-moz-range-track {
  width: 100%;
  height: 4px;
  background: rgba(164, 207, 237, 0.22);
  border-radius: 2px;
  border: 1px solid rgba(164, 207, 237, 0.12);
}

.flrSliderLabel input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-blue-active);
  border: 1.5px solid #ffffff;
  cursor: pointer;
  margin-top: -4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  transition: transform 0.1s ease;
}

.flrSliderLabel input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #90d5ff;
}

.flrSliderLabel input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-blue-active);
  border: 1.5px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.flrSliderLabel input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.15);
  background: #90d5ff;
}

.tabBadge {
  font-size: 0.58rem;
  font-weight: 700;
  background: var(--color-blue-active);
  color: #061522;
  border-radius: 999px;
  padding: 0 5px;
  min-width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.spherexBandMatrix {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(4, 18, 30, 0.6);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-console);
  padding: 8px;
}

#helpModalBackdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 11, 18, 0.7);
  backdrop-filter: blur(6px);
  z-index: 39;
}

#helpModal.open~#helpModalBackdrop,
#helpModalBackdrop.open {
  display: block;
}

.quickTargets.opacityPresets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  margin: 4px 0 8px 0;
}

.quickTargets.opacityPresets .ovPresetBtn {
  padding: 4px 2px;
  font-size: 0.65rem;
  text-align: center;
  white-space: nowrap;
  border-radius: 4px;
}

.comparisonDropzone:hover {
  background: rgba(14, 44, 72, 0.75);
  border-color: var(--color-blue-active);
  box-shadow: 0 0 12px rgba(102, 185, 239, 0.22);
}

.comparisonDropzone.loading {
  pointer-events: none;
  opacity: 0.92;
}

.comparisonDropzone.loading .dropIcon {
  display: none !important;
}

.comparisonDropzone.loading .dropzoneSpinner {
  display: inline-block !important;
}

.comparisonDropzone.compact .comparisonDropzoneLabel {
  padding: 7px 10px;
  gap: 8px;
}

.comparisonDropzoneLabel:focus-visible {
  box-shadow: 0 0 0 2px var(--color-blue-active);
}

.comparisonDropzone.compact .dropzoneIconWrap {
  width: 24px;
  height: 24px;
}

.comparisonDropzone:hover .dropzoneIconWrap {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 0 10px rgba(102, 185, 239, 0.4);
  color: #fff;
}

.dropzoneIconWrap .ico {
  width: 16px;
  height: 16px;
  transition: opacity 0.15s ease;
}

.comparisonDropzone.compact .dropzoneIconWrap .ico {
  width: 13px;
  height: 13px;
}

.dropzoneSpinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(56, 189, 248, 0.2);
  border-top-color: #38bdf8;
  border-right-color: #38bdf8;
  border-radius: 50%;
  animation: compSpin 0.65s linear infinite;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
  margin: auto;
}

.comparisonDropzone.compact .dropzoneSpinner {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

.dropzoneContent {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  text-align: left;
  flex: 1;
}

.comparisonDropzone.compact .dropzoneTitle {
  font-size: 0.7rem;
}

.comparisonProgressWrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 5px;
}

.comparisonProgressBar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  border-radius: 2px;
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.companionChip .chipPlus {
  color: var(--color-blue-active);
  font-weight: 700;
}

.addServerFitsBtn .ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.addServerFitsBtn:active {
  transform: translateY(0);
}

.addServerFitsBtn.loading {
  opacity: 0.75;
  pointer-events: none;
}

.addMoreFitsBtn .ico {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.addMoreFitsBtn:active {
  transform: translateY(0);
}

.addMoreFitsBtn.loading {
  opacity: 0.75;
  pointer-events: none;
}

.addMoreCompanionBtn .ico {
  width: 13px;
  height: 13px;
  color: var(--color-blue-active);
  flex-shrink: 0;
}

.cbmBandBtn .cbmBadge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.58rem;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.cbmBandBtn .cbmBadge.available {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.cbmBandBtn .cbmBadge.added {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.cbmBandBtn .cbmBadge.current {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.cbmBandBtn:hover:not(.isCurrent):not(.isAdded) {
  background: rgba(24, 68, 106, 0.9);
  border-color: var(--color-blue-active);
  transform: translateY(-1px);
}

.cbmBandBtn.isCurrent,
.cbmBandBtn.isAdded {
  opacity: 0.75;
}

.serverFitsModal {
  background: #081a2c;
  background: linear-gradient(180deg, #0b2238 0%, #061524 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  width: 100%;
  max-width: 820px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65), 0 0 24px rgba(56, 189, 248, 0.2);
  color: #f1f5f9;
  font-family: inherit;
  overflow: hidden;
  animation: modalSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.serverFitsHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(102, 185, 239, 0.2);
  background: rgba(14, 40, 62, 0.6);
}

.serverFitsSearchClear:hover {
  color: #fff;
}

.serverFitsItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: rgba(10, 28, 46, 0.6);
  border: 1px solid rgba(102, 185, 239, 0.18);
  border-radius: 6px;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.serverFitsItem:hover {
  background: rgba(16, 44, 72, 0.75);
  border-color: rgba(56, 189, 248, 0.4);
}

.serverFitsItem.selected {
  background: rgba(2, 132, 199, 0.18);
  border-color: rgba(56, 189, 248, 0.55);
}

.serverFitsItem.alreadyAdded {
  opacity: 0.75;
  background: rgba(6, 20, 32, 0.45);
}

.serverFitsCheckbox {
  accent-color: #0284c7;
  cursor: pointer;
  width: 15px;
  height: 15px;
}

.bandBadge-D1 {
  background: #2563eb;
}

.bandBadge-D2 {
  background: #0284c7;
}

.bandBadge-D3 {
  background: #059669;
}

.bandBadge-D4 {
  background: #d97706;
}

.bandBadge-D5 {
  background: #ea580c;
}

.bandBadge-D6 {
  background: #dc2626;
}

.serverFitsItemFilename mark {
  background: rgba(56, 189, 248, 0.35);
  color: #fff;
  padding: 0 1px;
  border-radius: 2px;
}

.nasaProgressCard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(252, 61, 33, 0.8), rgba(56, 189, 248, 0.8), transparent);
}

.nasaMeatballPill {
  background: #0b3d91;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 9999px;
  box-shadow: 0 0 8px rgba(11, 61, 145, 0.6);
}

.nasaMissionChevron {
  color: #fc3d21;
  font-size: 0.7rem;
  font-weight: 800;
}

.nasaSpinnerWrap {
  padding: 6px 0;
}

.nasaGyroReticle {
  position: relative;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nasaGyroOuter {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-top-color: #0b3d91;
  border-right-color: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
  animation: gyroSpinClockwise 1.2s linear infinite;
}

.nasaGyroInner {
  position: absolute;
  inset: 8px;
  border: 2px solid transparent;
  border-bottom-color: #fc3d21;
  border-left-color: #f97316;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(252, 61, 33, 0.45);
  animation: gyroSpinCounter 0.9s linear infinite;
}

.nasaGyroCenter {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8, 0 0 20px rgba(56, 189, 248, 0.8);
  animation: gyroPulse 1.4s ease-in-out infinite;
}

@keyframes gyroSpinClockwise {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes gyroSpinCounter {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes gyroPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.35);
    opacity: 0.7;
  }
}

.nasaTelemetryBody {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.nasaCoordsTelemetry .ico {
  width: 13px;
  height: 13px;
  color: #fc3d21;
  flex-shrink: 0;
}

.nasaPercentReadout {
  font-weight: 700;
  color: #ffffff;
}

.nasaLayersReadout {
  color: #38bdf8;
  font-weight: 600;
  font-size: 0.65rem;
}

.pipelineStep.completed {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.pipelineStep.completed .stepNum {
  color: #10b981;
}

.pipelineStep.completed .stepName {
  color: #d1fae5;
}

.queueItem.pending .queueStatusBadge {
  color: #64748b;
  background: rgba(100, 116, 139, 0.15);
}

.overlayCoordsCard {
  background: rgba(11, 28, 56, 0.4);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.overlayFeaturesBtn:hover {
  background: linear-gradient(180deg, #2563eb 0%, #1e3a8a 100%);
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.detectedFeatureItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(8, 20, 42, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.68rem;
  font-family: var(--font-mono, monospace);
}

.detectedFeatureName {
  color: #f8fafc;
  font-weight: 700;
}

.detectedFeatureType {
  color: #f59e0b;
  font-size: 0.62rem;
}

.detectedFeatureSep {
  color: #38bdf8;
}

.comparisonOverlayListContainer::-webkit-scrollbar {
  width: 5px;
}

.comparisonOverlayListContainer::-webkit-scrollbar-track {
  background: rgba(3, 15, 26, 0.4);
  border-radius: 4px;
}

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

.comparisonOverlayListContainer::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.5);
}

.comparisonLayerSwatch[data-cmap="hot"] {
  background: #ff3300;
  color: #ff3300;
}

.comparisonLayerSwatch[data-cmap="cool"] {
  background: #00e5ff;
  color: #00e5ff;
}

.comparisonLayerSwatch[data-cmap="blues"] {
  background: #3b82f6;
  color: #3b82f6;
}

.comparisonLayerSwatch[data-cmap="grayscale"] {
  background: #94a3b8;
  color: #94a3b8;
}

.comparisonLayerCmapWrap {
  flex: 0 0 92px;
  min-width: 80px;
}

.comparisonLayerCmap:focus,
.comparisonLayerCmap:hover {
  border-color: var(--color-blue-active);
}

.comparisonLayerOpWrap input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 5px;
  background: rgba(164, 207, 237, 0.22);
  border-radius: 3px;
  border: 1px solid rgba(164, 207, 237, 0.15);
  transition: background 0.15s ease;
}

.comparisonLayerOpWrap input[type="range"]:hover::-webkit-slider-runnable-track {
  background: rgba(164, 207, 237, 0.35);
}

.comparisonLayerOpWrap input[type="range"]::-moz-range-track {
  width: 100%;
  height: 5px;
  background: rgba(164, 207, 237, 0.22);
  border-radius: 3px;
  border: 1px solid rgba(164, 207, 237, 0.15);
}

.comparisonLayerOpWrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-blue-active);
  border: 2px solid #ffffff;
  cursor: pointer;
  margin-top: -4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6), 0 0 6px rgba(102, 185, 239, 0.5);
  transition: transform 0.1s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.comparisonLayerOpWrap input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #90d5ff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.8), 0 0 10px rgba(102, 185, 239, 0.8);
}

.comparisonLayerOpWrap input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-blue-active);
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6), 0 0 6px rgba(102, 185, 239, 0.5);
  transition: transform 0.1s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.comparisonLayerOpWrap input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.2);
  background: #90d5ff;
}

#overlayPanelToggle,
#searchPanelToggle,
.panelToggleBtn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s;
}

#overlayPanelToggle:hover,
#searchPanelToggle:hover,
.panelToggleBtn:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

#sidebarFooter {
  padding: 10px 14px;
  background: #081c2c;
  border-top: 1px solid var(--color-line-soft);
  flex-shrink: 0;
}

.layerSimbadEmptyMsg {
  color: #64748b;
  font-size: 0.62rem;
  font-style: italic;
}

.layerSimbadGoBtn:hover {
  background: #0ea5e9;
}

.layerSimbadFlyBtn {
  background: transparent;
  border: none;
  color: #38bdf8;
  cursor: pointer;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: opacity 0.15s, transform 0.15s;
}

.layerSimbadFlyBtn:hover {
  opacity: 1;
  transform: scale(1.15);
}

.layerSimbadFlyBtn .ico {
  width: 10px;
  height: 10px;
}

.fapHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(164, 207, 237, 0.15);
  padding-bottom: 8px;
}

.fapHeader button {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.fapHeader button:hover {
  color: #fff;
}

.missionScienceModalBackdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 8, 14, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: msmFadeIn 0.2s ease-out;
}

.missionScienceModal {
  width: 820px;
  max-width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(150deg, #07192a, #030f1b);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-bezel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.msmHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(90deg, #0b2545, #081a2e);
  border-bottom: 2px solid #fc3d21;
}

.msmHeaderLeft {
  display: flex;
  align-items: center;
  gap: 12px;
}

.msmNasaBadge {
  background: #fc3d21;
  color: #fff;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.08em;
}

.msmHeaderTitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.msmHeaderSub {
  font-size: 0.72rem;
  color: #94a3b8;
}

.msmCloseBtn {
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.msmCloseBtn:hover {
  color: #fff;
}

.msmBody {
  padding: 20px;
  overflow-y: auto;
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msmSectionTitle {
  font-size: 0.88rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.msmBandsTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  background: rgba(5, 18, 30, 0.6);
  border: 1px solid rgba(164, 207, 237, 0.15);
  border-radius: 6px;
  overflow: hidden;
}

.msmBandsTable th {
  background: #0b2545;
  color: #fff;
  text-align: left;
  padding: 6px 10px;
  font-weight: 600;
}

.msmBandsTable td {
  padding: 6px 10px;
  border-top: 1px solid rgba(164, 207, 237, 0.08);
}

.msmBandsTable tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.msmPillarsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.msmPillarCard {
  background: rgba(8, 28, 46, 0.6);
  border: 1px solid rgba(164, 207, 237, 0.15);
  border-radius: 6px;
  padding: 12px;
}

.msmPillarCard h4 {
  margin: 0 0 6px 0;
  font-size: 0.82rem;
  color: #f1f5f9;
}

.msmPillarCard p {
  margin: 0;
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.45;
}

.msmFooterActions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(4, 15, 26, 0.95);
  border-top: 1px solid rgba(164, 207, 237, 0.15);
}

.msmPdfDownloadBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #1d4ed8, #1e40af);
  border: 1px solid #60a5fa;
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  transition: all 0.15s ease;
}

.msmPdfDownloadBtn:hover {
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5);
}

.surveyItem,
.serverFitsRow,
.fileItem {
  content-visibility: auto;
  contain-intrinsic-size: 0 40px;
}