.crop-atlas {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  min-height: 240px;
  overflow: hidden;
  color: #263f34;
  background: #edece4;
  border-radius: inherit;
  font-family: system-ui, sans-serif;
}
.crop-atlas:focus-visible { outline: 3px solid #9b542d; outline-offset: -3px; }
.atlas-paper, .atlas-markers { position: absolute; inset: 0; width: 100%; height: 100%; }
.atlas-paper { display: block; cursor: grab; touch-action: none; user-select: none; }
.atlas-dragging .atlas-paper { cursor: grabbing; }
.atlas-markers { z-index: 0; pointer-events: none; }
.atlas-location {
  position: absolute;
  z-index: 3;
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  border: 2px solid white;
  border-radius: 50%;
  background: #176bad;
  box-shadow: 0 0 0 1px #165485, 0 1px 5px #163d5980;
  pointer-events: none;
}
.atlas-user-badge {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px 3px 5px;
  border: 2px solid white;
  border-radius: 16px;
  color: white;
  background: #145d94;
  box-shadow: 0 1px 4px #163d5966;
  font: 700 12px/1 system-ui, sans-serif;
  user-select: none;
}
.atlas-user-badge svg { width: 17px; height: 17px; }
.atlas-user-badge path { fill: currentColor; stroke: none; }
.atlas-location::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 2px;
  height: 12px;
  transform: translateX(-50%);
  background: #145d94;
  box-shadow: 0 0 0 1px white;
}
.atlas-location-below .atlas-user-badge { top: calc(100% + 12px); bottom: auto; }
.atlas-location-below::after { top: 100%; bottom: auto; }
.atlas-location::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: var(--accuracy-diameter, 0);
  height: var(--accuracy-diameter, 0);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #2672ae1c;
  box-shadow: inset 0 0 0 1px #2672ae66;
}
.crop-atlas button {
  appearance: none;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.crop-atlas button:focus-visible { outline: 3px solid #9d4522; outline-offset: 3px; z-index: 5; }
.atlas-pin {
  position: absolute;
  pointer-events: auto;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  color: #fffdf0;
  background: #356546;
  border: 2px solid #ffffef;
  border-radius: 50%;
  box-shadow: 0 1px 4px #354a3552;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  touch-action: manipulation;
}
.atlas-pin::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; }
.atlas-pin svg { width: 18px; height: 18px; }
.atlas-cluster { min-width: 34px; width: auto; padding: 0 7px; }
.atlas-pin:hover { z-index: 3; background: #254f36; }
.atlas-pin.atlas-selected {
  z-index: 4;
  background: #a85232;
  border-color: #fff6de;
  box-shadow: 0 0 0 3px #b66d425c, 0 2px 4px #553b2855;
}
.atlas-tools {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 34px;
  display: grid;
  gap: 0;
  padding: 1px;
  border: 1px solid #c6c8b9;
  background: #fffcf2;
  border-radius: 9px;
  box-shadow: 0 2px 8px #273c2c21;
}
.atlas-control {
  display: grid;
  place-items: center;
  width: 38px;
  height: 37px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: none;
  color: #344e3f;
  background: transparent;
  font-size: 23px;
  line-height: 1;
  font-weight: 500;
}
.atlas-control + .atlas-control { border-top: 1px solid #ddded0; }
.atlas-control:hover { background: #edefdf; }
.atlas-control:first-child { border-radius: 7px 7px 0 0; }
.atlas-control:last-child { border-radius: 0 0 7px 7px; }
.atlas-control:disabled { opacity: .4; cursor: default; }
.atlas-reset svg { width: 20px; height: 20px; }
.atlas-scale {
  box-sizing: border-box;
  position: absolute;
  left: 12px;
  bottom: 8px;
  height: 16px;
  min-width: 20px;
  color: #324e43;
  border: solid #596f61;
  border-width: 0 1px 2px;
  text-shadow: 0 0 3px #ffffed, 1px 1px 2px #ffffed;
  font: 600 9px/12px system-ui, sans-serif;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}
.atlas-credit {
  position: absolute;
  z-index: 4;
  bottom: 0;
  right: 0;
  padding: 3px 7px;
  color: #4d5d4c;
  border-top-left-radius: 4px;
  background: #f5f5e5e8;
  font: 10px/1.2 system-ui, sans-serif;
}
.atlas-credit a { color: inherit; }
.atlas-feedback {
  position: absolute;
  z-index: 4;
  bottom: 30px;
  left: 12px;
  max-width: calc(100% - 80px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  pointer-events: none;
}
.atlas-status:not(:empty), .atlas-retry {
  padding: 6px 9px;
  border: 1px solid #b9beaa;
  border-radius: 5px;
  background: #fffdf4;
  color: #304e36;
  font: 12px/1.2 system-ui, sans-serif;
}
.atlas-retry { pointer-events: auto; text-decoration: underline; }
.atlas-picker {
  position: absolute; z-index: 6; bottom: 30px; left: 12px;
  width: min(265px, calc(100% - 75px));
  max-height: 60%; overflow: auto;
  border: 1px solid #b9beaa; border-radius: 10px;
  background: #fffdf4; box-shadow: 0 4px 18px #273c2c2b;
}
.atlas-picker-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  padding: 8px 10px 6px; font: 600 15px/1.3 Georgia, serif;
}
.atlas-picker-close {
  width: 36px; height: 36px; padding: 0; font-size: 19px;
  border: 0; border-radius: 50%; background: transparent; color: #2b4737;
}
.atlas-picker-item {
  display: block; width: 100%; padding: 10px 12px;
  text-align: left; color: #304e36; background: transparent;
  border: 0; border-top: 1px solid #e2e4d8; font-size: 13px;
}
.atlas-picker-item:hover, .atlas-picker-close:hover { background: #edeede; }
@media (pointer: coarse) {
  .atlas-control, .atlas-picker-close { width: 44px; height: 44px; }
  .atlas-picker-item { min-height: 44px; }
}
