/* Explore mobile: confirmations and the map gadget share one protected row. */
@media (max-width: 720px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  html body .app-shell .map-stage.map-focus .memory-save-confirmation,
  html body main.app-shell section.map-stage.map-focus .memory-save-confirmation {
    right: calc(max(14px, env(safe-area-inset-right)) + 102px) !important;
    bottom: calc(78px + env(safe-area-inset-bottom) + 20px) !important;
    left: max(14px, env(safe-area-inset-left)) !important;
    grid-template-columns: 36px minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 92px !important;
    max-height: 92px !important;
    padding: 10px 11px !important;
    gap: 2px 9px !important;
    overflow: hidden !important;
    border-radius: 22px !important;
  }

  html body .app-shell .map-stage.map-focus .memory-save-confirmation > span,
  html body main.app-shell section.map-stage.map-focus .memory-save-confirmation > span {
    grid-row: 1 / span 3 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 13px !important;
  }

  html body .app-shell .map-stage.map-focus .memory-save-confirmation strong,
  html body main.app-shell section.map-stage.map-focus .memory-save-confirmation strong {
    grid-column: 2 !important;
    overflow: hidden !important;
    font-size: 0.8rem !important;
    line-height: 1.12 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body .app-shell .map-stage.map-focus .memory-save-confirmation small,
  html body main.app-shell section.map-stage.map-focus .memory-save-confirmation small {
    display: -webkit-box !important;
    grid-column: 2 !important;
    overflow: hidden !important;
    font-size: 0.65rem !important;
    line-height: 1.18 !important;
    white-space: normal !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  html body .app-shell .map-stage.map-focus .memory-confirmation-status {
    display: none !important;
  }

  html body .app-shell .map-stage.map-focus .memory-confirmation-view,
  html body .app-shell .map-stage.map-focus .memory-confirmation-undo,
  html body main.app-shell section.map-stage.map-focus .memory-confirmation-view,
  html body main.app-shell section.map-stage.map-focus .memory-confirmation-undo {
    grid-column: 2 !important;
    grid-row: 3 !important;
    justify-self: start !important;
    min-width: 0 !important;
    min-height: 24px !important;
    margin: 2px 0 0 !important;
    padding: 5px 10px !important;
    font-size: 0.65rem !important;
  }

  html body .app-shell .map-stage.map-focus .memory-save-confirmation.is-delete,
  html body main.app-shell section.map-stage.map-focus .memory-save-confirmation.is-delete {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    width: auto !important;
    min-height: 92px !important;
    padding: 10px 11px !important;
  }
}

@media (max-width: 350px) {
  html body .app-shell .map-stage.map-focus .memory-save-confirmation,
  html body main.app-shell section.map-stage.map-focus .memory-save-confirmation {
    right: calc(max(12px, env(safe-area-inset-right)) + 98px) !important;
    left: max(12px, env(safe-area-inset-left)) !important;
    padding: 9px !important;
  }
}
