/* Galactic Atlas — public geography registry */
body.atlas-page {
  --atlas-void: #07080f;
  --atlas-surface: #0a0c16;
  --atlas-panel: #0f1220;
  --atlas-raised: #131625;
  --atlas-border: #2a2a50;
  --atlas-violet: #8860d0;
  --atlas-violet-hi: #c0a0f8;
  --atlas-cyan: #4a9eca;
  --atlas-cyan-hi: #9ad4f0;
  --atlas-text: #b8cce0;
  --atlas-dim: #8aa0b8;
  color-scheme: dark;
  background: var(--atlas-void);
  color: var(--atlas-text);
}

.atlas-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.atlas-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: 26px 0 22px;
  border-bottom: 1px solid var(--atlas-border);
}

.atlas-title {
  margin: 0;
  max-width: 15ch;
  color: #d8e4f0;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2.3rem, 7vw, 5.2rem);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.atlas-intro {
  max-width: 68ch;
  margin: 15px 0 0;
  color: var(--atlas-dim);
  font-family: "Share Tech Mono", monospace;
  font-size: .86rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.atlas-coordinate {
  min-width: 190px;
  color: var(--atlas-dim);
  font: .72rem/1.7 "Share Tech Mono", monospace;
  text-align: right;
}

.atlas-coordinate strong {
  display: block;
  color: var(--atlas-cyan-hi);
  font-family: "Rajdhani", sans-serif;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.atlas-search {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(5, minmax(120px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--atlas-border);
}

.atlas-field {
  display: grid;
  gap: 6px;
}

.atlas-field label {
  color: var(--atlas-dim);
  font-family: "Rajdhani", sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.atlas-field input,
.atlas-field select {
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  border: 1px solid var(--atlas-border);
  border-radius: 4px;
  background: rgba(0, 0, 0, .28);
  color: var(--atlas-text);
  padding: 8px 10px;
  font: .82rem "Share Tech Mono", monospace;
}

.atlas-field select {
  color-scheme: dark;
}

.atlas-field select option {
  background: var(--atlas-panel);
  color: var(--atlas-text);
}

.atlas-field input::placeholder { color: var(--atlas-dim); }
.atlas-field input:focus,
.atlas-field select:focus {
  outline: 2px solid transparent;
  border-color: var(--atlas-cyan);
}

.atlas-submit,
.atlas-clear {
  min-height: 40px;
  border-radius: 4px;
  padding: 8px 16px;
  font: 700 .72rem "Rajdhani", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}

.atlas-submit {
  border: 1px solid var(--atlas-cyan);
  background: var(--atlas-cyan);
  color: #fff;
  cursor: pointer;
}

.atlas-submit:hover { background: #1a3a6a; }
.atlas-submit:focus-visible,
.atlas-clear:focus-visible,
.atlas-link:focus-visible {
  outline: 2px solid var(--atlas-cyan-hi);
  outline-offset: 3px;
}

.atlas-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--atlas-border);
  color: var(--atlas-violet-hi);
}

.atlas-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 22px 0 0;
  color: var(--atlas-dim);
  font: .74rem "Share Tech Mono", monospace;
}

.atlas-breadcrumbs a { color: var(--atlas-cyan-hi); text-decoration: none; }
.atlas-breadcrumbs a:hover { text-decoration: underline; }

.atlas-section {
  margin-top: 34px;
}

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

.atlas-section-heading h2 {
  margin: 0;
  color: #d8e4f0;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.15rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.atlas-count {
  color: var(--atlas-dim);
  font: .72rem "Share Tech Mono", monospace;
}

.atlas-index {
  border: 1px solid var(--atlas-border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--atlas-panel);
}

.atlas-index-row {
  display: grid;
  grid-template-columns: minmax(170px, .8fr) minmax(0, 2fr) auto;
  gap: 20px;
  align-items: center;
  padding: 17px 20px;
  border-bottom: 1px solid rgba(42, 42, 80, .72);
}

.atlas-index-row:last-child { border-bottom: 0; }
.atlas-index-row:hover { background: rgba(136, 96, 208, .07); }

.atlas-index-name {
  color: var(--atlas-violet-hi);
  font-family: "Rajdhani", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
}

.atlas-index-name:hover { color: #fff; }
.atlas-index-summary {
  margin: 0;
  max-width: 72ch;
  color: var(--atlas-dim);
  font: .78rem/1.55 "Share Tech Mono", monospace;
}

.atlas-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.atlas-chip {
  border: 1px solid var(--atlas-border);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--atlas-dim);
  background: var(--atlas-raised);
  font: .65rem "Share Tech Mono", monospace;
  white-space: nowrap;
}

.atlas-chip.open { border-color: rgba(61, 184, 138, .45); color: #79d9b8; }
.atlas-chip.closed { border-color: rgba(217, 64, 64, .42); color: #ef8b8b; }
.atlas-chip.slipstream { border-color: rgba(74, 158, 202, .48); color: var(--atlas-cyan-hi); }
.atlas-chip.has-color {
  border-color: color-mix(in srgb, var(--tag-color) 55%, var(--atlas-border));
  color: var(--tag-color);
  background: color-mix(in srgb, var(--tag-color) 14%, var(--atlas-raised));
}
a.atlas-tag-chip { text-decoration: none; cursor: pointer; }
a.atlas-tag-chip:hover { color: #fff; border-color: var(--atlas-cyan); }
a.atlas-tag-chip.is-active {
  border-color: var(--atlas-cyan); color: #d8e4f0; background: rgba(74,158,202,.18);
}
a.atlas-tag-chip.is-active.has-color {
  border-color: var(--tag-color); color: #0a0c16; background: var(--tag-color);
}

.atlas-tag-filters {
  margin: 0 0 8px; padding: 14px 0 18px;
  border-bottom: 1px solid var(--atlas-border);
  display: grid; gap: 12px;
}
.atlas-tag-filters-label {
  display: block; margin-bottom: 6px;
  color: var(--atlas-dim); font: 700 .68rem "Rajdhani", sans-serif;
  letter-spacing: .12em; text-transform: uppercase;
}
.atlas-tag-group-pills, .atlas-tag-active {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.atlas-tag-active { margin-bottom: 4px; }
.atlas-tag-clear { border-color: rgba(217,64,64,.45); color: #ef8b8b; text-decoration: none; }
.atlas-tag-hint {
  margin: 0; color: var(--atlas-dim);
  font: .7rem/1.5 "Share Tech Mono", monospace;
}

.atlas-wing {
  margin-top: 20px;
  border: 1px solid var(--atlas-border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--atlas-panel);
}

.atlas-wing-head {
  padding: 18px 20px;
  background: linear-gradient(90deg, rgba(136, 96, 208, .13), transparent 62%);
  border-bottom: 1px solid var(--atlas-border);
}

.atlas-wing-head h3 {
  margin: 0;
  color: var(--atlas-violet-hi);
  font: 700 1.05rem "Rajdhani", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.atlas-wing-head p {
  max-width: 75ch;
  margin: 7px 0 0;
  color: var(--atlas-dim);
  font: .78rem/1.55 "Share Tech Mono", monospace;
}

.atlas-region-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
  gap: 26px;
  margin-top: 16px;
  padding: 22px;
  border: 1px solid var(--atlas-border);
  border-radius: 6px;
  background: var(--atlas-panel);
}

.atlas-region-profile.no-image { grid-template-columns: minmax(0, 1fr); }

.atlas-region-copy h3 {
  margin: 0;
  color: #d8e4f0;
  font: 700 1rem/1.2 "Rajdhani", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.atlas-region-profile figure { margin: 0; }

.atlas-region-profile img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border: 1px solid var(--atlas-border);
  border-radius: 4px;
  background: #000;
}

.atlas-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 28px;
  margin-top: 30px;
  padding: 26px;
  border: 1px solid var(--atlas-border);
  border-radius: 6px;
  background: var(--atlas-panel);
}

.atlas-detail.no-image { grid-template-columns: minmax(0, 1fr); }
.atlas-detail h1 {
  margin: 0;
  color: #d8e4f0;
  font: 700 2.25rem/1 "Rajdhani", sans-serif;
  letter-spacing: .02em;
}

.atlas-detail-summary {
  margin: 12px 0 0;
  max-width: 72ch;
  color: var(--atlas-cyan-hi);
  font: .9rem/1.6 "Share Tech Mono", monospace;
}

.atlas-detail-body {
  margin-top: 22px;
  max-width: 75ch;
  color: var(--atlas-text);
  font: .84rem/1.75 "Share Tech Mono", monospace;
  white-space: pre-line;
}

.atlas-detail figure { margin: 0; }
.atlas-detail img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border: 1px solid var(--atlas-border);
  border-radius: 4px;
  background: #000;
}

.atlas-empty {
  padding: 42px 24px;
  border: 1px dashed var(--atlas-border);
  border-radius: 6px;
  color: var(--atlas-dim);
  text-align: center;
  font: .82rem/1.6 "Share Tech Mono", monospace;
}

.atlas-error {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(217, 64, 64, .42);
  border-radius: 4px;
  background: rgba(217, 64, 64, .08);
  color: #ef8b8b;
  font: .8rem/1.5 "Share Tech Mono", monospace;
}

/* ── Interactive galaxy map ─────────────────────────────── */
.atlas-map-root { margin: 22px 0 8px; }
.atlas-map-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  justify-content: space-between; margin-bottom: 12px;
}
.atlas-map-toggle, .atlas-map-ctrl, .atlas-map-close, .atlas-map-back-galaxy,
.atlas-map-popup-btn, .atlas-map-popup-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px;
  border: 1px solid var(--atlas-border); border-radius: 4px; padding: 7px 12px;
  background: transparent; color: var(--atlas-violet-hi); text-decoration: none; cursor: pointer;
  font: 700 .7rem "Rajdhani", sans-serif; letter-spacing: .1em; text-transform: uppercase;
}
.atlas-map-toggle { border-color: var(--atlas-cyan); background: var(--atlas-cyan); color: #fff; }
.atlas-map-toggle:hover { background: #1a3a6a; }
.atlas-map-toggle:focus-visible, .atlas-map-ctrl:focus-visible, .atlas-map-pin:focus-visible,
.atlas-map-close:focus-visible, .atlas-map-popup-btn:focus-visible, .atlas-map-popup-link:focus-visible {
  outline: 2px solid var(--atlas-cyan-hi); outline-offset: 2px;
}
.atlas-map-hint { color: var(--atlas-dim); font: .72rem/1.5 "Share Tech Mono", monospace; max-width: 52ch; }

.atlas-map-panel {
  border: 1px solid var(--atlas-border); border-radius: 6px; background: var(--atlas-panel);
  overflow: hidden;
}
.atlas-map-panel[hidden] { display: none !important; }
.atlas-map-chrome {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-bottom: 1px solid var(--atlas-border);
  background: linear-gradient(90deg, rgba(136,96,208,.12), transparent 70%);
}
.atlas-map-chrome-left, .atlas-map-chrome-right { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.atlas-map-status { color: var(--atlas-dim); font: .7rem "Share Tech Mono", monospace; }

.atlas-map-stage {
  position: relative; height: min(78vh, 820px); min-height: 360px;
  overflow: hidden; background: radial-gradient(circle at 50% 50%, #121528 0%, #07080f 68%);
  touch-action: none; cursor: grab; outline: none;
}
.atlas-map-stage.is-dragging { cursor: grabbing; }
.atlas-map-viewport { position: absolute; inset: 0; overflow: hidden; }
.atlas-map-world {
  position: absolute; left: 0; top: 0; width: 100%; height: auto; min-height: 100%;
  aspect-ratio: 1; transform-origin: 0 0; will-change: transform;
}

.atlas-map-art {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .55; pointer-events: none; border: 0;
}
.atlas-map-structure, .atlas-map-pins {
  position: absolute; inset: 0; pointer-events: none;
}
.atlas-map-pins { pointer-events: none; }
.atlas-map-pin { pointer-events: auto; }

.atlas-map-umbra {
  position: absolute; left: 50%; top: 50%; width: 12%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; z-index: 2;
  background: radial-gradient(circle, #000 0 46%, #100c18 48%, #f0a94b 50%, #8b4bc4 54%, rgba(136,96,208,.15) 58%, transparent 62%);
  box-shadow: 0 0 28px rgba(136,96,208,.42);
}
.atlas-map-umbra::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(240,169,75,.8), rgba(139,75,196,.75), rgba(136,96,208,.14),
    rgba(240,169,75,.42), rgba(139,75,196,.78), rgba(240,169,75,.8)
  );
  mask: radial-gradient(circle at center, transparent 0 47%, #000 49% 57%, transparent 60%);
  -webkit-mask: radial-gradient(circle at center, transparent 0 47%, #000 49% 57%, transparent 60%);
  filter: blur(.25px);
}
.atlas-map-umbra::after {
  content: ""; position: absolute; inset: 25%; border-radius: 50%;
  background: #000; box-shadow: inset 0 0 4px rgba(192,160,248,.12);
}
.atlas-map-ring {
  position: absolute; left: 50%; top: 50%;
  width: var(--ring-outer); height: var(--ring-outer);
  transform: translate(-50%, -50%); border-radius: 50%;
  border: 1px solid rgba(74,158,202,.22);
  box-shadow: inset 0 0 0 1px rgba(136,96,208,.05);
}
.atlas-map-ring-label {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  color: rgba(138,160,184,.75); font: 700 .58rem "Rajdhani", sans-serif;
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.atlas-map-wing-wedge {
  position: absolute; inset: 6%; border-radius: 50%;
  background: conic-gradient(from var(--wing-start),
    rgba(136,96,208,.22) 0deg,
    rgba(136,96,208,.05) var(--wing-sweep),
    transparent var(--wing-sweep));
  mask: radial-gradient(circle, transparent 9%, #000 10%);
  -webkit-mask: radial-gradient(circle, transparent 9%, #000 10%);
}
.atlas-map-wing-wedge.alt {
  background: conic-gradient(from var(--wing-start),
    rgba(74,158,202,.20) 0deg,
    rgba(74,158,202,.04) var(--wing-sweep),
    transparent var(--wing-sweep));
}
.atlas-map-spoke {
  position: absolute; left: 50%; top: 50%; width: 1px; height: 44%;
  margin-left: -.5px; transform-origin: top center;
  transform: rotate(calc(var(--spoke) - 180deg));
  background: linear-gradient(to bottom, rgba(192,160,248,.55), rgba(136,96,208,0));
}
.atlas-map-wing-label {
  position: absolute; transform: translate(-50%, -50%); z-index: 2;
  color: rgba(216,228,240,.92); font: 700 .72rem "Rajdhani", sans-serif;
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  text-shadow: 0 0 8px rgba(7,8,15,.9), 0 1px 2px #000; pointer-events: none;
}
.atlas-map-wing-regions {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none; z-index: 1;
}
.atlas-map-wing-region {
  fill: var(--wing-color, #8860d0); fill-opacity: .16;
  stroke: var(--wing-color, #8860d0); stroke-opacity: .72;
  stroke-width: .35; vector-effect: non-scaling-stroke;
  pointer-events: auto; cursor: pointer;
  transition: fill-opacity .15s ease, stroke-opacity .15s ease;
}
.atlas-map-wing-region:hover { fill-opacity: .34; stroke-opacity: 1; }
.atlas-map-wing-label.on-art {
  padding: 3px 9px; border-radius: 999px;
  background: rgba(10,12,22,.7); border: 1px solid var(--wing-color, #8860d0);
  color: #e6ecf5; backdrop-filter: blur(2px);
}
.atlas-map-star {
  position: absolute; left: 50%; top: 50%; width: 10%; height: 10%; z-index: 2;
  transform: translate(-50%, -50%); border-radius: 50%; overflow: visible;
  background: radial-gradient(circle, #fff7d6 0%, #f0c060 35%, rgba(232,160,32,.15) 70%, transparent 72%);
  box-shadow: 0 0 28px rgba(240,192,96,.55);
}
.atlas-star-type-o { background: radial-gradient(circle, #fff 0 12%, #bdeaff 28%, #338de8 55%, rgba(31,83,190,.16) 72%, transparent 74%); box-shadow: 0 0 34px rgba(70,145,255,.75); }
.atlas-star-type-b { background: radial-gradient(circle, #fff 0 15%, #d9f3ff 30%, #77bfff 56%, rgba(90,155,255,.14) 72%, transparent 74%); box-shadow: 0 0 30px rgba(115,185,255,.7); }
.atlas-star-type-a { background: radial-gradient(circle, #fff 0 18%, #eef7ff 38%, #b9d9f0 58%, rgba(190,220,245,.12) 72%, transparent 74%); box-shadow: 0 0 26px rgba(210,235,255,.65); }
.atlas-star-type-f { background: radial-gradient(circle, #fff 0 15%, #fff8cf 34%, #f1dc8d 58%, rgba(235,210,115,.13) 72%, transparent 74%); box-shadow: 0 0 28px rgba(245,222,140,.65); }
.atlas-star-type-g { background: radial-gradient(circle, #fffbe5 0 12%, #ffd86a 38%, #e99b25 58%, rgba(232,160,32,.15) 72%, transparent 74%); box-shadow: 0 0 28px rgba(240,192,96,.65); }
.atlas-star-type-k { background: radial-gradient(circle, #fff1cf 0 12%, #f4a742 38%, #c85a21 58%, rgba(210,85,25,.14) 72%, transparent 74%); box-shadow: 0 0 28px rgba(230,105,40,.62); }
.atlas-star-type-m { background: radial-gradient(circle, #ffe0d5 0 10%, #e85b42 38%, #8f1822 58%, rgba(180,30,40,.14) 72%, transparent 74%); box-shadow: 0 0 28px rgba(220,55,55,.6); }
.atlas-star-type-red-giant { width: 15%; height: 15%; background: radial-gradient(circle, #ffd7bd 0 8%, #db5134 38%, #76151d 62%, rgba(165,30,35,.13) 74%, transparent 76%); box-shadow: 0 0 42px rgba(210,55,45,.65); }
.atlas-star-type-blue-giant { width: 15%; height: 15%; background: radial-gradient(circle, #fff 0 10%, #a8ddff 34%, #326fc5 62%, rgba(50,110,200,.13) 74%, transparent 76%); box-shadow: 0 0 44px rgba(90,170,255,.72); }
.atlas-star-type-white-dwarf { width: 6%; height: 6%; background: radial-gradient(circle, #fff 0 25%, #d9edff 48%, rgba(175,215,255,.18) 70%, transparent 73%); box-shadow: 0 0 25px rgba(215,240,255,.9); }
.atlas-star-type-neutron { width: 4%; height: 4%; background: radial-gradient(circle, #fff 0 30%, #9ad4f0 52%, transparent 72%); box-shadow: 0 0 22px #9ad4f0, 0 0 45px rgba(74,158,202,.65); }
.atlas-star-type-neutron::before { content: ""; position: absolute; left: 45%; top: -150%; width: 10%; height: 400%; transform: rotate(24deg); background: linear-gradient(transparent, rgba(154,212,240,.75), transparent); }
.atlas-star-type-binary { width: 14%; height: 10%; border-radius: 0; background: radial-gradient(circle at 30% 50%, #fff 0 7%, #8fcaff 18%, transparent 34%), radial-gradient(circle at 70% 50%, #fff8d5 0 7%, #e8a020 18%, transparent 34%); box-shadow: none; }
.atlas-star-type-black-hole { width: 11%; height: 11%; background: radial-gradient(circle, #000 0 32%, #100c18 34%, #f0a94b 38%, #8b4bc4 46%, rgba(136,96,208,.15) 62%, transparent 67%); box-shadow: 0 0 28px rgba(136,96,208,.42); }
.atlas-star-type-exotic { background: radial-gradient(circle, #fff 0 8%, #d08cff 28%, #6540bc 52%, rgba(136,96,208,.14) 72%, transparent 74%); box-shadow: 0 0 34px rgba(176,90,245,.72); }
.atlas-map-star-custom { width: 16%; height: 16%; background: none; box-shadow: none; border-radius: 0; }
.atlas-map-star-custom img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 12px rgba(200,220,255,.42)); }
.atlas-map-system-name {
  position: absolute; left: 50%; top: 61%; z-index: 3;
  transform: translateX(-50%); width: min(46%, 320px); text-align: center;
  color: #d8e4f0; text-shadow: 0 2px 6px #000, 0 0 12px rgba(7,8,15,.95);
  pointer-events: none;
}
.atlas-map-system-name strong {
  display: block; font: 700 clamp(.72rem, 1.5vw, 1rem) "Rajdhani", sans-serif;
  letter-spacing: .12em; line-height: 1.15; text-transform: uppercase;
  text-wrap: balance;
}
.atlas-map-system-name span {
  display: block; margin-top: 3px; color: rgba(154,212,240,.82);
  font: .58rem "Share Tech Mono", monospace; letter-spacing: .05em;
}
.atlas-map-orbit {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border: 1px dashed rgba(74,158,202,.28); border-radius: 50%;
}

.atlas-map-pin {
  position: absolute; transform: translate(-50%, -50%);
  border: 0; background: transparent; padding: 0; cursor: pointer;
  z-index: 2;
}
.atlas-map-pin-dot {
  display: block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--atlas-cyan); box-shadow: 0 0 0 2px rgba(7,8,15,.85), 0 0 10px rgba(74,158,202,.55);
}
.atlas-map-pin-system .atlas-map-pin-dot { width: 11px; height: 11px; background: #c0a0f8; box-shadow: 0 0 0 2px rgba(7,8,15,.85), 0 0 12px rgba(136,96,208,.55); }
.atlas-map-pin-system.has-slipstream .atlas-map-pin-dot { background: var(--atlas-cyan-hi); }
.atlas-map-pin-system.travel-closed .atlas-map-pin-dot { background: #ef8b8b; }
.atlas-map-pin-world .atlas-map-pin-dot {
  width: 15px; height: 15px; overflow: hidden; background: #7a808c;
  box-shadow: 0 0 0 2px rgba(7,8,15,.82), 0 0 8px rgba(0,0,0,.5);
}
/* Built-in planet art by Physical Class. Shared by map world pins and the
   small disc shown in world popups. Dot uses overflow:hidden so banded
   giants clip to a circle. */
.atlas-map-popup-body {
  display: inline-block; vertical-align: -2px; width: 14px; height: 14px;
  margin-right: 7px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(7,8,15,.6);
}
.atlas-planet-terrestrial .atlas-map-pin-dot, .atlas-map-popup-body.atlas-planet-terrestrial {
  background: radial-gradient(circle at 35% 30%, #9fe0c0 0 18%, #3f9d78 46%, #1f5e6e 76%, #0e2733 100%);
}
.atlas-planet-superterrestrial .atlas-map-pin-dot, .atlas-map-popup-body.atlas-planet-superterrestrial {
  background: radial-gradient(circle at 35% 30%, #b8ecd2 0 16%, #48ad86 44%, #276f7e 74%, #10202b 100%);
}
.atlas-planet-superterrestrial .atlas-map-pin-dot { width: 18px; height: 18px; }
.atlas-planet-ocean .atlas-map-pin-dot, .atlas-map-popup-body.atlas-planet-ocean {
  background: radial-gradient(circle at 35% 30%, #bfeaff 0 16%, #3aa0e0 46%, #1e5aa8 76%, #0a2244 100%);
}
.atlas-planet-gas-giant .atlas-map-pin-dot, .atlas-map-popup-body.atlas-planet-gas-giant {
  background:
    radial-gradient(circle at 34% 26%, rgba(255,255,255,.5) 0 10%, transparent 12%),
    repeating-linear-gradient(6deg, #efc48a 0 2px, #d79e5c 2px 4px, #b9793e 4px 7px, #d79e5c 7px 9px);
}
.atlas-planet-gas-giant .atlas-map-pin-dot { width: 18px; height: 18px; }
.atlas-planet-ice-giant .atlas-map-pin-dot, .atlas-map-popup-body.atlas-planet-ice-giant {
  background:
    radial-gradient(circle at 34% 26%, rgba(255,255,255,.55) 0 10%, transparent 12%),
    repeating-linear-gradient(4deg, #d7f5f7 0 2px, #a6e0ea 2px 4px, #77c2da 4px 7px, #a6e0ea 7px 9px);
}
.atlas-planet-ice-giant .atlas-map-pin-dot { width: 17px; height: 17px; }
.atlas-planet-dwarf .atlas-map-pin-dot, .atlas-map-popup-body.atlas-planet-dwarf {
  background: radial-gradient(circle at 35% 30%, #c8cad0 0 20%, #7c828c 56%, #3a3d45 100%);
}
.atlas-planet-dwarf .atlas-map-pin-dot { width: 11px; height: 11px; }
.atlas-planet-moon .atlas-map-pin-dot, .atlas-map-popup-body.atlas-planet-moon {
  background: radial-gradient(circle at 35% 30%, #d7d9de 0 18%, #9a9ea8 52%, #4a4d55 100%);
}
.atlas-planet-moon .atlas-map-pin-dot { width: 11px; height: 11px; }
.atlas-planet-rogue .atlas-map-pin-dot, .atlas-map-popup-body.atlas-planet-rogue {
  background: radial-gradient(circle at 35% 30%, #4a4560 0 18%, #241f33 56%, #0a0812 100%);
}
.atlas-planet-artificial .atlas-map-pin-dot, .atlas-map-popup-body.atlas-planet-artificial {
  background: radial-gradient(circle at 35% 30%, #dff0ff 0 16%, #7fa8c8 48%, #3a5a78 100%);
}
.atlas-planet-artificial .atlas-map-pin-dot { box-shadow: 0 0 0 2px rgba(7,8,15,.82), 0 0 9px rgba(74,158,202,.55); }
.atlas-planet-habitat .atlas-map-pin-dot, .atlas-map-popup-body.atlas-planet-habitat {
  background: radial-gradient(circle at 35% 30%, #cffff0 0 16%, #4fbfa8 48%, #1f5f58 100%);
}
.atlas-planet-megastructure .atlas-map-pin-dot, .atlas-map-popup-body.atlas-planet-megastructure {
  background: radial-gradient(circle at 35% 30%, #e6d5ff 0 16%, #9a78d8 48%, #4a2f80 100%);
}
.atlas-planet-megastructure .atlas-map-pin-dot { box-shadow: 0 0 0 2px rgba(7,8,15,.82), 0 0 9px rgba(136,96,208,.55); }
.atlas-planet-unclassified .atlas-map-pin-dot, .atlas-map-popup-body.atlas-planet-unclassified {
  background: radial-gradient(circle at 35% 30%, #c2c6ce 0 18%, #7a808c 52%, #3a3e48 100%);
}
.atlas-map-pin-cluster .atlas-map-pin-dot {
  width: 28px; height: 28px; display: grid; place-items: center;
  font: 700 .65rem "Rajdhani", sans-serif; color: #fff; background: #5030a0;
  box-shadow: 0 0 0 2px rgba(7,8,15,.9), 0 0 14px rgba(136,96,208,.5);
}
.atlas-map-pin-label {
  position: absolute; left: 50%; top: 100%; white-space: nowrap;
  color: #d8e4f0; font: 700 .62rem "Rajdhani", sans-serif; letter-spacing: .06em;
  text-shadow: 0 1px 2px #000; opacity: 0; pointer-events: none; transition: opacity .15s ease-out;
}
.atlas-map-pin:hover .atlas-map-pin-label,
.atlas-map-pin:focus-visible .atlas-map-pin-label,
.atlas-map-pin-cluster .atlas-map-pin-label { opacity: 1; }
.atlas-map-open .atlas-map-pin-label { opacity: .9; }
@media (min-width: 900px) {
  .atlas-map-pin-system .atlas-map-pin-label { opacity: .85; }
}

.atlas-map-popup {
  position: absolute; z-index: 5; width: min(320px, calc(100% - 24px));
  padding: 14px 14px 12px; border: 1px solid var(--atlas-border); border-radius: 6px;
  background: rgba(15,18,32,.96); color: var(--atlas-text);
  box-shadow: 0 12px 28px rgba(0,0,0,.35); transform: translate(-50%, -100%);
}
.atlas-map-popup[hidden] { display: none !important; }
.atlas-map-popup h3 {
  margin: 0; color: #d8e4f0; font: 700 1rem "Rajdhani", sans-serif; letter-spacing: .06em;
}
.atlas-map-popup p { margin: 8px 0 0; color: var(--atlas-dim); font: .74rem/1.5 "Share Tech Mono", monospace; }
.atlas-map-popup-kicker {
  color: var(--atlas-cyan-hi); font: 700 .62rem "Rajdhani", sans-serif;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px;
}
.atlas-map-popup-meta { color: var(--atlas-violet-hi) !important; }
.atlas-map-popup-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.atlas-map-popup-flags span {
  border: 1px solid var(--atlas-border); border-radius: 999px; padding: 2px 8px;
  font: .62rem "Share Tech Mono", monospace; color: var(--atlas-dim);
}
.atlas-map-popup-flags .ok { color: #79d9b8; border-color: rgba(61,184,138,.4); }
.atlas-map-popup-flags .bad { color: #ef8b8b; border-color: rgba(217,64,64,.4); }
.atlas-map-popup-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.atlas-map-popup-link { background: var(--atlas-cyan); border-color: var(--atlas-cyan); color: #fff; }
.atlas-map-popup-x {
  position: absolute; top: 6px; right: 6px; border: 0; background: transparent;
  color: var(--atlas-dim); cursor: pointer; font-size: .85rem; line-height: 1; padding: 4px;
}

.atlas-map-system-mode .atlas-map-back-galaxy { display: inline-flex; }
.atlas-map-back-galaxy { display: none; }

.atlas-map-root.atlas-map-fs {
  position: fixed; inset: 0; z-index: 400; margin: 0; padding: 12px;
  background: rgba(7,8,15,.96); display: flex; flex-direction: column;
}
.atlas-map-root.atlas-map-fs .atlas-map-panel { flex: 1; display: flex; flex-direction: column; }
.atlas-map-root.atlas-map-fs .atlas-map-stage { flex: 1; height: auto; min-height: 0; }

@media (max-width: 700px) {
  .atlas-map-stage { height: min(70vh, 560px); }
  .atlas-map-hint { display: none; }
  .atlas-map-popup { transform: translate(-50%, 12px); }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-map-world, .atlas-map-pin-label { transition: none !important; }
}

@media (max-width: 980px) {
  .atlas-search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-field:first-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .atlas-shell { width: min(100% - 22px, 1180px); padding-top: 24px; }
  .atlas-header { grid-template-columns: 1fr; }
  .atlas-coordinate { text-align: left; }
  .atlas-search { grid-template-columns: 1fr; }
  .atlas-field:first-child { grid-column: auto; }
  .atlas-index-row { grid-template-columns: 1fr; gap: 8px; }
  .atlas-meta { justify-content: flex-start; }
  .atlas-region-profile { grid-template-columns: 1fr; padding: 18px; }
  .atlas-detail { grid-template-columns: 1fr; padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-submit, .atlas-index-row { transition: none; }
}
