/* Final mobile detail fixes: empty Echo, first-story cue, and account status. */
html body .map-stage.home-focus #homeDashboard.is-empty-home #homeOnThisDay .memory-echo-body,
html body main.app-shell section.map-stage.home-focus #homeDashboard.is-empty-home #homeOnThisDay .memory-echo-body {
  grid-template-columns: 68px minmax(0, 1fr) !important;
}

html body .map-stage.home-focus #homeDashboard.is-empty-home #homeOnThisDay .memory-echo-empty-orbit,
html body main.app-shell section.map-stage.home-focus #homeDashboard.is-empty-home #homeOnThisDay .memory-echo-empty-orbit {
  box-sizing: border-box !important;
  width: 68px !important;
  min-width: 68px !important;
  max-width: 68px !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  align-self: center !important;
  justify-self: start !important;
}

html body .map-stage.home-focus #homeDashboard.is-empty-home #homeOnThisDay .memory-echo-copy-main,
html body main.app-shell section.map-stage.home-focus #homeDashboard.is-empty-home #homeOnThisDay .memory-echo-copy-main {
  min-width: 0 !important;
}

@media (max-width: 760px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  html body .map-stage.home-focus #homeDashboard.is-empty-home #homeOnThisDay .memory-echo-body,
  html body main.app-shell section.map-stage.home-focus #homeDashboard.is-empty-home #homeOnThisDay .memory-echo-body {
    grid-template-columns: 60px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
  }

  html body .map-stage.home-focus #homeDashboard.is-empty-home #homeOnThisDay .memory-echo-empty-orbit,
  html body main.app-shell section.map-stage.home-focus #homeDashboard.is-empty-home #homeOnThisDay .memory-echo-empty-orbit {
    box-sizing: border-box !important;
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
  }

  html body .app-shell .bottom-nav #accountMenuButton > .account-nav-status,
  html body main.app-shell .bottom-nav #accountMenuButton > .account-nav-status {
    position: absolute !important;
    top: 2px !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    z-index: 2 !important;
    margin: 0 !important;
    pointer-events: none !important;
    transform: translateX(-50%) !important;
  }

  html body main.app-shell section.map-stage.map-focus .map-empty-state.is-visible,
  html body .app-shell section.map-stage.map-focus .map-empty-state.is-visible {
    position: absolute !important;
    right: auto !important;
    bottom: calc(var(--bottom-nav-height, 78px) + env(safe-area-inset-bottom) + 20px) !important;
    left: 50% !important;
    grid-template-columns: 38px minmax(0, 1fr) !important;
    width: min(270px, calc(100vw - 32px)) !important;
    min-height: 70px !important;
    padding: 9px 12px !important;
    gap: 2px 10px !important;
    border-radius: 20px !important;
    transform: translateX(-50%) !important;
  }

  html body main.app-shell section.map-stage.map-focus .map-empty-state.is-visible img,
  html body .app-shell section.map-stage.map-focus .map-empty-state.is-visible img {
    width: 38px !important;
    height: 48px !important;
  }

  html body:has(.map-empty-state.is-visible) main.app-shell section.map-stage.map-focus .map-navigation-gadget,
  html body:has(.map-empty-state.is-visible) .app-shell section.map-stage.map-focus .map-navigation-gadget {
    bottom: calc(var(--bottom-nav-height, 78px) + env(safe-area-inset-bottom) + 112px) !important;
  }
}

@media (max-width: 350px) {
  html body main.app-shell section.map-stage.map-focus .map-empty-state.is-visible,
  html body .app-shell section.map-stage.map-focus .map-empty-state.is-visible {
    width: min(248px, calc(100vw - 28px)) !important;
  }
}
