.topbar .system-map-trigger {
  display: block;
  min-width: 0;
  text-align: left;
  padding: 8px 12px;
  margin: 0;
}
.star-map-dialog {
  width: min(1180px, 96vw);
  max-width: 96vw;
  padding: 0;
  color: #d9e6ed;
  background: #07131f;
}
.star-map-dialog::backdrop {
  background: #02070dbb;
}
.star-map-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #284253;
}
.star-map-heading h2 {
  margin: 4px 0 0;
  letter-spacing: 4px;
}
.star-map-heading small,
.star-map-details small {
  color: #91b4c2;
  font-size: 10px;
  letter-spacing: 1px;
}
.map-clusters {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
}
.map-clusters button[aria-pressed='true'] {
  border-color: #9dddd2;
  color: #b8eee5;
}
.star-map-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 265px;
}
.star-map-canvas {
  position: relative;
  min-height: 420px;
  background: radial-gradient(ellipse at 25% 35%, #162b3d, #060e18 70%);
  overflow: hidden;
}
.star-map-canvas svg {
  display: block;
  width: 100%;
  height: min(60vh, 620px);
  min-height: 420px;
  touch-action: none;
  cursor: grab;
}
.map-system {
  cursor: pointer;
  outline: none;
}
.map-system text {
  fill: #b7cbd6;
  font:
    var(--map-label-size, 24px) Arial,
    sans-serif;
  paint-order: stroke;
  stroke: #07131f;
  stroke-width: 4px;
}
.map-system .selected,
.map-system:hover text,
.map-system:focus text {
  fill: #fff;
}
.map-system:focus circle {
  stroke: #fff;
}
.map-label-hover text {
  opacity: 0;
}
.map-label-hover:hover text,
.map-label-hover:focus text {
  opacity: 1;
}
.map-zoom {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 5px;
  z-index: 1;
}
.map-zoom button {
  margin: 0;
  padding: 7px 12px;
}
.star-map-details {
  padding: 20px;
  border-left: 1px solid #284253;
  max-height: min(60vh, 620px);
  overflow: auto;
}
.star-map-details h3 {
  font-size: 22px;
  margin: 10px 0;
}
.star-map-details p {
  font-size: 12px;
  line-height: 1.6;
}
.star-map-details button {
  width: 100%;
  margin: 16px 0;
}
.map-influence {
  border-top: 1px solid #284253;
  padding-top: 8px;
}
.map-influence small {
  display: block;
  margin-top: 4px;
}
.map-influence i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 7px;
}
.map-legend {
  padding: 12px 24px;
  color: #8ca7b8;
  font-size: 11px;
  border-top: 1px solid #284253;
}
@media (max-width: 750px) {
  .topbar {
    gap: 12px;
  }
  .topbar .system-map-trigger {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .topbar .connection {
    display: none;
  }
  .star-map-body {
    grid-template-columns: minmax(0, 1fr) 200px;
  }
  .star-map-details {
    padding: 12px;
  }
}
@media (max-width: 520px) {
  .topbar .brand {
    font-size: 13px;
    letter-spacing: 2px;
  }
  .topbar .system-map-trigger small {
    font-size: 8px;
  }
  .star-map-body {
    display: block;
  }
  .star-map-canvas svg {
    min-height: 280px;
    height: 35vh;
  }
  .star-map-canvas {
    min-height: 280px;
  }
  .star-map-details {
    max-height: 25vh;
  }
  .star-map-dialog {
    max-height: 95vh;
  }
}
.corruption-note {
  color: #e0709c;
  font-size: 11px;
  letter-spacing: 0.12em;
}
.corruption-badge {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-color: #c2477a;
  color: #e0709c;
  font-size: 11px;
  letter-spacing: 0.12em;
  z-index: 5;
  pointer-events: none;
}
