/* Crisp grouped memories: a distinct pin plus count, without glow or GPU text blur. */
html body .app-shell .map-stage.map-focus .maplibregl-marker:has(.memory-cluster-marker),
html body main.app-shell section.map-stage.map-focus .maplibregl-marker:has(.memory-cluster-marker) {
  display: block !important;
  width: 58px !important;
  min-width: 58px !important;
  height: 34px !important;
  min-height: 34px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  overflow: visible !important;
  opacity: 1 !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker,
html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster,
html body main.app-shell section.map-stage.map-focus .memory-cluster-marker,
html body main.app-shell section.map-stage.map-focus .memory-cluster-marker.constellation-cluster {
  display: grid !important;
  grid-template-columns: 20px minmax(18px, auto) !important;
  width: 58px !important;
  min-width: 58px !important;
  height: 34px !important;
  min-height: 34px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.94) !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background: color-mix(in srgb, var(--marker-color, #18a978) 82%, #0b5262 18%) !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
  transition: border-color 150ms ease, background-color 150ms ease !important;
  animation: none !important;
  backface-visibility: visible !important;
  will-change: auto !important;
  contain: none !important;
  -webkit-font-smoothing: antialiased !important;
  text-rendering: geometricPrecision !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker .cluster-pin-mark,
html body main.app-shell section.map-stage.map-focus .memory-cluster-marker .cluster-pin-mark {
  display: grid !important;
  width: 20px !important;
  height: 24px !important;
  place-items: center !important;
  transform: none !important;
  filter: none !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker .cluster-pin-mark svg,
html body main.app-shell section.map-stage.map-focus .memory-cluster-marker .cluster-pin-mark svg {
  display: block !important;
  width: 16px !important;
  height: 22px !important;
  overflow: visible !important;
  fill: #ffffff !important;
  stroke: none !important;
  filter: none !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker .cluster-pin-mark circle,
html body main.app-shell section.map-stage.map-focus .memory-cluster-marker .cluster-pin-mark circle {
  fill: var(--marker-color, #18a978) !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker .cluster-count,
html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster .cluster-count,
html body main.app-shell section.map-stage.map-focus .memory-cluster-marker .cluster-count,
html body main.app-shell section.map-stage.map-focus .memory-cluster-marker.constellation-cluster .cluster-count {
  display: block !important;
  width: auto !important;
  min-width: 18px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #ffffff !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  font-variant-numeric: tabular-nums !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-shadow: none !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker small,
html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster small,
html body main.app-shell section.map-stage.map-focus .memory-cluster-marker small,
html body main.app-shell section.map-stage.map-focus .memory-cluster-marker.constellation-cluster small {
  display: none !important;
}

html body .app-shell .map-stage.map-focus.map-interacting .memory-cluster-marker,
html body .app-shell .map-stage.map-focus.map-zooming .memory-cluster-marker {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  transition: none !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.map-focus .maplibregl-marker:has(.memory-cluster-marker),
  html body .app-shell .map-stage.map-focus .memory-cluster-marker,
  html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster {
    width: 58px !important;
    min-width: 58px !important;
    height: 34px !important;
    min-height: 34px !important;
  }
}
