/* MyMappi Home v764: one meaningful next step instead of duplicate navigation. */

html body .app-shell .map-stage.home-focus #homeDashboard > .home-signature-action-section,
html body main.app-shell section.map-stage.home-focus #homeDashboard > .home-signature-action-section {
  box-sizing: border-box !important;
  display: grid !important;
  width: min(calc(100% - 32px), 1040px) !important;
  max-width: 1040px !important;
  margin: clamp(24px, 3.6vw, 42px) auto 0 !important;
  padding: 0 !important;
  place-items: center !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeDashboard > .home-signature-action-section[hidden],
html body main.app-shell section.map-stage.home-focus #homeDashboard > .home-signature-action-section[hidden],
html body .app-shell #homeCreateMemoryAction[hidden],
html body .app-shell #homeReliveMyMap[hidden] {
  display: none !important;
}

html body .app-shell #homeCreateMemoryAction,
html body .app-shell #homeReliveMyMap {
  grid-template-columns: 46px minmax(0, 1fr) 44px !important;
  width: min(100%, 600px) !important;
  min-height: 76px !important;
  padding: 10px 12px !important;
  gap: 11px !important;
  border-radius: 22px !important;
}

html body .app-shell :is(#homeCreateMemoryAction, #homeReliveMyMap) .home-private-relive-mark {
  inline-size: 46px !important;
}

html body .app-shell #homeCreateMemoryAction {
  --home-private-relive-accent: #7ad9b8;
  background:
    radial-gradient(circle at 5% 0%, rgba(103, 217, 181, 0.2), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(239, 250, 246, 0.97)) !important;
}

html body .app-shell #homeCreateMemoryAction .home-private-relive-mark {
  color: #087469 !important;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.96), transparent 45%),
    linear-gradient(145deg, rgba(191, 244, 225, 0.78), rgba(225, 247, 240, 0.94)) !important;
}

html body .app-shell #homeCreateMemoryAction:is(:hover, :focus-visible) {
  border-color: rgba(31, 165, 139, 0.28) !important;
  box-shadow:
    0 20px 42px rgba(5, 82, 78, 0.12),
    inset 0 1px 0 #ffffff !important;
}

/* Starter Mode keeps the center + and the rest of the persistent navigation
   available. The card reserves this lane in starter-first-screen-v739.css. */
html body .app-shell .map-stage.home-focus.has-empty-home > .bottom-nav,
html body main.app-shell section.map-stage.home-focus.has-empty-home > .bottom-nav {
  display: grid !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeDashboard > .home-signature-action-section,
  html body main.app-shell section.map-stage.home-focus #homeDashboard > .home-signature-action-section {
    width: calc(100% - 24px) !important;
    margin-top: 22px !important;
  }

  html body .app-shell #homeCreateMemoryAction,
  html body .app-shell #homeReliveMyMap {
    min-height: 72px !important;
  }
}

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