.atlas-map-canvas,
.atlas-label-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  outline: none;
}
.atlas-map-canvas {
  touch-action: none;
}
.atlas-label-canvas {
  pointer-events: none;
}
.maplibregl-popup-content {
  position: relative;
  border-radius: 3px;
  background: white;
  padding: 10px 10px 15px;
  pointer-events: auto;
  box-shadow: 0 1px 2px #0003;
}
.maplibregl-popup-close-button {
  position: absolute;
  right: 0;
  top: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 0 3px 0 0;
}
/* Compact header and a single map toolbar at the upper right. */
.topbar {
  right: auto;
  width: min(820px, calc(100% - 460px));
}
.map-tools {
  top: 20px;
  right: 20px;
  width: auto;
  height: 66px;
  padding: 8px;
  flex-direction: row;
  align-items: center;
  gap: 2px;
}
.map-tools .tool-divider {
  width: 1px;
  height: 28px;
  margin: 0 6px;
}
.map-tools > .layer-control {
  position: relative;
  inset: auto;
  width: 212px;
  overflow: visible;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.map-tools .layer-main {
  height: 48px;
}
.map-tools .layer-preview {
  width: 36px;
  height: 36px;
}
.map-tools .layer-menu {
  position: absolute;
  top: calc(100% + 16px);
  right: -9px;
  width: 300px;
  padding: 6px 14px 14px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.atlas-map-canvas {
  cursor: grab;
}
.atlas-map-canvas:active {
  cursor: grabbing;
}
@media (max-width: 760px) {
  .topbar {
    left: 12px;
    right: auto;
    width: calc(100% - 24px);
  }
  .map-tools {
    top: 90px;
    right: 12px;
    height: 54px;
    padding: 4px;
  }
  .map-tools > .layer-control {
    width: 170px;
  }
  .map-tools .layer-preview {
    display: none;
  }
}
