: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;
}

.performance-mode .globe-stage,
.performance-mode .topbar-main,
.performance-mode .settings-panel,
.performance-mode .top-status,
.performance-mode .cookie-consent-card,
.performance-mode .hover-card,
.performance-mode .footer-nav {
  backdrop-filter: none;
}

.performance-mode .topbar-main,
.performance-mode .filter-button,
.performance-mode .settings-button,
.performance-mode .topbar-copy-button,
.performance-mode .topbar-more-button,
.performance-mode .hover-card {
  transition: none;
}

.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: 10px 18px 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,
.top-status {
  pointer-events: auto;
}

.topbar-main {
  display: grid;
  grid-template-columns: auto minmax(420px, 1fr) auto auto;
  grid-template-areas:
    "brand search actions actions"
    "summary summary summary summary";
  grid-auto-rows: minmax(0, 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);
}

.topbar-main.summary-inactive {
  grid-template-areas: "brand search actions actions";
}

.topbar-selection-summary {
  grid-area: summary;
  width: 100%;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(127, 214, 255, 0.12);
  display: grid;
  gap: 10px;
}

.topbar-selection-primary {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: 10px;
  align-items: center;
}

.topbar-location-summary-primary {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.topbar-selection-copy {
  min-width: 0;
  padding-left: 6px;
  display: grid;
  gap: 2px;
}

.topbar-selection-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  width: fit-content;
}

.topbar-selection-title {
  margin: 2px 0 1px;
  font-size: 1rem;
  line-height: 1.1;
  flex: 0 1 auto;
  overflow-wrap: anywhere;
}

.topbar-selection-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.topbar-copy-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 82px;
  padding: 7px 12px;
  border: 1px solid rgba(127, 214, 255, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(127, 214, 255, 0.03));
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.topbar-copy-button:hover {
  background: rgba(127, 214, 255, 0.1);
  color: var(--text);
  border-color: rgba(127, 214, 255, 0.28);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(4, 19, 29, 0.2);
}

.topbar-copy-button.is-copied {
  background: rgba(115, 245, 200, 0.14);
  color: #cffff0;
  border-color: rgba(115, 245, 200, 0.34);
}

.topbar-copy-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.topbar-copy-sheet {
  position: absolute;
  width: 10px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.06);
}

.topbar-copy-sheet-back {
  top: 1px;
  left: 1px;
  opacity: 0.6;
}

.topbar-copy-sheet-front {
  right: 1px;
  bottom: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.topbar-copy-text {
  display: inline-block;
  min-width: 34px;
  text-align: left;
}

.topbar-selection-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 8px;
}

.topbar-location-summary-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.topbar-location-summary-card .topbar-selection-metric-label {
  margin-bottom: 6px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

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

.topbar-selection-metric-label {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-2);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-selection-metric-value {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.topbar-more-button {
  height: 100%;
  min-height: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(127, 214, 255, 0.18);
  border-radius: 16px;
  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;
}

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

.topbar-selection-extra {
  display: grid;
  gap: 10px;
  width: 100%;
}

.topbar-selection-extra-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.topbar-selection-tags {
  margin-top: 0;
}

.brand-block {
  grid-area: brand;
  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;
  color: rgba(244, 251, 255, 0.82);
}

.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 {
  grid-area: search;
  min-width: 0;
  position: relative;
  z-index: 6;
  align-self: center;
}

.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;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

.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 {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--stroke);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(8, 37, 53, 0.94), rgba(5, 23, 35, 0.9));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

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

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

.filter-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filter-bar-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.filter-bar-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.1;
}

.filter-bar-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  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);
}

.selected-only-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  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;
}

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

.selected-only-toggle.active {
  background: rgba(115, 245, 200, 0.12);
  color: #d7fff2;
  border-color: rgba(115, 245, 200, 0.32);
}

.selected-only-toggle-label {
  white-space: nowrap;
}

.selected-only-toggle-state {
  min-width: 28px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(4, 19, 29, 0.42);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  text-align: center;
}

.filter-group {
  display: grid;
  gap: 10px;
  align-items: start;
  align-content: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(127, 214, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.filter-group-featured {
  grid-column: span 2;
  padding: 16px;
  border-color: rgba(115, 245, 200, 0.16);
  background:
    linear-gradient(180deg, rgba(115, 245, 200, 0.08), rgba(255, 255, 255, 0.04));
}

.filter-group-label {
  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);
}

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

.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;
}

.metric-card,
.metric-value,
.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;
}

.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;
  position: relative;
  width: var(--satellite-size);
  height: var(--satellite-size);
}

.satellite-icon img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 488%;
  height: 488%;
  transform: translate(-58%, -58%);
  object-fit: contain;
  filter: none;
}

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

.satellite-icon.compact img {
  width: 432%;
  height: 432%;
  transform: translate(-58%, -58%);
  filter: none;
}

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

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

@media (max-width: 1100px), (max-height: 820px) {
  .topbar-main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "search"
      "actions"
      "summary";
    gap: 12px;
  }

  .topbar-main.summary-inactive {
    grid-template-areas:
      "brand"
      "search"
      "actions";
  }

  .topbar-selection-summary {
    margin-top: 0;
    padding-top: 10px;
  }

  .topbar-selection-primary {
    grid-template-columns: 1fr;
  }

  .topbar-selection-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  }

  .topbar-location-summary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-selection-extra-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "search"
      "actions"
      "summary";
    gap: 12px;
  }

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

  .filter-button {
    width: 100%;
  }

  .icon-button,
  .settings-wrap,
  .settings-button {
    width: 56px;
    min-width: 56px;
  }

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

  .filter-group {
    padding: 14px;
  }

  .filter-group-featured {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .topbar-selection-summary {
    margin-top: 0;
    padding-top: 10px;
  }

  .topbar-selection-title-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .topbar-selection-title {
    font-size: 1rem;
  }

  .topbar-selection-subtitle {
    font-size: 0.82rem;
  }

  .topbar-selection-metrics,
  .topbar-selection-extra-grid {
    grid-template-columns: 1fr 1fr;
  }

  .topbar-location-summary-metrics {
    grid-template-columns: 1fr;
  }

  .topbar-more-button {
    grid-column: 1 / -1;
  }

  .site-footer {
    display: none;
  }

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

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

  .topbar-main {
    padding: 12px;
    border-radius: 24px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "search"
      "actions"
      "summary";
    gap: 10px;
  }

  .topbar-main.summary-inactive {
    grid-template-areas:
      "brand"
      "search"
      "actions";
  }

  .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;
  }

  .command-actions {
    grid-template-columns: minmax(0, 1fr) 52px 52px;
    align-items: center;
  }

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

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

  .command-actions {
    grid-template-columns: minmax(0, 1fr) 52px 52px;
    justify-self: stretch;
  }

  .settings-wrap {
    width: 52px;
    display: flex;
    justify-content: flex-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"
      "summary";
    padding: 10px 12px;
  }

  .topbar-main.command-collapsed.summary-inactive {
    grid-template-areas: "brand";
  }

  .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;
  }

  .filter-bar-header {
    align-items: flex-start;
  }

  .filter-bar-title {
    font-size: 0.96rem;
  }

  .top-status {
    display: none;
  }
}
