/* 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: 28px 0 72px;
}

.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 14px; padding: 18px 0 20px;
  border-bottom: 1px solid var(--atlas-border);
  scroll-margin-top: 88px;
}
html.atlas-hold-scroll,
html.atlas-hold-scroll body {
  scroll-behavior: auto !important;
}
html.atlas-hold-scroll body {
  opacity: 0;
}
.atlas-tag-panel {
  border: 1px solid var(--atlas-border);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(19,22,37,.96), rgba(10,12,22,.98));
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.atlas-tag-panel::before {
  content: '';
  display: block; height: 2px;
  background: linear-gradient(90deg, rgba(136,96,208,.65), rgba(74,158,202,.25), transparent 70%);
}
.atlas-tag-toolbar {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 16px 18px 14px;
}
.atlas-tag-toolbar-copy { display: grid; gap: 5px; min-width: min(100%, 420px); }
.atlas-tag-filters-label {
  display: block;
  color: var(--atlas-violet-hi); font: 700 .78rem "Rajdhani", sans-serif;
  letter-spacing: .14em; text-transform: uppercase;
}
.atlas-tag-hint {
  margin: 0; color: var(--atlas-dim);
  font: .72rem/1.45 "Share Tech Mono", monospace;
  max-width: 58ch;
}
.atlas-tag-group-pills, .atlas-tag-active {
  display: flex; flex-wrap: wrap; gap: 7px; align-items: center;
}
.atlas-tag-active {
  margin: 0 18px 14px;
  padding: 10px 12px;
  border: 1px solid rgba(74,158,202,.3);
  border-radius: 4px;
  background: rgba(74,158,202,.08);
}
.atlas-tag-clear {
  border-color: rgba(217,64,64,.45); color: #ef8b8b; text-decoration: none;
  align-self: center;
}
.atlas-tag-clear:hover { color: #ffb0b0; border-color: rgba(217,64,64,.7); }
a.atlas-tag-remove span[aria-hidden] {
  margin-left: 4px; opacity: .75; font-weight: 700;
}
.atlas-tag-accordions {
  display: grid; gap: 0;
  border-top: 1px solid var(--atlas-border);
}
.atlas-tag-acc {
  border-bottom: 1px solid rgba(42,42,80,.85);
}
.atlas-tag-acc:last-child { border-bottom: 0; }
.atlas-tag-acc > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center; gap: 12px;
  padding: 13px 18px;
  color: var(--atlas-text);
  font: 700 .8rem "Rajdhani", sans-serif;
  letter-spacing: .12em; text-transform: uppercase;
  transition: background .16s ease, color .16s ease;
}
.atlas-tag-acc > summary::-webkit-details-marker { display: none; }
.atlas-tag-acc > summary::after {
  content: '';
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--atlas-violet-hi);
  border-bottom: 1.5px solid var(--atlas-violet-hi);
  transform: rotate(45deg);
  transition: transform .18s ease, border-color .18s ease;
  justify-self: end;
}
.atlas-tag-acc[open] > summary {
  background: rgba(136,96,208,.1);
  color: var(--atlas-violet-hi);
  border-bottom: 1px solid rgba(136,96,208,.18);
}
.atlas-tag-acc[open] > summary::after {
  transform: rotate(225deg);
  border-color: var(--atlas-cyan-hi);
}
.atlas-tag-acc > summary:hover { background: rgba(136,96,208,.08); }
.atlas-tag-acc > summary:focus-visible {
  outline: 2px solid var(--atlas-cyan-hi);
  outline-offset: -2px;
}
.atlas-tag-acc-name { min-width: 0; }
.atlas-tag-acc-meta {
  justify-self: end;
  min-width: 2.4em; text-align: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(42,42,80,.95);
  background: rgba(0,0,0,.28);
  color: var(--atlas-dim);
  font: .68rem "Share Tech Mono", monospace;
  letter-spacing: .03em; text-transform: none; font-weight: 400;
  white-space: nowrap;
}
.atlas-tag-acc-meta.is-hot,
.atlas-tag-acc[open] .atlas-tag-acc-meta.is-hot {
  border-color: rgba(74,158,202,.45);
  color: var(--atlas-cyan-hi);
  background: rgba(74,158,202,.12);
}
.atlas-tag-acc .atlas-tag-group-pills {
  padding: 12px 18px 16px;
  background: rgba(0,0,0,.18);
  animation: atlasTagReveal .18s ease;
}
@keyframes atlasTagReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-tag-acc > summary,
  .atlas-tag-acc > summary::after { transition: none; }
  .atlas-tag-acc .atlas-tag-group-pills { animation: none; }
}

.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 figure > 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-focus {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--atlas-border);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(19,22,37,.92), rgba(10,12,22,.96));
  scroll-margin-top: 88px;
}
.atlas-focus-idle,
.atlas-focus-active {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.atlas-focus-idle { display: grid; gap: 4px; }
.atlas-focus-kicker {
  display: block;
  color: var(--atlas-violet-hi);
  font: 700 .72rem "Rajdhani", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.atlas-focus-idle p,
.atlas-focus-meta {
  margin: 0;
  color: var(--atlas-muted, #9aa3bd);
  font-size: .92rem;
  line-height: 1.45;
  max-width: 62ch;
}
.atlas-focus-copy { flex: 1 1 220px; min-width: 0; display: grid; gap: 2px; }
.atlas-focus-title {
  font: 700 1.15rem "Rajdhani", sans-serif;
  letter-spacing: .03em;
  color: var(--atlas-text, #e8ecf7);
}
.atlas-focus-seal {
  width: 48px; height: 48px; flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
}
.atlas-focus-seal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atlas-focus-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-left: auto;
}
.atlas-focus-link {
  display: inline-flex; align-items: center;
  padding: .45rem .75rem;
  border: 1px solid rgba(136,96,208,.45);
  border-radius: 4px;
  color: #d9ccff;
  text-decoration: none;
  font: 700 .78rem "Rajdhani", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(136,96,208,.12);
}
.atlas-focus-link:hover {
  border-color: rgba(200,176,255,.7);
  color: #fff;
  background: rgba(136,96,208,.22);
}

.atlas-registry { scroll-margin-top: 88px; }

.atlas-governed {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}
.atlas-governed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--atlas-border);
  border-radius: 6px;
  background: rgba(12, 15, 28, .55);
}
.atlas-governed-seal {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  display: block;
}
.atlas-governed-copy { display: grid; gap: 2px; min-width: 0; }
.atlas-governed-label {
  color: var(--atlas-violet-hi);
  font: 700 .68rem "Rajdhani", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.atlas-governed-name {
  font: 700 1.05rem "Rajdhani", sans-serif;
  letter-spacing: .02em;
}
.atlas-governed-actions { margin-top: 4px; }
.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,
.atlas-map-popup-x: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-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 27%);
  height: min(78vh, 820px);
  min-height: 420px;
}
.atlas-map-stage {
  position: relative; height: 100%; min-height: 0;
  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;
  z-index: 0;
}
/* Void Waste: uploaded art is a white silhouette / texture mask.
   CSS supplies void tint and a stationary glow shimmer — no spatial bounce. */
.atlas-map-void-waste-layer {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.atlas-map-void-waste-hidden .atlas-map-void-waste-layer { display: none; }
.atlas-map-void-waste {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  pointer-events: none; border: 0; opacity: 0;
}
.atlas-map-void-waste-layer::before,
.atlas-map-void-waste-layer::after {
  content: "";
  position: absolute; inset: 0;
  -webkit-mask-image: var(--atlas-void-waste-mask);
  mask-image: var(--atlas-void-waste-mask);
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mask-mode: alpha;
}
/* Near-black void — eats starfield under the mask. */
.atlas-map-void-waste-layer::before {
  background:
    radial-gradient(ellipse 58% 48% at 48% 46%, rgba(28, 10, 48, .98), rgba(4, 2, 10, .99) 55%, #000 100%),
    linear-gradient(160deg, #140820 0%, #050308 55%, #000 100%);
  mix-blend-mode: multiply;
  opacity: .96;
  animation: atlas-void-waste-breath 9s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
/* Stationary glow — full-mask wash, not a center-only hotspot. */
.atlas-map-void-waste-layer::after {
  background:
    radial-gradient(ellipse 85% 75% at 38% 36%, rgba(200, 160, 255, .4), transparent 78%),
    radial-gradient(ellipse 80% 70% at 72% 64%, rgba(100, 170, 220, .28), transparent 75%),
    rgba(118, 78, 188, .52);
  mix-blend-mode: screen;
  opacity: .55;
  animation: atlas-void-waste-shimmer 5.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes atlas-void-waste-breath {
  0%, 100% { opacity: .92; filter: brightness(.94); }
  50% { opacity: .98; filter: brightness(1.04); }
}
@keyframes atlas-void-waste-shimmer {
  0%, 100% { opacity: .32; filter: brightness(.85) saturate(1.05); }
  50% { opacity: .68; filter: brightness(1.25) saturate(1.35); }
}
.atlas-map-structure, .atlas-map-pins {
  position: absolute; inset: 0; pointer-events: none;
  z-index: 2;
}
.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-umbra-custom {
  background: none; box-shadow: none; border-radius: 0;
}
.atlas-map-umbra-custom::before,
.atlas-map-umbra-custom::after { display: none; }
.atlas-map-umbra-custom img {
  display: block; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(136,96,208,.38));
}
.atlas-map-umbra.is-rotating-clockwise:not(.atlas-map-umbra-custom)::before {
  animation: atlas-umbra-clockwise 90s linear infinite;
}
.atlas-map-umbra.is-rotating-counterclockwise:not(.atlas-map-umbra-custom)::before {
  animation: atlas-umbra-counterclockwise 90s linear infinite;
}
.atlas-map-umbra-custom.is-rotating-clockwise img {
  animation: atlas-umbra-clockwise 90s linear infinite;
}
.atlas-map-umbra-custom.is-rotating-counterclockwise img {
  animation: atlas-umbra-counterclockwise 90s linear infinite;
}
@keyframes atlas-umbra-clockwise { to { transform: rotate(360deg); } }
@keyframes atlas-umbra-counterclockwise { to { transform: rotate(-360deg); } }
.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 var(--ring-color, #4a9eca);
  box-shadow: inset 0 0 0 1px rgba(136,96,208,.05);
  pointer-events: none;
}
.atlas-map-sector-hits {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none; z-index: 2;
}
.atlas-map-sector-ring {
  fill: none;
  stroke: transparent;
  stroke-width: 2.8;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  pointer-events: stroke;
  outline: none;
  transition: stroke .15s ease-out, stroke-opacity .15s ease-out;
}
.atlas-map-sector-ring:hover,
.atlas-map-sector-ring:focus {
  stroke: var(--ring-color, #4a9eca);
  stroke-opacity: .7;
}
.atlas-map-umbral-ring-layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none; z-index: 2;
}
.atlas-map-umbral-ring {
  fill: none;
  stroke-width: 1.15;
  stroke-dasharray: 1.1 1.7 0.35 1.7;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  pointer-events: stroke;
  outline: none;
  filter: drop-shadow(0 0 1.5px rgba(240,169,75,.55));
  transition: stroke-opacity .15s ease-out, stroke-width .15s ease-out;
}
.atlas-map-umbral-ring-glow {
  fill: none;
  stroke-width: 2.4;
  stroke-opacity: .22;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  filter: drop-shadow(0 0 2px rgba(240,169,75,.45));
}
.atlas-map-umbral-ring:hover,
.atlas-map-umbral-ring:focus {
  stroke-opacity: 1;
  stroke-width: 1.45;
}
.atlas-map-wing-gate {
  position: absolute;
  /* left/top are set inline (percent of the stage) to sit on the ring. */
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}
.atlas-map-wing-gate-feeder {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 14px;
  /* Pixel-only translate keeps the radial trace pointing outward from Umbra. */
  transform: translate(-50%, -50%) rotate(var(--gate-angle, 0deg)) translateY(-11px);
  background: linear-gradient(to top, color-mix(in srgb, var(--ring-color, #f0a94b) 75%, transparent), transparent);
  pointer-events: none;
  opacity: .7;
}
.atlas-map-wing-gate-node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border: 1px solid color-mix(in srgb, var(--ring-color, #f0a94b) 85%, #fff);
  border-radius: 50%;
  background: radial-gradient(circle, #fff2c8 0 16%, var(--ring-color, #f0a94b) 22% 48%, #4f290c 55% 100%);
  box-shadow: 0 0 8px color-mix(in srgb, var(--ring-color, #f0a94b) 52%, transparent);
}
.atlas-map-wing-gate:hover .atlas-map-wing-gate-node,
.atlas-map-wing-gate:focus-visible .atlas-map-wing-gate-node {
  filter: brightness(1.18);
  box-shadow: 0 0 11px color-mix(in srgb, var(--ring-color, #f0a94b) 65%, transparent);
}
.atlas-map-wing-gate:focus-visible {
  outline: none;
}
.atlas-map-wing-gate.is-broken .atlas-map-wing-gate-node {
  background: radial-gradient(circle, #f2d0c0 0 14%, var(--ring-color, #c45c3a) 20% 48%, #2a120c 55% 100%);
  box-shadow: 0 0 7px color-mix(in srgb, var(--ring-color, #c45c3a) 45%, transparent);
}
.atlas-map-wing-gate-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background:
    linear-gradient(45deg, transparent 42%, var(--ring-color, #c45c3a) 42% 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, color-mix(in srgb, var(--ring-color, #c45c3a) 88%, #fff) 42% 58%, transparent 58%);
  opacity: .95;
}
.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;
  pointer-events: auto; cursor: pointer;
  outline: none;
}
.atlas-map-ring-label:hover,
.atlas-map-ring-label:focus {
  color: rgba(216,228,240,.95);
}
.atlas-map-deep-space-label {
  position: absolute; left: 50%; top: 3%; z-index: 2;
  transform: translateX(-50%);
  color: rgba(138,160,184,.82); font: 700 .58rem "Rajdhani", sans-serif;
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  text-shadow: 0 1px 4px #07080f;
  pointer-events: auto; cursor: pointer;
  outline: none;
}
.atlas-map-deep-space-label:hover,
.atlas-map-deep-space-label:focus {
  color: rgba(216,228,240,.95);
}
.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,.82); border: 1px solid var(--wing-color, #8860d0);
  color: #e6ecf5;
}
.atlas-map-territory-regions {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none; z-index: 2;
}
.atlas-map-territory-region {
  fill: var(--territory-color, #4aa3c7); fill-opacity: .18;
  stroke: var(--territory-color, #4aa3c7); stroke-opacity: .8;
  stroke-width: .4; vector-effect: non-scaling-stroke;
  pointer-events: auto; cursor: pointer;
  transition: fill-opacity .15s ease, stroke-opacity .15s ease;
}
.atlas-map-territory-region:hover { fill-opacity: .36; stroke-opacity: 1; }
.atlas-map-territory-watermark {
  pointer-events: none;
}
.atlas-map-territory-watermark image {
  opacity: .45;
}
.atlas-map-territory-label {
  position: absolute; transform: translate(-50%, calc(-50% + 1.1em)); z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  color: #d8e4f0; font: 700 .68rem "Rajdhani", sans-serif;
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  text-shadow: 0 0 8px rgba(7,8,15,.95), 0 1px 2px #000; pointer-events: none;
}
.atlas-map-territory-label.on-art {
  padding: 3px 9px 3px 5px; border-radius: 999px;
  background: rgba(10,12,22,.72); border: 1px solid var(--territory-color, #4aa3c7);
}
.atlas-map-territory-label.on-art:not(.has-seal) { padding: 2px 8px; }
.atlas-map-territory-seal {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%;
  object-fit: contain; background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 0 8px rgba(7,8,15,.7);
}
.atlas-map-territory-name { line-height: 1.1; }
.atlas-map-territories-hidden .atlas-map-territory-regions,
.atlas-map-territories-hidden .atlas-map-territory-label { display: none; }
.atlas-map-slipstream-routes {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none; z-index: 3;
}
.atlas-map-slipstream-route {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: stroke;
  cursor: pointer;
  transition: stroke-opacity .15s ease, stroke-width .15s ease, filter .15s ease;
}
.atlas-map-slipstream-route.is-major {
  stroke: #9ad4f0;
  stroke-width: 2;
  stroke-opacity: .92;
  filter: drop-shadow(0 0 2.4px rgba(154,212,240,.66));
}
.atlas-map-slipstream-pulse {
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 2.4 16;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(154,212,240,1));
}
.atlas-map-slipstream-pulse.is-forward {
  animation: atlas-slipstream-forward 2.6s linear infinite;
}
.atlas-map-slipstream-pulse.is-reverse {
  stroke: #9ad4f0;
  stroke-opacity: .85;
  animation: atlas-slipstream-reverse 2.6s linear infinite;
}
@keyframes atlas-slipstream-forward {
  to { stroke-dashoffset: -18.4; }
}
@keyframes atlas-slipstream-reverse {
  to { stroke-dashoffset: 18.4; }
}
.atlas-map-slipstream-route.is-sub {
  stroke: #4a9eca;
  stroke-width: 2;
  stroke-opacity: .5;
  stroke-dasharray: 1.6 1.05;
  filter: none;
}
.atlas-map-slipstream-route.is-major:hover,
.atlas-map-slipstream-route.is-major:focus {
  stroke-opacity: 1;
  stroke-width: 2.4;
  filter: drop-shadow(0 0 3px rgba(154,212,240,.85));
  outline: none;
}
.atlas-map-slipstream-route.is-sub:hover,
.atlas-map-slipstream-route.is-sub:focus {
  stroke-opacity: .72;
  stroke-width: 2.4;
  outline: none;
}
.atlas-map-slipstreams-hidden .atlas-map-slipstream-routes { display: none; }
.atlas-map-sub-slipstreams-hidden .atlas-map-slipstream-route.is-sub { display: none; }
@media (prefers-reduced-motion: reduce) {
  .atlas-map-slipstream-route { transition: none; }
  .atlas-map-slipstream-pulse { display: none; animation: none; }
}
.atlas-map-wings-hidden .atlas-map-wing-regions,
.atlas-map-wings-hidden .atlas-map-wing-label,
.atlas-map-wings-hidden .atlas-map-wing-wedge,
.atlas-map-wings-hidden .atlas-map-spoke { display: none; }
.atlas-map-systems-hidden .atlas-map-pin-system,
.atlas-map-systems-hidden .atlas-map-pin-cluster { display: none; }
.atlas-map-ctrl.atlas-map-wings-toggle.is-active,
.atlas-map-ctrl.atlas-map-wings-toggle[aria-pressed="true"],
.atlas-map-ctrl.atlas-map-territories-toggle.is-active,
.atlas-map-ctrl.atlas-map-territories-toggle[aria-pressed="true"],
.atlas-map-ctrl.atlas-map-void-waste-toggle.is-active,
.atlas-map-ctrl.atlas-map-void-waste-toggle[aria-pressed="true"],
.atlas-map-ctrl.atlas-map-slipstreams-toggle.is-active,
.atlas-map-ctrl.atlas-map-slipstreams-toggle[aria-pressed="true"],
.atlas-map-ctrl.atlas-map-sub-slipstreams-toggle.is-active,
.atlas-map-ctrl.atlas-map-sub-slipstreams-toggle[aria-pressed="true"],
.atlas-map-ctrl.atlas-map-systems-toggle.is-active,
.atlas-map-ctrl.atlas-map-systems-toggle[aria-pressed="true"] {
  border-color: rgba(74,158,202,.75); color: #9ad4f0;
  background: rgba(74,158,202,.16);
}
.atlas-map-ctrl.atlas-map-sub-slipstreams-toggle:disabled {
  opacity: .38;
  cursor: not-allowed;
  border-color: rgba(90,104,128,.35);
  color: #8aa0b8;
  background: transparent;
}
.atlas-map-slipstreams-hidden .atlas-map-sub-slipstreams-toggle { display: none; }
.atlas-map-popup-sigil {
  width: 42px; height: 42px; margin: 0 0 8px; border-radius: 4px;
  overflow: hidden; border: 1px solid rgba(74,158,202,.45);
  background: rgba(0,0,0,.35);
}
.atlas-map-popup-sigil img {
  display: block; width: 100%; height: 100%; object-fit: contain;
}
.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: max-content;
  max-width: min(46%, 320px);
  padding: 5px 10px 6px;
  border: 1px solid rgba(74,158,202,.4);
  border-radius: 3px;
  background: rgba(7,8,15,.92);
  box-shadow: 0 3px 10px rgba(0,0,0,.38);
  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-orbit-asteroid-belt {
  border: 0;
  opacity: .9;
}
.atlas-map-asteroid {
  position: absolute;
  display: block;
  transform: translate(-50%, -50%) rotate(var(--rock-rotation, 0deg));
  clip-path: polygon(18% 3%, 72% 0, 100% 35%, 85% 88%, 42% 100%, 3% 70%, 0 28%);
  background: linear-gradient(145deg, #d0cbc1 0 18%, #918c83 42%, #565759 72%, #30343a 100%);
}
.atlas-map-asteroid:nth-child(3n) {
  clip-path: polygon(30% 0, 82% 8%, 100% 52%, 68% 100%, 14% 84%, 0 38%);
  background: linear-gradient(155deg, #aaa69e 0 20%, #706e6a 48%, #3c4046 100%);
}
.atlas-map-asteroid:nth-child(4n) {
  clip-path: polygon(12% 16%, 58% 0, 94% 22%, 100% 72%, 55% 100%, 5% 78%, 0 40%);
  background: linear-gradient(135deg, #bdb5a9 0 16%, #7c766f 44%, #46484c 100%);
}
.atlas-map-asteroid:nth-child(7n) {
  background: linear-gradient(145deg, #8d9093 0 22%, #5e6267 50%, #2d3137 100%);
}

.atlas-map-pin {
  position: absolute; transform: translate(-50%, -50%);
  border: 0; background: transparent; padding: 0; cursor: pointer;
  z-index: 4;
}
.atlas-map-pin.is-focused { z-index: 5; }
.atlas-map-pin.is-focused .atlas-map-pin-dot {
  filter: brightness(1.28);
}
.atlas-map-pin.is-focused .atlas-map-pin-label { opacity: 1; }
.atlas-map-focus-bracket {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%) scale(calc(1 / var(--atlas-scale, 1)));
  border: 1px solid rgba(154, 212, 240, 0.72);
  pointer-events: none;
  z-index: 6;
  clip-path: polygon(
    0 0,
    28% 0,
    28% 4px,
    4px 4px,
    4px 28%,
    0 28%,
    0 0,
    72% 0,
    100% 0,
    100% 28%,
    calc(100% - 4px) 28%,
    calc(100% - 4px) 4px,
    72% 4px,
    72% 0,
    100% 72%,
    100% 100%,
    72% 100%,
    72% calc(100% - 4px),
    calc(100% - 4px) calc(100% - 4px),
    calc(100% - 4px) 72%,
    100% 72%,
    28% 100%,
    0 100%,
    0 72%,
    4px 72%,
    4px calc(100% - 4px),
    28% calc(100% - 4px),
    28% 100%
  );
  box-shadow: 0 0 16px rgba(154, 212, 240, 0.28);
}
@media (prefers-reduced-motion: reduce) {
  .atlas-map-focus-bracket {
    box-shadow: none;
  }
}
.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);
}
.atlas-map-pin-world.has-custom-icon .atlas-map-pin-dot-custom {
  width: 22px;
  height: 22px;
  overflow: visible;
  background: none;
  box-shadow: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.atlas-map-pin-world.has-custom-icon .atlas-map-pin-dot-custom img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(200, 220, 255, .35));
  pointer-events: none;
}
/* 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-map-popup-body.atlas-planet-asteroid-belt {
  background:
    radial-gradient(ellipse at 24% 62%, #d0ccc2 0 12%, #74716b 15% 21%, transparent 23%),
    radial-gradient(ellipse at 48% 28%, #aaa69d 0 13%, #55565a 17% 23%, transparent 25%),
    radial-gradient(ellipse at 70% 66%, #b8b0a4 0 14%, #66625e 18% 24%, transparent 26%),
    radial-gradient(ellipse at 82% 30%, #898b8e 0 10%, #44474d 15% 20%, transparent 22%),
    radial-gradient(ellipse at 42% 78%, #98948c 0 9%, #4f5155 14% 19%, transparent 21%);
  border-radius: 35%;
  box-shadow: none;
}
.atlas-planet-asteroid-belt .atlas-map-pin-dot {
  position: relative;
  width: 22px;
  height: 17px;
  overflow: visible;
  border-radius: 0;
  background:
    radial-gradient(ellipse 3px 2.5px at 14% 64%, #c8c4bb 0 42%, #6c6964 58%, #383b40 72%, transparent 76%),
    radial-gradient(ellipse 2.5px 3px at 84% 35%, #969897 0 38%, #55585d 58%, #30343a 72%, transparent 76%),
    radial-gradient(ellipse 2px 2.5px at 38% 84%, #aaa59c 0 40%, #5f5d5a 60%, #34373b 73%, transparent 77%);
  box-shadow: none;
  filter: drop-shadow(0 0 2px rgba(154,212,240,.32)) drop-shadow(0 1px 1px rgba(0,0,0,.9));
}
.atlas-planet-asteroid-belt .atlas-map-pin-dot::before,
.atlas-planet-asteroid-belt .atlas-map-pin-dot::after {
  content: "";
  position: absolute;
  background: linear-gradient(145deg, #d4d0c7 0 16%, #969188 38%, #5b5b5a 68%, #32353a 100%);
  box-shadow: inset -1px -1px 1px rgba(0,0,0,.45);
}
.atlas-planet-asteroid-belt .atlas-map-pin-dot::before {
  left: 6px;
  top: 2px;
  width: 7px;
  height: 7px;
  clip-path: polygon(21% 5%, 75% 0, 100% 35%, 83% 87%, 38% 100%, 0 67%, 4% 25%);
}
.atlas-planet-asteroid-belt .atlas-map-pin-dot::after {
  left: 12px;
  top: 8px;
  width: 7px;
  height: 6px;
  background: linear-gradient(150deg, #bdb5a9 0 18%, #7d7770 42%, #47494d 72%, #292c31 100%);
  clip-path: polygon(28% 0, 80% 9%, 100% 48%, 70% 100%, 18% 88%, 0 42%);
}
.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;
  transform: translateX(-50%);
  padding: 2px 6px;
  border: 1px solid rgba(74,158,202,.38);
  border-radius: 3px;
  background: rgba(7,8,15,.9);
  color: #d8e4f0; font: 700 .62rem "Rajdhani", sans-serif; letter-spacing: .06em;
  text-shadow: 0 1px 2px #000;
  box-shadow: 0 2px 6px rgba(0,0,0,.32);
  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: relative; z-index: 5; min-width: 0;
  padding: 24px 20px;
  border-left: 1px solid var(--atlas-border);
  background: linear-gradient(180deg, rgba(15,18,32,.98), rgba(7,8,15,.99));
  color: var(--atlas-text);
  overflow: auto;
}
.atlas-map-popup[hidden] { display: none !important; }
.atlas-map-popup h3 {
  margin: 0; color: #d8e4f0; font: 700 1.18rem "Rajdhani", sans-serif; letter-spacing: .08em;
  text-transform: uppercase;
}
.atlas-map-popup p { margin: 10px 0 0; color: var(--atlas-dim); font: .74rem/1.6 "Share Tech Mono", monospace; }
.atlas-map-popup-kicker {
  color: var(--atlas-cyan-hi); font: 700 .62rem "Rajdhani", sans-serif;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 7px;
}
.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: 14px; right: 14px; border: 0; background: transparent;
  color: var(--atlas-dim); cursor: pointer; font-size: .85rem; line-height: 1; padding: 4px;
}
.atlas-map-popup-x:hover { color: var(--atlas-cyan-hi); }
.atlas-map-panel-section {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(90,72,144,.38);
}
.atlas-map-panel-heading {
  margin-bottom: 10px;
  color: var(--atlas-cyan-hi);
  font: 700 .64rem "Rajdhani", sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.atlas-map-legend {
  display: grid;
  gap: 8px;
  color: var(--atlas-dim);
  font: .65rem/1.35 "Share Tech Mono", monospace;
}
.atlas-map-legend > div { display: flex; align-items: center; gap: 9px; }
.atlas-map-legend-mark {
  display: inline-block; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%;
  background: var(--atlas-cyan-hi); box-shadow: 0 0 7px rgba(154,212,240,.5);
}
.atlas-map-legend-mark.world { background: #79d9b8; box-shadow: 0 0 7px rgba(121,217,184,.42); }
.atlas-map-legend-mark.wing {
  border-radius: 1px; background: rgba(136,96,208,.68); box-shadow: none;
}
.atlas-map-legend-mark.sector {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #4a9eca;
}
.atlas-map-legend-mark.territory {
  border-radius: 1px; background: rgba(192,160,248,.42); box-shadow: none;
}
.atlas-map-legend-mark.void-waste {
  border-radius: 1px;
  background: linear-gradient(135deg, #2a1840, #6b3fa0 55%, #120818);
  box-shadow: 0 0 8px rgba(136, 96, 208, .35);
}
.atlas-map-legend-mark.route {
  width: 14px; height: 2px; border-radius: 0; background: var(--atlas-cyan-hi);
  box-shadow: 0 0 7px rgba(154,212,240,.46);
}
.atlas-map-legend-mark.umbral-ring {
  width: 12px; height: 12px; border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 2px #f0a94b, 0 0 7px rgba(240,169,75,.45);
}

.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-workspace { flex: 1; height: auto; min-height: 0; }

@media (max-width: 820px) {
  .atlas-map-workspace { display: block; height: auto; min-height: 0; }
  .atlas-map-stage { height: min(70vh, 560px); min-height: 360px; }
  .atlas-map-popup {
    min-height: 230px;
    border-top: 1px solid var(--atlas-border);
    border-left: 0;
  }
  .atlas-map-root.atlas-map-fs .atlas-map-workspace { overflow: auto; }
  .atlas-map-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-map-world, .atlas-map-pin-label { transition: none !important; }
  .atlas-map-umbra::before,
  .atlas-map-umbra-custom img { animation: none !important; }
  .atlas-map-void-waste-layer::before,
  .atlas-map-void-waste-layer::after {
    animation: none !important;
  }
  .atlas-map-void-waste-layer::before {
    opacity: .96 !important;
    filter: brightness(.9) contrast(1.2) !important;
  }
  .atlas-map-void-waste-layer::after {
    opacity: .5 !important;
    filter: brightness(1.05) saturate(1.15) !important;
  }
  .atlas-map-umbral-ring { 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: 20px; }
  .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; }
}
