:root {
  --hover-glow-text: 0 0 4px #ff77b6b0, 0 0 10px #e83e8c85;
  --hover-glow-image: 0 0 0 1px #ef76a9, 0 0 12px 2px #ed459f75;
}

@media (hover: hover) and (pointer: fine) {
  :root {
    --circle-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='5.5' fill='none' stroke='white' stroke-width='2.5'/%3E%3Ccircle cx='8' cy='8' r='5.5' fill='none' stroke='%23181518' stroke-width='1.2'/%3E%3C/svg%3E") 8 8, auto;
    --drafting-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath fill='none' d='M2 16.5H14.5m4 0H30M16.5 2V14.5m0 4V30M14.5 14.5h4v4h-4Z' stroke='white' stroke-width='3'/%3E%3Cpath fill='none' d='M2 16.5H14.5m4 0H30M16.5 2V14.5m0 4V30M14.5 14.5h4v4h-4Z' stroke='%23ff007f'/%3E%3C/svg%3E") 16 16, crosshair;
  }
  body, body * { cursor: var(--drafting-cursor) !important; }
  body:active, body:active *, body:has(.map.dragging) * { cursor: var(--circle-cursor) !important; }
  :is(a,button,summary,p,h1,h2,h3,h4,figcaption,dt,dd,.region,small,span,li):hover,
  :is(a,button,summary):focus-visible,
  html .pin:is(:hover,:focus-visible,.selected) span { text-shadow: var(--hover-glow-text); }
  img:hover, :is(a,button):focus-visible img,
  html .pin:is(:hover,:focus-visible,.selected) .snapshot { box-shadow: var(--hover-glow-image); }
  .region { pointer-events: auto; }
}
