:root {
  --space-void: #02040b;
  --space-raised: #0d1226;
  --space-panel: rgba(9, 13, 27, 0.92);
  --ink-primary: #eef1ff;
  --ink-secondary: #aeb6d6;
  --ink-tertiary: #737d9f;
  --reticle: #7ee8fa;
  --glass-border: rgba(255, 255, 255, 0.1);
  --hairline: rgba(174, 182, 214, 0.18);
  --ue: #8fd8ff;
  --news: #ffc978;
  --problem: #c9a7ff;
  --briefing: #7dffc8;
  --site: #ff9aa2;
  --danger: #ff8d9b;
  --nav-height: 74px;
  --panel-accent: var(--reticle);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--space-void);
}

html {
  color-scheme: dark;
}

body {
  color: var(--ink-primary);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor input,
body.has-custom-cursor textarea {
  cursor: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

::selection {
  color: #061016;
  background: var(--reticle);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 14px;
  color: var(--space-void);
  background: var(--reticle);
  border-radius: 4px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

#starfield,
.space-grid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

#starfield {
  z-index: 0;
  pointer-events: none;
}

.space-grid {
  z-index: 1;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(126, 232, 250, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 232, 250, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 84%);
}

.hud-nav {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  left: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 7, 15, 0.66);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: var(--ink-primary);
  text-decoration: none;
}

.brand > span:last-child {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.brand small {
  color: var(--ink-tertiary);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.2;
}

.brand-beacon {
  width: 9px;
  height: 9px;
  flex: none;
  border: 1px solid var(--reticle);
  border-radius: 50%;
  background: var(--reticle);
  box-shadow: 0 0 16px rgba(126, 232, 250, 0.72);
  animation: beacon 2.8s ease-in-out infinite;
}

.nav-tabs {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 28px;
}

.nav-tab {
  position: relative;
  min-width: 44px;
  padding: 0 2px;
  border: 0;
  color: var(--ink-tertiary);
  background: transparent;
  font-family: var(--mono);
  font-size: 12px;
}

.nav-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--reticle);
  box-shadow: 0 0 12px rgba(126, 232, 250, 0.7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.nav-tab:hover,
.nav-tab.is-active {
  color: var(--ink-primary);
}

.nav-tab.is-active::after {
  transform: scaleX(1);
}

#app,
.scene-shell {
  position: fixed;
  z-index: 10;
  inset: var(--nav-height) 0 0;
}

.route-trail {
  position: fixed;
  z-index: 45;
  top: calc(var(--nav-height) + 18px);
  left: 36px;
  display: flex;
  align-items: center;
  min-height: 24px;
  max-width: calc(100vw - 72px);
  padding: 2px 1px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  transition: opacity 260ms ease;
}

.route-trail::-webkit-scrollbar {
  display: none;
}

.trail-item {
  display: inline-flex;
  position: relative;
  align-items: center;
  flex: none;
  border: 0;
  color: var(--ink-tertiary);
  background: transparent;
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}

.trail-item::before {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  content: "";
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 transparent;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.trail-item:hover:not([disabled]) {
  color: var(--reticle);
}

.trail-item:hover:not([disabled])::before,
.trail-item:focus-visible::before {
  border-color: var(--reticle);
  background: rgba(126, 232, 250, 0.22);
  box-shadow: 0 0 10px rgba(126, 232, 250, 0.42);
}

.trail-item[disabled] {
  color: var(--ink-primary);
}

.trail-item[disabled]::before {
  border-color: var(--reticle);
  background: var(--reticle);
  box-shadow: 0 0 10px rgba(126, 232, 250, 0.7);
}

.trail-line {
  position: relative;
  width: 34px;
  height: 1px;
  flex: none;
  margin: 0 10px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--hairline), rgba(174, 182, 214, 0.04));
}

.trail-line::after {
  position: absolute;
  top: -1px;
  left: -6px;
  width: 6px;
  height: 3px;
  content: "";
  border-radius: 50%;
  background: var(--reticle);
  box-shadow: 0 0 8px rgba(126, 232, 250, 0.82);
  animation: trail-signal 2.8s ease-in-out var(--trail-delay, 0s) infinite;
}

.scene-shell {
  transform: scale(1);
  transform-origin: var(--warp-x, 50%) var(--warp-y, 50%);
  transition: opacity 420ms ease, transform 780ms cubic-bezier(0.45, 0, 0.85, 0.3), filter 420ms ease;
}

.scene-copy {
  position: absolute;
  z-index: 20;
  top: 10%;
  left: 50%;
  width: min(760px, calc(100vw - 48px));
  text-align: center;
  transform: translateX(-50%);
  transition: opacity 400ms ease, transform 600ms ease;
}

.scene-copy.is-entering {
  animation: scene-in 820ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.scene-copy.is-compact {
  top: 7%;
}

.scene-eyebrow,
.panel-eyebrow {
  margin: 0 0 14px;
  color: var(--reticle);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  text-transform: uppercase;
}

.scene-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 900;
  line-height: 1.24;
  text-wrap: balance;
  text-shadow: 0 0 34px rgba(126, 232, 250, 0.14);
}

.scene-copy.is-compact h1 {
  font-size: 38px;
}

.scene-summary {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.8;
  text-wrap: balance;
}

.atlas-stage {
  position: absolute;
  z-index: 25;
  inset: 190px 24px 74px;
  outline: none;
  transform: translate3d(var(--scene-pan-x, 0), var(--scene-pan-y, 0), 0);
}

body.is-centering .atlas-stage {
  pointer-events: none;
  will-change: transform;
}

.atlas-node {
  --accent: var(--reticle);
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 184px;
  height: 118px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  transform: translate(-50%, -50%);
  transition: opacity 300ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1), filter 300ms ease;
}

.atlas-node:hover,
.atlas-node:focus-visible,
.atlas-node.is-locking {
  z-index: 8;
  transform: translate(-50%, -50%) scale(1.08);
}

.atlas-stage.has-focus .atlas-node:not(.is-target) {
  opacity: 0.34;
  filter: saturate(0.5);
}

.node-star {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translateX(-50%);
}

.atlas-node.is-major .node-star {
  width: 58px;
  height: 58px;
  top: 0;
}

.node-core,
.node-halo,
.node-target-ring,
.node-axis {
  position: absolute;
  inset: 50% auto auto 50%;
  display: block;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.node-core {
  width: var(--core-size, 9px);
  height: var(--core-size, 9px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 7px #fff, 0 0 19px var(--accent), 0 0 36px color-mix(in srgb, var(--accent), transparent 44%);
  animation: star-breathe 3.2s ease-in-out infinite;
}

.is-major .node-core {
  --core-size: 12px;
}

.node-halo {
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 72%);
  border-radius: 50%;
  box-shadow: inset 0 0 16px color-mix(in srgb, var(--accent), transparent 78%);
  opacity: 0.7;
  transition: width 260ms ease, height 260ms ease, opacity 260ms ease;
}

.is-major .node-halo {
  width: 44px;
  height: 44px;
}

.atlas-node:hover .node-halo,
.atlas-node:focus-visible .node-halo,
.atlas-node.is-locking .node-halo,
.atlas-node.is-centering-target .node-halo {
  width: 54px;
  height: 54px;
  opacity: 1;
}

.node-axis::before,
.node-axis::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  background: color-mix(in srgb, var(--accent), transparent 48%);
  transform: translate(-50%, -50%);
}

.node-axis::before {
  width: 42px;
  height: 1px;
}

.node-axis::after {
  width: 1px;
  height: 42px;
}

.node-target-ring {
  width: 54px;
  height: 54px;
  border: 1px dashed var(--accent);
  border-radius: 50%;
  opacity: 0;
}

.atlas-node.is-locking .node-target-ring,
.atlas-node.is-locked .node-target-ring,
.atlas-node.is-centering-target .node-target-ring {
  opacity: 0.9;
  animation: target-spin 1.6s linear infinite;
}

.node-label {
  position: absolute;
  top: 62px;
  left: 50%;
  display: grid;
  width: 184px;
  gap: 3px;
  color: var(--ink-secondary);
  transform: translateX(-50%);
}

.node-label strong {
  overflow-wrap: anywhere;
  color: var(--ink-primary);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.is-major .node-label strong {
  font-size: 19px;
}

.node-label small,
.node-label span {
  color: var(--ink-tertiary);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.45;
}

.node-label small {
  color: var(--accent);
}

.node-satellites {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 82px;
  height: 45px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.node-satellites i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 7px var(--accent);
  opacity: 0.65;
}

.node-satellites i:nth-child(1) { top: 5px; left: 7px; }
.node-satellites i:nth-child(2) { top: 37px; left: 19px; }
.node-satellites i:nth-child(3) { top: 3px; right: 15px; }
.node-satellites i:nth-child(4) { right: 2px; bottom: 5px; }
.node-satellites i:nth-child(5) { top: 24px; left: 2px; }

.observatory-status {
  position: fixed;
  z-index: 42;
  right: 34px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-tertiary);
  font-family: var(--mono);
  font-size: 9px;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.motion-toggle {
  display: inline-flex;
  height: 28px;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid rgba(174, 182, 214, 0.22);
  border-radius: 14px;
  color: var(--ink-tertiary);
  background: rgba(5, 7, 15, 0.72);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
  pointer-events: auto;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.motion-toggle[hidden] {
  display: none;
}

.motion-toggle:disabled {
  opacity: 0.58;
}

.motion-toggle[aria-pressed="true"] {
  border-color: rgba(126, 232, 250, 0.52);
  color: var(--ink-primary);
  background: rgba(9, 22, 30, 0.86);
}

.motion-switch {
  position: relative;
  width: 22px;
  height: 12px;
  flex: none;
  border: 1px solid rgba(174, 182, 214, 0.34);
  border-radius: 6px;
}

.motion-switch::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--ink-tertiary);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.motion-toggle[aria-pressed="true"] .motion-switch::after {
  background: var(--reticle);
  box-shadow: 0 0 8px rgba(126, 232, 250, 0.72);
  transform: translateX(10px);
}

body.has-panel .motion-toggle,
body.is-centering .motion-toggle,
body.is-warping .motion-toggle,
body.is-arriving .motion-toggle {
  pointer-events: none;
}

.status-signal {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--briefing);
  box-shadow: 0 0 9px rgba(125, 255, 200, 0.7);
}

.status-divider {
  width: 26px;
  height: 1px;
  background: var(--hairline);
}

.target-readout {
  --accent: var(--reticle);
  position: fixed;
  z-index: 46;
  bottom: 25px;
  left: 34px;
  display: grid;
  width: min(300px, calc(100vw - 68px));
  gap: 3px;
  padding-left: 18px;
  color: var(--ink-secondary);
  opacity: 0;
  pointer-events: none;
  transform: translateY(7px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.target-readout.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.readout-line {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 9px color-mix(in srgb, var(--accent), transparent 30%);
}

.target-readout strong {
  color: var(--ink-primary);
  font-family: var(--serif);
  font-size: 15px;
}

.target-readout span:last-child {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reticle {
  position: fixed;
  z-index: 150;
  top: 0;
  left: 0;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
  transition: opacity 180ms ease;
}

body.has-custom-cursor .reticle {
  opacity: 0.85;
}

body.is-centering .reticle,
body.is-warping .reticle,
body.is-arriving .reticle {
  opacity: 0;
}

body.cursor-over-ui .reticle {
  opacity: 0.55;
}

.reticle-ring,
.reticle-core,
.reticle-tick {
  position: absolute;
  display: block;
}

.reticle-ring {
  inset: 0;
  border: 1px solid rgba(126, 232, 250, 0.58);
  border-radius: 50%;
  transition: inset 220ms ease, opacity 220ms ease;
}

.reticle-ring-inner {
  inset: 15px;
  opacity: 0.52;
}

.reticle-core {
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--reticle);
  box-shadow: 0 0 7px var(--reticle);
  transform: translate(-50%, -50%);
}

.reticle-tick {
  top: 50%;
  left: 50%;
  width: 1px;
  height: 7px;
  background: var(--reticle);
}

.reticle-tick-n { transform: translate(-50%, -25px); }
.reticle-tick-s { transform: translate(-50%, 18px); }
.reticle-tick-e { transform: translate(22px, -50%) rotate(90deg); }
.reticle-tick-w { transform: translate(-29px, -50%) rotate(90deg); }

.reticle-progress {
  position: absolute;
  inset: -7px;
  width: 72px;
  height: 72px;
  opacity: 0;
  transform: rotate(-90deg);
  transition: opacity 180ms ease;
}

.reticle-progress circle {
  fill: none;
  stroke: var(--reticle);
  stroke-width: 1.5;
  stroke-dasharray: 201.1;
  stroke-dashoffset: 201.1;
}

body.is-targeting .reticle {
  opacity: 1;
}

body.is-targeting .reticle-ring:first-of-type {
  inset: -7px;
}

body.is-targeting .reticle-progress {
  opacity: 1;
}

body.cursor-over-ui .reticle-ring {
  inset: 20px;
}

body.cursor-over-ui .reticle-ring-inner,
body.cursor-over-ui .reticle-tick {
  opacity: 0;
}

.warp-flash {
  position: fixed;
  z-index: 65;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: rgba(238, 241, 255, 0.85);
}

body.is-warping .warp-flash {
  animation: warp-flash 900ms ease-in-out both;
}

.archive-panel {
  --panel-accent: var(--reticle);
  position: fixed;
  z-index: 110;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(940px, calc(100vw - 56px));
  max-height: min(82vh, 880px);
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  opacity: 0;
  background: var(--space-panel);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.64), inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transform: translate(-50%, -50%) scale(0.82);
  transform-origin: center;
  transition: opacity 260ms ease, transform 460ms cubic-bezier(0.16, 1, 0.3, 1);
}

.archive-panel[hidden] {
  display: none;
}

.archive-panel.is-open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

body.has-panel .scene-shell,
body.has-panel .route-trail,
body.has-panel .observatory-status,
body.has-panel .target-readout {
  opacity: 0.15;
  filter: blur(2px);
  pointer-events: none;
}

body.is-warping .scene-shell {
  opacity: 0;
  filter: blur(2px);
  pointer-events: none;
  transform: scale(1.24);
}

body.is-warping .route-trail,
body.is-warping .observatory-status,
body.is-arriving .route-trail,
body.is-arriving .observatory-status {
  opacity: 0;
  pointer-events: none;
}

body.is-arriving .scene-shell {
  opacity: 0;
  filter: none;
  pointer-events: none;
  transform: scale(1);
  transition: none;
}

body.is-arriving .route-trail,
body.is-arriving .observatory-status {
  transition: none;
}

body.is-warping .archive-panel.is-open,
body.is-arriving .archive-panel.is-open {
  opacity: 0;
  pointer-events: none;
  transition: none;
}

body.is-revealing:not(.has-panel) .scene-shell {
  animation: scene-arrive 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  pointer-events: none;
}

body.is-revealing:not(.has-panel) .route-trail,
body.is-revealing:not(.has-panel) .observatory-status {
  animation: hud-arrive 420ms ease-out both;
}

body.is-revealing:not(.has-panel) .atlas-node {
  animation: node-arrive 460ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--entry-delay, 0ms);
}

.panel-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 34px 24px 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.panel-header::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  content: "";
  background: var(--panel-accent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--panel-accent), transparent 35%);
}

.panel-heading {
  min-width: 0;
}

.panel-eyebrow {
  margin-bottom: 8px;
  color: var(--panel-accent);
}

.panel-heading h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.35;
}

.panel-summary {
  max-width: 70ch;
  margin: 10px 0 0;
  color: var(--ink-secondary);
  font-size: 13px;
  line-height: 1.75;
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--ink-secondary);
  background: transparent;
  font-family: var(--mono);
  font-size: 22px;
  line-height: 1;
  transition: color 200ms ease, border-color 200ms ease, transform 240ms ease;
}

.icon-button:hover {
  border-color: var(--panel-accent);
  color: var(--ink-primary);
  transform: rotate(90deg);
}

.panel-body {
  min-height: 120px;
  padding: 26px 38px 38px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(174, 182, 214, 0.28) transparent;
  scrollbar-width: thin;
}

.panel-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--ink-tertiary);
  font-family: var(--mono);
  font-size: 9px;
}

.archive-index {
  display: grid;
}

.archive-entry {
  --entry-accent: var(--panel-accent);
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 8px 4px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ink-primary);
  background: transparent;
  text-align: left;
  transition: padding-left 220ms ease, background 220ms ease;
}

.archive-entry::before {
  position: absolute;
  top: 50%;
  left: -13px;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--entry-accent);
  box-shadow: 0 0 9px color-mix(in srgb, var(--entry-accent), transparent 35%);
  opacity: 0;
  transform: translateY(-50%) rotate(45deg) scale(0.5);
  transition: opacity 220ms ease, transform 220ms ease;
}

.archive-entry:hover,
.archive-entry:focus-visible {
  padding-left: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.archive-entry:hover::before,
.archive-entry:focus-visible::before {
  opacity: 1;
  transform: translateY(-50%) rotate(45deg) scale(1);
}

.entry-date {
  color: var(--entry-accent);
  font-family: var(--mono);
  font-size: 11px;
}

.entry-title {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-arrow {
  justify-self: end;
  color: var(--ink-tertiary);
  font-family: var(--mono);
  transition: color 220ms ease, transform 220ms ease;
}

.archive-entry:hover .entry-arrow,
.archive-entry:focus-visible .entry-arrow {
  color: var(--ink-primary);
  transform: translateX(4px);
}

.panel-empty,
.panel-loading,
.panel-error {
  display: grid;
  min-height: 200px;
  place-items: center;
  color: var(--ink-secondary);
  font-family: var(--mono);
  font-size: 12px;
  text-align: center;
}

.panel-loading::before {
  width: 20px;
  height: 20px;
  content: "";
  border: 1px solid var(--hairline);
  border-top-color: var(--panel-accent);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.panel-loading {
  align-content: center;
  justify-items: center;
  gap: 16px;
  overflow: hidden;
}

.loading-spectrum {
  display: grid;
  position: relative;
  width: min(240px, 72%);
  gap: 8px;
  overflow: hidden;
}

.loading-spectrum i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: rgba(174, 182, 214, 0.12);
}

.loading-spectrum i:nth-child(2) {
  width: 76%;
}

.loading-spectrum i:nth-child(3) {
  width: 54%;
}

.loading-spectrum::after {
  position: absolute;
  inset: 0 auto 0 -45%;
  width: 42%;
  content: "";
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--panel-accent), transparent 56%), transparent);
  animation: signal-scan 1.7s ease-in-out infinite;
}

.loading-label {
  color: var(--ink-secondary);
}

.panel-error {
  color: var(--danger);
}

.site-detail {
  display: grid;
  gap: 28px;
  max-width: 68ch;
}

.site-domain {
  color: var(--ink-tertiary);
  font-family: var(--mono);
  font-size: 11px;
}

.outline-button,
.run-button {
  display: inline-flex;
  width: fit-content;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--panel-accent);
  border-radius: 4px;
  color: var(--ink-primary);
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  text-decoration: none;
  box-shadow: 0 0 0 transparent;
  transition: background 200ms ease, box-shadow 200ms ease;
}

.outline-button:hover,
.run-button:hover {
  background: color-mix(in srgb, var(--panel-accent), transparent 90%);
  box-shadow: 0 0 18px color-mix(in srgb, var(--panel-accent), transparent 76%);
}

.content-article {
  max-width: 72ch;
  margin: 0 auto;
  color: #dce1f4;
  font-size: 16px;
  line-height: 1.82;
}

.content-article > :first-child {
  margin-top: 0;
}

.content-article h2,
.content-article h3,
.content-article h4 {
  color: var(--ink-primary);
  font-family: var(--serif);
  line-height: 1.45;
}

.content-article h2 {
  margin: 40px 0 14px;
  padding-left: 14px;
  border-left: 2px solid var(--panel-accent);
  font-size: 23px;
}

.content-article h3 {
  margin: 30px 0 12px;
  font-size: 18px;
}

.content-article h4 {
  margin: 24px 0 10px;
  font-size: 16px;
}

.content-article p,
.content-article ul,
.content-article ol,
.content-article blockquote,
.content-article table,
.content-article pre {
  margin: 0 0 18px;
}

.content-article ul,
.content-article ol {
  padding-left: 24px;
}

.content-article li + li {
  margin-top: 6px;
}

.content-article strong {
  color: var(--ink-primary);
}

.content-article a {
  color: var(--panel-accent);
  text-decoration-color: color-mix(in srgb, var(--panel-accent), transparent 52%);
  text-underline-offset: 4px;
}

.content-article blockquote {
  padding: 14px 18px;
  border-left: 2px solid var(--panel-accent);
  color: var(--ink-secondary);
  background: rgba(255, 255, 255, 0.025);
}

.content-article code {
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #d8f7ff;
  background: rgba(0, 0, 0, 0.28);
  font-family: var(--mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.code-block {
  position: relative;
  margin: 24px 0;
}

.content-article pre {
  max-width: 100%;
  margin: 0;
  padding: 20px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: #060912;
  line-height: 1.65;
  tab-size: 4;
}

.content-article pre code {
  padding: 0;
  border: 0;
  color: #d8def2;
  background: transparent;
  overflow-wrap: normal;
}

.copy-code {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--ink-tertiary);
  background: rgba(5, 7, 15, 0.88);
  font-family: var(--mono);
}

.copy-code:hover,
.copy-code.is-copied {
  border-color: var(--panel-accent);
  color: var(--panel-accent);
}

.table-scroll {
  max-width: 100%;
  margin: 22px 0;
  overflow-x: auto;
}

.content-article table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 14px;
}

.content-article th,
.content-article td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  text-align: left;
}

.content-article th {
  color: var(--panel-accent);
  font-family: var(--mono);
  font-weight: 500;
}

.content-article hr {
  height: 1px;
  margin: 34px 0;
  border: 0;
  background: var(--hairline);
}

.code-lab {
  max-width: 72ch;
  margin: 42px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}

.code-lab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.code-lab-header h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
}

.code-editor {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  outline: none;
  color: #d8def2;
  background: #060912;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
}

.code-editor:focus {
  border-color: var(--panel-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--panel-accent), transparent 84%);
}

.code-output {
  min-height: 54px;
  margin-top: 10px;
  padding: 13px 16px;
  overflow: auto;
  border-left: 2px solid var(--panel-accent);
  color: var(--ink-secondary);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.code-output.is-error {
  border-left-color: var(--danger);
  color: #ffc5cc;
}

.toast {
  position: fixed;
  z-index: 180;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 11px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  color: var(--ink-primary);
  opacity: 0;
  background: rgba(9, 13, 27, 0.96);
  font-family: var(--mono);
  font-size: 11px;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.noscript-message {
  position: fixed;
  z-index: 250;
  inset: 50% auto auto 50%;
  padding: 20px;
  color: var(--ink-primary);
  background: var(--space-raised);
  transform: translate(-50%, -50%);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:focus-visible {
  outline: 2px solid var(--reticle);
  outline-offset: 4px;
}

@keyframes beacon {
  0%, 100% { opacity: 0.45; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes star-breathe {
  0%, 100% { opacity: 0.72; transform: translate(-50%, -50%) scale(0.92); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes target-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes scene-in {
  from {
    opacity: 0;
    filter: blur(7px);
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, 0);
  }
}

@keyframes scene-arrive {
  from {
    opacity: 0;
    filter: blur(2px);
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    filter: none;
    transform: scale(1);
  }
}

@keyframes node-arrive {
  from {
    opacity: 0;
    filter: blur(2px);
  }
  to {
    opacity: 1;
    filter: none;
  }
}

@keyframes hud-arrive {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes trail-signal {
  0%, 22% { opacity: 0; transform: translateX(0); }
  42% { opacity: 1; }
  76%, 100% { opacity: 0; transform: translateX(40px); }
}

@keyframes signal-scan {
  0%, 16% { opacity: 0; transform: translateX(0); }
  42% { opacity: 0.72; }
  82%, 100% { opacity: 0; transform: translateX(340%); }
}

@keyframes warp-flash {
  0%, 12%, 100% { opacity: 0; }
  20% { opacity: 0.14; }
  29% { opacity: 0; }
}

@media (max-width: 900px) {
  .scene-copy h1 {
    font-size: 42px;
  }

  .scene-copy.is-compact h1 {
    font-size: 34px;
  }

  .atlas-stage {
    inset-inline: 10px;
  }

  .atlas-node {
    width: 160px;
  }

  .node-label {
    width: 160px;
  }
}

@media (max-width: 700px) {
  :root {
    --nav-height: 64px;
  }

  .hud-nav {
    padding: 0 16px;
  }

  .brand {
    gap: 9px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    display: none;
  }

  .nav-tabs {
    gap: 14px;
  }

  .nav-tab {
    font-size: 11px;
  }

  .route-trail {
    top: calc(var(--nav-height) + 10px);
    left: 16px;
    max-width: calc(100vw - 32px);
  }

  .trail-line {
    width: 15px;
    margin: 0 6px;
  }

  .scene-copy,
  .scene-copy.is-compact {
    top: 8%;
    width: calc(100vw - 32px);
  }

  .scene-copy h1,
  .scene-copy.is-compact h1 {
    font-size: 30px;
  }

  .scene-summary {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.65;
  }

  .scene-eyebrow {
    margin-bottom: 8px;
    font-size: 9px;
  }

  .atlas-stage {
    inset: 190px 12px 62px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 6px;
    padding: 6px 0 20px;
    overflow-y: auto;
    scrollbar-width: none;
  }

  .atlas-stage::-webkit-scrollbar {
    display: none;
  }

  .atlas-node,
  .atlas-node:hover,
  .atlas-node:focus-visible,
  .atlas-node.is-locking {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: 132px;
    transform: none;
  }

  .node-label,
  .atlas-node .node-label {
    width: min(150px, 100%);
  }

  .node-label strong,
  .is-major .node-label strong {
    font-size: 15px;
  }

  .node-label span {
    display: none;
  }

  .atlas-stage.has-focus .atlas-node:not(.is-target) {
    opacity: 1;
    filter: none;
  }

  .target-readout {
    display: none;
  }

  .observatory-status {
    right: 16px;
    bottom: calc(15px + env(safe-area-inset-bottom));
  }

  .toast {
    right: 16px;
    bottom: calc(58px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 32px);
  }

  .observatory-status > :not(.status-signal):not(#target-count):not(.motion-toggle) {
    display: none;
  }

  .archive-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: calc(91dvh - env(safe-area-inset-top));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
    background: #080c19;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: translateY(18px);
  }

  .archive-panel.is-open {
    transform: translateY(0);
  }

  body.has-panel .scene-shell {
    opacity: 0;
    filter: none;
  }

  .panel-header {
    gap: 16px;
    padding: 22px 18px 18px 22px;
  }

  .panel-heading h2 {
    font-size: 23px;
  }

  .panel-summary {
    font-size: 12px;
  }

  .panel-body {
    padding: 20px 20px calc(28px + env(safe-area-inset-bottom));
  }

  .panel-footer {
    display: none;
  }

  .archive-entry {
    grid-template-columns: 92px minmax(0, 1fr) 20px;
    gap: 10px;
  }

  .content-article {
    font-size: 15px;
    line-height: 1.78;
  }

  .content-article h2 {
    font-size: 20px;
  }

  .code-lab-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .hud-nav {
    padding-inline: 12px;
  }

  .brand strong {
    font-size: 13px;
  }

  .nav-tabs {
    gap: 9px;
  }

  .nav-tab {
    min-width: 36px;
    font-size: 10px;
  }

  .scene-copy h1,
  .scene-copy.is-compact h1 {
    font-size: 26px;
  }

  .atlas-stage {
    grid-template-columns: 1fr 1fr;
  }

  .archive-entry {
    grid-template-columns: 84px minmax(0, 1fr) 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  body,
  body a,
  body button,
  body input,
  body textarea {
    cursor: auto !important;
  }

  .reticle {
    display: none !important;
  }

  .motion-toggle {
    display: none !important;
  }

  body.is-warping .scene-shell {
    opacity: 0;
    filter: none;
    transform: none;
  }
}
