:root {
  color-scheme: dark;
  --bg: #05070b;
  --bg-2: #0b1018;
  --panel: rgba(10, 14, 22, 0.82);
  --panel-strong: rgba(10, 14, 22, 0.94);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f3f6fb;
  --muted: #9aa7bc;
  --soft: #6e7a8d;
  --accent: #d4b27b;
  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 36px 120px rgba(0, 0, 0, 0.46);
  --curve: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body,
.atlas-shell,
.atlas-stage-card,
.atlas-stage,
#graph-canvas,
.label-layer,
.relation-layer,
.node-label,
.relation-chip,
.cluster,
.spotlight-shell,
.spotlight-panel,
.spotlight-card {
  user-select: none;
  -webkit-user-select: none;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow: hidden;
  font-family: "Aptos", "Segoe UI Variable", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 16%, rgba(212, 178, 123, 0.16), transparent 20%),
    radial-gradient(circle at 84% 12%, rgba(124, 162, 255, 0.14), transparent 22%),
    radial-gradient(circle at 54% 86%, rgba(154, 118, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #080b10 0%, #05070b 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black 24%, transparent 82%);
  opacity: 0.32;
}

body::after {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 34%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.02), transparent 58%);
  opacity: 0.9;
}

.atlas-shell {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  padding: 14px;
}

.atlas-stage-card {
  position: relative;
  width: 100%;
  min-height: calc(100dvh - 28px);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
    rgba(8, 11, 17, 0.86);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.atlas-stage-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.atlas-topbar {
  position: absolute;
  z-index: 12;
  inset: 18px 18px auto 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.atlas-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 520px;
  pointer-events: auto;
}

.atlas-community-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(212, 178, 123, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(212, 178, 123, 0.16), rgba(212, 178, 123, 0.06)),
    rgba(9, 12, 18, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 38px rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    transform 220ms var(--curve),
    border-color 220ms var(--curve),
    background 220ms var(--curve),
    box-shadow 220ms var(--curve);
}

.atlas-community-link:hover,
.atlas-community-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(212, 178, 123, 0.48);
  background:
    linear-gradient(180deg, rgba(212, 178, 123, 0.22), rgba(212, 178, 123, 0.08)),
    rgba(10, 14, 22, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.32);
}

.atlas-branding {
  max-width: 360px;
}

.atlas-kicker,
.node-meta-line,
.spotlight-kicker,
.spotlight-section-head span,
.spotlight-orbit-copy span,
.spotlight-side-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.atlas-branding h1 {
  margin: 10px 0 0;
  font-size: clamp(2.1rem, 3.4vw, 3.72rem);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 0.92;
  text-wrap: balance;
  text-shadow: 0 10px 44px rgba(255, 255, 255, 0.08);
}

.atlas-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 460px;
  pointer-events: auto;
}

.atlas-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(7, 10, 16, 0.56);
  backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mobile-list-shell {
  display: none;
}

.mobile-list-header {
  display: grid;
  gap: 12px;
}

.mobile-list-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-list-header h2 {
  margin: 0;
  font-size: clamp(1.48rem, 3.6vw, 2rem);
  line-height: 1.05;
}

.mobile-list-header p {
  margin: 0;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
  line-height: 1.6;
}

.mobile-community-link {
  width: fit-content;
}

.mobile-list-groups {
  display: grid;
  gap: 18px;
}

.mobile-list-group {
  display: grid;
  gap: 12px;
}

.mobile-list-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-list-group-head h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.mobile-list-group-head span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.72rem;
}

.mobile-list-cards {
  display: grid;
  gap: 12px;
}

.mobile-entry {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(7, 10, 16, 0.88);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.mobile-entry-button {
  width: 100%;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.mobile-entry-media {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.mobile-entry-media img,
.mobile-entry-media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-entry-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

.mobile-entry-summary {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.mobile-entry-meta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
}

.mobile-entry-summary h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.1;
}

.mobile-entry-summary p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.84rem;
  line-height: 1.45;
}

.mobile-entry-chevron {
  align-self: start;
  color: rgba(255, 255, 255, 0.54);
  font-size: 1rem;
  line-height: 1;
  transition: transform 220ms var(--curve), opacity 220ms var(--curve);
}

.mobile-entry-panel {
  display: grid;
  gap: 12px;
  max-height: 0;
  overflow: hidden;
  padding: 0 12px;
  opacity: 0;
  transition:
    max-height 320ms var(--curve),
    padding 260ms var(--curve),
    opacity 220ms var(--curve);
}

.mobile-entry.open .mobile-entry-panel {
  max-height: 3200px;
  padding: 0 12px 14px;
  opacity: 1;
}

.mobile-entry.open .mobile-entry-chevron {
  transform: rotate(180deg);
  opacity: 0.88;
}

.mobile-entry-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-entry-section > span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mobile-entry-section .spotlight-grid,
.mobile-entry-section .spotlight-dossier-grid,
.mobile-entry-section .spotlight-entity-grid {
  grid-template-columns: 1fr;
}

.mobile-entry-section .spotlight-relations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-related-jump {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
}

.atlas-stage {
  position: relative;
  width: 100%;
  min-height: calc(100dvh - 56px);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 26%),
    radial-gradient(circle at 52% 44%, rgba(124, 162, 255, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.006));
}

#graph-canvas {
  display: block;
  width: 100%;
  height: calc(100dvh - 56px);
}

.label-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.relation-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.relation-line {
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.06));
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
  opacity: 0.88;
}

.relation-tag {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(7, 10, 15, 0.54);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.7rem;
  line-height: 1;
  backdrop-filter: blur(14px);
  white-space: nowrap;
}

.node-label {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  outline: none;
  font: inherit;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition:
    opacity 260ms var(--curve),
    filter 260ms var(--curve),
    z-index 10ms linear;
  will-change: opacity;
}

.node-label:hover,
.node-label:focus-visible {
  filter: saturate(1.04);
}

.node-label.active {
  filter: saturate(1.04);
}

.node-label.hidden {
  opacity: 0;
  pointer-events: none;
}

.node-label.muted {
  opacity: 0.42;
  filter: saturate(0.82) blur(0);
}

.node-label.central .central-core {
  display: grid;
  place-items: center;
  width: 166px;
  height: 166px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.16), transparent 38%),
    linear-gradient(160deg, color-mix(in srgb, var(--brand-a, #d4b27b) 18%, rgba(26, 22, 13, 0.94)), rgba(9, 11, 17, 0.92));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.015) inset,
    0 0 72px var(--brand-glow, rgba(212, 178, 123, 0.28)),
    0 24px 64px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.node-label.central .central-core::before,
.node-label.central .central-core::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  inset: -14px;
  border: 1px solid rgba(212, 178, 123, 0.14);
  animation: slow-spin 18s linear infinite;
}

.node-label.central .central-core::after {
  inset: -28px;
  border-color: rgba(255, 255, 255, 0.04);
  animation-direction: reverse;
  animation-duration: 28s;
}

.central-portrait {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.1), transparent 38%),
    rgba(10, 12, 18, 0.76);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 12px 34px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.central-portrait::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.025);
}

.central-portrait-svg {
  width: 94px;
  height: 94px;
}

.central-portrait-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(1.05) contrast(1.02);
}

.central-portrait-sheen {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 38%),
    radial-gradient(circle at 76% 22%, rgba(255, 255, 255, 0.22), transparent 18%);
  z-index: 1;
  pointer-events: none;
}

.central-portrait-mark {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 16, 0.62);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
}

.central-meta {
  margin-top: 14px;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.central-title {
  font-size: 0.98rem;
  font-weight: 700;
}

.central-subtitle {
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
  max-width: 170px;
  line-height: 1.4;
}

.node-label.active .central-core {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 0 96px var(--brand-glow, rgba(212, 178, 123, 0.36)),
    0 30px 78px rgba(0, 0, 0, 0.46);
}

.node-label.company {
  width: 214px;
}

.node-label.company.is-major {
  width: 234px;
}

.node-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.004)),
    rgba(9, 12, 18, 0.88);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 24px 56px rgba(0, 0, 0, 0.34),
    0 0 42px var(--brand-glow, rgba(212, 178, 123, 0.18));
  transition:
    transform 360ms var(--curve),
    border-color 280ms var(--curve),
    box-shadow 360ms var(--curve),
    background 360ms var(--curve);
}

.node-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.18), transparent 18%),
    radial-gradient(circle at 82% 16%, color-mix(in srgb, var(--brand-a, #d4b27b) 20%, transparent), transparent 24%),
    linear-gradient(145deg, color-mix(in srgb, var(--brand-a, #d4b27b) 28%, transparent), transparent 48%);
  opacity: 0.92;
  pointer-events: none;
}

.node-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.node-label.active .node-card {
  transform: translateY(-8px) scale(1.024);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.015) inset,
    0 34px 82px rgba(0, 0, 0, 0.4),
    0 0 66px var(--brand-glow, rgba(212, 178, 123, 0.34));
  filter: saturate(1.06);
}

.node-label.muted {
  opacity: 0.74;
}

.node-label.company.is-major .node-card {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 28px 64px rgba(0, 0, 0, 0.38),
    0 0 52px var(--brand-glow, rgba(212, 178, 123, 0.24));
}

.node-card-top {
  position: relative;
  min-height: 148px;
  padding: 16px 16px 0;
}

.node-card-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.node-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.04);
}

.node-card-image-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 10, 16, 0.02), rgba(7, 10, 16, 0.34) 45%, rgba(7, 10, 16, 0.82) 100%),
    linear-gradient(135deg, color-mix(in srgb, var(--brand-b, #101318) 42%, transparent), transparent 48%);
}

.node-card-shine {
  position: absolute;
  inset: -20% auto auto -10%;
  width: 52%;
  height: 130%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
  opacity: 0.18;
  transform: rotate(18deg);
  filter: blur(8px);
}

.node-orbit {
  position: absolute;
  inset: 10px;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0.82;
  overflow: hidden;
}

.node-orbit::before,
.node-orbit::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  animation: slow-spin 16s linear infinite;
}

.node-orbit::after {
  inset: 24% 12%;
  animation-duration: 22s;
  animation-direction: reverse;
  opacity: 0.66;
}

.motif-grid::before,
.motif-grid::after {
  border-radius: 16px;
  inset: 0;
  border: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 18px 18px;
  animation: drift-grid 12s linear infinite;
}

.motif-cross::before,
.motif-cross::after {
  inset: 16% 38%;
  border-radius: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  transform: rotate(28deg);
}

.motif-cross::after {
  transform: rotate(-28deg);
}

.motif-pulse::before,
.motif-pulse::after {
  inset: 22%;
  animation: pulse-ring 2.8s infinite;
}

.motif-pulse::after {
  animation-delay: 1.2s;
}

.motif-sun::before,
.motif-sun::after {
  inset: 26%;
  border-color: rgba(255, 235, 180, 0.22);
}

.motif-mesh::before,
.motif-mesh::after {
  inset: 18%;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.16), transparent 22%),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.12), transparent 18%),
    radial-gradient(circle at 48% 74%, rgba(255, 255, 255, 0.1), transparent 16%);
  border: none;
}

.motif-signal::before,
.motif-signal::after {
  inset: 24%;
  border-color: rgba(255, 255, 255, 0.16);
  clip-path: polygon(0 50%, 100% 18%, 100% 82%);
}

.motif-tunnel::before,
.motif-tunnel::after {
  inset: 18%;
  border-radius: 18px;
}

.motif-wave::before,
.motif-wave::after {
  inset: 20% 10%;
  border: none;
  background:
    linear-gradient(180deg, transparent 38%, rgba(255, 255, 255, 0.18) 39%, transparent 40%),
    linear-gradient(180deg, transparent 56%, rgba(255, 255, 255, 0.14) 57%, transparent 58%);
  background-size: 100% 26px;
  animation: drift-grid 7s linear infinite;
}

.motif-launch::before,
.motif-launch::after {
  inset: 18% 36%;
  border-radius: 18px 18px 44px 44px;
}

.node-mark-wrap {
  position: absolute;
  left: 18px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.node-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  height: 90px;
  padding: 0 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, color-mix(in srgb, var(--brand-a, #d4b27b) 56%, rgba(255, 255, 255, 0.2)), color-mix(in srgb, var(--brand-b, #1e1f26) 88%, rgba(0, 0, 0, 0.2)));
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.26),
    0 0 34px var(--brand-glow, rgba(212, 178, 123, 0.24));
  font-size: 1.26rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.node-mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0.8;
}

.node-mark-svg,
.spotlight-logo-svg {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  overflow: visible;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.node-brand-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  filter: saturate(1.04) contrast(1.02);
}

.spotlight-logo-svg {
  width: 54px;
  height: 54px;
}

.node-mark-fallback {
  position: relative;
  z-index: 1;
}

.node-label.company.is-major .node-title {
  font-size: 1.04rem;
}

.node-card-bottom {
  position: relative;
  z-index: 1;
  padding: 0 16px 16px;
  display: grid;
  gap: 6px;
}

.node-title {
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.18;
}

.node-subtitle {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.node-label.person,
.node-label.family,
.node-label.relationship,
.node-label.network,
.node-label.event,
.node-label.concept {
  width: 184px;
}

.node-mini-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 22px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
    rgba(8, 11, 16, 0.82);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 18px 44px rgba(0, 0, 0, 0.28),
    0 0 28px var(--brand-glow, rgba(255,255,255,0.1));
  transition:
    transform 320ms var(--curve),
    box-shadow 320ms var(--curve);
}

.node-mini-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 16%, rgba(255,255,255,0.14), transparent 18%),
    linear-gradient(145deg, color-mix(in srgb, var(--brand-a, #8ca5c7) 24%, transparent), transparent 48%);
  opacity: 0.92;
}

.node-label.active .node-mini-card {
  transform: translateY(-5px) scale(1.02);
  box-shadow:
    0 22px 48px rgba(0,0,0,0.32),
    0 0 30px var(--brand-glow, rgba(255,255,255,0.12));
}

.node-mini-top {
  position: relative;
  min-height: 106px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}

.node-thumb {
  position: absolute;
  left: 14px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(12, 16, 24, 0.9);
  box-shadow:
    0 14px 28px rgba(0,0,0,0.24),
    0 0 24px var(--brand-glow, rgba(255,255,255,0.12));
}

.node-thumb::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.05);
}

.node-thumb-svg {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
}

.node-thumb-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  z-index: 0;
}

.node-thumb-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), transparent 34%),
    linear-gradient(0deg, rgba(6, 8, 14, 0.38), transparent 36%);
}

.node-thumb-mark {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 9, 14, 0.7);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}

.node-mini-bottom {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 0 14px 14px;
}

.node-chip-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

.node-chip-subtitle {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.42;
}

.cluster {
  position: absolute;
  color: rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  pointer-events: none;
}

.cluster-family { left: 112px; top: 168px; }
.cluster-partner { left: 322px; top: 94px; }
.cluster-network { left: 94px; bottom: 154px; }
.cluster-company { right: 138px; top: 132px; }
.cluster-event { left: 44%; bottom: 104px; }
.cluster-concept { right: 138px; bottom: 96px; }

.spotlight-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transition: opacity 280ms var(--curve);
}

.spotlight-shell.open {
  opacity: 1;
  pointer-events: none;
}

.spotlight-panel {
  position: absolute;
  inset: 20px 20px 20px auto;
  width: min(580px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    rgba(8, 11, 17, 0.94);
  box-shadow: 0 44px 120px rgba(0, 0, 0, 0.52);
  overflow: auto;
  transform: translateX(32px) scale(0.98);
  transition: transform 340ms var(--curve);
  pointer-events: auto;
}

.spotlight-shell.open .spotlight-panel {
  transform: translateX(0) scale(1);
}

.spotlight-close {
  position: sticky;
  top: 0;
  z-index: 4;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.78);
  color: var(--text);
  cursor: pointer;
  transition: transform 220ms var(--curve), border-color 220ms var(--curve);
}

.spotlight-close:hover,
.spotlight-close:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.spotlight-body {
  margin-top: 8px;
}

.spotlight-card {
  position: relative;
  display: grid;
  gap: 18px;
}

.spotlight-hero {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
    rgba(11, 15, 22, 0.92);
}

.spotlight-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.16), transparent 18%),
    linear-gradient(145deg, color-mix(in srgb, var(--brand-a, #d4b27b) 38%, transparent), transparent 52%);
  pointer-events: none;
}

.spotlight-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

.spotlight-brand {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

.spotlight-hero-visual {
  position: relative;
  min-height: 236px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 9, 14, 0.72);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.26),
    0 0 44px var(--brand-glow, rgba(212, 178, 123, 0.2));
}

.spotlight-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.spotlight-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(5, 7, 11, 0.1) 28%, rgba(5, 7, 11, 0.7) 100%),
    linear-gradient(135deg, color-mix(in srgb, var(--brand-b, #101318) 48%, transparent), transparent 58%);
}

.spotlight-logo-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.spotlight-copy-head {
  display: grid;
  gap: 6px;
}

.spotlight-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)),
    linear-gradient(135deg, color-mix(in srgb, var(--brand-a, #d4b27b) 58%, rgba(255, 255, 255, 0.22)), color-mix(in srgb, var(--brand-b, #11151d) 90%, rgba(0, 0, 0, 0.2)));
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.28),
    0 0 54px var(--brand-glow, rgba(212, 178, 123, 0.3));
}

.spotlight-logo::before,
.spotlight-logo::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  animation: slow-spin 18s linear infinite;
}

.spotlight-logo::before {
  inset: -18px;
}

.spotlight-logo::after {
  inset: -32px;
  opacity: 0.5;
  animation-direction: reverse;
  animation-duration: 24s;
}

.spotlight-logo-mark {
  position: relative;
  z-index: 1;
  font-size: 1.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.spotlight-logo-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.logo-image {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.22));
}

.logo-image.on-light {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  padding: 10px;
}

.spotlight-hero-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--brand-a, #d4b27b) 22%, transparent), transparent 70%);
}

.spotlight-hero-art-svg {
  width: 124px;
  height: 124px;
  opacity: 0.92;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.32));
}

.logo-wordmark {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0 6px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
}

.spotlight-copy h2 {
  margin: 0;
  font-size: clamp(1.72rem, 3vw, 2.38rem);
  line-height: 0.98;
}

.spotlight-focus {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.spotlight-summary {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
}

.spotlight-hero-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.spotlight-orbit-card,
.spotlight-side-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.02);
}

.spotlight-orbit-card::before,
.spotlight-side-card::before {
  content: "";
  position: absolute;
  inset: -20% auto auto 48%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand-a, #d4b27b) 26%, transparent), transparent 66%);
  opacity: 0.8;
  pointer-events: none;
}

.spotlight-orbit-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.spotlight-orbit-visual {
  position: relative;
  height: 126px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.12), transparent 36%),
    linear-gradient(135deg, color-mix(in srgb, var(--brand-a, #d4b27b) 18%, transparent), transparent 64%);
}

.spotlight-orbit-ring,
.spotlight-orbit-ring::before,
.spotlight-orbit-ring::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 114px;
  height: 114px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: translate(-50%, -50%);
}

.spotlight-orbit-ring::before,
.spotlight-orbit-ring::after {
  content: "";
}

.spotlight-orbit-ring::before {
  width: 74px;
  height: 74px;
  opacity: 0.7;
}

.spotlight-orbit-ring::after {
  width: 146px;
  height: 146px;
  opacity: 0.35;
}

.spotlight-orbit-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--brand-a, #d4b27b) 54%, #fff));
  box-shadow: 0 0 20px color-mix(in srgb, var(--brand-a, #d4b27b) 42%, transparent);
}

.spotlight-orbit-dot.dot-a {
  left: calc(50% + 48px);
  top: calc(50% - 38px);
}

.spotlight-orbit-dot.dot-b {
  left: calc(50% - 58px);
  top: calc(50% + 18px);
  width: 10px;
  height: 10px;
}

.spotlight-orbit-copy {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.spotlight-orbit-copy strong,
.spotlight-side-card strong {
  display: block;
  font-size: 0.96rem;
  line-height: 1.35;
}

.spotlight-orbit-copy p,
.spotlight-side-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.spotlight-dossier-grid,
.spotlight-entity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.spotlight-stat {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.spotlight-stat span {
  display: block;
  color: var(--soft);
  font-size: 0.72rem;
  line-height: 1.3;
}

.spotlight-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 0.94rem;
  line-height: 1.45;
}

.spotlight-dossier-card,
.spotlight-entity-card {
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.02);
}

.spotlight-dossier-card span,
.spotlight-entity-card span {
  display: block;
  color: var(--soft);
  font-size: 0.72rem;
  line-height: 1.35;
}

.spotlight-dossier-card strong,
.spotlight-entity-card strong {
  display: block;
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.spotlight-dossier-card p,
.spotlight-entity-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.spotlight-section {
  padding: 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.spotlight-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.spotlight-section-head h3 {
  margin: 8px 0 0;
  font-size: 1.04rem;
  line-height: 1.2;
}

.spotlight-tags,
.spotlight-relations {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.spotlight-tag,
.relation-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.84rem;
}

.relation-pill {
  cursor: pointer;
  transition: transform 220ms var(--curve), border-color 220ms var(--curve), background 220ms var(--curve);
}

.relation-pill:hover,
.relation-pill:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.spotlight-timeline {
  display: grid;
  gap: 12px;
}

.spotlight-step {
  position: relative;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.spotlight-step-year {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.spotlight-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.58;
}

.spotlight-step strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.94rem;
}

.spotlight-tension-list {
  display: grid;
  gap: 10px;
}

.spotlight-tension-item {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.spotlight-tension-item strong {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.4;
}

.spotlight-tension-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.58;
}

@keyframes slow-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.84);
    opacity: 0.18;
  }
  60% {
    transform: scale(1.08);
    opacity: 0.42;
  }
  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

@keyframes drift-grid {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(18px, -18px, 0);
  }
}

@media (max-width: 1080px) {
  body {
    overflow: auto;
  }

  .atlas-shell {
    padding: 10px;
  }

  .atlas-stage-card {
    min-height: 100dvh;
    padding: 10px;
  }

  .atlas-topbar {
    position: relative;
    inset: auto;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .atlas-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .atlas-stage {
    min-height: calc(100dvh - 150px);
  }

  #graph-canvas {
    height: calc(100dvh - 150px);
  }

  .cluster {
    display: none;
  }

  .spotlight-panel {
    inset: auto 10px 10px 10px;
    width: auto;
    max-height: calc(100dvh - 20px);
  }
}

@media (max-width: 720px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .atlas-shell {
    padding: 0;
  }

  .atlas-stage-card,
  .spotlight-shell {
    display: none;
  }

  .mobile-list-shell {
    display: block;
    min-height: 100dvh;
    padding: 18px 14px 28px;
  }

  .mobile-list-header {
    margin-bottom: 18px;
  }

  .mobile-list-header h2 {
    font-size: 1.42rem;
  }

  .mobile-list-header p {
    font-size: 0.88rem;
  }

  .mobile-entry-button {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
  }

  .mobile-entry-media {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  .mobile-entry-summary h4 {
    font-size: 0.94rem;
  }

  .mobile-entry-summary p {
    font-size: 0.8rem;
  }

  .mobile-entry-section {
    padding: 10px;
    border-radius: 14px;
  }
}
