:root {
  --bg: #04131d;
  --bg-soft: rgba(4, 19, 29, 0.78);
  --panel: rgba(6, 28, 41, 0.72);
  --panel-strong: rgba(8, 37, 53, 0.92);
  --stroke: rgba(150, 232, 239, 0.18);
  --text: #edf8fb;
  --muted: rgba(237, 248, 251, 0.74);
  --accent: #73f5c8;
  --accent-2: #7fd6ff;
  --warning: #ffd27a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(115, 245, 200, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(127, 214, 255, 0.15), transparent 28%),
    linear-gradient(180deg, #04131d 0%, #071f2c 100%);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}

body {
  overflow: hidden;
}

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

.app-shell,
.map-stage,
#map {
  height: 100vh;
  width: 100%;
}

.app-shell {
  position: relative;
}

.map-stage {
  position: relative;
  overflow: hidden;
}

#map.map-hidden {
  visibility: hidden;
}

.globe-stage {
  position: absolute;
  inset: 0;
  z-index: 460;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(14, 68, 93, 0.18), transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(127, 214, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(2, 11, 18, 0.88), rgba(4, 19, 29, 0.98));
  backdrop-filter: blur(2px);
}

.cesium-container {
  position: absolute;
  inset: 0;
}

.cesium-container .cesium-widget,
.cesium-container canvas {
  width: 100%;
  height: 100%;
}

.cesium-viewer-bottom {
  right: 12px !important;
  left: auto !important;
  bottom: 12px !important;
  z-index: 1;
  font-size: 9px;
  opacity: 0.56;
  transform: scale(0.88);
  transform-origin: bottom right;
}

.cesium-viewer-bottom a,
.cesium-viewer-bottom span,
.cesium-viewer-bottom img {
  opacity: inherit;
}

.cesium-viewer-bottom:hover {
  opacity: 0.82;
}

.globe-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  opacity: 0;
  pointer-events: none;
}

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

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  display: grid;
  gap: 10px;
  padding: 18px;
  pointer-events: none;
}

.site-footer {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.footer-nav {
  display: inline-flex;
  gap: 16px;
  padding: 10px 14px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(7, 35, 49, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-nav a::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  margin-left: 16px;
  background: rgba(127, 214, 255, 0.18);
  vertical-align: middle;
}

.footer-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.footer-link-button:hover {
  color: var(--text);
}

.cookie-consent {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 78px;
  z-index: 1100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-consent-card {
  width: min(540px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  padding: 18px;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: rgba(8, 37, 53, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.cookie-consent-label {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookie-consent-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.cookie-consent-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.cookie-consent-actions {
  display: flex;
  margin-top: auto;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  font: inherit;
  cursor: pointer;
}

.cookie-button-secondary {
  border: 1px solid rgba(127, 214, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.cookie-button-primary {
  border: 1px solid rgba(115, 245, 200, 0.28);
  background: rgba(115, 245, 200, 0.14);
  color: #effff8;
}

.cookie-policy-link {
  color: var(--accent-2);
  text-decoration: none;
  font-size: 0.9rem;
}

.cookie-policy-link:hover {
  color: var(--text);
}

.brand-block,
.toolbar,
.topbar-main,
.filter-bar,
.settings-wrap,
.settings-panel,
.info-panel,
.top-status {
  pointer-events: auto;
}

.topbar-main {
  display: grid;
  grid-template-columns: auto minmax(420px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(150, 232, 239, 0.14);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(8, 37, 53, 0.92), rgba(5, 23, 35, 0.86));
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.brand-block {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px 0 6px;
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  align-content: center;
}

.eyebrow,
.panel-label,
.search-icon,
.metric-label,
.tag {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.brand-block h1 {
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  line-height: 1.05;
  white-space: nowrap;
}

.brand-kicker {
  color: var(--accent-2);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.command-collapse-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(127, 214, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  flex: 0 0 auto;
}

.command-collapse-icon {
  display: inline-block;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.toolbar {
  min-width: 0;
  position: relative;
  z-index: 6;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(127, 214, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.filter-button,
.settings-button {
  min-height: 56px;
  padding: 0 15px;
  border: 1px solid rgba(127, 214, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.top-status {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1000;
  width: auto;
  max-width: min(420px, calc(100vw - 40px));
  padding: 7px 12px;
  border: 1px solid var(--stroke);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  border-radius: 999px;
  background: rgba(7, 35, 49, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: auto;
  white-space: nowrap;
}

.top-status-text,
.top-status a,
.top-status .footer-link-button {
  color: var(--muted);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.top-status a {
  text-decoration: none;
}

.top-status a:hover,
.top-status .footer-link-button:hover {
  color: var(--text);
}

.top-status a::before,
.top-status .footer-link-button::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  margin-right: 12px;
  background: rgba(127, 214, 255, 0.18);
  vertical-align: middle;
}

.filter-button,
.settings-button {
  position: relative;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.filter-button:hover,
.filter-button.active,
.settings-button:hover,
.settings-button.active {
  transform: translateY(-1px);
  background: rgba(7, 35, 49, 0.82);
  border-color: rgba(127, 214, 255, 0.22);
}

.filter-button.active,
.settings-button.active {
  color: #f4fbff;
  border-color: rgba(115, 245, 200, 0.38);
  box-shadow:
    inset 0 0 0 1px rgba(115, 245, 200, 0.16),
    0 0 0 1px rgba(115, 245, 200, 0.18),
    0 0 24px rgba(115, 245, 200, 0.18),
    var(--shadow);
}

.settings-wrap {
  position: relative;
}

.command-actions {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.command-settings {
  justify-self: end;
  position: relative;
  z-index: 2;
}

.settings-button {
  width: 56px;
  min-width: 56px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-button {
  width: 56px;
  min-width: 56px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.location-symbol {
  font-size: 1.45rem;
  line-height: 1;
}

.settings-gear {
  font-size: 1.6rem;
  line-height: 1;
}

.settings-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(280px, calc(100vw - 32px));
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--stroke);
  border-radius: 22px;
  background: rgba(8, 37, 53, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

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

.settings-panel-title,
.settings-label {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-field {
  display: grid;
  gap: 8px;
}

.settings-select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(127, 214, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.settings-links {
  display: none;
  gap: 10px;
  padding-top: 2px;
}

.settings-links a,
.settings-links button {
  min-height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(127, 214, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.settings-links a:hover,
.settings-links button:hover {
  color: var(--text);
  border-color: rgba(127, 214, 255, 0.26);
  background: rgba(127, 214, 255, 0.08);
}

.color-swatch {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(4, 19, 29, 0.32);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.color-swatch:hover {
  transform: translateY(-1px);
}

.color-swatch.active {
  border-color: #f4fbff;
  box-shadow:
    0 0 0 2px rgba(127, 214, 255, 0.18),
    0 0 18px rgba(127, 214, 255, 0.18),
    inset 0 0 0 1px rgba(4, 19, 29, 0.18);
}

.color-swatch[data-color-key="cyan"] {
  background: #24d8ff;
}

.color-swatch[data-color-key="green"] {
  background: #73f5c8;
}

.color-swatch[data-color-key="yellow"] {
  background: #ffd27a;
}

.color-swatch[data-color-key="pink"] {
  background: #f79cff;
}

.color-swatch[data-color-key="darkgray"] {
  background: #5f6b76;
}

.color-swatch[data-color-key="white"] {
  background: #f4fbff;
}

.filter-count-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-2);
  color: #052031;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.top-status {
  min-width: 0;
  white-space: nowrap;
}

.search-icon {
  font-size: 0.68rem;
  color: var(--accent-2);
  white-space: nowrap;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.search-field input::placeholder {
  color: rgba(237, 248, 251, 0.45);
}

.search-results {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 20;
  width: 100%;
  max-height: 360px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--stroke);
  border-radius: 20px;
  background: var(--panel-strong);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.result-heading {
  padding: 6px 12px 10px;
  color: var(--accent-2);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-result {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.search-result:hover,
.search-result.active {
  background: rgba(115, 245, 200, 0.12);
}

.result-meta {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.result-match {
  display: block;
  margin-top: 4px;
  color: var(--accent-2);
  font-size: 0.82rem;
  line-height: 1.35;
}

.hidden {
  display: none !important;
}

.filter-bar {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: rgba(8, 37, 53, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.filter-bar-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.clear-filters-button {
  padding: 7px 12px;
  border: 1px solid rgba(127, 214, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.clear-filters-button:hover {
  transform: translateY(-1px);
  background: rgba(127, 214, 255, 0.08);
  color: var(--text);
  border-color: rgba(127, 214, 255, 0.24);
}

.filter-group {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items: start;
}

.filter-group-label {
  padding-top: 8px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tooltip-anchor,
.tooltip-host {
  position: relative;
}

.tooltip-anchor {
  width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(127, 214, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-2);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
}

.tooltip-anchor::before,
.tooltip-anchor::after,
.tooltip-host::before,
.tooltip-host::after {
  position: absolute;
  left: 50%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.tooltip-anchor::before,
.tooltip-host::before {
  content: "";
  bottom: calc(100% + 4px);
  transform: translateX(calc(-50% + var(--tooltip-shift, 0px))) translateY(4px);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: rgba(7, 35, 49, 0.96) transparent transparent;
  z-index: 29;
}

.tooltip-anchor::after,
.tooltip-host::after {
  content: attr(data-tooltip);
  bottom: calc(100% + 10px);
  transform: translateX(calc(-50% + var(--tooltip-shift, 0px))) translateY(4px);
  width: max-content;
  max-width: min(260px, calc(100vw - 36px));
  padding: 10px 12px;
  border: 1px solid rgba(127, 214, 255, 0.16);
  border-radius: 14px;
  background: rgba(7, 35, 49, 0.96);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
  white-space: normal;
  text-align: left;
  box-shadow: var(--shadow);
  z-index: 30;
}

.tooltip-anchor:hover::before,
.tooltip-anchor:hover::after,
.tooltip-anchor:focus-visible::before,
.tooltip-anchor:focus-visible::after,
.tooltip-host:hover::before,
.tooltip-host:hover::after,
.tooltip-host:focus-visible::before,
.tooltip-host:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(calc(-50% + var(--tooltip-shift, 0px))) translateY(0);
}

.filter-chip.tooltip-host:hover,
.filter-chip.tooltip-host:focus-visible {
  transform: none;
}

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(127, 214, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.filter-chip-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  line-height: 1;
}

.filter-chip-prefix:empty {
  display: none;
}

.filter-chip:hover {
  transform: translateY(-1px);
  color: var(--text);
}

.filter-chip-include {
  background: rgba(115, 245, 200, 0.12);
  border-color: rgba(115, 245, 200, 0.22);
  color: #dffff4;
}

.filter-chip-exclude {
  background: rgba(255, 102, 102, 0.14);
  border-color: rgba(255, 102, 102, 0.3);
  color: #ffd6d6;
}

.filter-chip-neutral {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(127, 214, 255, 0.16);
  color: var(--muted);
}

.info-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  width: min(360px, calc(100vw - 40px));
  max-height: min(68vh, 720px);
  padding: 15px;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(10, 40, 55, 0.88), rgba(6, 24, 36, 0.74));
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

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

.panel-header-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.panel-label {
  font-size: 0.7rem;
  color: var(--accent);
}

.panel-close-button {
  padding: 7px 12px;
  border: 1px solid rgba(127, 214, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.panel-close-button:hover {
  background: rgba(127, 214, 255, 0.1);
  color: var(--text);
  border-color: rgba(127, 214, 255, 0.26);
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(115, 245, 200, 0.8);
}

.info-title {
  margin: 0 0 6px;
  font-size: 1.28rem;
}

.info-subtitle {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.metric-card {
  padding: 10px;
  border: 1px solid rgba(127, 214, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.metric-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.65rem;
  color: var(--accent-2);
}

.metric-label-with-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.metric-label-with-tip .metric-label {
  margin-bottom: 0;
}

.metric-value {
  font-size: 1rem;
  font-weight: 700;
}

.description {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.info-loading-copy {
  color: var(--accent-2);
}

.info-content {
  display: grid;
  gap: 0;
  user-select: text;
  -webkit-user-select: text;
}

.info-panel-body {
  display: grid;
  gap: 16px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.info-section {
  padding: 14px;
  border: 1px solid rgba(127, 214, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.info-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.info-section-title {
  margin: 4px 0 0;
  font-size: 1rem;
}

.info-more-button {
  margin-top: 14px;
}

.section-note {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(127, 214, 255, 0.08);
  color: var(--accent-2);
  font-size: 0.68rem;
  white-space: nowrap;
}

.info-panel .tooltip-anchor::after,
.info-panel .tooltip-host::after {
  max-width: min(220px, calc(100vw - 48px));
}

.info-content > * {
  min-width: 0;
}

.metric-card,
.metric-value,
.info-title,
.info-subtitle,
.description,
.tag {
  overflow-wrap: anywhere;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(115, 245, 200, 0.1);
  color: var(--accent);
  font-size: 0.68rem;
}

@media (max-height: 760px) {
  .info-panel {
    max-height: min(62vh, 560px);
  }
}

.leaflet-container {
  background: #04131d;
}

.traffic-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 450;
  pointer-events: none;
}

.traffic-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
}

.hover-card {
  position: fixed;
  z-index: 1001;
  min-width: 180px;
  max-width: 260px;
  padding: 10px 12px;
  border: 1px solid rgba(127, 214, 255, 0.16);
  border-radius: 14px;
  background: rgba(7, 35, 49, 0.92);
  color: var(--text);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  pointer-events: none;
}

.hover-card-title {
  display: block;
  font-weight: 700;
}

.hover-card-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.satellite-label {
  color: #dffbff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
}

.satellite-icon {
  --satellite-size: 34px;
  --satellite-accent: #24d8ff;
  position: relative;
  width: var(--satellite-size);
  height: var(--satellite-size);
  display: grid;
  place-items: center;
}

.satellite-icon::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, color-mix(in srgb, var(--satellite-accent) 24%, rgba(4, 19, 29, 0.92)) 0%, rgba(4, 19, 29, 0.9) 62%);
  border: 2px solid color-mix(in srgb, var(--satellite-accent) 72%, white 16%);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--satellite-accent) 16%, transparent),
    0 0 22px color-mix(in srgb, var(--satellite-accent) 55%, transparent),
    0 0 42px color-mix(in srgb, var(--satellite-accent) 30%, transparent);
}

.satellite-icon img {
  position: relative;
  z-index: 1;
  width: calc(var(--satellite-size) * 0.88);
  height: calc(var(--satellite-size) * 0.88);
  object-fit: contain;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--satellite-accent) 45%, transparent));
}

.satellite-icon.compact {
  width: var(--satellite-size);
  height: var(--satellite-size);
}

.satellite-icon.compact::before {
  inset: 1px;
  border-width: 1.5px;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--satellite-accent) 18%, transparent),
    0 0 12px color-mix(in srgb, var(--satellite-accent) 36%, transparent),
    0 0 20px color-mix(in srgb, var(--satellite-accent) 18%, transparent);
}

.satellite-icon.compact img {
  width: calc(var(--satellite-size) * 0.84);
  height: calc(var(--satellite-size) * 0.84);
  filter: none;
}

.user-marker {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ffd27a;
  border: 3px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 10px rgba(255, 210, 122, 0.16);
}

.user-marker::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1.5px solid rgba(255, 210, 122, 0.55);
  border-radius: 999px;
}

@media (max-width: 980px) {
  .topbar-main {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand settings"
      "search search"
      "actions actions";
    gap: 12px;
  }

  .brand-block {
    grid-area: brand;
    padding: 4px 2px 0;
  }

  .toolbar {
    grid-area: search;
  }

  .command-actions {
    grid-area: actions;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 10px;
  }

  .command-settings {
    grid-area: settings;
    align-self: start;
  }

  .filter-button {
    width: 100%;
  }

  .filter-group {
    grid-template-columns: 1fr;
  }

  .filter-group-label {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .site-footer {
    display: none;
  }

  .topbar {
    padding: 14px;
    gap: 12px;
  }

  .brand-block,
  .search-field,
  .filter-button,
  .settings-button,
  .top-status,
  .filter-bar,
  .info-panel,
  .hover-card {
    border-radius: 20px;
  }

  .topbar-main {
    padding: 12px;
    border-radius: 24px;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand brand"
      "search search"
      "settings actions";
    gap: 10px;
  }

  .command-collapse-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .topbar-main:not(.command-collapsed) .command-collapse-icon {
    transform: rotate(180deg);
  }

  .brand-block h1 {
    font-size: 1.1rem;
  }

  .brand-kicker {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }

  .search-field,
  .filter-button,
  .settings-button,
  .top-status {
    min-height: 52px;
  }

  .search-field {
    padding: 0 15px;
  }

  .command-actions {
    grid-template-columns: 1fr;
    justify-self: stretch;
  }

  .settings-wrap {
    grid-area: settings;
    width: auto;
    display: flex;
    justify-content: flex-start;
  }

  .command-settings {
    align-self: stretch;
    justify-self: start;
  }

  .settings-button {
    width: 52px;
    min-width: 52px;
  }

  .filter-button {
    min-width: 0;
  }

  .topbar-main.command-collapsed {
    grid-template-columns: 1fr;
    grid-template-areas: "brand";
    padding: 10px 12px;
  }

  .topbar-main.command-collapsed .brand-block {
    padding: 0;
  }

  .topbar-main.command-collapsed .toolbar,
  .topbar-main.command-collapsed .command-actions,
  .topbar-main.command-collapsed .command-settings {
    display: none;
  }

  .settings-panel {
    top: calc(100% + 10px);
    left: 0;
    right: auto;
    width: min(320px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
  }

  .settings-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .filter-bar {
    padding: 14px;
    max-height: calc(100vh - 170px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

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

  .info-panel {
    right: 14px;
    bottom: 14px;
    width: min(420px, calc(100vw - 28px));
    padding: 14px;
    max-height: min(52vh, 420px);
    overflow: hidden;
  }

  .panel-header {
    position: sticky;
    top: 0;
    z-index: 1;
    margin: -2px -2px 12px;
    padding: 2px 2px 6px;
    background: linear-gradient(180deg, rgba(7, 31, 45, 0.98), rgba(7, 31, 45, 0.82) 75%, transparent);
  }

  .panel-close-button {
    padding: 6px 10px;
    font-size: 0.86rem;
  }

  .info-title {
    font-size: 1.2rem;
  }

  .info-subtitle,
  .description,
  .result-meta,
  .result-match {
    font-size: 0.88rem;
  }

  .top-status {
    left: 14px;
    bottom: 14px;
    min-width: 0;
    max-width: calc(100vw - 28px);
    padding: 9px 12px;
  }
}
