body.atlas-page {
  --atlas-panel-bg: linear-gradient(158deg, rgba(12, 21, 40, 0.86), rgba(8, 14, 28, 0.92));
  --atlas-panel-border: rgba(176, 200, 248, 0.24);
  --atlas-panel-shadow: inset 0 1px 0 rgba(232, 240, 255, 0.14), 0 12px 30px rgba(5, 10, 20, 0.34);
  --atlas-muted: rgba(220, 231, 250, 0.72);
  --atlas-marker-accent: #7edca0;
  --atlas-marker-glow: rgba(126, 220, 160, 0.18);
  color: #edf2ff;
}

body.atlas-page .main {
  align-items: stretch;
  justify-content: flex-start;
}

.atlas-page__shell {
  width: 100%;
  max-width: none;
  min-width: 0;
  display: grid;
  gap: 12px;
}

.atlas-hero,
.atlas-stage {
  width: 100%;
  max-width: none;
  margin: 0;
  border: 1px solid var(--atlas-panel-border);
  border-radius: 16px;
  background: var(--atlas-panel-bg);
  color: #edf2ff;
  box-shadow: var(--atlas-panel-shadow);
  backdrop-filter: blur(var(--glass-box-blur, 2px));
  -webkit-backdrop-filter: blur(var(--glass-box-blur, 2px));
}

.atlas-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: clamp(16px, 2vw, 24px);
}

.atlas-hero h1 {
  margin: 0;
  color: #f7f9ff;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.atlas-hero__subtitle {
  display: block;
  margin-top: 10px;
  color: rgba(226, 237, 255, 0.82);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  font-weight: 650;
}

.atlas-hero__question {
  max-width: min(92ch, 100%);
  margin: 16px 0 0;
  padding-left: 14px;
  border-left: 3px solid rgba(126, 220, 160, 0.62);
  color: rgba(245, 248, 255, 0.96);
  font-size: clamp(0.98rem, 1.02vw, 1.08rem);
  line-height: 1.55;
}

.atlas-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.atlas-stage {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.atlas-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(150px, 0.75fr) minmax(150px, 0.75fr) minmax(150px, 0.75fr) auto;
  gap: 8px;
  align-items: end;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(176, 200, 248, 0.16);
  border-radius: 10px;
  background: rgba(7, 13, 26, 0.72);
}

.atlas-toolbar__field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.atlas-toolbar__field span {
  color: rgba(226, 236, 255, 0.74);
  font: 760 0.7rem/1.2 var(--font-ui);
  text-transform: uppercase;
}

.atlas-toolbar .ui-input,
.atlas-toolbar .ui-select {
  width: 100%;
  min-width: 0;
}

.atlas-status {
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(176, 200, 248, 0.16);
  border-radius: 8px;
  background: rgba(7, 13, 26, 0.68);
  color: rgba(255, 242, 214, 0.96);
  font: 720 0.8rem/1.3 var(--font-ui);
}

.atlas-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 12px;
  min-width: 0;
  align-items: start;
}

.atlas-map-shell,
.atlas-panel {
  min-width: 0;
  border: 1px solid var(--atlas-panel-border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(10, 18, 34, 0.94), rgba(7, 13, 25, 0.9));
  box-shadow: inset 0 1px 0 rgba(232, 240, 255, 0.12);
  overflow: clip;
}

.atlas-map-shell {
  position: relative;
}

.atlas-map {
  width: 100%;
  min-height: clamp(420px, 66vh, 680px);
  background:
    linear-gradient(rgba(176, 200, 248, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 200, 248, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 28% 28%, rgba(126, 220, 160, 0.18), transparent 30%),
    radial-gradient(circle at 68% 42%, rgba(255, 210, 124, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(11, 24, 43, 0.96), rgba(5, 10, 21, 0.98));
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

.atlas-map--terrestrial-hidden {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 0;
  visibility: hidden;
  pointer-events: none;
}

.atlas-dbook-map {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: clamp(420px, 66vh, 680px);
  overflow: hidden;
  background:
    linear-gradient(rgba(190, 213, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190, 213, 255, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(7, 15, 28, 0.98), rgba(9, 19, 35, 0.98) 48%, rgba(5, 10, 21, 0.99));
  background-size: 54px 54px, 54px 54px, auto;
  isolation: isolate;
}

.atlas-dbook-map[hidden] {
  display: none;
}

.atlas-dbook-map__regions,
.atlas-dbook-map__markers {
  position: absolute;
  inset: 0;
}

.atlas-dbook-map__regions {
  z-index: 1;
}

.atlas-dbook-map__markers {
  z-index: 4;
}

.atlas-dbook-map__region {
  position: absolute;
  left: var(--atlas-region-x);
  top: var(--atlas-region-y);
  width: var(--atlas-region-width);
  height: var(--atlas-region-height);
  border: 1px solid rgba(176, 200, 248, 0.2);
  border-radius: 18px;
  background: rgba(44, 70, 108, 0.22);
  box-shadow: inset 0 1px 0 rgba(245, 248, 255, 0.08);
}

.atlas-dbook-map__region--north-america {
  background: rgba(69, 106, 126, 0.24);
}

.atlas-dbook-map__region--europe {
  background: rgba(83, 92, 136, 0.25);
}

.atlas-dbook-map__region--asia-pacific {
  background: rgba(68, 103, 93, 0.24);
}

.atlas-dbook-map__region--mena-antique {
  background: rgba(120, 95, 67, 0.23);
}

.atlas-dbook-map__region--global-networks {
  background: rgba(50, 93, 114, 0.24);
}

.atlas-dbook-map__region--regulation-sovereignty {
  background: rgba(96, 87, 118, 0.24);
}

.atlas-dbook-map__region-label {
  position: absolute;
  inset-block-start: 9px;
  inset-inline-start: 10px;
  max-width: calc(100% - 20px);
  color: rgba(234, 241, 255, 0.68);
  font: 780 0.68rem/1.15 var(--font-ui);
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.atlas-dbook-marker {
  appearance: none;
  position: absolute;
  z-index: 4;
  width: var(--atlas-marker-size, 20px);
  height: var(--atlas-marker-size, 20px);
  border: 2px solid rgba(5, 10, 21, 0.86);
  border-radius: 999px;
  background: var(--atlas-marker-accent);
  box-shadow: 0 0 0 4px rgba(245, 248, 255, 0.12), 0 0 0 9px var(--atlas-marker-glow), 0 12px 24px rgba(2, 8, 20, 0.42);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.atlas-dbook-marker:hover,
.atlas-dbook-marker:focus-visible,
.atlas-dbook-marker.is-active {
  z-index: 6;
  transform: translate(-50%, -50%) scale(1.08);
}

.atlas-dbook-marker:focus-visible {
  outline: 2px solid rgba(245, 248, 255, 0.86);
  outline-offset: 3px;
}

.atlas-dbook-marker.is-active {
  background: #ffd27c;
  box-shadow: 0 0 0 7px rgba(255, 210, 124, 0.22), 0 12px 26px rgba(2, 8, 20, 0.46);
}

.atlas-dbook-marker__label {
  position: absolute;
  inset-block-start: calc(100% + 7px);
  inset-inline-start: 50%;
  max-width: 150px;
  padding: 3px 6px;
  border: 1px solid rgba(190, 213, 255, 0.24);
  border-radius: 6px;
  background: rgba(5, 10, 21, 0.88);
  color: rgba(245, 248, 255, 0.9);
  font: 720 0.68rem/1.15 var(--font-ui);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  text-overflow: ellipsis;
  transform: translateX(-50%) translateY(-2px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  white-space: nowrap;
}

.atlas-dbook-marker:hover .atlas-dbook-marker__label,
.atlas-dbook-marker:focus-visible .atlas-dbook-marker__label,
.atlas-dbook-marker.is-active .atlas-dbook-marker__label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.atlas-dbook-marker--university {
  --atlas-marker-accent: #68c8dd;
  --atlas-marker-glow: rgba(104, 200, 221, 0.2);
}

.atlas-dbook-marker--laboratory {
  --atlas-marker-accent: #b29cff;
  --atlas-marker-glow: rgba(178, 156, 255, 0.2);
  border-radius: 8px;
}

.atlas-dbook-marker--company {
  --atlas-marker-accent: #ffc56f;
  --atlas-marker-glow: rgba(255, 197, 111, 0.2);
  border-radius: 7px;
}

.atlas-dbook-marker--government {
  --atlas-marker-accent: #9fb8e8;
  --atlas-marker-glow: rgba(159, 184, 232, 0.2);
  border-radius: 4px 999px 999px 4px;
}

.atlas-dbook-marker--infrastructure {
  --atlas-marker-accent: #78d6bd;
  --atlas-marker-glow: rgba(120, 214, 189, 0.2);
  border-radius: 4px;
}

.atlas-dbook-marker--city {
  --atlas-marker-accent: #8fd48b;
  --atlas-marker-glow: rgba(143, 212, 139, 0.2);
}

.atlas-dbook-marker--museum,
.atlas-dbook-marker--conference {
  --atlas-marker-accent: #f0aeb8;
  --atlas-marker-glow: rgba(240, 174, 184, 0.2);
}

.atlas-dbook-marker--region,
.atlas-dbook-marker--country {
  --atlas-marker-accent: #d5d08b;
  --atlas-marker-glow: rgba(213, 208, 139, 0.2);
  border-radius: 5px;
}

.atlas-dbook-legend {
  position: absolute;
  inset-inline-start: 10px;
  inset-block-end: 38px;
  z-index: 5;
  display: grid;
  gap: 2px;
  max-width: min(460px, calc(100% - 20px));
  border: 1px solid rgba(176, 200, 248, 0.22);
  border-radius: 8px;
  background: rgba(5, 10, 21, 0.84);
  color: rgba(245, 248, 255, 0.9);
  padding: 6px 8px;
  font: 720 0.72rem/1.25 var(--font-ui);
}

.atlas-dbook-legend strong {
  color: rgba(255, 242, 214, 0.96);
}

.atlas-dbook-legend span {
  color: rgba(226, 236, 255, 0.74);
}

.atlas-globe-map {
  --atlas-globe-zoom: 1;
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: clamp(420px, 66vh, 680px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(127, 176, 255, 0.16), transparent 32%),
    linear-gradient(rgba(190, 213, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190, 213, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(6, 12, 24, 0.99), rgba(9, 18, 34, 0.98));
  background-size: auto, 56px 56px, 56px 56px, auto;
  cursor: grab;
  isolation: isolate;
  touch-action: none;
}

.atlas-globe-map[hidden] {
  display: none;
}

.atlas-globe-map.is-dragging {
  cursor: grabbing;
}

.atlas-globe-map__sphere {
  position: relative;
  z-index: 2;
  inline-size: var(--atlas-globe-size, min(76vmin, 620px, calc(100% - 28px)));
  aspect-ratio: 1;
  border: 1px solid rgba(190, 213, 255, 0.32);
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 28%, rgba(226, 236, 255, 0.2), transparent 17%),
    radial-gradient(circle at 42% 38%, rgba(126, 220, 160, 0.18), transparent 24%),
    radial-gradient(circle at 66% 64%, rgba(255, 210, 124, 0.12), transparent 26%),
    radial-gradient(circle at 50% 50%, rgba(32, 62, 102, 0.94), rgba(11, 25, 48, 0.98) 62%, rgba(4, 9, 18, 1) 100%);
  box-shadow:
    inset -42px -36px 68px rgba(1, 5, 14, 0.62),
    inset 20px 18px 54px rgba(232, 240, 255, 0.08),
    0 0 0 8px rgba(126, 220, 160, 0.04),
    0 22px 70px rgba(2, 8, 20, 0.54);
}

.atlas-globe-map__sphere::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(245, 248, 255, 0.16), transparent 20%),
    radial-gradient(circle at 72% 72%, rgba(0, 0, 0, 0.36), transparent 38%);
  pointer-events: none;
  z-index: 3;
}

.atlas-globe-map__graticule,
.atlas-globe-map__marker-layer {
  position: absolute;
  inset: 0;
}

.atlas-globe-map__graticule {
  z-index: 1;
  border-radius: 50%;
  background:
    repeating-linear-gradient(90deg, transparent 0 11.6%, rgba(226, 236, 255, 0.11) 11.8%, transparent 12%),
    repeating-linear-gradient(0deg, transparent 0 11.6%, rgba(226, 236, 255, 0.095) 11.8%, transparent 12%);
  opacity: 0.7;
}

.atlas-globe-map__marker-layer {
  z-index: 4;
}

.atlas-globe-marker {
  appearance: none;
  position: absolute;
  z-index: 5;
  width: var(--atlas-marker-size, 20px);
  height: var(--atlas-marker-size, 20px);
  border: 2px solid rgba(5, 10, 21, 0.86);
  border-radius: 999px;
  background: var(--atlas-marker-accent);
  box-shadow: 0 0 0 4px rgba(245, 248, 255, 0.13), 0 0 0 9px var(--atlas-marker-glow), 0 12px 24px rgba(2, 8, 20, 0.42);
  opacity: var(--atlas-globe-marker-opacity, 1);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: opacity 0.14s ease, transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.atlas-globe-marker:hover,
.atlas-globe-marker:focus-visible,
.atlas-globe-marker.is-active {
  z-index: 7;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.atlas-globe-marker:focus-visible {
  outline: 2px solid rgba(245, 248, 255, 0.88);
  outline-offset: 3px;
}

.atlas-globe-marker.is-active {
  background: #ffd27c;
  box-shadow: 0 0 0 7px rgba(255, 210, 124, 0.24), 0 12px 26px rgba(2, 8, 20, 0.48);
}

.atlas-globe-marker.is-backside {
  pointer-events: none;
  filter: saturate(0.2);
}

.atlas-globe-marker__label {
  position: absolute;
  inset-block-start: calc(100% + 7px);
  inset-inline-start: 50%;
  max-width: 150px;
  padding: 3px 6px;
  border: 1px solid rgba(190, 213, 255, 0.24);
  border-radius: 6px;
  background: rgba(5, 10, 21, 0.9);
  color: rgba(245, 248, 255, 0.92);
  font: 720 0.68rem/1.15 var(--font-ui);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  text-overflow: ellipsis;
  transform: translateX(-50%) translateY(-2px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  white-space: nowrap;
}

.atlas-globe-marker:hover .atlas-globe-marker__label,
.atlas-globe-marker:focus-visible .atlas-globe-marker__label,
.atlas-globe-marker.is-active .atlas-globe-marker__label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.atlas-globe-marker--university {
  --atlas-marker-accent: #68c8dd;
  --atlas-marker-glow: rgba(104, 200, 221, 0.2);
}

.atlas-globe-marker--laboratory {
  --atlas-marker-accent: #b29cff;
  --atlas-marker-glow: rgba(178, 156, 255, 0.2);
  border-radius: 8px;
}

.atlas-globe-marker--company {
  --atlas-marker-accent: #ffc56f;
  --atlas-marker-glow: rgba(255, 197, 111, 0.2);
  border-radius: 7px;
}

.atlas-globe-marker--government {
  --atlas-marker-accent: #9fb8e8;
  --atlas-marker-glow: rgba(159, 184, 232, 0.2);
  border-radius: 4px 999px 999px 4px;
}

.atlas-globe-marker--infrastructure {
  --atlas-marker-accent: #78d6bd;
  --atlas-marker-glow: rgba(120, 214, 189, 0.2);
  border-radius: 4px;
}

.atlas-globe-marker--city {
  --atlas-marker-accent: #8fd48b;
  --atlas-marker-glow: rgba(143, 212, 139, 0.2);
}

.atlas-globe-marker--museum,
.atlas-globe-marker--conference {
  --atlas-marker-accent: #f0aeb8;
  --atlas-marker-glow: rgba(240, 174, 184, 0.2);
}

.atlas-globe-marker--region,
.atlas-globe-marker--country {
  --atlas-marker-accent: #d5d08b;
  --atlas-marker-glow: rgba(213, 208, 139, 0.2);
  border-radius: 5px;
}

.atlas-globe-legend {
  position: absolute;
  inset-inline-start: 10px;
  inset-block-end: 38px;
  z-index: 6;
  display: grid;
  gap: 2px;
  max-width: min(540px, calc(100% - 20px));
  border: 1px solid rgba(176, 200, 248, 0.22);
  border-radius: 8px;
  background: rgba(5, 10, 21, 0.84);
  color: rgba(245, 248, 255, 0.9);
  padding: 6px 8px;
  font: 720 0.72rem/1.25 var(--font-ui);
}

.atlas-globe-legend strong {
  color: rgba(255, 242, 214, 0.96);
}

.atlas-globe-legend span {
  color: rgba(226, 236, 255, 0.74);
}

.atlas-page__shell.is-dbook-map-mode .atlas-map {
  background:
    linear-gradient(rgba(226, 236, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 236, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 20% 24%, rgba(126, 220, 160, 0.14), transparent 28%),
    radial-gradient(circle at 62% 46%, rgba(255, 210, 124, 0.12), transparent 30%),
    radial-gradient(circle at 74% 72%, rgba(177, 157, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(9, 17, 31, 0.98), rgba(5, 10, 21, 0.98));
  background-size: 56px 56px, 56px 56px, auto, auto, auto, auto;
}

.atlas-page__shell.is-dbook-map-mode .leaflet-tile-pane {
  opacity: 0.23;
  filter: saturate(0.42) contrast(0.9) brightness(0.82);
}

.atlas-page__shell.is-dbook-map-mode .leaflet-control-attribution {
  opacity: 0.9;
}

.atlas-map-attribution {
  position: absolute;
  inset-inline: 8px;
  inset-block-end: 8px;
  z-index: 430;
  width: fit-content;
  max-width: calc(100% - 16px);
  padding: 4px 7px;
  border: 1px solid rgba(176, 200, 248, 0.22);
  border-radius: 7px;
  background: rgba(5, 10, 21, 0.84);
  color: rgba(245, 248, 255, 0.88);
  font-size: 0.68rem;
  line-height: 1.25;
}

.atlas-map-attribution a {
  color: #dbe9ff;
}

.atlas-map-fallback {
  position: relative;
  min-height: clamp(420px, 66vh, 680px);
  overflow: hidden;
}

.atlas-map-fallback::before {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px dashed rgba(176, 200, 248, 0.22);
  border-radius: 50%;
  opacity: 0.55;
}

.atlas-map-fallback__marker {
  position: absolute;
  z-index: 3;
  width: var(--atlas-marker-size, 20px);
  height: var(--atlas-marker-size, 20px);
  border: 2px solid rgba(5, 10, 21, 0.82);
  border-radius: 999px;
  background: var(--atlas-marker-accent);
  box-shadow: 0 0 0 5px var(--atlas-marker-glow), 0 8px 18px rgba(2, 8, 20, 0.36);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.atlas-map-fallback__marker.is-active {
  background: #ffd27c;
  box-shadow: 0 0 0 7px rgba(255, 210, 124, 0.22), 0 10px 22px rgba(2, 8, 20, 0.42);
}

.atlas-leaflet-marker {
  border: 2px solid rgba(5, 10, 21, 0.82);
  border-radius: 999px;
  background: var(--atlas-marker-accent);
  box-shadow: 0 0 0 5px var(--atlas-marker-glow), 0 8px 18px rgba(2, 8, 20, 0.36);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.atlas-leaflet-marker:focus-visible,
.atlas-map-fallback__marker:focus-visible {
  outline: 2px solid rgba(245, 248, 255, 0.86);
  outline-offset: 3px;
}

.atlas-leaflet-marker--university,
.atlas-map-fallback__marker--university {
  --atlas-marker-accent: #68c8dd;
  --atlas-marker-glow: rgba(104, 200, 221, 0.2);
}

.atlas-leaflet-marker--laboratory,
.atlas-map-fallback__marker--laboratory {
  --atlas-marker-accent: #b29cff;
  --atlas-marker-glow: rgba(178, 156, 255, 0.2);
  border-radius: 8px;
}

.atlas-leaflet-marker--company,
.atlas-map-fallback__marker--company {
  --atlas-marker-accent: #ffc56f;
  --atlas-marker-glow: rgba(255, 197, 111, 0.2);
  border-radius: 7px;
}

.atlas-leaflet-marker--government,
.atlas-map-fallback__marker--government {
  --atlas-marker-accent: #9fb8e8;
  --atlas-marker-glow: rgba(159, 184, 232, 0.2);
  border-radius: 4px 999px 999px 4px;
}

.atlas-leaflet-marker--infrastructure,
.atlas-map-fallback__marker--infrastructure {
  --atlas-marker-accent: #78d6bd;
  --atlas-marker-glow: rgba(120, 214, 189, 0.2);
  border-radius: 4px;
}

.atlas-leaflet-marker--city,
.atlas-map-fallback__marker--city {
  --atlas-marker-accent: #8fd48b;
  --atlas-marker-glow: rgba(143, 212, 139, 0.2);
}

.atlas-leaflet-marker--museum,
.atlas-map-fallback__marker--museum,
.atlas-leaflet-marker--conference,
.atlas-map-fallback__marker--conference {
  --atlas-marker-accent: #f0aeb8;
  --atlas-marker-glow: rgba(240, 174, 184, 0.2);
}

.atlas-leaflet-marker--region,
.atlas-map-fallback__marker--region,
.atlas-leaflet-marker--country,
.atlas-map-fallback__marker--country {
  --atlas-marker-accent: #d5d08b;
  --atlas-marker-glow: rgba(213, 208, 139, 0.2);
  border-radius: 5px;
}

.atlas-page__shell.is-dbook-map-mode .atlas-leaflet-marker,
.atlas-page__shell.is-dbook-map-mode .atlas-map-fallback__marker {
  box-shadow: 0 0 0 3px rgba(245, 248, 255, 0.16), 0 0 0 8px var(--atlas-marker-glow), 0 10px 24px rgba(2, 8, 20, 0.42);
}

.atlas-leaflet-marker.is-active {
  background: #ffd27c;
  box-shadow: 0 0 0 7px rgba(255, 210, 124, 0.22), 0 10px 22px rgba(2, 8, 20, 0.42);
}

.atlas-panel {
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 38px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.atlas-panel__inner {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.atlas-panel h2 {
  margin: 0;
  color: #f7f9ff;
  font-size: clamp(1.16rem, 1.35vw, 1.45rem);
  line-height: 1.18;
}

.atlas-panel h3 {
  margin: 0;
  color: rgba(244, 248, 255, 0.96);
  font-size: 0.8rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.atlas-panel p {
  margin: 0;
  color: rgba(226, 236, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.48;
}

.atlas-panel__kicker,
.atlas-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  border: 1px solid rgba(127, 176, 255, 0.28);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(127, 176, 255, 0.08);
  color: rgba(238, 245, 255, 0.92);
  font-size: 0.74rem;
  line-height: 1.2;
}

.atlas-panel__section,
.atlas-event-detail,
.atlas-source-list {
  display: grid;
  gap: 7px;
}

.atlas-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.atlas-profile-metric {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid rgba(143, 170, 221, 0.22);
  border-radius: 8px;
  background: rgba(8, 15, 29, 0.5);
  padding: 8px;
}

.atlas-profile-metric span {
  color: rgba(226, 236, 255, 0.68);
  font: 720 0.68rem/1.2 var(--font-ui);
  text-transform: uppercase;
}

.atlas-profile-metric strong {
  min-width: 0;
  color: rgba(245, 248, 255, 0.95);
  font: 760 0.85rem/1.2 var(--font-ui);
  overflow-wrap: anywhere;
}

.atlas-place-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.atlas-comparison-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 210, 124, 0.3);
  border-radius: 8px;
  background: rgba(255, 210, 124, 0.08);
  padding: 9px;
}

.atlas-comparison-card strong {
  color: rgba(255, 242, 214, 0.98);
  font-size: 0.86rem;
}

.atlas-mini-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
  gap: 5px;
  align-items: end;
}

.atlas-mini-timeline__event {
  appearance: none;
  display: grid;
  align-content: end;
  min-height: 46px;
  min-width: 0;
  border: 1px solid rgba(143, 170, 221, 0.24);
  border-radius: 7px;
  background: rgba(13, 24, 43, 0.64);
  color: rgba(238, 245, 255, 0.88);
  padding: 5px;
  cursor: pointer;
}

.atlas-mini-timeline__event::before {
  content: "";
  display: block;
  height: var(--atlas-timeline-height, 18px);
  min-height: 8px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 210, 124, 0.92), rgba(126, 220, 160, 0.8));
}

.atlas-mini-timeline__event span {
  margin-top: 4px;
  color: rgba(245, 248, 255, 0.88);
  font: 720 0.64rem/1.1 var(--font-mono);
}

.atlas-mini-timeline__event:hover,
.atlas-mini-timeline__event:focus-visible,
.atlas-mini-timeline__event.is-active {
  border-color: rgba(188, 211, 255, 0.58);
  background: rgba(127, 176, 255, 0.14);
  outline: none;
}

.atlas-event-actions,
.atlas-concept-list,
.atlas-place-chip-list,
.atlas-related-place-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.atlas-event-list {
  display: grid;
  gap: 7px;
}

.atlas-event-button {
  appearance: none;
  display: grid;
  grid-template-columns: minmax(70px, auto) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(143, 170, 221, 0.24);
  border-radius: 8px;
  background: rgba(13, 24, 43, 0.64);
  color: rgba(238, 245, 255, 0.9);
  padding: 7px 8px;
  text-align: left;
  cursor: pointer;
}

.atlas-event-button:hover,
.atlas-event-button:focus-visible,
.atlas-event-button.is-active {
  border-color: rgba(188, 211, 255, 0.58);
  background: rgba(127, 176, 255, 0.14);
  outline: none;
}

.atlas-event-button__year {
  color: #ffffff;
  font: 720 0.72rem/1.15 var(--font-mono);
}

.atlas-event-button__title {
  min-width: 0;
  overflow-wrap: anywhere;
  font: 720 0.82rem/1.2 var(--font-ui);
}

.atlas-concept-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(127, 176, 255, 0.28);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(127, 176, 255, 0.08);
  color: rgba(238, 245, 255, 0.92);
  font-size: 0.76rem;
  line-height: 1.2;
  text-decoration: none;
}

.atlas-concept-chip:hover,
.atlas-concept-chip:focus-visible {
  border-color: rgba(188, 211, 255, 0.58);
  background: rgba(127, 176, 255, 0.14);
  outline: none;
}

.atlas-context-menu {
  position: fixed;
  z-index: 10050;
  display: grid;
  gap: 3px;
  width: min(270px, calc(100vw - 16px));
  max-height: min(70vh, 420px);
  overflow-y: auto;
  border: 1px solid rgba(188, 211, 255, 0.34);
  border-radius: 9px;
  background: rgba(8, 14, 28, 0.96);
  color: rgba(245, 248, 255, 0.94);
  box-shadow: 0 18px 48px rgba(2, 8, 20, 0.46), inset 0 1px 0 rgba(232, 240, 255, 0.12);
  padding: 7px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.atlas-context-menu__title {
  padding: 4px 7px 6px;
  color: rgba(226, 236, 255, 0.72);
  font: 760 0.68rem/1.2 var(--font-ui);
  text-transform: uppercase;
}

.atlas-context-menu button {
  appearance: none;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 31px;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: rgba(245, 248, 255, 0.9);
  padding: 6px 8px;
  text-align: left;
  cursor: pointer;
  font: 720 0.82rem/1.2 var(--font-ui);
}

.atlas-context-menu button:hover,
.atlas-context-menu button:focus-visible {
  border-color: rgba(188, 211, 255, 0.34);
  background: rgba(127, 176, 255, 0.14);
  outline: none;
}

.atlas-source-list summary {
  width: fit-content;
  color: rgba(238, 245, 255, 0.92);
  cursor: pointer;
  font: 720 0.8rem/1.25 var(--font-ui);
}

.atlas-source-list__items {
  display: grid;
  gap: 6px;
  margin-top: 7px;
}

.atlas-source-link {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid rgba(143, 170, 221, 0.22);
  border-radius: 8px;
  background: rgba(8, 15, 29, 0.46);
  color: rgba(238, 245, 255, 0.9);
  padding: 8px;
  text-decoration: none;
}

.atlas-source-link:hover,
.atlas-source-link:focus-visible {
  border-color: rgba(255, 210, 124, 0.52);
  outline: none;
}

.atlas-source-link span {
  color: rgba(226, 236, 255, 0.72);
  font-size: 0.74rem;
  line-height: 1.3;
}

.atlas-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(232, 240, 255, 0.76);
  text-align: center;
}

.atlas-state--error {
  color: rgba(255, 213, 198, 0.9);
}

@media (max-width: 1180px) {
  .atlas-hero,
  .atlas-workspace {
    grid-template-columns: 1fr;
  }

  .atlas-hero__actions {
    justify-content: flex-start;
  }

  .atlas-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 760px) {
  body.atlas-page .main {
    padding-inline: clamp(10px, 3.8vw, 16px);
  }

  .atlas-hero,
  .atlas-stage {
    border-radius: 14px;
  }

  .atlas-hero {
    padding: 13px;
  }

  .atlas-hero h1 {
    font-size: clamp(1.7rem, 10vw, 2.45rem);
  }

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

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

  .atlas-map,
  .atlas-map-fallback,
  .atlas-globe-map {
    min-height: 420px;
  }

  .atlas-page__shell.is-dbook-map-mode .atlas-map-shell {
    overflow-x: auto;
  }

  .atlas-dbook-map {
    min-width: 620px;
    min-height: 430px;
  }

  .atlas-dbook-map__region-label {
    font-size: 0.6rem;
  }

  .atlas-dbook-marker__label {
    max-width: 118px;
  }

  .atlas-dbook-legend {
    inset-inline: 8px;
    inset-block-end: 38px;
    max-width: calc(100% - 16px);
    font-size: 0.66rem;
  }

  .atlas-globe-map__sphere {
    inline-size: var(--atlas-globe-size, min(92vw, calc(100% - 20px)));
  }

  .atlas-globe-marker__label {
    max-width: 112px;
  }

  .atlas-globe-legend {
    inset-inline: 8px;
    inset-block-end: 38px;
    max-width: calc(100% - 16px);
    font-size: 0.64rem;
  }

  .atlas-event-button {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
