.visitor-window {
  width: min(1080px, calc(100vw - 42px));
  max-width: none;
  max-height: calc(100dvh - 26px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  box-shadow:
    0 22px 90px #152e3d4d,
    0 3px 12px #142f4026;
  overflow: auto;
  overscroll-behavior: contain;
}
.visitor-panel {
  --atlas-paper: #f8f7ed;
  container: atlas / inline-size;
  width: 100%;
  overflow: hidden;
  border: 1px solid #94a99f;
  border-radius: 12px;
  background: var(--atlas-paper);
  color: #223e42;
  font:
    14px/1.4 system-ui,
    sans-serif;
}
.visitor-window::backdrop {
  background: #19363e63;
}
.visitor-window[data-standalone]::backdrop {
  background: #dce6e2;
}
.visitor-panel button,
.atlas-index summary {
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.visitor-panel :is(button, summary):focus-visible {
  outline: 2px solid #bb582e;
  outline-offset: 2px;
}
.visitor-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 13px;
  background: var(--atlas-paper);
  border-bottom: 1px solid #667d7b;
}
.atlas-app-icon {
  color: #39726d;
  font:
    22px/1 Georgia,
    serif;
}
.visitor-bar h3 {
  font-size: 14px;
  font-weight: 690;
}
.atlas-rule {
  flex: 1;
  height: 10px;
  opacity: 0.52;
  background: repeating-linear-gradient(
    0deg,
    #708780 0 1px,
    transparent 1px 3px
  );
}
.atlas-size-toggle {
  width: 29px;
  height: 27px;
  border: 1px solid #82938b;
  border-radius: 5px;
  background: #fffcf3;
  font: 20px/1 system-ui;
}
.atlas-size-toggle:hover,
.atlas-controls button:hover:not(:disabled) {
  background: #e6efe6;
}
.atlas-body {
  position: relative;
  isolation: isolate;
}
.atlas-map {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  height: clamp(310px, 68dvh, 650px);
  touch-action: none;
  cursor: grab;
  outline: none;
  user-select: none;
  background: radial-gradient(
    ellipse at 57% 53%,
    #a4ced9 0%,
    #76aabc 39%,
    #4a849f 73%,
    #396c89 100%
  );
}
.atlas-map:active {
  cursor: grabbing;
}
.about-atlas .atlas-map {
  height: clamp(230px, 65cqi, 420px);
  touch-action: pan-y;
}
.atlas-map::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 16px 24px, #f3fffdc4 85%, transparent),
    radial-gradient(1.4px 1.4px at 77px 91px, #e9fafca3 75%, transparent),
    radial-gradient(1px 1px at 45px 12px, #f8fffc99 80%, transparent);
  background-size:
    97px 127px,
    151px 167px,
    113px 79px;
}
.atlas-map::before {
  content: "";
  z-index: -1;
  pointer-events: none;
  position: absolute;
  left: var(--globe-x, 55%);
  top: var(--globe-y, 52%);
  transform: translate(-50%, -50%);
  width: calc(var(--globe-d, 300px) * 1.32);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    transparent 65%,
    #ddf7f593 75%,
    #d9f4fd4d 80%,
    #e1fafe16 90%,
    transparent
  );
}
.atlas-map canvas,
.atlas-pins {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.atlas-map canvas {
  z-index: 0;
}
.atlas-pins {
  z-index: 1;
  pointer-events: none;
}
.atlas-anchor {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  --pin-size: clamp(35px, 4.8vw, 55px);
}
.atlas-anchor[hidden] {
  display: none;
}
.atlas-anchor::before {
  content: "";
  position: absolute;
  left: -5px;
  top: -2px;
  width: 10px;
  height: 5px;
  border-radius: 50%;
  background: #31515a9c;
  box-shadow: 0 0 0 2px #f2fae783;
}
.atlas-pin {
  pointer-events: auto;
  position: absolute;
  left: 0;
  bottom: 3px;
  transform: translateX(-50%);
  transform-origin: center bottom;
  width: var(--pin-size);
  height: var(--pin-size);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  isolation: isolate;
  filter: drop-shadow(0 2px 2px #23414d58);
}
.atlas-pin::before {
  content: "";
  position: absolute;
  left: calc(50% - 4px);
  bottom: -3px;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  transform: rotate(45deg);
  background: #fffdf4;
  z-index: -1;
}
.atlas-face {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid #fffdf5;
  background: #fffdf5;
  box-shadow: 0 0 0 1px #28434665;
  transform: translate(calc(var(--layer) * 5px), calc(var(--layer) * -3px));
}
.atlas-face svg {
  width: 100%;
  height: 100%;
  display: block;
}
.atlas-bead {
  position: absolute;
  right: -3px;
  top: -2px;
  display: grid;
  place-items: center;
  min-width: 12px;
  height: 12px;
  padding: 0 2px;
  border-radius: 10px;
  border: 1.5px solid white;
  color: #fff;
  background: #3e8c76;
  font: 700 10px/1 system-ui;
}
.atlas-bead:not(:empty) {
  min-width: 17px;
  height: 17px;
  background: #305f58;
}
.is-unknown .atlas-bead {
  background: #b97531;
}
.atlas-tag {
  position: absolute;
  top: 8px;
  left: 0;
  transform: translateX(-50%);
  display: none;
  width: max-content;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 9px;
  border: 1px solid #4e74718c;
  border-radius: 16px;
  background: #fffdf2f5;
  color: #294948;
  box-shadow: 0 1px 4px #29495426;
  font: 600 11px/1.4 system-ui;
}
.atlas-anchor:is(.is-selected, :hover) .atlas-tag {
  display: block;
}
.atlas-anchor:is(.is-selected, :hover) .atlas-face:last-of-type,
.atlas-pin:hover .atlas-face {
  border-color: #fff;
}
.atlas-places {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 4;
  width: 220px;
  padding: 15px 16px 8px;
  border: 1px solid #57777991;
  border-radius: 12px;
  background: #fbfaf1f5;
  box-shadow: 0 4px 16px #2e566825;
}
.atlas-places small {
  display: block;
  font:
    600 10px/1.2 ui-monospace,
    monospace;
  letter-spacing: 0.1em;
  color: #597069;
}
.atlas-summary {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 9px 0 11px;
}
.atlas-summary strong {
  font:
    600 39px/0.98 Georgia,
    "Times New Roman",
    serif;
  font-variant-numeric: lining-nums tabular-nums;
}
.atlas-summary span {
  color: #48665e;
  font: 500 13px/1.3 system-ui;
}
.atlas-live-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #45655a;
  font-size: 11px;
}
.atlas-live-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9caaa4;
}
.visitor-panel[data-connection="live"] .atlas-live-label::before {
  background: #398462;
}
.atlas-index {
  position: relative;
  margin-top: 6px;
}
.atlas-index summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px;
  list-style: none;
  color: #4b655d;
  font-size: 12px;
}
.atlas-index summary::-webkit-details-marker {
  display: none;
}
.atlas-index summary::after {
  content: "⌄";
  font: 16px/1 system-ui;
}
.atlas-index[open] summary::after {
  transform: rotate(180deg);
}
.place-list {
  position: absolute;
  top: calc(100% + 9px);
  left: -16px;
  right: -16px;
  display: grid;
  gap: 2px;
  border: 1px solid #71908a;
  border-radius: 9px;
  padding: 5px 8px;
  background: var(--atlas-paper);
  max-height: min(32dvh, 240px);
  overflow: auto;
  overscroll-behavior: contain;
  font-size: 12px;
}
.place-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  width: 100%;
  padding: 6px 7px;
  border: 0;
  border-radius: 5px;
  color: #2d5149;
  background: transparent;
  text-align: start;
  font-size: 12px;
}
.place-list button:is([aria-pressed="true"], :hover) {
  background: #e3eadb;
}
.place-list b {
  font:
    600 11px ui-monospace,
    monospace;
}
.atlas-controls {
  position: absolute;
  bottom: 13px;
  right: 14px;
  z-index: 2;
  display: flex;
  overflow: hidden;
  border: 1px solid #688780;
  border-radius: 8px;
  background: #fffdf1f2;
  box-shadow: 0 2px 8px #28536a22;
}
.atlas-controls button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 32px;
  border: 0;
  background: none;
  font-size: 19px;
}
.atlas-controls button + button {
  border-left: 1px solid #b5c5bb;
}
.atlas-controls button:disabled {
  opacity: 0.4;
  cursor: default;
}
.atlas-compass {
  display: grid;
  place-items: center;
  gap: 3px;
  position: absolute;
  right: 18px;
  top: 17px;
  pointer-events: none;
  font:
    600 10px ui-monospace,
    monospace;
  color: #f7fff5;
}
.atlas-map:focus-visible ~ .atlas-compass {
  border-radius: 3px;
  background: #294d57;
  box-shadow: 0 0 0 4px #294d57;
}
.atlas-compass i {
  height: 16px;
  width: 9px;
  background: linear-gradient(90deg, #f8fffa 50%, #ace1e0 50%);
  clip-path: polygon(50% 0, 100% 100%, 50% 72%, 0 100%);
}
.atlas-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 9px 14px;
  border-top: 1px solid #92aaa1;
  color: #486159;
  font: 12px/1.45 system-ui;
}
#globe-hint {
  flex: none;
  color: #62736b;
  font-size: 11px;
}
@media (max-width: 680px) {
  .visitor-window {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
    border-radius: 10px;
  }
}
@container atlas (max-width: 680px) {
  .atlas-body {
    display: flex;
    flex-direction: column;
  }
  .atlas-map {
    height: clamp(225px, 48dvh, 475px);
  }
  .atlas-anchor {
    --pin-size: clamp(32px, 9vw, 46px);
  }
  .atlas-places {
    position: relative;
    order: -1;
    inset: auto;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px 12px;
    padding: 10px 13px 8px;
    border: 0;
    border-bottom: 1px solid #91aaa0;
    border-radius: 0;
    box-shadow: none;
  }
  .atlas-places small {
    grid-area: 1/1;
    font-size: 9px;
  }
  .atlas-summary {
    grid-area: 2/1;
    gap: 5px;
    margin: 0;
  }
  .atlas-summary strong {
    font-size: 28px;
  }
  .atlas-summary span {
    font-size: 11px;
  }
  .atlas-live-label {
    grid-area: 1/2;
    justify-self: end;
  }
  .atlas-index {
    grid-area: 2/2;
    margin: 0;
  }
  .atlas-index summary {
    justify-content: flex-end;
    gap: 6px;
    padding: 3px 1px;
  }
  .place-list {
    top: calc(100% + 6px);
    right: -3px;
    left: auto;
    width: min(270px, 78vw);
  }
  .atlas-compass {
    top: auto;
    bottom: 14px;
    left: 14px;
    right: auto;
  }
  .atlas-foot {
    align-items: start;
    padding: 8px 10px;
    font-size: 11px;
  }
  #globe-hint {
    font-size: 10px;
  }
}
@container atlas (max-width: 420px) {
  .atlas-foot {
    display: grid;
    gap: 4px;
  }
}
@media (max-height: 460px) and (min-width: 681px) {
  .atlas-map {
    height: calc(100dvh - 103px);
  }
  .atlas-places {
    top: 9px;
    left: 9px;
  }
}
