.dufe-pin-map {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  background-color: #eef1ec;
  background-image: radial-gradient(#cdd6cf 1px, transparent 1px);
  background-size: 15px 15px;
  color: #334940;
}
.dpm-surface, .dpm-surface canvas, .dpm-markers { position: absolute; inset: 0; width: 100%; height: 100%; }
.dpm-surface { cursor: grab; touch-action: none; outline-offset: -4px; user-select: none; }
.dpm-surface:focus-visible { outline: 3px solid #8960cf; }
.dpm-surface canvas, .dpm-markers { pointer-events: none; }
.dufe-pin-map[data-pin-map-mode="place"] .dpm-surface,
.dufe-pin-map[data-pin-map-mode="move"] .dpm-surface { cursor: crosshair; }
.dufe-pin-map.dpm-dragging .dpm-surface { cursor: grabbing; }
.dpm-north, .dpm-tools, .dpm-scale, .dpm-instruction { position: absolute; z-index: 2; }
.dpm-north, .dpm-scale, .dpm-instruction { pointer-events: none; }
.dpm-north {
  left: 15px; top: 15px; display: flex; align-items: center; flex-direction: column; gap: 3px;
  font-size: 12px; font-weight: 700; color: #485f55; text-shadow: 0 0 5px white;
}
.dpm-north i { width: 13px; height: 21px; background: linear-gradient(90deg,#4d675a 50%,#9cac9f 50%); clip-path: polygon(50% 0,100% 100%,50% 74%,0 100%); }
.dpm-tools {
  top: 14px; right: 14px; display: grid; padding: 3px; gap: 1px; background: #fffffff7;
  border: 1px solid #cbd3cd; border-radius: 10px; box-shadow: 0 2px 8px #32473b12;
}
.dpm-tools button {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0; color: #506258;
  border: none; background: transparent; border-radius: 6px; transition: background .09s, color .09s, transform .09s;
}
.dpm-tools button:hover:not(:disabled), .dpm-tools button:focus-visible { background: #eeeaf8; color: #6242b1; }
.dpm-tools button:active:not(:disabled) { background: #e8defa; transform: scale(.94); }
.dpm-tools button:disabled { opacity: .36; cursor: default; }
.dpm-tools svg { display: block; width: 18px; height: 18px; }
.dpm-scale {
  left: 15px; bottom: 14px; min-width: 38px; display: grid; justify-items: start; gap: 3px;
  padding: 4px 6px 5px; border-radius: 4px; background: #f8fbf3e8; color: #47594f;
  font: 600 12px/1.3 "Inter","Segoe UI",sans-serif;
}
.dpm-scale i { height: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px; }
.dpm-instruction {
  bottom: 14px; left: 50%; transform: translate(-50%,4px);
  padding: 7px 13px; border-radius: 99px; background: #42335c; color: white;
  font-size: 13px; white-space: nowrap; box-shadow: 0 2px 8px #372e4220; opacity: 0;
  transition: transform .14s, opacity .14s;
}
.dufe-pin-map:not([data-pin-map-mode="view"]) .dpm-instruction { opacity: 1; transform: translate(-50%,0); }
.dpm-key-hint { display: none; }
.dpm-surface:focus-visible ~ .dpm-instruction .dpm-pointer-hint { display: none; }
.dpm-surface:focus-visible ~ .dpm-instruction .dpm-key-hint { display: inline; }
.dpm-cross {
  position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; opacity: 0;
  transform: translate(-50%,-50%); pointer-events: none;
  filter: drop-shadow(0 0 1.5px #fff);
}
.dpm-cross::before,.dpm-cross::after { content: ""; position: absolute; background: #523f86; border-radius: .75px; }
.dpm-cross::before { top: 7px; left: 0; width: 16px; height: 2px; }
.dpm-cross::after { top: 0; left: 7px; width: 2px; height: 16px; }
.dufe-pin-map:not([data-pin-map-mode="view"]) .dpm-surface:focus-visible .dpm-cross { opacity: 1; }
.dpm-marker {
  --pin-color: #714cad;
  position: absolute;
  width: 36px; height: 40px; margin: -39px 0 0 -18px; padding: 0;
  display: grid; align-items: start; justify-items: center; pointer-events: auto;
  background: none; border: 0; border-radius: 12px; color: #fff; touch-action: manipulation;
  transform-origin: center bottom; transition: transform .09s, filter .09s;
  animation: dpm-appear .15s ease-out both;
}
.dpm-marker[data-kind="subject"] { --pin-color: #946343; }
.dpm-marker::before { content: ""; position: absolute; inset: 3px 7px 9px; background: var(--pin-color); border: 2px solid white; border-radius: 50% 50% 48% 48%; box-shadow: 0 2px 4px #26372a50; }
.dpm-marker::after { content: ""; position: absolute; bottom: 1px; left: 14px; z-index: -1; width: 8px; height: 15px; background: var(--pin-color); clip-path: polygon(0 0,100% 0,50% 100%); }
.dpm-marker span { display: grid; place-items: center; position: relative; height: 29px; margin-top: 2px; pointer-events: none; }
.dpm-marker svg { display: block; width: 14px; height: 14px; }
.dpm-marker:hover, .dpm-marker:focus-visible { z-index: 3; transform: scale(1.13); }
.dpm-marker:active:not(:disabled) { transform: scale(.96); }
.dpm-marker[data-selected="true"] { z-index: 2; filter: drop-shadow(0 0 3px #63478e99); }
.dufe-pin-map:not([data-pin-map-mode="view"]) .dpm-marker { pointer-events: none; }
@keyframes dpm-appear { from { opacity: 0; translate: 0 -3px; } to { opacity: 1; translate: 0; } }
@media (max-width: 680px) {
  .dpm-tools { top: 8px; right: 8px; padding: 1px; }
  .dpm-tools button { width: 35px; height: 35px; }
  .dpm-north { top: 10px; left: 10px; }
  .dpm-scale { left: 8px; bottom: 8px; }
  .dpm-instruction { bottom: 8px; padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .dpm-instruction, .dpm-tools button, .dpm-marker { animation: none; transition: none; }
}
