/* MyMappi v739 — compact, intentional first-memory composition on phones. */
@media (max-width: 720px) {
  html body.starter-page-stationary {
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  html body .app-shell .map-stage.home-focus.has-empty-home,
  html body main.app-shell section.map-stage.home-focus.has-empty-home {
    /* The first-use screen has no bottom navigation, so do not reserve the
       standard mobile navigation lane beneath its only card. */
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
    overflow-y: hidden !important;
    overscroll-behavior-y: none !important;
    touch-action: pan-x !important;
    -webkit-overflow-scrolling: auto !important;
  }

  html body .app-shell .map-stage.home-focus #homeDashboard.home-dashboard.is-empty-home:not(.is-hydrating),
  html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard.is-empty-home:not(.is-hydrating) {
    place-items: start center !important;
    /* The stage already owns the viewport. A second viewport-sized child was
       the empty screen users could scroll through after the card ended. */
    max-height: 100% !important;
    min-height: 0 !important;
    padding: 16px 0 max(24px, env(safe-area-inset-bottom)) !important;
  }

  html body .app-shell #homeDashboard.home-dashboard.is-empty-home:not(.is-hydrating) > #homeStarter.home-starter-section,
  html body main.app-shell #homeDashboard.home-dashboard.is-empty-home:not(.is-hydrating) > #homeStarter.home-starter-section {
    width: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 24px clamp(18px, 6vw, 28px) 22px !important;
    gap: 13px !important;
    border-radius: 28px !important;
  }

  html body .app-shell #homeStarter .home-starter-visual {
    width: 88px !important;
  }

  html body .app-shell #homeStarter .home-starter-visual img {
    width: 76px !important;
  }

  html body .app-shell #homeStarter .home-starter-copy {
    gap: 9px !important;
  }

  html body .app-shell #homeStarter .home-starter-eyebrow {
    font-size: 0.66rem !important;
    letter-spacing: 0.15em !important;
  }

  html body .app-shell #homeStarter h2 {
    max-width: 15ch !important;
    font-size: clamp(1.7rem, 7.4vw, 2.12rem) !important;
    letter-spacing: -0.045em !important;
    line-height: 1.04 !important;
  }

  html body .app-shell #homeStarter .home-starter-copy > p {
    max-width: 33ch !important;
    font-size: 0.86rem !important;
    line-height: 1.45 !important;
  }

  html body .app-shell #homeStarter .home-starter-actions {
    width: min(100%, 330px) !important;
    gap: 2px !important;
    margin-top: 3px !important;
  }

  html body .app-shell #homeStarter .home-starter-primary {
    width: 100% !important;
    min-height: 54px !important;
    border-radius: 16px !important;
    font-size: 0.92rem !important;
  }

  html body .app-shell #homeStarter .home-starter-secondary {
    min-height: 44px !important;
    padding-block: 7px !important;
    font-size: 0.86rem !important;
  }

  html body .app-shell #homeStarter .home-starter-assurance {
    max-width: 31ch !important;
    margin-top: 2px !important;
    color: #718687 !important;
    font-size: 0.68rem !important;
    line-height: 1.35 !important;
    text-align: center !important;
  }
}

@media (max-width: 390px), (max-width: 720px) and (max-height: 740px) {
  html body .app-shell .map-stage.home-focus #homeDashboard.home-dashboard.is-empty-home:not(.is-hydrating),
  html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard.is-empty-home:not(.is-hydrating) {
    padding-top: 10px !important;
  }

  html body .app-shell #homeDashboard.home-dashboard.is-empty-home:not(.is-hydrating) > #homeStarter.home-starter-section {
    padding-block: 20px 18px !important;
    gap: 10px !important;
  }

  html body .app-shell #homeStarter .home-starter-visual {
    width: 76px !important;
  }

  html body .app-shell #homeStarter .home-starter-visual img {
    width: 66px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell #homeStarter,
  html body .app-shell #homeStarter * {
    animation: none !important;
  }
}
