/* Departure editing stays a single focused task above the map. */
.map-shell #location-confirm-dialog {
  width: min(480px, calc(100% - 24px));
  max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: 26px;
  margin-inline: auto;
  border-radius: 26px;
  overflow-y: auto;
}
.map-shell #location-confirm-dialog .dialog-close {
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  padding: 0; display: grid; place-items: center;
  top: 18px; right: 18px; border-radius: 14px;
}
.map-shell #location-confirm-dialog .dialog-close svg { width: 22px; height: 22px; }
.map-shell .location-confirm-kicker { font-size: 10px; letter-spacing: .1em; padding-right: 40px; }
.map-shell #location-confirm-title { margin: 8px 48px 6px 0; font-size: 28px; }
.map-shell .location-confirm-intro { margin: 0 0 20px; font-size: 14px; line-height: 1.5; }
.map-shell .location-confirm-card { gap: 12px; padding: 14px; margin: 0 0 16px; border-radius: 16px; }
.map-shell #location-confirm-dialog[data-has-location="false"] .location-confirm-card { display: none; }
.map-shell .location-confirm-card strong { font-size: 14px; line-height: 1.45; }
.map-shell .location-confirm-card small { font-size: 9px; }
.map-shell #location-confirm-coordinates { display: none; }
.map-shell #location-confirm-accuracy { font-size: 10px; font-weight: 500; }
.map-shell #location-accuracy.good { display: none; }
.map-shell #location-accuracy { margin: 0 0 16px; padding: 12px; }
.map-shell #location-accuracy > i { display: none; }
.map-shell #location-accuracy p { font-size: 12px; line-height: 1.5; margin-bottom: 0; }
.map-shell #origin-correction { border: 0; padding: 0; background: none; margin: 0; }
.map-shell #origin-correction > summary { min-height: 44px; padding: 8px 0; font-size: 14px; }
.map-shell #origin-correction[open] > summary { display: none; }
.map-shell #origin-search-form { margin: 0; }
.map-shell #origin-search-form label { font-size: 12px; margin-bottom: 8px; }
.map-shell #origin-search-form > div { gap: 8px; }
.map-shell #origin-search-form input { min-width: 0; min-height: 48px; font-size: 16px; border-radius: 12px; }
.map-shell #origin-search-form button { min-height: 48px; padding: 10px 14px; border-radius: 12px; font-size: 13px; }
.map-shell #origin-recents { margin-top: 16px; }
.map-shell #origin-recents header strong { font-size: 10px; }
.map-shell #origin-recent-list { max-height: 150px; overflow-y: auto; }
.map-shell .origin-recent-item strong { font-size: 12px; }
.map-shell .origin-recent-item small { font-size: 11px; }
.map-shell .origin-results button { min-height: 52px; }
.map-shell .origin-results strong { font-size: 13px; }
.map-shell .origin-results small { font-size: 11px; }
.map-shell #edit-origin-map { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 14px 0 8px; font-size: 13px; }
.map-shell #edit-origin-map svg { width: 18px; height: 18px; }
.map-shell #location-confirm-dialog #edit-origin-map,
.map-shell #location-confirm-dialog .location-confirm-actions button:not(.primary) {
  color: var(--night-link, var(--navy));
  background: var(--paper);
  border-color: var(--line);
}
.map-shell #location-confirm-dialog #origin-correction > summary { color: var(--night-link, var(--navy)); }
.map-shell .location-confirm-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; padding-top: 12px; margin-top: 0; }
.map-shell .location-confirm-actions button { min-height: 48px; padding: 10px; font-size: 13px; border-radius: 14px; line-height: 1.35; }
.map-shell .origin-start-hint { padding: 16px 0 4px; }
.map-shell .origin-start-hint h2 { font-size: 19px; }
.map-shell .origin-start-hint p { font-size: 13px; }
.map-shell [data-choose-origin] { min-height: 44px; padding: 10px 18px; margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--night-link, var(--navy)); font-weight: 700; }
#arrival-drawer .arrival-more-button { display: grid; place-items: center; align-self: stretch; height: 44px; }
#arrival-drawer .arrival-more-button svg { width: 24px; height: 24px; display: block; stroke-width: 2.8; }
#arrival-drawer .arrival-card-more-menu { padding: 8px; border: 1px solid var(--line); border-radius: 14px; gap: 6px; }
#arrival-drawer .arrival-card.next .arrival-card-more-menu { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
#arrival-drawer .arrival-card-more-menu button { min-height: 44px; font-size: 12px; }
@media (max-width: 480px) {
  .map-shell #location-confirm-dialog { padding: 22px 18px; margin-bottom: max(8px, env(safe-area-inset-bottom)); }
  .map-shell .location-confirm-card { grid-template-columns: 34px minmax(0,1fr); }
  .map-shell #location-confirm-accuracy { grid-column: 2; justify-self: start; padding: 0; background: none; }
}
@media (prefers-reduced-motion: reduce) { .map-shell .route-preparing > span { animation: none; } }
