.memory-atlas {
  margin: 12px 0 88px;
  --atlas-lime: #d4f5af;
}
.atlas-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 30px;
}
.atlas-heading .eyebrow {
  color: var(--cyan);
  font-size: 10px;
  margin-bottom: 14px;
}
.atlas-heading h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 450;
  line-height: 1.2;
  letter-spacing: -1.3px;
  margin: 0;
}
.atlas-heading h2 span {
  color: var(--muted);
}
.atlas-heading > p {
  color: var(--muted);
  font-size: 14px;
  max-width: 330px;
  margin: 0 0 3px;
}
.atlas-shell {
  border: 1px solid #35464a;
  border-radius: 5px;
  overflow: hidden;
  background: #0b1317;
  box-shadow: 0 25px 90px #0002;
}
.atlas-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid #26353a;
  font: 10px/1.5 var(--mono);
  letter-spacing: 0.7px;
}
.atlas-live {
  text-transform: uppercase;
  color: #e1e9e6;
  white-space: nowrap;
}
.atlas-live i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border: 1px solid #86cdd0;
  border-radius: 50%;
  margin-right: 10px;
}
.atlas-live span {
  color: #748e98;
  margin-left: 12px;
}
#atlas-count {
  color: #a7b9bc;
  text-align: right;
}
.atlas-stage {
  position: relative;
  min-height: 600px;
  isolation: isolate;
  background: radial-gradient(ellipse at 69% 49%, #14313980 0, #0b131700 61%);
}
.atlas-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image:
    linear-gradient(#4b778320 1px, transparent 1px),
    linear-gradient(90deg, #4b778320 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 65% 50%, black, transparent 72%);
}
.atlas-story {
  position: relative;
  z-index: 2;
  padding: 66px 0 45px 34px;
  width: 310px;
  pointer-events: none;
}
.atlas-kicker {
  font: 9px/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: #9baeb2;
  margin: 0 0 30px;
}
.atlas-field {
  font: 10px/1.6 var(--mono);
  color: var(--atlas-lime);
  text-transform: uppercase;
  letter-spacing: 1.1px;
  margin: 0 0 14px;
}
.atlas-story h3 {
  font-size: clamp(27px, 2.5vw, 34px);
  font-weight: 450;
  line-height: 1.18;
  letter-spacing: -0.9px;
  margin: 0 0 18px;
  min-height: 122px;
  text-wrap: balance;
}
#atlas-detail {
  color: #9db1b8;
  font-size: 13px;
  line-height: 1.7;
  min-height: 67px;
  margin: 0;
  max-width: 240px;
}
.atlas-story-nav {
  display: flex;
  gap: 7px;
  margin: 28px 0 22px;
  pointer-events: auto;
}
.atlas-story-nav button {
  background: transparent;
  border: 1px solid #32474f;
  color: #95aeb6;
  font: 10px var(--mono);
  padding: 12px 14px;
  border-radius: 2px;
}
.atlas-story-nav button[aria-pressed="true"] {
  border-color: #93b684;
  background: #d4f5af0d;
  color: var(--atlas-lime);
}
.atlas-possibility {
  display: flex;
  gap: 9px;
  font-size: 11px;
  color: #92a7ae;
  max-width: 236px;
  line-height: 1.6;
  margin: 0;
}
.atlas-possibility > span {
  color: var(--atlas-lime);
  font-size: 18px;
}
.atlas-viewport {
  position: absolute;
  inset: 0 0 0 270px;
}
#atlas-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: grab;
  outline-offset: -4px;
}
#atlas-canvas:focus-visible {
  outline: 1px solid var(--atlas-lime);
}
#atlas-canvas:active {
  cursor: grabbing;
}
.atlas-controls {
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 4;
  display: flex;
  gap: 5px;
}
.atlas-controls button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #32474f;
  border-radius: 3px;
  background: #0d181ee6;
  color: #b0c8ce;
  font: 18px var(--mono);
}
.atlas-controls button:hover {
  color: var(--atlas-lime);
  border-color: #83a274;
}
.atlas-help {
  position: absolute;
  right: 25px;
  bottom: 12px;
  color: #8aa1a9;
  font: 9px/1.7 var(--mono);
  letter-spacing: 0.2px;
  pointer-events: none;
}
.atlas-help span {
  padding: 0 7px;
  color: #556d77;
}
.atlas-empty {
  position: absolute;
  inset: 30% 12%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #0b1317cc;
  border: 1px solid #2c424b;
  color: #d1e0df;
  border-radius: 5px;
}
.atlas-empty[hidden],
.atlas-tooltip[hidden] {
  display: none;
}
.atlas-empty p {
  color: #97aeb6;
  font-size: 12px;
  padding: 0 20px;
}
.atlas-empty button {
  background: #17282f;
  color: var(--atlas-lime);
  border: 1px solid #56755a;
  padding: 8px 15px;
}
.atlas-tooltip {
  position: absolute;
  z-index: 5;
  width: min(270px, 90%);
  padding: 15px 17px;
  border: 1px solid #617d79;
  background: #101e25f5;
  border-radius: 4px;
  box-shadow: 0 8px 30px #0006;
  pointer-events: none;
}
.atlas-tooltip span {
  display: block;
  font: 9px/1.5 var(--mono);
  color: #a8c2c7;
}
.atlas-tooltip strong {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  color: #edf3eb;
  margin: 6px 0 8px;
  overflow-wrap: anywhere;
}
.atlas-tooltip a {
  font-size: 11px;
  color: var(--atlas-lime);
  pointer-events: auto;
}
.atlas-route {
  position: relative;
  padding: 19px 28px 22px;
  border-top: 1px solid #2e4247;
  background: #13212880;
  min-height: 112px;
}
.atlas-route-label {
  color: #bed3c6;
  font: 9px/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.atlas-route-label > span:last-child {
  margin-left: auto;
  color: #94aaa7;
}
.atlas-route-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--atlas-lime);
  box-shadow: 0 0 10px #baff9370;
}
#atlas-route-nodes {
  list-style: none;
  margin: 15px 0 0;
  padding: 0;
  display: flex;
  gap: 18px;
}
#atlas-route-nodes li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #617780;
  min-width: 0;
  flex: 1;
}
#atlas-route-nodes li:not(:last-child)::after {
  content: "→";
  margin-left: auto;
  color: #5c7479;
}
#atlas-route-nodes button {
  color: #a6babb;
  border: 0;
  padding: 0;
  text-align: left;
  background: none;
  font: 11px/1.5 var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
#atlas-route-nodes li.is-visited button {
  color: var(--atlas-lime);
}
.atlas-progress {
  position: absolute;
  height: 2px;
  bottom: 0;
  left: 0;
  right: 0;
  background: #213332;
}
#atlas-progress-bar {
  height: 100%;
  background: #bedb9c;
  transform-origin: left;
  transform: scaleX(0);
  box-shadow: 0 0 9px #cfffa944;
}
.atlas-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  padding: 18px 28px;
  background: #0d171b;
}
.atlas-legend {
  display: flex;
  gap: 19px;
  flex-wrap: wrap;
}
.atlas-legend span,
.atlas-edge-key {
  color: #a2b4b8;
  font: 9px/1.5 var(--mono);
}
.atlas-legend i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 6px;
  background: #81cdd2;
}
.atlas-legend .atlas-challenged {
  background: #e9b777;
}
.atlas-legend .atlas-superseded {
  background: #b49be3;
}
.atlas-legend .atlas-retracted {
  background: #ee8eaa;
}
.atlas-edge-key span {
  color: #526a75;
  margin: 0 6px;
}
.atlas-caption {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 30px;
  margin-top: 19px;
}
.atlas-caption p {
  font-size: 11px;
  color: #9baeb0;
  margin: 0;
  max-width: 670px;
}
.atlas-caption a {
  font-size: 13px;
  white-space: nowrap;
  color: var(--atlas-lime);
}
.atlas-accessible {
  margin-top: 17px;
  font-size: 11px;
  color: var(--muted);
}
.atlas-accessible summary {
  cursor: pointer;
  width: fit-content;
}
.atlas-accessible label {
  display: block;
  margin: 15px 0 8px;
}
.atlas-accessible select {
  max-width: 100%;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 9px;
}
@media (min-width: 1500px) {
  .atlas-stage {
    min-height: 650px;
  }
}
@media (max-width: 1000px) {
  .atlas-story {
    width: 265px;
    padding-left: 26px;
  }
  .atlas-viewport {
    left: 200px;
  }
  .atlas-legend {
    gap: 12px;
  }
  .atlas-heading > p {
    max-width: 265px;
  }
}
@media (max-width: 720px) {
  .memory-atlas {
    margin-bottom: 55px;
  }
  .atlas-heading {
    display: block;
  }
  .atlas-heading > p {
    margin-top: 20px;
    max-width: 400px;
  }
  .atlas-heading h2 {
    font-size: 30px;
  }
  .atlas-topline {
    padding: 15px 17px;
    font-size: 8px;
  }
  .atlas-live span {
    margin-left: 5px;
  }
  .atlas-stage {
    min-height: 0;
  }
  .atlas-story {
    width: auto;
    padding: 25px 23px 0;
  }
  .atlas-kicker {
    margin-bottom: 14px;
  }
  .atlas-field {
    margin-bottom: 9px;
  }
  .atlas-story h3 {
    font-size: 30px;
    min-height: 108px;
    max-width: 410px;
    margin-bottom: 10px;
  }
  #atlas-detail {
    min-height: 62px;
    max-width: 350px;
    font-size: 12px;
  }
  .atlas-story-nav {
    margin: 17px 0;
  }
  .atlas-possibility {
    max-width: 340px;
    font-size: 10px;
  }
  .atlas-viewport {
    position: relative;
    inset: auto;
    height: 420px;
    margin-top: -15px;
  }
  .atlas-controls {
    top: auto;
    bottom: 37px;
    right: 17px;
  }
  .atlas-help {
    bottom: 3px;
    font-size: 8px;
    right: 17px;
  }
  .atlas-route {
    padding: 17px;
    min-height: 150px;
  }
  #atlas-route-nodes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
  }
  #atlas-route-nodes button {
    font-size: 10px;
  }
  .atlas-bottom {
    padding: 17px;
  }
  .atlas-legend {
    gap: 10px 16px;
  }
  .atlas-legend span,
  .atlas-edge-key {
    font-size: 8px;
  }
  .atlas-caption {
    flex-direction: column;
    gap: 13px;
  }
  .atlas-empty {
    inset: 20% 10%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .memory-atlas * {
    scroll-behavior: auto;
  }
}
