.message-list:has(.prime-answer-map) {
  max-height: 520px;
}

.prime-answer-map {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line, rgba(157, 188, 216, .18));
  border-radius: 12px;
  background: rgba(4, 15, 28, .42);
}

.prime-answer-map__canvas {
  position: relative;
  width: 100%;
  height: 220px;
  background: #dbe6e7;
}

.prime-answer-map__canvas.leaflet-container {
  font: inherit;
}

.prime-answer-map__canvas:focus-visible {
  outline: 2px solid var(--cyan, #73e4ef);
  outline-offset: -3px;
}

.prime-answer-map__footer {
  display: flex;
  min-height: 37px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
}

.prime-answer-map__status {
  margin: 0;
  color: var(--muted, #9aaec1);
  font-size: 11px;
  line-height: 1.45;
}

.prime-answer-map__explore {
  flex: 0 0 auto;
  color: var(--cyan, #73e4ef);
  font-size: 11px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prime-answer-map__explore:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--cyan, #73e4ef);
  outline-offset: 3px;
}

.prime-answer-map__empty {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 20px;
  color: #334d5e;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.prime-answer-map__marker {
  border: 0;
  background: transparent;
}

.prime-answer-map__marker span {
  display: block;
  width: 16px;
  height: 16px;
  border: 3px solid #f8feff;
  border-radius: 50%;
  background: #087f9f;
  box-shadow: 0 1px 5px rgba(3, 24, 39, .65);
}

.prime-answer-map .leaflet-popup-content-wrapper,
.prime-answer-map .leaflet-popup-tip {
  color: #102638;
  background: #f8fbfc;
}

.prime-answer-map .leaflet-popup-content {
  margin: 9px 12px;
  font-size: 12px;
  line-height: 1.4;
}

.prime-answer-map .leaflet-control-attribution {
  font-size: 9px;
}

@media (min-width: 700px) {
  .prime-answer-map__canvas { height: 260px; }
}

@media (max-width: 390px) {
  .prime-answer-map__footer { align-items: flex-start; flex-direction: column; gap: 5px; }
}
