:root {
  color-scheme: dark;
  --spotter-bg: #020607;
  --spotter-bg-2: #050b0d;
  --spotter-panel: rgba(3, 12, 15, 0.88);
  --spotter-panel-solid: #061014;
  --spotter-border: rgba(0, 245, 255, 0.38);
  --spotter-border-soft: rgba(0, 245, 255, 0.18);
  --spotter-cyan: #00f5ff;
  --spotter-cyan-soft: rgba(0, 245, 255, 0.18);
  --spotter-cyan-glow: rgba(0, 245, 255, 0.55);
  --spotter-red: #ff1f3d;
  --spotter-red-soft: rgba(255, 31, 61, 0.18);
  --spotter-red-glow: rgba(255, 31, 61, 0.48);
  --spotter-white: #f4fbff;
  --spotter-muted: #7f9aa3;
  --spotter-muted-2: #4f6972;
  --spotter-success: #00ffb3;
  --spotter-warning: #ffd166;
  --spotter-shadow: 0 0 18px rgba(0, 245, 255, 0.28);
  --spotter-dark-map-brightness: 1;
  --spotter-dark-map-label-hue: 180;
  --spotter-dark-map-label-color: hsl(180 100% 70%);
  --bg: var(--spotter-bg);
  --panel: var(--spotter-panel);
  --panel-strong: rgba(3, 12, 15, 0.96);
  --text: var(--spotter-white);
  --muted: var(--spotter-muted);
  --neon: var(--spotter-cyan);
  --cyan: var(--spotter-cyan);
  --acid: var(--spotter-red);
  --danger: var(--spotter-red);
  --danger-bg: var(--spotter-red-soft);
  --line: var(--spotter-border);
  --line-bright: rgba(0, 245, 255, 0.72);
  --shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
  --glow: 0 0 0 1px var(--spotter-border-soft), var(--spotter-shadow);
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
  --safe-left: env(safe-area-inset-left);
  --safe-right: env(safe-area-inset-right);
  --edge-gap: clamp(0.55rem, 2.6vw, 1rem);
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  background:
    radial-gradient(circle at 12% 12%, rgba(0, 245, 255, 0.15), transparent 24rem),
    radial-gradient(circle at 88% 2%, rgba(255, 31, 61, 0.1), transparent 20rem),
    linear-gradient(rgba(0, 245, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.022) 1px, transparent 1px),
    linear-gradient(180deg, var(--spotter-bg-2), var(--spotter-bg) 42%, #000),
    var(--bg);
  background-size: auto, auto, 2.75rem 2.75rem, 2.75rem 2.75rem, auto, auto;
  color: var(--text);
}

body::before {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025),
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 5px
  );
  content: "";
  inset: 0;
  opacity: 0.34;
  pointer-events: none;
  position: fixed;
  z-index: 900;
}

button,
input,
textarea,
select {
  font: inherit;
}

input,
textarea,
select {
  background: rgba(3, 12, 15, 0.92);
  border: 1px solid var(--spotter-border);
  border-radius: 0.38rem;
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: var(--spotter-muted-2);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--line-bright);
  box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.16), 0 0 18px rgba(0, 245, 255, 0.2);
  outline: none;
}

input:invalid,
textarea:invalid,
select:invalid {
  border-color: var(--spotter-red);
  box-shadow: 0 0 0 2px rgba(255, 31, 61, 0.2);
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

button:disabled {
  cursor: wait;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  color: var(--text);
  font-size: clamp(1rem, 4.8vw, 1.35rem);
  font-weight: 850;
  line-height: 1.05;
  margin-bottom: 0;
  overflow-wrap: anywhere;
  text-shadow: 0 0 14px var(--spotter-cyan-glow);
}

.app-shell {
  height: 100vh;
  height: 100dvh;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  position: relative;
}

.boot-splash {
  align-items: center;
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  inset: 0;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    max(1rem, var(--safe-top))
    max(1rem, var(--safe-right))
    max(1rem, var(--safe-bottom))
    max(1rem, var(--safe-left));
  position: fixed;
  z-index: 20000;
}

.boot-splash__logo {
  display: block;
  filter: drop-shadow(0 0 24px var(--spotter-cyan-glow));
  height: auto;
  max-width: min(42vw, 10rem);
  width: 10rem;
}

.boot-splash__text {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.is-auth-pending .boot-splash {
  display: flex;
}

body.is-authenticated .boot-splash,
body.is-unauthenticated .boot-splash,
body.is-auth-pending .auth-lock {
  display: none;
}

.auth-lock {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    max(1rem, var(--safe-top))
    max(1rem, var(--safe-right))
    max(1rem, var(--safe-bottom))
    max(1rem, var(--safe-left));
  position: fixed;
  z-index: 20000;
}

.auth-lock[hidden] {
  display: none;
}

.app-shell.is-auth-locked #map,
.app-shell.is-auth-locked #map-controls,
.app-shell.is-auth-locked #geo-intro,
.app-shell.is-auth-locked #adjustment-panel,
.app-shell.is-auth-locked #map-status,
.app-shell.is-auth-locked #refocus-location-button,
.app-shell.is-auth-locked #settings-overlay,
.app-shell.is-auth-locked #boot-splash {
  display: none !important;
}

body.is-auth-pending .app-shell.is-auth-locked #boot-splash {
  display: flex !important;
}

.auth-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: var(--shadow), var(--glow), inset 0 0 38px rgba(0, 245, 255, 0.045);
  display: grid;
  gap: 0.85rem;
  max-width: 24rem;
  padding: clamp(1rem, 5vw, 1.35rem);
  width: min(100%, 24rem);
}

.auth-logo {
  background: transparent;
  display: block;
  filter: drop-shadow(0 0 22px var(--spotter-cyan-glow));
  height: auto;
  justify-self: center;
  max-width: min(42vw, 10rem);
  object-fit: contain;
  width: 10rem;
}

.auth-copy {
  text-align: center;
}

.auth-copy h1 {
  font-size: clamp(1.7rem, 10vw, 2.35rem);
}

.auth-form {
  display: grid;
  gap: 0.55rem;
}

.auth-label {
  color: var(--neon);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.auth-pin-input,
.auth-session-select {
  min-height: 3rem;
  padding: 0 0.78rem;
  width: 100%;
}

.auth-pin-input {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.16rem;
  text-align: center;
}

.auth-submit,
.logout-button {
  background: rgba(0, 245, 255, 0.14);
  border: 1px solid var(--line-bright);
  border-radius: 0.4rem;
  box-shadow: 0 0 0 1px rgba(0, 245, 255, 0.16), 0 0 22px rgba(0, 245, 255, 0.18);
  color: var(--spotter-cyan);
  font-size: 0.9rem;
  font-weight: 900;
  min-height: 3rem;
  padding: 0 0.85rem;
  text-transform: uppercase;
}

.auth-submit:hover:not(:disabled),
.logout-button:hover:not(:disabled) {
  background: rgba(0, 245, 255, 0.24);
  color: var(--spotter-white);
}

.auth-submit:disabled {
  opacity: 0.72;
}

.auth-feedback {
  color: var(--spotter-red);
  font-size: 0.78rem;
  font-weight: 850;
  min-height: 1.2rem;
  margin: 0;
  text-align: center;
}

.logout-button {
  background: var(--danger-bg);
  border-color: var(--spotter-red-glow);
  color: var(--spotter-white);
}

#map {
  background: var(--spotter-bg);
  height: 100vh;
  height: 100dvh;
  touch-action: pan-x pan-y;
  width: 100%;
  z-index: 0;
}

.geo-intro {
  contain: layout paint style;
  display: grid;
  inset: 0;
  isolation: isolate;
  place-items: center;
  pointer-events: none;
  position: fixed;
  z-index: 12000;
}

.geo-intro[hidden] {
  display: none;
}

.geo-intro.is-active {
  display: block;
}

.geo-intro__backdrop {
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 245, 255, 0.1), transparent 12rem),
    radial-gradient(circle at 39% 44%, rgba(255, 31, 61, 0.08), transparent 9rem),
    radial-gradient(circle at 61% 55%, rgba(0, 245, 255, 0.08), transparent 10rem);
  inset: 0;
  position: absolute;
  z-index: -2;
}

.geo-intro__logo-wrap {
  backface-visibility: hidden;
  background: transparent;
  display: grid;
  left: 50%;
  opacity: 0;
  place-items: center;
  position: fixed;
  top: 50%;
  transform: translate3d(-50%, -50%, 0) scale(0.92);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.geo-intro__logo {
  backface-visibility: hidden;
  background: transparent;
  display: block;
  height: auto;
  max-width: 230px;
  object-fit: contain;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: 50% 50%;
  width: min(44vw, 230px);
  will-change: transform, opacity;
}

.geo-intro__flash {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 1), rgba(0, 245, 255, 0.86) 26%, rgba(255, 31, 61, 0.72) 52%, transparent 72%),
    #fff;
  inset: 0;
  opacity: 0;
  position: absolute;
  transform: translate3d(0, 0, 0);
  z-index: -1;
}

.geo-intro.is-aligning .geo-intro__logo-wrap {
  animation: spotter-logo-align var(--geo-intro-align-ms, 1000ms) ease-out forwards;
}

.geo-intro.is-zooming .geo-intro__logo-wrap {
  animation: spotter-eye-dive var(--geo-intro-zoom-ms, 1300ms) cubic-bezier(0.74, 0, 0.2, 1) forwards;
}

.geo-intro.is-flashing .geo-intro__flash {
  animation: spotter-geo-flash 0.3s ease-out forwards;
  will-change: opacity;
}

body.geo-intro-running {
  cursor: progress;
}

/* Keep the map usable if the CDN Leaflet stylesheet is delayed or unavailable. */
.leaflet-container {
  outline-offset: 1px;
  overflow: hidden;
  position: relative;
}

.leaflet-pane,
.leaflet-map-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  left: 0;
  position: absolute;
  top: 0;
}

.leaflet-pane > svg {
  pointer-events: none;
}

.leaflet-tile-pane {
  z-index: 200;
}

.has-dark-map-visuals .leaflet-tile-pane,
.has-dark-map-visuals .leaflet-spotter-tiles-pane {
  filter: brightness(var(--spotter-dark-map-brightness, 1));
}

.leaflet-overlay-pane {
  z-index: 400;
}

.leaflet-shadow-pane {
  z-index: 500;
}

.leaflet-marker-pane {
  pointer-events: auto;
  z-index: 600;
}

.leaflet-tooltip-pane {
  z-index: 750;
}

.leaflet-popup-pane {
  z-index: 800;
}

.leaflet-spotter-tiles-pane {
  pointer-events: none;
  z-index: 200;
}

.leaflet-spotter-facing-pane {
  pointer-events: none;
  z-index: 640;
}

.leaflet-spotter-pins-pane {
  pointer-events: auto;
  z-index: 650;
}

.leaflet-spotter-selected-facing-pane {
  pointer-events: none;
  z-index: 690;
}

.leaflet-spotter-temp-pins-pane {
  pointer-events: auto;
  z-index: 700;
}

.leaflet-interactive {
  pointer-events: auto;
}

.leaflet-control-container .leaflet-top,
.leaflet-control-container .leaflet-bottom {
  pointer-events: none;
  position: absolute;
  z-index: 990;
}

.leaflet-top {
  top: 0;
}

.leaflet-right {
  right: 0;
}

.leaflet-bottom {
  bottom: 0;
}

.leaflet-left {
  left: 0;
}

.leaflet-control {
  clear: both;
  float: left;
  pointer-events: auto;
  position: relative;
}

.leaflet-right .leaflet-control {
  float: right;
}

.leaflet-zoom-animated {
  transform-origin: 0 0;
}

.carto-positron-dark-tiles {
  filter: invert(1) hue-rotate(180deg) brightness(0.7) contrast(1.05) saturate(0.58);
}

.map-controls,
.map-status,
.refocus-location-button,
.adjustment-panel,
.leaflet-control-zoom,
.pin-detail-expanded {
  backdrop-filter: blur(14px);
}

.map-controls {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  box-shadow: var(--shadow), var(--glow), inset 0 0 22px rgba(0, 245, 255, 0.035);
  color: var(--text);
  left: max(var(--edge-gap), var(--safe-left));
  max-width: calc(100vw - max(var(--edge-gap), var(--safe-left)) - max(var(--edge-gap), var(--safe-right)));
  min-width: 0;
  overflow: visible;
  padding: 0.65rem;
  position: fixed;
  right: max(var(--edge-gap), var(--safe-right));
  top: max(var(--edge-gap), var(--safe-top));
  z-index: 1000;
}

.map-controls-normal {
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
  min-width: 0;
}

.map-controls-top-row {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  flex-wrap: nowrap;
  min-width: 0;
  width: 100%;
}

.map-controls.is-pin-details {
  padding: 0.58rem;
}

.brand-block {
  align-items: center;
  display: flex;
  gap: 0.58rem;
  flex: 1 1 auto;
  min-width: 0;
}

.brand-mark {
  background: transparent;
  border-radius: 0.3rem;
  display: block;
  flex: 0 0 auto;
  height: 2.5rem;
  object-fit: contain;
  width: 2.5rem;
}

.brand-copy {
  min-width: 0;
}

.map-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  margin-left: auto;
  gap: 0.6rem;
  justify-content: flex-end;
  min-width: max-content;
}

.eyebrow {
  color: var(--neon);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 0.08rem;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "> ";
}

.pin-summary {
  align-items: center;
  border-left: 1px solid var(--line);
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.34rem;
  min-width: max-content;
  padding-left: 0.62rem;
  white-space: nowrap;
}

.pin-count {
  color: var(--acid);
  font-size: clamp(1.35rem, 7vw, 1.7rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 13px var(--spotter-red-glow);
}

.pin-count-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.05;
  max-width: 3.4rem;
  white-space: normal;
}

.drop-pin-button {
  align-items: center;
  background: rgba(0, 245, 255, 0.12);
  border: 1px solid var(--line-bright);
  border-radius: 0.4rem;
  box-shadow: 0 0 0 1px rgba(0, 245, 255, 0.2), 0 0 24px rgba(0, 245, 255, 0.24);
  color: var(--spotter-cyan);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 900;
  gap: 0.42rem;
  justify-content: center;
  min-height: 2.9rem;
  min-width: 0;
  padding: 0 0.82rem;
  text-transform: uppercase;
  width: 100%;
}

.settings-button {
  align-items: center;
  background: rgba(3, 12, 15, 0.94);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  color: var(--neon);
  display: inline-flex;
  height: 2.75rem;
  justify-content: center;
  min-width: 2.75rem;
  padding: 0;
  width: 2.75rem;
}

.settings-button:hover,
.settings-button[aria-expanded="true"] {
  background: var(--spotter-cyan-soft);
  border-color: var(--line-bright);
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.22);
  color: var(--spotter-white);
}

.settings-icon,
.settings-icon::before,
.settings-icon::after {
  display: block;
}

.settings-icon {
  background:
    radial-gradient(circle, rgba(3, 12, 15, 0.94) 0 0.28rem, transparent 0.3rem),
    repeating-conic-gradient(currentColor 0 14deg, transparent 14deg 30deg),
    radial-gradient(circle, currentColor 0 0.56rem, transparent 0.58rem);
  border-radius: 999px;
  height: 1.28rem;
  position: relative;
  width: 1.28rem;
}

.settings-icon::before,
.settings-icon::after {
  content: "";
  background: currentColor;
  border-radius: 999px;
  height: 0.18rem;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1.42rem;
}

.settings-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.settings-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.drop-pin-button:focus-visible,
.auth-submit:focus-visible,
.logout-button:focus-visible,
.settings-button:focus-visible,
.settings-close:focus-visible,
.refocus-location-button:focus-visible,
.adjustment-actions button:focus-visible,
.pin-color-chip:focus-visible,
.pin-detail-expand:focus-visible,
.pin-detail-edit:focus-visible,
.pin-detail-close:focus-visible,
.pin-detail-delete:focus-visible,
.map-style-option:focus-within,
.leaflet-control-zoom a:focus-visible {
  outline: 3px solid rgba(0, 245, 255, 0.48);
  outline-offset: 2px;
}

.drop-pin-button:hover:not(:disabled) {
  background: rgba(0, 245, 255, 0.22);
  border-color: var(--spotter-cyan);
  box-shadow: 0 0 0 1px rgba(0, 245, 255, 0.32), 0 0 28px rgba(0, 245, 255, 0.36);
  color: var(--spotter-white);
}

.drop-pin-button:disabled {
  background: rgba(79, 105, 114, 0.18);
  border-color: rgba(138, 162, 170, 0.32);
  box-shadow: none;
  color: var(--spotter-muted);
  opacity: 0.9;
}

.drop-pin-icon {
  align-items: center;
  border: 2px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  font-size: 1rem;
  height: 1.2rem;
  justify-content: center;
  line-height: 1;
  width: 1.2rem;
}

.map-status {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.42rem;
  bottom: max(0.72rem, var(--safe-bottom));
  box-shadow: var(--shadow), var(--glow);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
  left: max(var(--edge-gap), var(--safe-left));
  margin: 0;
  max-height: 4.8rem;
  max-width: min(24rem, calc(100vw - max(var(--edge-gap), var(--safe-left)) - max(4.75rem, var(--safe-right))));
  opacity: 0;
  overflow: auto;
  padding: 0.58rem 0.68rem;
  pointer-events: none;
  position: fixed;
  right: auto;
  scrollbar-width: thin;
  transform: translateY(0.5rem);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 1000;
}

.map-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.map-status[hidden] {
  display: block;
  opacity: 0;
  pointer-events: none;
}

.map-status::before {
  color: var(--neon);
  content: "SYS ";
}

.map-status[data-tone="error"] {
  background: rgba(34, 7, 10, 0.96);
  border-color: var(--spotter-red-glow);
  color: var(--spotter-white);
}

.map-status[data-tone="success"] {
  background: rgba(0, 255, 179, 0.1);
  border-color: rgba(0, 255, 179, 0.42);
}

.map-status[data-tone="warning"] {
  background: rgba(255, 209, 102, 0.1);
  border-color: rgba(255, 209, 102, 0.44);
}

.settings-overlay {
  display: none;
  inset: 0;
  position: fixed;
  z-index: 10000;
}

.settings-overlay.is-open {
  display: block;
}

.settings-overlay[hidden] {
  display: none;
}

.settings-backdrop {
  background:
    radial-gradient(circle at 80% 8%, rgba(255, 31, 61, 0.08), transparent 18rem),
    rgba(0, 0, 0, 0.74);
  inset: 0;
  position: absolute;
}

.settings-overlay__backdrop {
  backdrop-filter: blur(2px);
}

.settings-panel {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: var(--shadow), var(--glow), inset 0 0 32px rgba(0, 245, 255, 0.035);
  color: var(--text);
  left: max(1rem, var(--safe-left));
  margin: 0 auto;
  max-height: calc(100vh - 2rem - var(--safe-top) - var(--safe-bottom));
  max-height: calc(100dvh - 2rem - var(--safe-top) - var(--safe-bottom));
  max-width: 28rem;
  overscroll-behavior: contain;
  overflow-y: auto;
  padding: 0.9rem;
  position: absolute;
  right: max(1rem, var(--safe-right));
  scrollbar-width: thin;
  top: calc(1rem + var(--safe-top));
}

.settings-panel-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.settings-panel h2 {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.2;
  margin: 0;
}

.settings-section {
  display: grid;
  gap: 0.7rem;
  border-top: 1px solid var(--spotter-border-soft);
  padding-top: 0.72rem;
}

.settings-section h3 {
  color: var(--neon);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
}

.settings-helper {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
  margin: 0;
}

.settings-range-control {
  align-items: center;
  color: var(--text);
  display: flex;
  font-size: 0.76rem;
  font-weight: 800;
  gap: 0.65rem;
  justify-content: space-between;
  line-height: 1.2;
}

.settings-range-control output {
  color: var(--neon);
  flex: 0 0 auto;
  font-size: 0.72rem;
}

.settings-section input[type="range"] {
  accent-color: var(--spotter-cyan);
  width: 100%;
}

.settings-toggle-control {
  align-items: center;
  color: var(--text);
  display: flex;
  font-size: 0.78rem;
  font-weight: 850;
  gap: 0.8rem;
  justify-content: space-between;
  line-height: 1.2;
}

.settings-toggle-control input {
  accent-color: var(--spotter-cyan);
  height: 1.35rem;
  width: 2.35rem;
}

.settings-secondary-button {
  background: rgba(3, 12, 15, 0.94);
  border: 1px solid var(--line);
  border-radius: 0.38rem;
  color: var(--neon);
  font-size: 0.74rem;
  font-weight: 900;
  min-height: 2.35rem;
  padding: 0.55rem 0.75rem;
  text-align: center;
}

.settings-secondary-button:hover,
.settings-secondary-button:focus-visible {
  background: var(--spotter-cyan-soft);
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.18);
}

.settings-close {
  align-items: center;
  background: rgba(3, 12, 15, 0.94);
  border: 1px solid var(--line);
  border-radius: 0.38rem;
  color: var(--neon);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.95rem;
  font-weight: 900;
  height: 2.5rem;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0;
  width: 2.5rem;
}

.settings-close:hover {
  background: var(--spotter-red-soft);
  border-color: var(--spotter-red-glow);
  box-shadow: 0 0 18px rgba(255, 31, 61, 0.22);
  color: var(--spotter-white);
}

.pin-details-bar {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.pin-details-bar[hidden] {
  display: none;
}

.pin-details-compact {
  align-items: center;
  display: grid;
  gap: 0.52rem;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  min-height: 3.2rem;
}

.pin-color-indicator {
  background: var(--pin-color, var(--cyan));
  border: 2px solid var(--spotter-white);
  border-radius: 999px 999px 999px 0;
  box-shadow: 0 0 0 1px rgba(247, 251, 255, 0.18), 0 0 18px var(--pin-glow, var(--spotter-cyan-glow)), 0 0 26px rgba(255, 31, 61, 0.12);
  display: block;
  height: 1.45rem;
  transform: rotate(-45deg);
  width: 1.45rem;
}

.pin-color-indicator--cyan,
.pin-color-chip--cyan,
.pin-color-chip[data-pin-color="cyan"],
.spotter-pin--cyan {
  --pin-color: var(--spotter-cyan);
  --pin-glow: rgba(0, 245, 255, 0.72);
}

.pin-color-indicator--green,
.pin-color-chip--green,
.pin-color-chip[data-pin-color="green"],
.spotter-pin--green {
  --pin-color: #76f7a8;
  --pin-glow: rgba(118, 247, 168, 0.62);
}

.pin-color-indicator--yellow,
.pin-color-chip--yellow,
.pin-color-chip[data-pin-color="yellow"],
.spotter-pin--yellow {
  --pin-color: var(--spotter-white);
  --pin-glow: rgba(247, 251, 255, 0.66);
}

.pin-color-indicator--magenta,
.pin-color-chip--magenta,
.pin-color-chip[data-pin-color="magenta"],
.spotter-pin--magenta {
  --pin-color: #ff6ff2;
  --pin-glow: rgba(255, 111, 242, 0.72);
}

.pin-color-indicator--orange,
.pin-color-chip--orange,
.pin-color-chip[data-pin-color="orange"],
.spotter-pin--orange {
  --pin-color: #ff9b54;
  --pin-glow: rgba(255, 155, 84, 0.72);
}

.pin-color-indicator--blue,
.pin-color-chip--blue,
.pin-color-chip[data-pin-color="blue"],
.spotter-pin--blue {
  --pin-color: #6f8dff;
  --pin-glow: rgba(111, 141, 255, 0.72);
}

.pin-detail-heading {
  min-width: 0;
}

.pin-detail-title-row {
  align-items: baseline;
  display: flex;
  gap: 0.42rem;
  min-width: 0;
}

.pin-detail-title-row h2 {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pin-detail-number {
  color: var(--acid);
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 900;
}

.pin-detail-coordinates {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0.12rem 0 0;
  overflow-wrap: anywhere;
}

.pin-detail-facing-status {
  color: var(--spotter-red);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0.18rem 0 0;
  text-shadow: 0 0 10px var(--spotter-red-glow);
}

.pin-detail-facing-status[hidden] {
  display: none;
}

.pin-detail-expand,
.pin-detail-edit,
.pin-detail-close {
  align-items: center;
  background: rgba(3, 12, 15, 0.94);
  border: 1px solid var(--line);
  border-radius: 0.38rem;
  color: var(--neon);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  height: 2.45rem;
  justify-content: center;
  min-width: 2.45rem;
  padding: 0 0.58rem;
  text-transform: uppercase;
}

.pin-detail-close {
  color: var(--spotter-red);
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
  width: 2.45rem;
}

.pin-detail-expand:hover,
.pin-detail-edit:hover,
.pin-detail-close:hover {
  background: var(--spotter-cyan-soft);
  border-color: var(--line-bright);
}

.pin-detail-edit[hidden] {
  display: none;
}

.pin-detail-edit {
  color: var(--spotter-white);
}

.pin-detail-delete {
  background: var(--danger-bg);
  border: 1px solid var(--spotter-red-glow);
  border-radius: 0.38rem;
  color: var(--spotter-white);
  font-size: 0.72rem;
  font-weight: 900;
  min-height: 2.35rem;
  padding: 0 0.72rem;
  text-transform: uppercase;
}

.pin-detail-expanded {
  border-top: 1px solid var(--line);
  max-height: min(48vh, 23rem);
  overflow-y: auto;
  padding-top: 0.62rem;
  scrollbar-width: thin;
}

.pin-detail-expanded[hidden] {
  display: none;
}

.pin-detail-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.pin-detail-list div {
  display: grid;
  gap: 0.05rem;
}

.pin-detail-list dt {
  color: var(--neon);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pin-detail-list dd {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 750;
  margin: 0;
  overflow-wrap: anywhere;
}

.pin-detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.62rem;
}

.map-style-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.map-style-fieldset legend {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.map-style-options {
  display: grid;
  gap: 0.42rem;
}

.map-style-option {
  align-items: center;
  background: rgba(3, 12, 15, 0.72);
  border: 1px solid var(--spotter-border-soft);
  border-radius: 0.38rem;
  color: var(--text);
  display: flex;
  gap: 0.52rem;
  min-height: 2.62rem;
  padding: 0.48rem 0.58rem;
}

.map-style-option.is-selected,
.map-style-option:has(input:checked) {
  background: var(--spotter-cyan-soft);
  border-color: var(--line-bright);
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.18);
}

.map-style-option input {
  accent-color: var(--neon);
  flex: 0 0 auto;
  height: 1rem;
  margin: 0;
  width: 1rem;
}

.map-style-option span {
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.2;
}

body.settings-open #map {
  touch-action: none;
}

.refocus-location-button {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.42rem;
  bottom: max(0.72rem, var(--safe-bottom));
  box-shadow: var(--shadow), var(--glow);
  color: var(--neon);
  display: inline-flex;
  height: 3.35rem;
  justify-content: center;
  position: fixed;
  right: max(var(--edge-gap), var(--safe-right));
  width: 3.35rem;
  z-index: 1000;
}

.refocus-location-button:hover:not(:disabled) {
  background: rgba(0, 245, 255, 0.12);
  color: var(--spotter-white);
}

.refocus-location-button.is-focus-locked,
.refocus-location-button[aria-pressed="true"] {
  background: rgba(0, 245, 255, 0.18);
  border-color: var(--spotter-cyan);
  box-shadow:
    0 0 0 1px rgba(0, 245, 255, 0.34),
    0 0 28px rgba(0, 245, 255, 0.42),
    inset 0 0 18px rgba(0, 245, 255, 0.08);
  color: var(--spotter-white);
}

.refocus-location-button:disabled {
  opacity: 0.82;
}

.refocus-location-icon {
  border: 2px solid currentColor;
  border-radius: 999px;
  display: block;
  height: 1.38rem;
  position: relative;
  width: 1.38rem;
}

.refocus-location-icon::before,
.refocus-location-icon::after {
  background: currentColor;
  content: "";
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.refocus-location-icon::before {
  height: 1.9rem;
  width: 2px;
}

.refocus-location-icon::after {
  height: 2px;
  width: 1.9rem;
}

.refocus-location-button[aria-busy="true"] .refocus-location-icon {
  animation: refocus-pulse 0.9s ease-in-out infinite;
}

.refocus-location-button.is-focus-locked .refocus-location-icon::after,
.refocus-location-button[aria-pressed="true"] .refocus-location-icon::after {
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.62);
}

.adjustment-panel {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 0.55rem 0.55rem 0 0;
  bottom: 0;
  box-shadow: 0 -18px 38px rgba(0, 0, 0, 0.58), var(--glow), inset 0 0 26px rgba(255, 31, 61, 0.035);
  color: var(--text);
  display: grid;
  gap: 0.85rem;
  left: 0;
  max-height: min(52vh, 24rem);
  max-width: 100vw;
  overflow-y: auto;
  padding:
    0.9rem
    max(0.82rem, var(--safe-right))
    max(0.9rem, var(--safe-bottom))
    max(0.82rem, var(--safe-left));
  position: fixed;
  right: 0;
  scrollbar-width: thin;
  z-index: 1100;
}

.adjustment-panel[hidden] {
  display: none;
}

.adjustment-copy h2 {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: 0.18rem;
  overflow-wrap: anywhere;
}

.adjustment-copy p {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 0;
}

.pin-color-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.pin-color-fieldset legend {
  color: var(--neon);
  font-size: 0.72rem;
  font-weight: 850;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.pin-color-options {
  display: grid;
  gap: 0.48rem;
  grid-template-columns: repeat(6, minmax(2.35rem, 1fr));
}

.pin-color-chip {
  appearance: none;
  background: var(--pin-color, var(--cyan));
  border: 2px solid rgba(247, 251, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(247, 251, 255, 0.08), 0 0 18px var(--pin-glow, var(--spotter-cyan-glow));
  height: 2.55rem;
  min-width: 2.35rem;
  padding: 0;
}

.pin-color-chip.is-selected {
  border-color: var(--spotter-white);
  box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.22), 0 0 24px var(--pin-glow, var(--spotter-cyan-glow));
  transform: translateY(-1px);
}

.adjustment-actions {
  display: grid;
  gap: 0.58rem;
  grid-template-columns: 1fr;
}

.adjustment-actions button {
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  font-size: 0.88rem;
  font-weight: 900;
  min-height: 3rem;
  min-width: 0;
  padding: 0.25rem 0.72rem;
  text-transform: uppercase;
}

.lock-pin-button {
  background: rgba(0, 245, 255, 0.16);
  border-color: var(--line-bright);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
  color: var(--spotter-cyan);
}

.lock-pin-button:hover:not(:disabled) {
  background: rgba(0, 245, 255, 0.26);
  color: var(--spotter-white);
}

.reset-pin-button {
  background: rgba(0, 245, 255, 0.08);
  color: var(--text);
}

.reset-pin-button:hover:not(:disabled) {
  background: rgba(0, 245, 255, 0.18);
}

.cancel-pin-button {
  background: var(--danger-bg);
  border-color: var(--spotter-red-glow);
  color: var(--spotter-white);
}

.cancel-pin-button:hover:not(:disabled) {
  background: rgba(255, 31, 61, 0.24);
  box-shadow: 0 0 20px rgba(255, 31, 61, 0.24);
}

.delete-pin-button {
  background: var(--danger-bg);
  border-color: var(--spotter-red-glow);
  color: var(--spotter-white);
}

.delete-pin-button:hover:not(:disabled),
.pin-detail-delete:hover:not(:disabled) {
  background: rgba(255, 31, 61, 0.24);
  box-shadow: 0 0 20px rgba(255, 31, 61, 0.24);
}

.adjustment-actions button:disabled {
  filter: grayscale(0.2);
  opacity: 0.68;
}

body.is-adjusting-pin .map-status {
  bottom: calc(min(52vh, 24rem) + max(0.72rem, var(--safe-bottom)));
  max-width: calc(100vw - max(var(--edge-gap), var(--safe-left)) - max(var(--edge-gap), var(--safe-right)));
  right: max(var(--edge-gap), var(--safe-right));
}

body.is-adjusting-pin .refocus-location-button {
  bottom: calc(min(52vh, 24rem) + 4.75rem + max(0.72rem, var(--safe-bottom)));
}

.leaflet-container {
  background: var(--spotter-bg);
  color: var(--text);
  font-family: inherit;
}

.leaflet-top,
.leaflet-bottom {
  max-width: calc(100vw - max(var(--edge-gap), var(--safe-left)) - max(var(--edge-gap), var(--safe-right)));
  z-index: 990;
}

.leaflet-bottom.leaflet-right {
  bottom: calc(4rem + max(0.72rem, var(--safe-bottom)));
  right: max(var(--edge-gap), var(--safe-right));
}

body.is-adjusting-pin .leaflet-bottom.leaflet-right {
  bottom: calc(min(52vh, 24rem) + max(0.72rem, var(--safe-bottom)));
}

.leaflet-control-zoom {
  background: var(--panel);
  border: 1px solid var(--line) !important;
  border-radius: 0.42rem;
  box-shadow: var(--shadow), var(--glow);
  margin: 0 !important;
  overflow: hidden;
}

.leaflet-control-zoom a {
  background: rgba(3, 12, 15, 0.94);
  border-bottom-color: rgba(0, 245, 255, 0.18);
  color: var(--neon);
  display: block;
  height: 2.75rem;
  line-height: 2.75rem;
  text-align: center;
  text-decoration: none;
  width: 2.75rem;
}

.leaflet-control-zoom a:hover {
  background: var(--spotter-cyan-soft);
  color: var(--spotter-white);
}

.leaflet-control-attribution {
  background: rgba(3, 12, 15, 0.72) !important;
  border-radius: 0.24rem;
  color: rgba(138, 162, 170, 0.82);
  font-size: 0.56rem;
  line-height: 1.15;
  margin: 0 0 max(0.28rem, var(--safe-bottom)) max(0.32rem, var(--safe-left)) !important;
  max-width: min(15rem, 70vw);
  opacity: 0.52;
  padding: 0.12rem 0.22rem;
  white-space: normal;
}

.leaflet-control-attribution:hover,
.leaflet-control-attribution:focus-within {
  opacity: 0.92;
}

.leaflet-control-attribution a {
  color: var(--neon);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--panel-strong);
  border: 1px solid var(--spotter-border);
  box-shadow: var(--shadow), var(--glow);
  color: var(--text);
}

.leaflet-popup-content {
  color: var(--text);
  font-family: inherit;
}

.leaflet-tooltip {
  background: var(--panel-strong);
  border: 1px solid var(--spotter-border);
  box-shadow: var(--glow);
  color: var(--text);
}

.leaflet-bar a.leaflet-disabled {
  background: rgba(79, 105, 114, 0.2);
  color: var(--spotter-muted-2);
}

@keyframes spotter-logo-align {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.92);
  }

  100% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
  }
}

@keyframes spotter-eye-dive {
  0% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
  }

  58% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1.42);
  }

  100% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(14);
  }
}

@keyframes spotter-geo-flash {
  0% {
    opacity: 0;
  }

  22% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes spotter-current-location-pulse {
  0% {
    opacity: 0.86;
    transform: translate(-50%, -50%) scale(0.6);
  }

  72% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.35);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.35);
  }
}

@keyframes refocus-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.88);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes spotter-blip-pulse {
  0%,
  100% {
    opacity: 0.74;
    transform: translate(-50%, -50%) scale(0.92);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes spotter-blip-ring {
  0%,
  100% {
    opacity: 0.34;
    transform: translate(-50%, -50%) scale(0.72);
  }

  50% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.current-location-marker {
  fill: var(--spotter-cyan);
  fill-opacity: 1;
  filter: drop-shadow(0 0 6px rgba(0, 245, 255, 0.95)) drop-shadow(0 0 14px var(--spotter-cyan-glow));
  stroke: var(--spotter-white);
  stroke-width: 3px;
}

.spotter-current-location-icon {
  background: transparent;
  pointer-events: none;
}

.spotter-current-location-marker {
  align-items: center;
  background: rgba(0, 245, 255, 0.12);
  border: 2px solid var(--spotter-cyan);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(247, 251, 255, 0.2), 0 0 18px var(--spotter-cyan-glow), 0 0 28px rgba(255, 31, 61, 0.16);
  display: flex;
  height: 2.125rem;
  justify-content: center;
  position: relative;
  transform: translate3d(0, 0, 0);
  width: 2.125rem;
}

.spotter-current-location-marker span {
  background: var(--spotter-white);
  border: 2px solid var(--spotter-red);
  border-radius: 999px;
  box-shadow: 0 0 14px var(--spotter-red-glow);
  display: block;
  height: 0.72rem;
  width: 0.72rem;
}

.spotter-current-location-icon.is-location-reveal-pulse .spotter-current-location-marker::before {
  animation: spotter-current-location-pulse 1.4s ease-out forwards;
  border: 2px solid var(--spotter-cyan);
  border-radius: 999px;
  box-shadow: 0 0 20px var(--spotter-cyan-glow);
  content: "";
  height: 2.125rem;
  left: 50%;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 2.125rem;
  will-change: transform, opacity;
}

.spotter-pin-icon {
  background: transparent;
}

.spotter-facing-icon {
  background: transparent;
  pointer-events: none;
}

.spotter-facing {
  --pin-color: var(--spotter-cyan);
  --pin-glow: var(--spotter-cyan-glow);
  display: block;
  height: 88px;
  left: 0;
  position: relative;
  top: 0;
  transform: rotate(var(--facing-deg, 0deg));
  transform-origin: 50% 50%;
  width: 88px;
}

.spotter-facing__cone {
  background: conic-gradient(
    from -15deg at 50% 50%,
    rgba(0, 245, 255, 0.58) 0deg,
    rgba(0, 245, 255, 0.16) 30deg,
    transparent 31deg 360deg
  );
  background: conic-gradient(
    from -15deg at 50% 50%,
    color-mix(in srgb, var(--pin-color) 58%, transparent) 0deg,
    color-mix(in srgb, var(--pin-color) 16%, transparent) 30deg,
    transparent 31deg 360deg
  );
  clip-path: polygon(50% 50%, 35% 0, 65% 0);
  filter: drop-shadow(0 0 10px var(--pin-glow));
  inset: 0;
  opacity: 0.9;
  position: absolute;
}

.spotter-facing__line {
  background: linear-gradient(to top, transparent, var(--spotter-white) 18%, var(--pin-color) 100%);
  border-radius: 999px;
  box-shadow: 0 0 12px var(--pin-glow);
  height: 36px;
  left: 50%;
  position: absolute;
  top: 7px;
  transform: translateX(-50%);
  width: 3px;
}

.spotter-facing-icon--selected .spotter-facing__cone,
.spotter-facing-icon--editor .spotter-facing__cone {
  background: conic-gradient(
    from -18deg at 50% 50%,
    color-mix(in srgb, var(--pin-color) 64%, transparent) 0deg,
    color-mix(in srgb, var(--pin-color) 22%, transparent) 36deg,
    transparent 37deg 360deg
  );
  filter: drop-shadow(0 0 12px var(--pin-glow)) drop-shadow(0 0 10px var(--pin-glow));
}

.spotter-facing-icon--editor .spotter-facing__line {
  background: linear-gradient(to top, transparent, var(--spotter-white) 16%, var(--pin-color) 100%);
  box-shadow: 0 0 14px var(--pin-glow);
}

.spotter-pin {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  display: block;
  height: 44px;
  position: relative;
  transform: translate3d(0, 0, 0);
  width: 44px;
}

.spotter-pin::before {
  animation: spotter-blip-ring 2.7s ease-in-out infinite;
  background: radial-gradient(circle, color-mix(in srgb, var(--pin-color) 34%, transparent) 0 38%, transparent 70%);
  border: 1px solid color-mix(in srgb, var(--pin-color) 58%, transparent);
  border-radius: 999px;
  box-shadow: 0 0 18px var(--pin-glow);
  content: "";
  height: 26px;
  left: 50%;
  opacity: 0.45;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.78);
  width: 26px;
  will-change: opacity, transform;
}

.spotter-pin-core {
  animation: spotter-blip-pulse 2.7s ease-in-out infinite;
  background:
    radial-gradient(circle at 50% 45%, var(--spotter-white) 0 2px, transparent 2.5px),
    radial-gradient(circle, var(--pin-color) 0 38%, #020607 42% 100%);
  border: 2px solid var(--pin-color);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(3, 12, 15, 0.9), 0 0 14px var(--pin-glow), 0 0 24px color-mix(in srgb, var(--pin-color) 32%, transparent);
  display: block;
  height: 14px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  will-change: opacity, transform;
}

.spotter-pin-label {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--spotter-white);
  display: flex;
  font-size: 0.72rem;
  font-weight: 900;
  height: 1.1rem;
  justify-content: center;
  left: 50%;
  line-height: 1;
  min-width: 1.1rem;
  position: absolute;
  top: 0.08rem;
  transform: translate(-50%, -100%);
  width: auto;
}

.has-dark-map-visuals .spotter-pin-label,
.has-dark-map-visuals .saved-pin-label,
.has-dark-map-visuals .pin-label,
.has-dark-map-visuals .marker-label {
  color: var(--spotter-dark-map-label-color, hsl(180 100% 70%));
  text-shadow: 0 0 6px currentColor, 0 1px 2px rgba(0, 0, 0, 0.95);
}

.spotter-pin--selected {
  filter: saturate(1.18);
  z-index: 2;
}

.spotter-pin--selected::before {
  opacity: 0.76;
  transform: translate(-50%, -50%) scale(1.04);
}

.spotter-pin--selected .spotter-pin-core {
  height: 16px;
  width: 16px;
}

@media (max-width: 23rem) {
  :root {
    --spotter-shadow: 0 0 12px rgba(0, 245, 255, 0.22);
  }

  .map-controls {
    gap: 0.5rem;
    padding: 0.55rem;
  }

  .map-controls-normal {
    gap: 0.5rem;
  }

  .pin-summary {
    gap: 0.28rem;
    padding-left: 0.5rem;
  }

  .settings-button {
    height: 2.5rem;
    min-width: 2.5rem;
    width: 2.5rem;
  }

  .pin-count-label {
    max-width: 3rem;
  }

  .map-status {
    font-size: 0.74rem;
    max-width: calc(100vw - max(var(--edge-gap), var(--safe-left)) - max(4.35rem, var(--safe-right)));
    padding: 0.5rem 0.58rem;
  }

  .adjustment-panel {
    max-height: min(58vh, 25rem);
  }

  body.is-adjusting-pin .map-status,
  body.is-adjusting-pin .refocus-location-button,
  body.is-adjusting-pin .leaflet-bottom.leaflet-right {
    bottom: calc(min(58vh, 25rem) + max(0.72rem, var(--safe-bottom)));
  }

  body.is-adjusting-pin .refocus-location-button {
    bottom: calc(min(58vh, 25rem) + 4.75rem + max(0.72rem, var(--safe-bottom)));
  }
}

@media (min-width: 30rem) {
  .drop-pin-button {
    width: 100%;
  }

  .adjustment-actions {
    grid-template-columns: 1fr 1fr;
  }

  .lock-pin-button {
    grid-column: 1 / -1;
  }
}

@media (min-width: 48rem) {
  :root {
    --edge-gap: 1rem;
  }

  .map-controls {
    left: 1rem;
    max-width: min(29rem, calc(100vw - 2rem));
    right: auto;
    width: min(29rem, calc(100vw - 2rem));
  }

  .pin-detail-expanded {
    max-height: min(58vh, 28rem);
  }

  .adjustment-panel {
    border-radius: 0.55rem;
    bottom: max(1rem, var(--safe-bottom));
    left: 1rem;
    max-height: calc(100dvh - 2rem);
    max-width: 27rem;
    padding: 1rem;
    right: auto;
    width: min(27rem, calc(100vw - 2rem));
  }

  body.is-adjusting-pin .map-status {
    bottom: max(1rem, var(--safe-bottom));
    left: min(29rem, calc(100vw - 2rem));
    max-width: min(26rem, calc(100vw - 31rem));
    right: auto;
  }

  body.is-adjusting-pin .refocus-location-button {
    bottom: max(1rem, var(--safe-bottom));
  }

  .leaflet-bottom.leaflet-right,
  body.is-adjusting-pin .leaflet-bottom.leaflet-right {
    bottom: calc(4.85rem + max(1rem, var(--safe-bottom)));
    right: max(1rem, var(--safe-right));
  }
}

@media (prefers-reduced-motion: reduce) {
  .geo-intro.is-aligning .geo-intro__logo-wrap,
  .geo-intro.is-zooming .geo-intro__logo-wrap,
  .geo-intro.is-flashing .geo-intro__flash,
  .spotter-current-location-icon.is-location-reveal-pulse .spotter-current-location-marker::before,
  .spotter-pin::before,
  .spotter-pin-core {
    animation: none;
    will-change: auto;
  }

  .geo-intro__logo-wrap {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
  }

  .geo-intro__flash {
    opacity: 0;
  }
}
